Hard-cooked (boiled) eggs – 19 minutes. A hard-cooked egg has both a firm white and a firm yolk. Hard-cooked eggs should never be boiled – always simmer them in water. If you cook them for too long, the protein toughens (becomes rubbery) and a greenish or purplish ring forms around the yolk.