This spaghetti with ham and eggs is a quick, satisfying pasta dish that turns basic pantry staples into a creamy, comforting meal. It works because the hot pasta and a little reserved cooking water transform beaten eggs into a silky sauce without any cream, while the ham adds a savory, smoky note. Ready in about 20 minutes, it’s a perfect weeknight dinner that feels more indulgent than its simple ingredient list suggests.
Ingredients
- 12 oz (340 g) spaghetti
- 4 large eggs
- 1/2 cup (50 g) grated Parmesan cheese, plus more for serving
- 6 oz (170 g) ham, diced (about 1 cup)
- 2 cloves garlic, minced
- 2 tablespoons olive oil or butter
- 1/2 teaspoon black pepper, plus more to taste
- 1/4 teaspoon salt (adjust to taste)
- 2 tablespoons chopped fresh parsley (optional, for garnish)
Instructions
- Bring a large pot of salted water to a boil (about 2 tablespoons salt for 4 quarts of water). Add the spaghetti and cook according to package directions until al dente, usually 8-10 minutes. Before draining, reserve 1 cup of the pasta water.
- While the pasta cooks, whisk the eggs and Parmesan together in a medium bowl until well combined. Set aside.
- In a large skillet over medium heat, warm the olive oil or butter. Add the diced ham and cook, stirring occasionally, until it starts to brown and crisp at the edges, about 4-5 minutes. Add the minced garlic and cook for 30 seconds until fragrant.
- Drain the spaghetti (reserving the water) and add it directly to the skillet with the ham. Toss to combine and coat the pasta in the ham drippings.
- Remove the skillet from the heat. Wait about 30 seconds for the pasta to cool slightly (this prevents the eggs from scrambling). Pour the egg and cheese mixture over the pasta and toss quickly and continuously with tongs until the eggs form a creamy sauce, about 1-2 minutes. Use a splash or two of the reserved pasta water if the sauce seems too thick or clumpy.
- Season with black pepper and salt to taste. Serve immediately, topped with extra Parmesan and parsley if desired.
Tips
- Don’t let the eggs scramble: The key is to remove the skillet from the heat and let it cool slightly before adding the eggs. If the pan is too hot, you’ll get scrambled eggs instead of a creamy sauce. If you’re nervous, use a large bowl: add the pasta and ham to the bowl, then toss with the egg mixture.
- Reserve more pasta water than you think you need: The starchy water is what makes the sauce silky and helps it cling to the pasta. You might need up to 1/2 cup to get the right consistency.
- Use quality ham: Thick-cut or leftover ham from a roast works better than very thin deli slices, which can become soggy. Dicing it yourself gives you nice, meaty chunks.
- Grate your own cheese: Pre-shredded Parmesan often contains anti-caking agents that prevent it from melting smoothly. Freshly grated cheese will give you a smoother sauce.
Serving Suggestions
Serve this spaghetti hot, straight from the skillet. It pairs well with a simple green salad dressed with lemon vinaigrette and a glass of crisp white wine like Pinot Grigio or Sauvignon Blanc. For extra freshness, add a handful of baby spinach or arugula to the pasta just before tossing with the egg mixture—the residual heat will wilt it slightly.
Variations
- Bacon or Pancetta: Replace the ham with 6 oz (170 g) chopped bacon or pancetta. Cook until crispy, then proceed as directed.
- Add vegetables: Sauté 1 cup of frozen peas with the ham, or add sautéed mushrooms or asparagus for extra color and flavor.
- Spicy kick: Add a pinch of red pepper flakes along with the garlic for some heat.
- Use different pasta: This sauce works with fettuccine, linguine, or even penne. Adjust cooking times accordingly.
- Make it vegetarian: Omit the ham and add sautéed zucchini or mushrooms for a meatless version.
Storage and Reheating
Store leftovers in an airtight container in the refrigerator for up to 3 days. The sauce will thicken as it cools. To reheat, place a portion in a skillet over medium-low heat with a splash of water or milk. Stir gently until warmed through. You can also microwave individual portions, but add a little water before heating to restore creaminess. Avoid reheating at high heat, as the eggs can become rubbery.
Frequently Asked Questions
Can I use a different type of pasta? Yes, any long pasta like fettuccine or linguine works well, but short shapes like penne or rigatoni also hold the sauce nicely. Just adjust the cooking time to what the package says.
Why did my eggs scramble? The pan was too hot when you added the egg mixture. Always remove the skillet from the heat and let it sit for about 30 seconds before adding the eggs. Toss quickly and constantly to create a creamy emulsion.
Can I use milk or cream instead of pasta water? Yes, you can substitute a splash of heavy cream or whole milk for some of the pasta water, but you’ll still want some starchy water to help bind the sauce. Cream will make it richer but also heavier.
Is this dish safe to eat if I’m pregnant? The eggs are cooked by the heat of the pasta, but to be safe, use pasteurized eggs or ensure the dish reaches an internal temperature of 160°F (71°C) when cooked. If you have concerns, consult your healthcare provider.
Can I make this ahead of time? It’s best made fresh, but you can prep the ham, grate the cheese, and whisk the eggs ahead. Cook and toss just before serving for the best texture.
What if I don’t have Parmesan? You can use Pecorino Romano for a sharper flavor, or a mix of both. Grana Padano is another good substitute.