Skip to main content

Pesto Pasta with Soft Boiled Egg Recipe

| ~7 min read | Pasta Sauces

Sections
  1. Ingredients
  2. Instructions
  3. Tips
  4. Serving Suggestions
  5. Variations
  6. Storage and Reheating
  7. Frequently Asked Questions

Pesto pasta with a soft boiled egg is a fast weeknight dinner that turns a jar of basil pesto and a box of spaghetti into something that feels cooked rather than assembled. The egg is the trick: a six-and-a-half-minute yolk, still runny in the middle, breaks over the hot, pesto-coated strands and turns into a loose, silky sauce that clings to every bite. It works because pesto is sharp, salty and herbal, and a soft yolk is rich and mild, so the two balance each other instead of fighting.

Ingredients

  • 350 g (12 oz) dried pasta, such as spaghetti, linguine, fusilli or penne
  • 2 large eggs, at room temperature (use pasteurized eggs if anyone at the table is pregnant, elderly, very young or immunocompromised)
  • 150 g (about 2/3 cup) basil pesto, homemade or jarred
  • 2 tbsp extra-virgin olive oil, plus more for finishing
  • 2 tbsp grated Parmigiano-Reggiano or Pecorino Romano, plus more to serve
  • 1 tbsp unsalted butter, optional but it helps the sauce emulsify
  • 1 clove garlic, finely grated, optional
  • Salt for the pasta water, about 1 tbsp per 4 litres (1 tbsp per 4 quarts)
  • Freshly ground black pepper
  • Optional: 100 g cherry tomatoes, halved, or 1 tbsp toasted pine nuts

Instructions

  1. Bring a large pot of water to a rolling boil. Add about 1 tbsp salt per 4 litres (4 quarts) of water. The water should taste seasoned like a light broth, not like seawater.
  2. While the water heats, set up the eggs. Lower the eggs into a second small saucepan of gently boiling water using a spoon, so they do not crack. Start timing: 6 minutes for a very runny yolk, 6 minutes 30 seconds for a jammy, spoonable yolk, 7 minutes for a firmer set. Keep the water at a gentle simmer, not a hard boil.
  3. As soon as the eggs are done, drain them and plunge them into a bowl of ice water for 2 minutes. This stops the cooking and makes them far easier to peel. Peel carefully under cold running water and set aside.
  4. Add the pasta to the boiling salted water and stir once so it does not stick. Cook to al dente, usually 1 to 2 minutes less than the package time. Check by biting a piece; it should be tender with a firm centre, no chalky core.
  5. Just before draining, scoop out about 1 cup (240 ml) of the starchy pasta water and set it aside. You will almost certainly need some of it.
  6. Drain the pasta but do not rinse it. Rinsing removes the surface starch that helps the sauce stick.
  7. In the still-warm, empty pot, combine the pesto, olive oil, butter if using, grated garlic if using, and 2 tbsp of the reserved pasta water. Stir over low heat for 30 seconds, just until it loosens and smells fragrant. Do not let it boil, or the basil will lose its colour and turn bitter.
  8. Add the drained pasta and toss hard for 30 to 60 seconds, adding more pasta water a tablespoon at a time until the sauce coats every strand and looks glossy rather than greasy. Take the pot off the heat before you toss in the cheese, so it melts instead of clumping.
  9. Halve the peeled soft boiled eggs. Divide the pasta between two warm bowls. Top each with one halved egg, a crack of black pepper, a drizzle of olive oil and a little extra grated cheese.
  10. Serve immediately, while the yolk is still liquid. Tell anyone at the table to break the egg into the pasta and stir before eating; that is the whole point of the dish.

Tips

  • Do not skip the ice bath. Eggs straight from the pot keep cooking from residual heat and will end up hard boiled and crumbly within a minute or two. Two minutes in ice water stops that dead.
  • Fresher eggs are harder to peel. Eggs that are 7 to 10 days old peel far more cleanly than eggs laid yesterday. If you have only very fresh eggs, peel them under running water and accept a few ragged whites.
  • Warm the pesto, do not cook it. Basil pesto turns dull and bitter when it boils. Thirty seconds over low heat with a splash of pasta water is enough to wake it up.
  • Watch the salt. Jarred pesto and hard cheese are already salty, and the pasta water is salted too. Taste before you add any more salt at the table.

Serving Suggestions

This dish is a complete light meal on its own, but it takes well to a few additions. A handful of rocket or baby spinach wilted into the hot pasta adds freshness. Cherry tomatoes halved and tossed in at the end give a juicy contrast to the rich yolk. A slice of crusty bread is useful for mopping up the yolk that escapes the bowl. If you want it heartier, add 100 g of cooked shredded chicken or a few slices of prosciutto, but keep the pesto and egg as the main event. A dry white wine or sparkling water with lemon works well alongside for adults who are drinking.

Variations

  • Green bean and potato pesto pasta: Cook 150 g of small waxy potatoes and 100 g of trimmed green beans in the pasta water for the last 6 to 8 minutes, then toss with the pasta, pesto and egg. This is the classic Ligurian pairing.
  • Pesto rosso: Swap the basil pesto for a tomato and almond pesto. The egg still works, and the flavour is sweeter and less herbal.
  • Fried egg instead: Fry an egg in olive oil until the white is fully set and the yolk is still soft, then slide it onto the pasta. Cook the white through; a runny white is not pleasant and undercooked egg white is a food safety risk.
  • Soft boiled egg on cold pesto pasta: For a pasta salad, cool the pasta, toss with pesto and vegetables, and top with a halved soft boiled egg just before serving. Keep the salad refrigerated and eat within 2 hours of adding the egg.
  • Nut-free: Use a pesto made with sunflower seeds instead of pine nuts if someone at the table has a nut allergy.

Storage and Reheating

Pesto pasta is best eaten the moment it is made. If you have leftovers, refrigerate them within 2 hours (1 hour if the room is above 90°F / 32°C) in a shallow, covered container at 40°F (4°C) or below. Cooked pasta keeps 3 to 4 days in the fridge. Store the eggs separately from the pasta if you can, and use them within 2 days.

To reheat, add a splash of water to the pasta and warm it in a covered pan over low heat or in the microwave, stirring once, until it reaches 165°F (74°C) throughout when checked with a food thermometer. Reheating pesto pasta dulls the basil, so a fresh spoonful of pesto stirred in after warming helps. Do not reheat the soft boiled eggs in the microwave; they will explode. Eat them cold or let them come to room temperature. Leftovers can be frozen at 0°F (-18°C) for up to 2 months, though the texture of the pasta softens noticeably.

Frequently Asked Questions

How long do I boil an egg for a soft yolk?

About 6 to 6 minutes 30 seconds in gently boiling water for a runny to jammy yolk, counted from the moment the eggs go in. Seven minutes gives a firmer, spoonable yolk. Egg dishes should reach 160°F (71°C) to be considered safely cooked, which is why soft boiled eggs are not recommended for anyone in a high-risk group unless pasteurized eggs are used.

Can I make this with pesto from a jar?

Yes, and it is the version most people will cook on a weeknight. Jarred pesto is usually saltier and less bright than fresh, so use a little less cheese and taste before seasoning. Loosen it with pasta water as in the recipe; it will not taste as flat once it is warmed and emulsified.

Why did my pesto turn brown?

Heat and air are the two culprits. Boiling the pesto or leaving it sitting uncovered oxidises the basil. Keep the pot off the heat when you add the pesto, toss quickly, and serve right away. A thin layer of olive oil on stored pesto also helps slow browning.

Can I use the pasta water in the sauce?

Yes, and you should. The starch in the water helps the oil and pesto emulsify into a sauce that coats the pasta rather than sliding off it. Save about 1 cup before draining, and add it a tablespoon at a time until the sauce looks glossy.

Is this dish safe to eat with a runny yolk?

For healthy adults, a properly cooked soft boiled egg is a normal food. For pregnant women, young children, older adults and anyone immunocompromised, use pasteurized eggs or cook the yolk until it reaches 160°F (71°C) and is fully set. Never leave egg-topped pasta sitting at room temperature for more than 2 hours.

What pasta shape is best?

Long shapes like spaghetti and linguine twirl nicely with the egg on top, while short shapes like fusilli and penne hold the pesto in their grooves. Any dried pasta works; just cook it to al dente and keep the timing from the package as your starting point.

Similar articles