Academy of ChocolateCHOCOLATE · BAKING · DISCOVERY

How to Cook Eggs Safely: Temperature, Time, and Food Safety Tips

How to Cook Eggs Safely

Eggs are versatile, affordable, and nutrient-dense, but they also need careful handling from purchase to plate.

This guide explains how to cook eggs safely so you can reduce the risk of Salmonella and serve eggs with the right texture and doneness.

Why egg safety matters

Shell eggs can carry bacteria on the outside and, less commonly, inside the egg.

The main food safety concern is Salmonella, a pathogen that can cause fever, diarrhea, stomach cramps, and vomiting.

Children, pregnant people, older adults, and anyone with a weakened immune system are at higher risk of severe illness.

Safe egg cooking is not only about heating eggs enough.

It also includes refrigeration, clean preparation surfaces, and avoiding cross-contamination.

These steps matter whether you are making scrambled eggs, omelets, poached eggs, quiche, or using eggs in batters and sauces.

What temperature makes eggs safe?

The safest general rule is to cook eggs until both the white and yolk are firm.

For dishes containing eggs, the USDA recommends cooking to an internal temperature of 160°F (71°C).

At this temperature, harmful bacteria are destroyed.

For everyday cooking, use these practical targets:

  • Scrambled eggs: cook until no liquid egg remains.
  • Fried eggs: cook until whites are set and yolks are cooked to your preferred doneness, but fully firm yolks are the safest choice.
  • Omelets: cook until the center is not runny.
  • Egg casseroles and quiches: use a food thermometer to confirm 160°F at the center.

If you prefer soft yolks, sunny-side-up eggs, or other lightly cooked styles, know that these carry a higher food safety risk.

People in high-risk groups should avoid undercooked eggs and dishes made with raw or lightly cooked eggs.

How long should you cook eggs?

Cooking time depends on pan heat, egg size, quantity, and whether the eggs are whole, beaten, or mixed into another dish.

Time alone is not as reliable as appearance and temperature, but a few common benchmarks help.

Boiled eggs

  • Soft-boiled: about 6 minutes for a runny yolk
  • Medium-boiled: about 8 to 9 minutes for a more set yolk
  • Hard-boiled: about 10 to 12 minutes for fully firm yolk and white

For maximum safety, hard-boiled eggs are the best choice.

After boiling, cool them promptly in cold water and refrigerate them within two hours.

Scrambled eggs

Cook scrambled eggs over medium or medium-low heat, stirring until they are set and no visible liquid remains.

They should look moist, not wet.

If you are cooking for someone at higher risk, avoid soft or custardy scrambled eggs and cook them thoroughly.

Fried eggs and omelets

Fried eggs are safest when the whites are completely opaque and the yolks are cooked until firm.

Omelets should be cooked through without runny egg in the center.

Covering the pan briefly can help the top set without burning the bottom.

How to handle eggs before cooking

Safe cooking starts before the pan heats up.

Good handling reduces contamination and helps eggs stay fresh longer.

  • Buy refrigerated eggs: choose eggs from a refrigerated case and check the carton for cracks.
  • Store eggs in the refrigerator: keep them at 40°F (4°C) or below.
  • Keep them in the carton: this protects against odors and temperature swings.
  • Use clean hands and surfaces: wash hands before and after handling raw eggs.
  • Discard cracked eggs: bacteria can enter through damaged shells.

Avoid washing shell eggs before storage unless local guidance specifically recommends it.

In many cases, washing can remove the shell’s natural protective coating and increase contamination risk.

Can you eat runny eggs safely?

Some people enjoy runny yolks, soft-boiled eggs, or poached eggs with fluid centers.

These foods can be made safer by using pasteurized eggs, which have been heated enough to reduce harmful bacteria without fully cooking the egg.

Pasteurized shell eggs and liquid egg products are useful for recipes that traditionally call for raw or lightly cooked eggs.

That said, pasteurization lowers risk but does not eliminate every food safety concern if eggs are handled poorly after purchase.

Keep pasteurized eggs refrigerated and use them before the expiration date.

How to cook eggs safely in different recipes

Different egg dishes create different food safety challenges.

The key is to know when the egg mixture has fully set and when extra steps are needed.

Casseroles and baked egg dishes

Use a food thermometer to check the center of the dish.

The thickest part should reach 160°F.

Baking time varies with dish depth, oven accuracy, and added ingredients such as cheese, vegetables, or meat.

Quiche and frittatas

These dishes often look done at the edges before the center is cooked.

Insert a thermometer into the middle and confirm 160°F before serving.

Custards and sauces

Recipes such as custard, hollandaise, and some dessert fillings often use eggs gently.

If safety is a concern, use a thermometer and/or pasteurized eggs.

Stir constantly and avoid overheating, which can scramble the mixture.

Microwaved eggs

Microwaves can heat unevenly, so stir or rotate the eggs during cooking.

Let the dish stand briefly after heating to allow temperature to even out.

Use a microwave-safe container and cook until the egg is fully set.

Common mistakes that make eggs less safe

  • Leaving eggs out too long: do not keep raw or cooked eggs at room temperature for more than two hours, or one hour if the room is hot.
  • Using dirty utensils: raw egg residue on spoons, bowls, or cutting boards can spread bacteria.
  • Undercooking egg mixtures: runny centers in casseroles and quiches can mean the egg never reached a safe temperature.
  • Storing cooked eggs improperly: refrigerate leftovers promptly in shallow containers.
  • Tasting raw batter: batters and doughs containing eggs are not safe to sample before baking.

How to store cooked eggs

Cooked eggs and egg dishes should be cooled and refrigerated quickly.

Place leftovers in the refrigerator within two hours of cooking, and within one hour if the ambient temperature is above 90°F (32°C).

Use airtight containers and label dishes with the date.

Most cooked egg dishes keep for three to four days in the refrigerator.

Reheat leftovers to 165°F (74°C) if they contain mixed ingredients or if you want to serve them hot.

Who should be extra careful with eggs?

Food safety agencies advise extra caution for pregnant people, infants and young children, older adults, and people with weakened immune systems.

For these groups, the safest approach is to avoid raw or lightly cooked eggs, choose pasteurized products when needed, and fully cook all egg-based dishes.

If you are serving a mixed group, cook eggs to a firm finish so everyone can enjoy the meal without added risk.

This is especially important for buffet-style meals, brunches, and holiday dishes where eggs may sit out longer.

Quick checklist for safe egg cooking

  • Refrigerate eggs promptly and keep them cold.
  • Discard cracked shells and dirty eggs.
  • Wash hands, utensils, and surfaces after raw egg contact.
  • Cook whole eggs until whites and yolks are firm when safety is the priority.
  • Cook egg dishes to 160°F at the center.
  • Refrigerate leftovers within two hours.
  • Use pasteurized eggs for recipes that call for raw or lightly cooked eggs.