Desserts
This spaghetti pie recipe with eggs delivers the perfect balance of crispy top and gooey pasta layers—like a cross between lasagna and a golden, baked casserole. The secret lies in a simple egg mixture that binds everything together while creating that irresistible texture.
I developed this recipe after years of experimenting with baked pasta dishes, and it’s become a crowd-pleaser at family gatherings and holiday meals.
The beauty of this dish is its simplicity: uncooked spaghetti forms the base, while a creamy egg and cheese mixture creates the signature crispy crust. No fancy techniques are needed—just a few pantry staples and a baking dish.
The result is a comforting, hearty meal that’s vegetarian-friendly and packed with rich, savory flavors.
By the time it emerges from the oven, you’ll have a golden, bubbling pie with tender pasta strands and a crispy top that’s impossible to resist. The egg mixture ensures everything holds together while adding a subtle custard-like richness.
It’s the kind of dish that tastes even better the next day, making it perfect for meal prep or feeding a crowd.
Optional add-ins like sautéed mushrooms, spinach, or herbs can elevate the flavor even further, but the classic version is already a standout. Let’s get started on creating this satisfying, baked pasta masterpiece.
Ingredients for spaghetti pie recipe with eggs
Uncooked spaghetti, creamy cheeses, and simple seasonings create this vegetarian crowd-pleaser with crispy top and gooey layers.
| Ingredient | Amount | Notes |
|---|---|---|
| Uncooked Spaghetti 🍝 | 12 oz | Break into 2-inch pieces |
| Large Eggs 🥚 | 4 whole | Room temperature preferred |
| Shredded Mozzarella Cheese 🧀 | 2 cups | Part-skim or whole milk |
| Ricotta Cheese 🧀 | 15 oz | Whole milk preferred |
| Grated Parmesan Cheese 🧀 | ½ cup | Freshly grated from block |
| All-Purpose Flour 🌾 | ¼ cup | For crispy topping |
| Yellow Onion 🧅 | 1 whole | Finely chopped, medium size |
| Garlic Cloves 🧄 | 3 cloves | Minced for flavor |
| Extra-Virgin Olive Oil 🫒 | ¼ cup | For sautéing onions |
| Salt 🧂 | 1 ½ tsp | Kosher or sea salt |
| Black Pepper 🌶️ | ½ tsp | Freshly ground preferred |
| Dried Basil 🌿 | 1 tsp | Or 0.25 cup fresh basil |
| Vegetable Broth 💧 | 1 cup | Low-sodium preferred |
The spaghetti is the backbone—break it into 2-inch pieces before baking for even cooking. Whole milk ricotta adds richness, but part-skim works too. For the cheese, freshly grated Parmesan makes all the difference (pre-grated gets clumpy). I always grab the block cheese at Whole Foods for the best texture. The egg mixture is where the magic happens—room temperature eggs blend smoother, so take them out 30 minutes before mixing. If you're short on time, no biggie, but the texture will be slightly denser.
No ricotta? Cottage cheese blended smooth works in a pinch, though it's slightly tangier. Short on mozzarella? Fontina or Gruyère melt beautifully and add depth. The vegetable broth is non-negotiable for moisture—low-sodium versions prevent salt buildup. Fresh basil is ideal, but dried at one-third the amount gets you close. For extra flavor, sauté the onions and garlic in extra-virgin olive oil until golden—this adds a caramelized richness that takes the pie to the next level. The flour topping is key for that crispy crust, so don't skip it even if you're not a fan of floury textures.
This pie reheats beautifully—350°F for 15-20 minutes until bubbly. Keeps 4-5 days in the fridge, covered tightly, and freezes for 3 months for those lazy weeknights. I always make a double batch because it's the kind of dish that disappears fast. For make-ahead prep, assemble the pie and refrigerate overnight before baking—this helps the flavors meld even more. The crispy top is best served immediately, but the gooey center? Even better the next day.
Why You'll Love This Recipe
- No-Cook Prep: I swear by this trick—just break eggs into a bowl with ricotta and cheese, then fold in raw spaghetti. No boiling, no waiting, no messier steps. Honestly, it’s the kind of dish where you can set it and forget it while you toss a salad or pour wine.
- Cheesy Comfort: That crispy top from melted mozzarella and parmesan? It’s the best part—like a warm hug in pie form. The ricotta adds this silky, creamy pull that makes every bite feel indulgent, even when you’re just eating leftovers.
- Lunchbox Hero: Between us, this is my go-to for meal prep. Slice it up, wrap in foil, and it stays perfect for days. My kids grab it for school lunches, and my husband sneaks seconds when he thinks I’m not looking. (Yes, even on a Tuesday night.)
- Pantry Staple Magic: You’re probably already stocked for this—eggs, cheese, pasta. No specialty ingredients, no last-minute grocery runs. I’ve made this for game day snacks, potlucks, or when I’m too tired to cook. It’s the kind of dish that turns basic ingredients into something special without breaking the bank.
Step-by-step instructions for spaghetti pie with eggs
Master the perfect balance of crispy topping and creamy pasta layers with these precise techniques.
Cook and Prepare the Spaghetti Base
Bring a large pot of salted water to a rolling boil. Add the 12 oz uncooked spaghetti and cook until al dente (about 8-10 minutes). Drain immediately and rinse under cold water to stop the cooking process. This prevents the pasta from becoming mushy when baked.
Transfer the drained spaghetti to a large mixing bowl. Add the 1 cup vegetable broth, 1 whole yellow onion (finely chopped), 3 cloves garlic cloves (minced), 1.5 tsp salt, 0.5 tsp black pepper, and 1 tsp dried basil. Toss everything together until the spaghetti is evenly coated with the broth and aromatics. The mixture should be moist but not soupy—this ensures the pasta absorbs flavor without becoming waterlogged.
Combine Cheese and Egg Mixture
In a separate large bowl, combine the 4 whole large eggs, 15 oz ricotta cheese, 2 cups shredded mozzarella cheese, and 0.5 cup grated parmesan cheese. Use a hand mixer or whisk to blend until smooth and fully incorporated. The ricotta adds creaminess, while the mozzarella and parmesan provide that signature cheesy flavor and stretch.
Add the spaghetti mixture to the cheese-egg blend and gently fold everything together with a rubber spatula. Be careful not to overmix—just combine until the spaghetti is evenly distributed. The final texture should be thick and spreadable, like a rich, cheesy pasta dough. This is the heart of your pie, so take your time to ensure it's well integrated.
Create the Crispy Topping Layer
In a small bowl, mix the 0.25 cup all-purpose flour with 0.25 cup extra-virgin olive oil until it forms a coarse, crumbly texture. This topping is what gives your spaghetti pie its signature crispy crust. Spread half of this flour-oil mixture evenly over the top of the spaghetti mixture in your baking dish, pressing down gently to ensure it adheres.
Return the baking dish to the refrigerator and let it rest for at least 30 minutes. This chilling step is crucial—it allows the flavors to meld and ensures the topping stays crispy rather than soggy. If you're short on time, you can chill it for 15 minutes in the freezer, but 30 minutes at room temperature works best for texture.
Bake to Golden Perfection
Preheat your oven to 375°F. Transfer the chilled spaghetti pie to the center rack of the oven and bake for 40-45 minutes. The topping should turn a deep golden brown, and the edges should be crispy while the center remains slightly gooey. If the top browns too quickly, tent it loosely with aluminum foil to prevent burning.
To check for doneness, insert a knife into the center—it should come out clean, but the filling should still be slightly warm and creamy. Let the pie rest for 10 minutes before slicing. This resting period allows the juices to redistribute, ensuring each bite is rich and flavorful. Serve immediately while the topping is still crispy and the pasta is hot.
Pro Tips For Making Spaghetti Pie Recipe With Eggs
- SOAK THE SPAGHETTI FIRST: I learned this the hard way—skipping the soak means your uncooked noodles will absorb all the moisture from the egg mixture, leaving you with a dry, crumbly pie. Toss the spaghetti in warm water (not boiling) for 10 minutes, drain well, and pat thoroughly dry with a towel. This guarantees a tender, creamy texture instead of a sad, gummy mess.
- DON’T SKIP THE RICOTTA DRAIN: Ricotta’s moisture is the silent villain in spaghetti pie. After mixing it with eggs and Parmesan, let the blend sit in a colander lined with paper towels for 15 minutes—this pulls out excess liquid that’ll otherwise turn your pie into soup. Sounds tedious, but it’s the thing that keeps the crust from getting soggy.
- BAKE LOW AND SLOW: Spaghetti pie isn’t a race. After baking at 375°F (190°C) for 30 minutes, drop the heat to 325°F (165°C) and let it cook another 20–25 minutes. High heat makes the top crispy while the center stays raw, and nobody wants a pie with a rubbery core. Patience here means a pie that’s golden outside and perfectly set inside.
- LAYER CHEESE STRATEGICALLY: Save half the mozzarella for the top only—sprinkle it right before the final 10 minutes of baking. The heat melts it into a bubbly, stretchy blanket, while the bottom layers stay firm. I was skeptical until I tried it: the top gets that restaurant-quality pull, and the rest stays creamy without turning greasy.
Serving suggestions for this recipe
Classic Garlic Bread
Nothing complements spaghetti pie like a warm, buttery garlic bread on the side. Use a crusty Italian loaf like Bocce or Ciabatta from your local bakery.
Slice it in half lengthwise, then spread the insides with a mix of 4 tbsp softened butter, 2 minced garlic cloves, 1 tbsp chopped parsley, and a pinch of salt and pepper. Toast under the broiler for 3-5 minutes until golden and fragrant. 🥖
Simple Arugula Salad
A bright, peppery arugula salad cuts through the richness of the pie beautifully. Toss 4 cups baby arugula with 2 tbsp extra-virgin olive oil, 1 tbsp lemon juice, ½ tsp Dijon mustard, and a pinch of flaky sea salt.
Top with ¼ cup toasted pine nuts or sunflower seeds for crunch. The acidity balances the cheesy, creamy layers perfectly.
Roasted Vegetable Medley
For a heartier side, roast a mix of seasonal vegetables like zucchini, bell peppers, and cherry tomatoes. Toss 2 cups chopped veggies with 1 tbsp olive oil, ½ tsp Italian seasoning, and ½ tsp salt.
Roast at 400°F for 20-25 minutes until tender and slightly caramelized. The sweetness pairs wonderfully with the savory pie.
Warm Tomato Basil Soup
Elevate your meal with a creamy tomato basil soup served alongside. Sauté 1 diced onion and 2 garlic cloves in 1 tbsp olive oil, then add 1 can (14 oz) crushed tomatoes, ½ cup vegetable broth, and ½ cup heavy cream.
Simmer for 15 minutes, then stir in 2 tbsp fresh basil. The warmth and acidity make the pie taste even richer. ✨
Dessert Pairing: Lemon Ricotta Cake
End the meal on a sweet note with a light lemon ricotta cake. This dessert mirrors the ricotta in the pie but with a citrusy twist.
Whisk 1 cup ricotta, ½ cup sour cream, ½ cup sugar, and 2 eggs, then fold into a simple flour-sugar batter. Bake at 350°F for 30 minutes. The tangy lemon complements the savory pie beautifully.
Beverage Pairings
For drinks, a crisp white wine like Pinot Grigio or Sauvignon Blanc cleanses the palate between bites. If you prefer beer, a light lager such as Peroni or Heineken works perfectly.
For non-alcoholic options, sparkling water with lemon or iced hibiscus tea adds a refreshing contrast to the rich, cheesy flavors. 🍷
Nutrition facts
Frequently asked questions
Can I make this spaghetti pie without ricotta cheese?
Yes! If you don't have ricotta, blend 15 oz cottage cheese until smooth as a substitute. For a richer texture, mix in ½ cup sour cream with the cottage cheese. The pie will still hold together beautifully, though the flavor will be slightly tangier.
Why does my spaghetti pie turn out soggy instead of crispy?
The most common reason is skipping the 30-minute chilling step or overmixing the egg-cheese mixture. Let the pie rest in the fridge before baking—this helps the topping stay crisp. Also, ensure your baking dish is lightly greased but not soaked, as excess oil can make the crust soggy.
Can I add meat to this vegetarian recipe?
For a meaty twist, fold in ½ lb cooked Italian sausage or diced pancetta into the spaghetti base before mixing with the egg-cheese layer. Brown the meat first to remove excess fat, then drain on paper towels. The flavors will meld perfectly with the cheesy, crispy texture.
How do I make this pie ahead of time?
Assemble the pie completely, cover tightly with foil, and refrigerate for up to 24 hours before baking. For best results, bake it straight from the fridge—no need to bring it to room temperature. It reheats beautifully at 350°F for 15-20 minutes, with the crispy top returning once warmed through.
What’s the secret to the perfect crispy top?
The crispy top comes from the flour-oil topping and proper chilling. Mix ¼ cup flour with ¼ cup olive oil until crumbly, then press it firmly onto the pie before refrigerating. The flour creates a barrier that prevents moisture from steaming the top. Bake on the middle rack for even heat distribution.
