Whether you prefer them scrambled or fried, eggs are a breakfast staple. They’re inexpensive, quick to cook, and packed with protein, making them great fuel for your day.

Cooking eggs perfectly comes down to using the right technique and equipment—especially since one of the most common frustrations is them sticking to the pan. Sometimes it can feel like no amount of oil or butter will keep soft scrambled eggs from clinging to the surface, particularly in a stainless steel skillet. Fortunately, there’s one simple thing you can do to keep eggs from sticking to the pan—and it doesn’t require any fancy tools or special ingredients.

Here's what you need to know before you cook anymore egg recipes.

Why Are My Eggs Sticking to the Pan?

Even if you’re coating your skillet with butter or oil, eggs can still stick. The most likely culprit? Your pan isn’t properly preheated. Keep in mind, heat that’s too high can cause eggs to overcook and stick, so the key is to set the pan over low to medium-low heat and let it warm up gradually for about 2 minutes. To test whether a stainless steel pan is ready, add a few drops of water: If they bead up and glide across the surface, the pan is hot enough. If the water sizzles and evaporates right away, let the pan preheat a little longer.

By preheating a stainless steel skillet, you’re causing what’s known as the Leidenfrost effect. This refers to a scientific process in which droplets of water bead up and glide across the surface of a hot pan instead of evaporating immediately. When this happens, it’s a sign that the skillet is properly preheated. Once you add butter or oil and adjust the heat as needed, your eggs should skate across the surface with ease.

Once your pan is preheated, it’s important to keep the heat low and steady. Resist the urge to crank it up—the best eggs are cooked slowly and gently over low heat. Yes, that means breakfast might take a little longer to reach the table, but the payoff is worth it. If you’re making scrambled eggs, stir them almost constantly with a rubber spatula so they cook evenly and are less likely to stick.

By following this simple process, you’ll be able to cook scrambled eggs just like your favorite diner, no matter what tools you do or don’t have on hand. Next, learn how to cook bacon in the oven for a full breakfast spread!