This huevos rancheros recipe serves eggs over warm corn tortillas with a cooked tomato salsa and beans on the side. Allow about 30 minutes for two generous breakfast plates. Prepare salsa and beans first, then cook the eggs just before assembling so the tortillas do not sit under sauce for long. The salsa can be mild or hot depending on the chili you use. This version recommends fully set egg whites and yolks, with pasteurized eggs considered if you prefer a less-cooked result. Keep garnishes simple so the tomato, tortilla, and egg remain the focus.

Equipment: saucepan, skillet, spatula.
Ingredient notes
Use beans that are already fully cooked. Canned whole beans or a prepared refried-bean product can work, but their salt and consistency vary. Warm them according to package directions, adding water if needed. Keep any topping added after cooking clean and separate from raw egg utensils.
Tips for the best huevos rancheros
Get the salsa to a spoonable consistency. It should spread across the eggs without running like tomato juice. Simmer it uncovered if too thin or add a little water if it catches on the bottom. Taste it before serving, since canned tomatoes vary in salt.
Warm the tortillas before frying the eggs. A quick pass through the oiled skillet makes them flexible, with a few toasted spots. Wrap them in a towel until the eggs are ready. Pour the salsa over the tortillas only at the table so they do not sit in liquid.
Use gentler heat for the eggs. If the edges brown before the tops cook, turn down the heat and cover the pan briefly. Cook in batches if four eggs will crowd your skillet.
Taste the beans separately. Drain canned beans if their liquid tastes salty. Warm them with a small splash of water, or mash a spoonful against the pan to make them easier to spread over the tortillas. Add lime at the table for a brighter finish.

Variations
With chorizo
Brown fresh pork chorizo separately, breaking it up as it cooks, and check that it reaches 160°F (71°C). Drain excess fat and serve a little alongside the beans. Taste before salting the plate because the sausage is already seasoned.
With roasted tomato salsa or salsa verde
Use a warm roasted tomato salsa in place of the canned-tomato sauce, or serve the eggs with tomatillo salsa for a brighter flavor. Taste store-bought salsa before adding salt.
For a crowd
Warm the salsa and beans ahead, and hold the tortillas under a towel. Cook the eggs in batches and assemble each plate just before serving. Set out the garnishes separately so guests can choose their own.

What to serve with huevos rancheros
Serve with beans, avocado, fresh fruit, or a small cabbage salad. For another breakfast, try a vegetable omelette. For eggs to pack or serve cold, see how long to boil eggs or the guide on how long to hard-boil eggs.
Storage and reheating
Store the salsa, beans, and tortillas separately. Refrigerate perishable leftovers within 2 hours, or within 1 hour above 90°F (32°C). Keep them at 40°F (4°C) or colder and use within 3–4 days. Reheat cooked leftovers to 165°F (74°C). Fry fresh eggs for the best texture.
FAQ
How long to cook eggs in huevos rancheros?
The timing depends on the pan and the heat. Start checking after a few minutes over medium-low heat. Cover the skillet briefly if the tops need help setting. Cook until both the whites and yolks are firm. Move the eggs onto the warm tortillas as soon as they are done.
Can I make huevos rancheros ahead of time?
Yes. Make the salsa and warm or prepare the beans ahead, then refrigerate them separately. Reheat both to 165°F (74°C). Warm the tortillas and cook the eggs just before serving. This keeps the tortillas flexible and avoids reheating eggs that would otherwise become firmer and drier.
How long does huevos rancheros keep in the fridge, and can it be frozen?
Refrigerate cooked components for up to 3–4 days. Freeze the salsa and beans separately, then thaw them in the refrigerator. Skip freezing the assembled plate because the tortillas will absorb liquid and the eggs can turn rubbery. Warm fresh tortillas and fry new eggs when you serve the reheated salsa.
What can I substitute if I don’t have a key ingredient?
Use canned pinto or black beans, or refried beans if you want a thicker layer. A prepared tomato salsa can replace the homemade sauce. Warm it before serving and taste it first. Small flour tortillas work if corn tortillas are unavailable, although they give the plate a softer texture.
Main photo: 1000b / Wikimedia Commons, CC BY-SA 4.0, cropped.