Learn how to fry an egg on the stovetop four ways: sunny-side up, over-easy, over-medium, and over-hard. I’ll show you simple tips and tricks for nailing the perfect texture, whether you like a runny yolk or a firm one. Mastering these techniques adds versatility to breakfast and makes savory dishes more exciting.

Jessica’s Recipe Science
- Egg whites set at a higher temperature than yolks, so the goal is to fully cook the white while giving the yolk just enough time to reach the texture you like.
- Medium heat quickly sets the whites and allows some Maillard browning on the edges, without turning them rubbery or overcooking the yolk.
- Covering the pan traps steam, which cooks the top of a sunny-side up egg without flipping it.
Featured Comment 12
“I don’t know why but reading instructions on how to do something like frying an egg just changed everything! I make fried eggs in the cast iron. Every. Single. Morning. They always turn out horrible because I either do way too high of heat, waiting for the oil to smoke, flip too late or break the yolk. I finally thought it’s time I look this up. Thank you for writing this out. I no longer have to wait to get breakfast at a restaurant to get those perfectly fried eggs anymore.”—Sarah
Why This Method Works
One of the first techniques I learned in culinary school was how to make a fried egg. It’s a breakfast staple, and it’s become increasingly popular to add to entrées like burgers and pizzas.
The difference between a golden, oozy center and a hard yolk is timing. I cracked open many cartons to test the right amount of fat, heat, and time needed to achieve different textures. The choice of frying pan makes a big difference too, so I’ll help you choose which one to grab. Whether you like sunny-side up or over-easy, this simple step-by-step guide will help you make perfect fried eggs.
Jump To a Section
Ingredients You’ll Need
- Eggs: I use large eggs. Learn more about the types of eggs and sizes.
- Butter or oil: One large egg needs about 1 teaspoon of fat. Butter adds a rich mouthfeel, a golden-brown color, and a nutty flavor. Olive oil, avocado oil, or coconut oil fry the whites for crispier edges.
- Seasoning: Kosher salt and black pepper.
See the recipe card below for all ingredients and measurements (US and metric).
Ingredient Substitutions
Here are a few easy swaps:
- Extra-large or jumbo eggs: Double the fat to about 2 teaspoons per egg.
- Oil instead of butter: Olive oil, avocado oil, or coconut oil contain no water, so they fry the whites efficiently and create a golden color and subtle crunch. Using oil also keeps the eggs dairy-free.
- Cooking more eggs: Use a larger skillet and 1 teaspoon of butter or oil per egg (see the pan sizes below).
The Best Pan for Frying Eggs
A nonstick skillet is my top choice for frying eggs. The slippery surface makes it easy to flip the eggs or slide them out of the pan, which is great for beginners and pros alike. Plus, you can use less oil if you’re looking to reduce the amount of fat.
A cast iron skillet is my second choice. It holds heat well, creating extra crispy edges on the egg whites. I avoid using a stainless steel pan, since eggs tend to stick to its surface unless it’s well preheated and greased, and they often end up overcooked by the time they release.
Pan Size
- 5-inch pan: 1 egg
- 8-inch pan: 1 to 2 eggs
- 10-inch pan: 2 to 3 eggs
- 12-inch pan: 3 to 4 eggs
How to Fry an Egg
To fry an egg, heat about 1 teaspoon of butter or oil in a nonstick or cast iron skillet over medium heat, add the egg, and cook until the white starts to set, about 2 minutes. Then cover the pan for sunny-side up eggs, or flip the egg and cook it from 10 seconds (over-easy) to 4 minutes (over-hard).
Step 1: Heat the Pan
Heat the butter in a 5 to 8-inch nonstick or cast iron skillet over medium heat until it bubbles and foams, but doesn’t brown. Tilt the pan to spread it evenly. If you’re using oil, wait until it starts to shimmer, but not smoke. Medium heat quickly sets the albumin in the egg white and allows some Maillard browning (above 300°F/149°C), while the yolk cooks gradually with more control. That lowers the risk of a hard or rubbery egg when pan-frying.
Step 2: Crack the Egg
Gently crack the side of the egg on a flat surface, like the counter or a cutting board, then use your fingertips to carefully open the shell. Cracking it on the edge of a bowl can push tiny pieces of shell into the egg or break the yolk. You can also crack the egg into a small bowl or ramekin first, which makes it easy to check for bits of shell. Slide the egg into the hot pan and lightly season with salt.
Step 3: Cook to Your Liking
Choose one of the four styles below, depending on how firm you like the yolk.
Sunny-Side Up Eggs


This type of fried egg gets its name from the bright yellow yolk that shines on top. It’s cooked over medium heat with the pan covered the entire time, which traps the steam and cooks the top of the egg without flipping it. Cook until the white is set but still glossy on the surface, about 1½ to 2 minutes. Then turn off the heat and keep it covered until the yolk reaches the texture you like, about 30 seconds for runny or up to 2 minutes for a medium-set yolk.
If you don’t have a lid for the pan, just cover it with the bottom of a larger pan (I do this!) or use a lid from another pot. You can also fry the egg uncovered over medium heat, reduce the heat to low after a few minutes, and baste it with extra butter to finish cooking the surface.
Over-Easy Eggs


If you like a super runny yolk, try this method. Cook the egg over medium heat for about 2 minutes to set the bottom of the white, which makes it easier to turn. Carefully flip the egg over with a spatula and cook just until the rest of the white is set, about 10 to 15 seconds. This keeps the yolk oozy.
Over-Medium Eggs


This method yields a texture similar to soft-boiled eggs, without having to peel them. The process is very similar to over-easy eggs. Once you flip the egg, cook it for 1 to 2 minutes so the yolk warms up and slightly thickens. It creates a vibrant center that still flows but isn’t runny when poked. Personally, this is my favorite way to enjoy a fried egg.
Over-Hard Eggs


This is for you if you like hard-boiled eggs, but with a little more contrast in texture. The yolk cooks all the way through until firm. Cook the egg for about 2 minutes on the first side, then flip it, reduce the heat to medium-low, and cook until the yolk is set, about 3 to 4 minutes.
Season your fried eggs with salt and pepper and serve them right away. I like to add them to avocado toast, serve one on a juicy burger, or put them on a breakfast pizza.
How Long to Fry an Egg
The proteins in the egg white and yolk set at different temperatures. Egg whites start to thicken at 144 to 149°F (62 to 65°C) and fully set at 180°F (82°C). The yolk thickens at 149°F (65°C) and sets at 158°F (70°C) [source]. The goal is to completely set the white, then add more time to cook the yolk. That can take as little as 2 minutes for over-easy eggs, up to 6 minutes for over-hard.
| Style | First side | Second side | Yolk |
|---|---|---|---|
| Sunny-side up | 1½ to 2 minutes, covered | No flip; off the heat, covered, 30 seconds to 2 minutes | Runny to medium-set |
| Over-easy | About 2 minutes | 10 to 15 seconds | Runny |
| Over-medium | About 2 minutes | 1 to 2 minutes | Slightly set, creamy center |
| Over-hard | About 2 minutes | 3 to 4 minutes over medium-low heat | Fully set |
Frequently Asked Questions
Both work, so it depends on the result you want. Butter gives a rich mouthfeel, a golden-brown color, and a nutty flavor, but its milk solids can burn if the heat is too high, so wipe out the pan and add fresh butter between batches. Olive oil, avocado oil, or coconut oil contain no water, so they fry the whites for crispier edges.
No, sunny-side up eggs aren’t flipped. Cover the pan so the trapped steam cooks the top of the egg, or baste the surface with hot butter over low heat until the white is set.
Eggs usually stick when the pan or fat isn’t hot enough, or when you’re using stainless steel. Use a nonstick skillet or well-seasoned cast iron, and wait until the butter foams or the oil shimmers before adding the egg.
A fried egg is done when the white is opaque and fully set, with no clear, runny spots left. Then cook the yolk as long as you like it: a few seconds after flipping for runny, 1 to 2 minutes for slightly set, or 3 to 4 minutes for firm.
More Egg Recipes
If you tried these Fried Eggs, please leave a 🌟 star rating and let me know how it went in the 📝 comments below!
How to Fry an Egg (4 Ways!)

Ingredients
- 1 teaspoon butter, olive oil, or vegetable oil
- 1 large egg
- kosher salt, as needed for seasoning
- black pepper, as needed for seasoning
Instructions
Sunny-Side Up Eggs
- Heat the butter in a 5 to 8-inch nonstick or cast iron skillet over medium heat until it bubbles and foams but does not brown. Tilt the pan to evenly distribute. If using oil, wait until the oil starts to shimmer, but not smoke.
- Add the cracked egg and lightly season with salt. Immediately cover the pan and cook until the egg white is set but still glossy on the surface and the edges are lightly browned, about 1 ½ to 2 minutes.
- Turn off the heat, leave the cover on, and move the pan to the cool side of the stove. Keep the eggs covered until the desired texture is reached: about 30 seconds for a runny yolk, 60 seconds for a soft, thickened yolk, or 2 minutes for a medium-set, richer yolk. Season with salt and pepper as desired. Serve immediately.
Over-Easy Eggs
- Heat the butter in a 5 to 8-inch nonstick or cast iron skillet over medium heat until it bubbles and foams but does not brown. Tilt the pan to evenly distribute. If using oil, wait until the oil starts to shimmer, but not smoke.
- Add the cracked egg and lightly season with salt. Allow the egg to cook without moving until the egg whites just begin to set and the surface is translucent, about 2 minutes.
- Use a spatula to carefully flip the egg over. Cook until the white is opaque and set, but the yolk is still runny, about 10 to 15 seconds. Season with salt and pepper as desired. Serve immediately.
Over-Medium Eggs
- Heat the butter in a 5 to 8-inch nonstick or cast iron skillet over medium heat until it bubbles and foams, but does not brown. Tilt the pan to evenly distribute. If using oil, wait until the oil starts to shimmer, but not smoke.
- Add the cracked egg and lightly season with salt. Allow the egg to cook without moving, until the egg whites just begin to set and the surface is translucent, about 2 minutes.
- Use a spatula to carefully flip the egg over. Cook until the whites are opaque and set, but the yolk is slightly set with a creamy center, about 1 to 2 minutes. Season with salt and pepper as desired. Serve immediately.
Over-Hard Eggs
- Heat the butter in a 5 to 8-inch nonstick or cast iron skillet over medium heat until it bubbles and foams but does not brown. Tilt the pan to evenly distribute. If using oil, wait until the oil starts to shimmer, but not smoke.
- Add the cracked egg and lightly season with salt. Cook without moving until the egg whites just begin to set and the surface is translucent, about 2 minutes.
- Use a spatula to carefully flip the egg over. Reduce the heat to medium-low. Cook until the whites are opaque and the yolks are completely set, about 3 to 4 minutes. Season with salt and pepper as desired. Serve immediately.
Recipe Video

Notes
- Pan Sizes:
- 1 to 2 eggs: Use an 8-inch skillet and 1 teaspoon butter/oil per egg.
- 2 to 3 eggs: Use a 10-inch skillet and 1 teaspoon butter/oil per egg.
- 3 to 4 eggs: Use a 12-inch skillet and 1 teaspoon butter/oil per egg.
- Cooking sunny side up eggs (without a lid): Heat the butter in a 5 to 8-inch skillet over medium heat until it bubbles and foams, but does not brown. Tilt the pan to distribute the fat evenly. Add the cracked egg and lightly season with salt. Cook the egg without moving for 2 minutes. Reduce the heat to low, and cook until the egg white is set but still glossy on the surface and the edges are lightly browned, about 1 to 2 minutes. If desired, add 1 teaspoon of butter near the end of cooking, then baste the surface with the hot fat to further cook the surface.
Nutrition Facts
Percent Daily Values are based on a 2000-calorie diet. All nutritional information is based on estimated third-party calculations. Each recipe and nutritional value will vary depending on the brands you use, measuring methods, and portion sizes per household.








Donna Garvin says
Thanks for your recipe for How to Fry an Egg, so helpful. Can this be used for frying eggs on a griddle?
Jessica Gavin says
Yes, you can use this how to fry an egg guide to use on a griddle. Timing may vary depending on the heat on the griddle. Watch the change of the egg white going from clear to opaque to check for doneness.
DickC says
I was hoping to find out the secret of flipping the egg without breaking the yolk!
Jessica Gavin says
I’ve found a few ways to make flipping the egg over easier. I make sure that there is enough fat in the pan to help the egg easily slide and lift off when flipped. I use a pan slightly larger than the egg, like an 8-inch, tilt the pan down and away from you so the egg moves toward the edge, then give it a quick flip. If that technique doesn’t work, a large spatula always comes in handy.
Matt says
Thank you for the article! What is the best way to determine when your pan is at medium heat?
Jessica Gavin says
Heat the pan using your estimated medium setting on your stove. Add the butter, once it starts to bubble and foam, but not turn dark brown, it’s medium heat. With oil, it should simmer and leave streaks in the pan when swirled.
Jade says
I cooked the Over-hard eggs and I cooked them just like in the instructions and tasted amazing! This was my first time cooking a fried egg and it was easier than I thought. If me an 11 year old can make these anyone can! Thanks for sharing your recipes! 😀
Jessica Gavin says
I’m so proud of you, Jade! You are on your way to becoming an amazing chef. Keep it up and don’t be afraid to give things a try!
Sarah says
I don’t know why but reading instructions on how to do something like frying an egg just changed everything! I make fried eggs in the cast iron. Every. Single. Morning. They always turn out horrible because I either do way too high of heat, waiting for the oil to smoke, flip too late or break the yolk. I finally thought it’s time I look this up. Thank you Jessica for writing this out. It’s honestly foolproof if you use her methods. I’m writing this out as I enjoy the best eggs I’ve ever fried. I no longer have to wait to get breakfast at a restaurant to get those perfectly fried eggs anymore. Thank you.
Jessica Gavin says
Thank you so much, Sarah! I’m so happy that the method for frying eggs gives you some eggs-cellent results, ha! Keep rocking it!
Frank Mosher says
I had long forgotten the various ways of frying eggs! Most informative! I felt like I just graduated from “the local Diner” cooking school! LOL. I have lovely non-stick pans, which recommend not using oil at all, but I still spray with a little olive/vegetable oil. Just as a matter of interest, the yolks contain a lot of lecithan which is good as it breaks down fat molucules. If the yolks are hard cooked, it totally negates the benefit of same. Nothing wrong with eggs with respect to cholesterol! Eat some nuts daily, brings down cholesterol levels very quickly!! Tks!
JJ says
Again…GREAT information! Oils, pans, cracking, times to cook…there isn’t anything missing.
We can’t stand any brown on our eggs…fried, scrambled, omelet. So I’ve learned to cook them very very slowly, and with sunny-up, I’ll put a smaller lid than the pan over the egg, to collect the steam sooner. And I never leave to do something else…LOL…I watch the changes like a hawk!
We’re also more conscious of the maybe-not-so-good contents of a yolk (we’re seniors) and will remove the yolk on a 2-1 basis (doubling the whites) so we get the volume and protein.
Love this information…and, btw…isn’t avocado oil the next best oil since…butter??? LOL!!