Eggs are the most forgiving ingredient in the kitchen right up until the moment they are not. A minute too long and the yolk of a soft-boiled egg turns chalky. Heat the pan a notch too high and your scrambled eggs go from silky to squeaky. The good news is that every egg style follows a handful of simple rules about heat, time and moisture, and once you understand them, you can cook any egg the way you like it without guessing.
This guide walks through the main ways to cook an egg at home: boiled, poached, fried, scrambled, omelets, baked and steamed. For each one you will find the heat level, the timing, the small habits that make the difference, and the fixes for the usual problems. We also cover buying, storing and handling eggs safely, because a perfect egg is only perfect if it is also safe to eat.
Key takeaways
- Gentle heat is the secret behind tender whites and creamy yolks. Eggs toughen quickly when cooked hot and fast.
- For hard-boiled eggs, start in boiling water, cook 11 to 12 minutes, then chill in ice water. Timing matters more than any trick.
- Fresh eggs poach best; older eggs peel best. Choose the egg for the job.
- Season scrambled eggs just before or during cooking, and pull them from the heat while they still look slightly wet.
- Cook eggs until whites are fully set and yolks begin to thicken. Dishes containing eggs, such as quiche and casseroles, should reach 160F (71C).
- Refrigerate eggs at 40F (4C) or below, and never leave cooked eggs out for more than two hours.
Understanding What Happens When an Egg Cooks
An egg is mostly water and protein. The white is about 90 percent water with proteins suspended in it, while the yolk holds fat, protein and the pigments that give it color. When heat reaches these proteins, they unfold and link together, turning a runny liquid into a solid. This process, called coagulation, does not happen all at once. It happens in stages, and that is why you can have a white that is set while the yolk stays liquid.
Why the white and yolk set at different temperatures
Egg white begins to turn from clear to cloudy at around 140F (60C) and is fully firm by about 180F (82C). The yolk starts thickening at roughly 150F (65C) and becomes crumbly and dry near 170F (77C). Because the white sets at a higher temperature than the yolk starts to thicken, there is a window where a soft yolk and a firm white can coexist. Hitting that window is the entire game with soft-boiled, poached and fried eggs.
Why overcooking makes eggs rubbery
Once the proteins have linked up, further heat squeezes them tighter and pushes out moisture. That is the rubbery texture you get from a fast, hot scramble or a fried egg with browned, lacy, tough edges. It is also why eggs continue to cook after you take them off the heat. A scramble that looks perfect in the pan will be dry by the time it reaches the plate, so you stop a little early.
The green ring around hard-cooked yolks
That gray-green layer around a hard-boiled yolk is a harmless reaction between iron in the yolk and sulfur in the white, and it shows up when eggs are cooked too long or cooled too slowly. It is safe to eat but a little sulfurous in flavor. Shorter cooking time and a quick ice bath prevent it.
Buying, Storing and Handling Eggs Safely
Good technique starts at the store. Open the carton and check that no shell is cracked or leaking, and buy eggs from the refrigerated case. Check the carton for a sell-by or expiration date and a pack date, which is a three-digit number representing the day of the year.
Refrigeration and the two-hour rule
In the United States, commercially sold eggs are washed and must be refrigerated, so keep them in the fridge at 40F (4C) or colder. Store them in the original carton on a middle shelf rather than the door, where temperature swings are greatest. If cooked eggs, or dishes made with them, sit at room temperature for more than two hours (one hour if the room is above 90F, or 32C), discard them.
How long eggs keep
| Egg type | Refrigerator storage |
|---|---|
| Raw eggs in shell | 3 to 5 weeks from purchase |
| Raw yolks or whites, covered | 2 to 4 days |
| Hard-boiled eggs, in shell or peeled | Up to 1 week |
| Leftover cooked egg dishes | 3 to 4 days |
The float test and freshness
Drop an egg in a bowl of cold water. If it lies flat on the bottom, it is very fresh. If it tilts or stands on end, it is older but usually still good. If it floats, the air cell inside has grown large, and it is safest to throw it away. Cracking the egg onto a plate gives the final word: any off smell means it goes in the trash.
Food safety with runny yolks
Eggs that are cooked until both white and yolk are firm are the safest choice. Runny yolks carry a small risk of Salmonella. Young children, older adults, pregnant people and anyone with a weakened immune system should eat eggs fully cooked, and they should avoid raw preparations such as homemade mayonnaise or hollandaise made with unpasteurized eggs. Pasteurized in-shell eggs are available at some stores for those recipes. Wash your hands and any surfaces that touched raw egg with hot, soapy water.
Allergy note
Egg is one of the major food allergens in the United States. If you are cooking for guests, ask about allergies, and keep utensils and pans that touched egg separate from egg-free dishes.
Essential Gear and Setup
You do not need much. A few pieces handle nearly every method in this guide.
- A nonstick or well-seasoned 8-inch skillet with a lid, for frying, scrambling and omelets.
- A heavy saucepan with a lid, for boiling.
- A heat-resistant silicone spatula, which scrapes curds cleanly and will not scratch nonstick surfaces.
- A slotted spoon and a small fine-mesh strainer for poaching.
- A kitchen timer. Phones work, but a timer you can see across the room is harder to ignore.
- A bowl of ice water for cooling boiled eggs.
- An instant-read thermometer for egg dishes baked in the oven.
Crack eggs on a flat surface such as the counter rather than the edge of a bowl. Hitting the edge can push shell fragments inside and break the yolk. If a bit of shell slips in, scoop it out with a larger piece of shell, which seems to grab it better than a fingertip.
Boiled Eggs: Soft, Jammy and Hard
Boiling is the method people mess up most often, mainly because it is easy to lose track of time. The method below works with eggs straight from the refrigerator.
The basic method
- Bring a saucepan of water to a full rolling boil, enough to cover the eggs by at least an inch.
- Lower cold eggs into the water one at a time with a spoon so they do not crack on the bottom.
- Reduce the heat so the water bubbles steadily but not violently, and start your timer.
- When the timer goes off, move the eggs to a bowl of ice water for at least 5 minutes for soft and jammy styles, or 10 minutes for hard-boiled.
Timing chart for large eggs
| Result | Time in boiling water | What you get |
|---|---|---|
| Soft | 6 minutes | Set white, fully liquid yolk |
| Jammy | 7 to 8 minutes | Firm white, creamy, deep orange yolk that barely holds |
| Medium | 9 to 10 minutes | Mostly set yolk with a slightly soft center |
| Hard | 11 to 12 minutes | Fully set, pale yellow yolk |
Soft and jammy eggs are great on toast or ramen, but see the safety note above if anyone at your table is in a higher-risk group. For them, go to the hard-boiled time. Medium and extra-large eggs vary by about a minute, so adjust slightly.
Steaming as an alternative
Steaming eggs over an inch of boiling water in a covered pot gives very consistent results and fewer cracks. Use the same timings as the chart, starting the clock when you cover the pot. Many cooks find steamed eggs slightly easier to peel, especially when the eggs are on the fresh side.
Peeling without the struggle
Very fresh eggs cling to their membrane, which is why those bought from a farm stand last week can be a nightmare to peel. If you can, use eggs that have been in the fridge for a week or more for boiling. After the ice bath, tap the egg all over on the counter, roll it gently under your palm to craze the shell, and start peeling at the wide end, where the air pocket is. Peeling under a thin stream of cold running water helps wash away tiny fragments.
Troubleshooting boiled eggs
- Cracked shells: Lower the eggs gently, do not let the water boil furiously, and avoid dropping eggs straight from a very cold fridge into a pot at full boil if yours are prone to cracking. Letting them sit out for 10 minutes helps.
- Egg whites that leaked out: Water that is too violent is usually the culprit. Reduce the heat to a steady simmer.
- Rubbery whites: Cooked too long. Use the timer next time.
- Off-center yolks: Gently stir for the first minute or store the carton on its side the day before.
Poached Eggs
A poached egg is an egg cooked gently in hot water without its shell. It looks fancy, yet the method is simple once you accept that the first few may be imperfect. The most important factor is freshness, because a fresh white is thick and stays tight around the yolk, while an older white thins out and spreads into wispy strands.
Step-by-step method
- Fill a wide, deep pan or skillet with about 3 inches of water and bring it to a bare simmer, around 180F (82C). You should see small bubbles on the bottom but not a rolling boil.
- Crack each egg into a small cup or ramekin.
- Pour the cracked egg into a fine-mesh strainer for about 20 seconds to let the thin, watery part of the white drain off. This single step does more for neat results than any swirl of the water.
- Slide the egg from the strainer back into the cup, then lower the cup to the water surface and let the egg slip out gently.
- Cook for 3 to 4 minutes for a runny yolk and set white. For a medium yolk, go to 5 minutes.
- Lift the egg out with a slotted spoon and rest it on a folded paper towel for a few seconds to drain.
Poaching several eggs at once
Cook up to four eggs together in a large pan, slipping them in at different points around the edge so they do not touch. For a crowd, poach ahead and hold the eggs in a bowl of warm water, but keep in mind the two-hour rule for anything left out at room temperature. Another option is to poach the eggs for 2 minutes, move them to ice water, and reheat in hot (not boiling) water for 60 seconds before serving. Eggs poached ahead and chilled should be refrigerated promptly and eaten within a day or two.
Vinegar and the whirlpool
A splash of white vinegar in the water helps the white set faster, although too much will flavor the egg. About a tablespoon per quart of water is plenty. Swirling the water into a gentle whirlpool can help a single egg wrap itself neatly, but it makes cooking more than one at a time difficult. If you strain the egg first, you can skip it.
Troubleshooting poached eggs
- Wispy, ragged whites: The egg is old, or the water is too hot. Strain the egg and hold the water just under a simmer.
- Whites that never set: The water is too cool. Bring it back to a bare simmer.
- Stuck to the pan: Use a pan with enough depth that the egg floats freely.
- Rubbery yolk: Reduce time by 30 seconds.
Fried Eggs: Sunny Side Up, Over Easy and Beyond
A fried egg is the fastest breakfast on earth, and the differences between styles come down to flipping and lid use.
Heat, fat and pan choice
Set the pan over medium-low heat and add about a teaspoon of butter or oil. Wait until the butter stops foaming or the oil shimmers slightly. Too hot, and the underside turns brown and crisp before the white above has set. Nonstick pans are the easiest for beginners, and a well-seasoned cast iron pan produces crisp edges with a runny center when you want them.
Sunny side up
- Crack the egg into a cup, then slide it into the pan.
- Cook uncovered for about 2 minutes until the whites are mostly set and the edges are opaque.
- Add a teaspoon of water to the pan and cover with a lid for 1 minute. The steam sets the thin film of white on the top of the yolk without flipping.
- Slide onto a plate and season.
Over easy, medium and hard
For these styles, cook until the white is set on the bottom, then flip carefully with a thin spatula, sliding it fully under the egg first. Cook another 15 seconds for over easy, 30 to 45 seconds for over medium, and 60 seconds for over hard, where the yolk is broken and cooked through. If you are worried about breaking the yolk when flipping, cover and steam instead, or use the basted method below.
Basted eggs
Tilt the pan and spoon hot butter or oil over the whites as they cook. The fat cooks the whites without flipping and yields tender, glossy tops.
Crispy-edged eggs
For lacy, crunchy edges, heat a thin layer of oil in a skillet over medium-high until it shimmers, then add the egg and spoon the hot oil over it. It will bubble and brown within about 90 seconds. It is a different style from a gentle fried egg, and delicious on rice or grain bowls.
Troubleshooting fried eggs
- Broken yolks: Crack into a cup first, never directly over the pan.
- Rubbery edges: Lower the heat.
- Raw white around the yolk: Use the lid and a splash of water.
- Sticking: Use enough fat and let the pan heat before adding the egg.
Scrambled Eggs
There are really two schools of scrambled eggs, and both are good. The French style is soft, creamy and small-curded, cooked slowly and stirred constantly. The diner style is fluffy, with large curds, cooked quickly over higher heat. Choose according to your mood.
Creamy, slow-cooked scrambled eggs
- Whisk 3 eggs with a pinch of salt until the mixture is uniform and no streaks of white remain.
- Melt a tablespoon of butter in a nonstick skillet over low heat.
- Pour in the eggs and stir slowly with a silicone spatula, sweeping across the bottom and sides.
- When the eggs look like loose custard with small curds, remove the pan from the heat, keep stirring for 20 seconds, and plate right away.
The total cooking time is about 4 to 6 minutes. If the pan seems too hot, lift it off the burner for a few seconds. A spoonful of cream, crème fraîche or a small cube of cold butter stirred in at the end stops the cooking and adds richness.
Fluffy diner-style scrambled eggs
Whisk eggs with a tablespoon of milk or water per 3 eggs, which adds steam and lightness. Heat the butter over medium until it foams, pour in the eggs, and let them sit for about 10 seconds. Then use a spatula to push the cooked edges to the center in broad folds, tilting the pan to let raw egg flow into the gaps. Pull the pan from the heat when the eggs are mostly set but still glossy. Total time is about 2 minutes.
Salt, milk and other questions
Salting the eggs 10 to 15 minutes before cooking yields slightly more tender curds, because the salt changes how proteins bond. Salting right before cooking is perfectly fine as well. Too much milk can make eggs watery, so keep it to a tablespoon or less per 3 eggs.
Safety for scrambles
Restaurant-style runny scrambled eggs are not recommended for pregnant people, small children, older adults or anyone with a weakened immune system. If that includes you, cook the eggs until no visible liquid remains and they are firm throughout.
Troubleshooting scrambled eggs
- Watery plate: Heat was too high or eggs overcooked, causing proteins to squeeze out moisture. Lower the heat. Vegetables with lots of water, like mushrooms or tomatoes, should be cooked first and drained.
- Rubbery or dry: Pull them off the heat earlier, while still glossy.
- Gray color: Overcooking, or cooking in an uncoated iron or aluminum pan. Use nonstick or stainless.
- Stuck on the pan: More butter, lower heat, and a spatula with a thin edge.
Omelets and Frittatas
An omelet is a scramble that has been given a form. A frittata is the same idea finished in the oven. Both reward gentle heat.
The classic French-style omelet
- Whisk 3 eggs with a pinch of salt until smooth.
- Heat an 8-inch nonstick skillet over medium. Melt a tablespoon of butter until foaming subsides.
- Pour in the eggs and stir quickly with a spatula for about 15 seconds while shaking the pan.
- Stop stirring, spread the eggs evenly, and cook another 20 to 30 seconds, until the surface is barely wet.
- Add fillings to the center, fold one third over, and roll out onto a plate, seam side down.
For a fluffy American-style omelet, skip the stirring, lift the edges as the eggs set so raw egg runs underneath, then fill and fold once. Keep fillings small, warm and relatively dry. Cold, wet fillings flood the omelet and cool the pan.
Frittata method
Whisk 8 eggs with a quarter cup of milk or cream, salt and pepper. Cook your fillings, such as onions, peppers and spinach, in an oven-safe 10-inch skillet. Pour the eggs over, cook on the stovetop over medium-low for 3 to 4 minutes until the edges set, then transfer to a 375F (190C) oven for 10 to 12 minutes, until the center is set and the internal temperature reads 160F (71C). Let it rest for 5 minutes before slicing. Remember that the handle will be very hot, so use a mitt.
Baked Eggs and Sheet-Pan Eggs
Baking is the most hands-off way to cook many eggs at once, and it is a favorite for brunches.
Baked eggs in ramekins
Heat the oven to 350F (175C). Butter small ramekins, add a spoonful of cream and a pinch of salt, crack an egg into each, and bake for 12 to 15 minutes for a set white and runny to jammy yolk. Place the ramekins on a baking sheet for easy handling. They keep cooking after you take them out, so pull them just before they look done.
Oven-baked hard-cooked eggs
Place whole eggs in the cups of a muffin tin and bake at 325F (165C) for 28 to 30 minutes, then cool in ice water. Expect a few light brown spots on the shell, and this method does not change the texture of the white as much as boiling. It is handy for batches of a dozen or more.
Egg muffins and sheet-pan eggs
Pour whisked eggs over cooked vegetables and cheese in greased muffin cups or a lined sheet pan, and bake at 350F (175C) for about 15 to 25 minutes, until the center springs back and a thermometer reads 160F (71C). They refrigerate well for 3 to 4 days and reheat in the microwave until steaming hot, to 165F (74C).
Steamed, Microwave and Other Quick Eggs
Chinese-style steamed egg custard
Whisk 3 eggs with 1 1/2 cups of warm water or broth and a pinch of salt, strain into a shallow heatproof dish, and cover with foil or a plate. Steam over low-to-medium heat for 10 to 12 minutes until just set and wobbly. Low steam gives you a smooth custard, while a hard boil makes it pitted and honeycombed. Drizzle with a little soy sauce and sesame oil, and scatter with scallions.
Microwave scrambled eggs
Whisk 2 eggs with a tablespoon of milk in a greased microwave-safe mug. Microwave for 30 seconds, stir, then heat another 30 seconds until just set. Microwaves vary, so use 20 second bursts toward the end. Never microwave eggs in the shell. Steam builds up inside and the egg can burst, even after it is out of the microwave.
Egg in a hole and other toast-based eggs
Cut a hole in a slice of bread with a glass, butter both sides, and place it in a medium-low skillet. Crack an egg into the hole, season, and cook for 2 minutes, then flip and cook for 1 minute more. It is a good first recipe for kids who want to cook.
Seasoning and Flavor Ideas
Eggs are a blank canvas, so a few good finishing touches go a long way.
- Flaky salt and cracked black pepper, added at the end, give texture and bite.
- Fresh herbs, such as chives, dill, parsley or tarragon, stirred into scrambles or sprinkled on fried eggs.
- A small spoonful of grated hard cheese melted into an omelet or scramble.
- A drizzle of chili oil, hot sauce or a pinch of smoked paprika on a fried egg.
- A squeeze of lemon over poached eggs and greens to cut richness.
- Toasted sesame seeds and sliced scallions over steamed or fried eggs for savory meals.
If you are serving guests with food allergies, remember that cheese, bread, butter and sesame are allergens too, so label dishes clearly.
Cooking Eggs for a Crowd
Brunch for eight is not the moment to stand over a skillet frying individual eggs. A few strategies keep you at the table instead of at the stove.
- Bake scrambled eggs: Whisk 12 eggs with a cup of milk and salt, pour into a buttered 9 by 13 inch dish, and bake at 350F (175C) for 20 to 25 minutes, stirring once halfway, until set, to 160F (71C).
- Use two pans for fried eggs, and cook in rounds of four.
- Boil a dozen eggs the day before and serve them chilled or halved with toppings.
- Keep hot dishes above 140F (60C) in a warm oven or chafing dish, and discard anything left out more than two hours.
Common Mistakes
- Cooking over high heat. Nearly every egg style is better at medium or lower.
- Skipping the ice bath after boiling, which leads to green yolks and harder peeling.
- Adding eggs to a cold pan. Let the fat heat for a minute first.
- Over-whisking or under-whisking. Beat scrambled eggs until uniform, but you do not need to whip air into them.
- Leaving scrambled eggs in the hot pan. Plate them the moment they look done.
- Using metal utensils on nonstick surfaces, which scratches the coating.
- Washing eggs at home before storing. Commercial eggs are already washed, and extra washing can push bacteria through the shell.
- Leaving hard-boiled eggs out at a picnic or party for several hours.
- Eating eggs with cracked or dirty shells, or any egg with an unusual smell.
When to See a Doctor
Most people never have a problem with eggs, but two situations deserve medical attention. First, if you or your child develops hives, swelling of the lips or face, vomiting, wheezing or trouble breathing after eating egg, seek urgent medical care, and call 911 for breathing difficulty or swelling of the throat. Egg allergy is common in children, and a doctor or allergist can advise on testing and on the safest way to introduce eggs and baked goods containing eggs.
Second, if you develop fever, stomach cramps, diarrhea or vomiting within several hours to a few days of eating undercooked eggs or an egg-containing dish, contact your doctor, especially if you are pregnant, elderly, very young or have a condition that affects your immune system. Drink plenty of fluids and do not wait if symptoms are severe or last more than a couple of days. If you have been told to limit dietary cholesterol for a medical reason, ask your doctor how many eggs fit your plan rather than guessing.
Frequently Asked Questions
How can I tell if a hard-boiled egg is cooked without cracking it?
Spin it on the counter. A hard-boiled egg spins smoothly and quickly, while a raw egg wobbles because the liquid inside shifts. Keep boiled and raw eggs in separate, labeled containers to avoid mix-ups in the fridge.
Are brown eggs better than white eggs?
Shell color depends on the breed of hen and has no effect on flavor, nutrition or cooking behavior. Yolk color is related mainly to the hen’s diet. Buy whichever you like and judge freshness by the date.
Is it safe to eat eggs with runny yolks?
For most healthy adults the risk is low but not zero. Cooking until the white and yolk are firm is the safest approach, and it is the recommended one for pregnant people, young children, older adults and anyone with a weakened immune system. Pasteurized eggs are a safer option when a recipe calls for undercooked or raw egg.
Why do my scrambled eggs turn watery on the plate?
Either the eggs were cooked too hot and too long, so the proteins tightened and squeezed out liquid, or wet add-ins like tomatoes or mushrooms released water. Use lower heat, take the pan off the stove while the eggs are still glossy, and precook watery vegetables.
Can I freeze eggs?
You should not freeze eggs in the shell, since they can crack. You can crack them, whisk the yolks and whites together lightly, and freeze in a covered container for up to a year for quality, thawing in the refrigerator before use. Cooked egg muffins and frittata slices also freeze well for a few weeks. Hard-boiled whites turn rubbery in the freezer, so skip those.
How long can I keep hard-boiled eggs?
Up to one week in the refrigerator, whether peeled or unpeeled. Keep them in a covered container, and if you peel them ahead, a damp paper towel in the container keeps them from drying out.
Should I rinse eggs before cooking?
No, there is no need, and washing can remove the natural protective coating on farm-fresh eggs or push bacteria through the shell. If an egg is visibly dirty, wipe it with a dry cloth or rinse just before use, then wash your hands.
Why does my poached egg fall apart?
Usually the egg is not fresh enough or the water is too turbulent. Strain the thin white away first, keep the water at a bare simmer, and slide the egg in gently from a cup rather than dropping it from above.
Cooking Eggs Well, One Breakfast at a Time
You do not have to master every method in this guide in a week. Pick the style you like best, make it three mornings in a row, and pay attention to heat and timing. By the third try, your hands will know what a good scramble looks like in the pan. Then try the next one. Eggs are cheap, quick and endlessly adaptable, and the more you cook them, the less you will need a recipe to get them right.