How long does it take to cook a sunny side up egg?

The time it takes to cook a sunny side up egg depends on several factors:

* Heat: A higher heat will cook the egg faster, while a lower heat will take longer.

* Pan: A well-seasoned cast iron pan will cook the egg faster than a non-stick pan.

* Size of the egg: Larger eggs will take a bit longer to cook than smaller eggs.

* Desired doneness: If you want the white cooked through and the yolk still runny, it will take longer than if you want the yolk to be more cooked.

Generally, a sunny side up egg takes around 2-3 minutes to cook on medium heat.

Here are some general guidelines:

* Soft yolk: 2-3 minutes

* Medium yolk: 3-4 minutes

* Hard yolk: 4-5 minutes

It's best to watch the egg closely and adjust the cooking time based on your preference.