Main Courses
This spaghetti pie recipe transforms simple ingredients into a hearty Italian casserole that’s equal parts comforting and impressive. The secret lies in pre-cooking the pasta just until al dente, then layering it with rich tomato sauce, melted cheese, and crispy breadcrumbs for that signature golden crust.
I’ve perfected this one-pan wonder over years of testing, ensuring every bite delivers tender noodles, creamy cheese, and bold Italian flavors without the fuss of traditional lasagna.
The beauty of spaghetti pie is its versatility—you can keep it classic with just ricotta and mozzarella, or add ground beef, spinach, or mushrooms for extra depth. It bakes in one pan, making cleanup effortless while delivering restaurant-quality results.
This dish is especially foolproof for weeknight dinners or potlucks, where it always disappears first. The layers of flavor and texture make it a crowd-pleaser that feels indulgent yet simple to assemble.
What you’ll end up with is a golden, bubbling casserole with crispy edges and gooey cheese throughout—no soggy pasta here. The aroma alone will have everyone gathering around the table, and the first bite proves it’s worth every minute of prep.
Whether you’re feeding a family or hosting guests, this recipe delivers warmth, satisfaction, and that unmistakable Italian comfort in one perfect dish.
For extra flair, top with fresh basil or a sprinkle of red pepper flakes before serving. The possibilities are endless, but the foundation—pre-cooked pasta, rich sauce, and melted cheese—is what makes this pie truly special. Let’s get baking!
Ingredients for spagetti pie
Pantry staples meet Italian magic—just 13 ingredients for one-pan comfort.
| Ingredient | Amount | Notes |
|---|---|---|
| Spaghetti Pasta 🍝 | 12 oz | Uncooked, broken into 3-inch pieces |
| Ricotta Cheese 🧀 | 15 oz | Full-fat for creaminess |
| Mozzarella Cheese 🧀 | 2 cups | Freshly shredded, low-moisture |
| Marinara Sauce 🍅 | 2 ½ cups | Homemade or high-quality jarred |
| Large Eggs 🥚 | 3 whole | Room temperature for blending |
| Italian Seasoned Breadcrumbs 🍞 | 1 cup | Panko for extra crunch |
| Garlic Cloves 🧄 | 4 cloves | Minced for sauce |
| Extra-Virgin Olive Oil 🫒 | ¼ cup | For crispy crust |
| Ground Black Pepper 🌶️ | ½ tsp | Freshly cracked |
| Diamond Crystal Kosher Salt 🧂 | 1 ½ tsp | Adjust to taste |
| Grated Parmesan Cheese 🧀 | ½ cup | Freshly grated from block |
| Fresh Basil Leaves 🌿 | ¼ cup | Chopped for garnish |
| Red Pepper Flakes 🌶️ | ½ tsp | Optional for heat |
The pasta is the star, so avoid pre-cooked noodles—they’ll turn mushy. Barilla or De Cecco are my go-tos for their al dente consistency. Break the spaghetti into 3-inch pieces before boiling, and cook it just until al dente (about 2 minutes less than package instructions). The ricotta should be full-fat—Galbani or Whole Foods brand work perfectly. For the mozzarella, skip pre-shredded (it gets gummy); grab a block of low-moisture and shred it yourself. The marinara? Rao’s or Victoria are my shortcuts, but homemade with San Marzano tomatoes takes it to the next level.
No ricotta? Cottage cheese blended smooth gets you close, though it’s not identical. Short on mozzarella? Provolone or fontina add depth. The breadcrumbs can be regular panko if you’re in a pinch—just toast them first for extra crunch. For the garlic, fresh is non-negotiable—jarred minced lacks the flavor punch. Want to add protein? Brown 1 lb ground beef or Italian sausage with the garlic and set it aside to mix into the sauce layer. And if you’re feeling fancy, swap half the mozzarella for burrata in the final layer for creamy pockets.
Prep ahead like a pro: Cook the pasta and sauce the day before—it actually tastes better after flavors meld. Store components separately in the fridge for up to 3 days. Assemble the pie just before baking, then bake straight from the fridge for 10 minutes longer if it’s cold. Leftovers reheat beautifully—just cover with foil and warm at 350°F for 15 minutes. The pie keeps for 4 days in the fridge or 3 months frozen. Portion into squares for easy grab-and-go lunches—trust me, it’s a game-changer.
Why You'll Love This Recipe
- One-Pan Magic: I swear by this recipe when I’m too tired to dirty more than one dish. Toss the cooked spaghetti with marinara, ricotta, and eggs, then bake it all in one sheet pan—no boiling over, no sticky pots, just golden perfection.
- Creamy Cheese Hug: That ricotta-mozzarella combo? It’s like a warm, gooey blanket for your taste buds. The eggs bind it all together while keeping it light enough to eat straight from the pan (I won’t judge).
- Lunchbox Hero: Between us, this is my go-to for meal prep. Cut into squares, and it’s hearty enough to pack for work or school—no soggy pasta here, just sturdy bites that hold up all day.
- Budget Stretch: Honestly, I make this when I’m pinching pennies. Spaghetti and ricotta are cheap staples, and a big pan feeds four for under $10. Leftovers? Even better—reheats like a dream and tastes just as good the next day.
Step-by-step instructions for spaghetti pie
This one-pan wonder transforms simple ingredients into a creamy, crispy masterpiece—no fuss, just flavor.
Prep the Pasta and Make the Cheese Mixture
Break the 12 oz spaghetti pasta into 3-inch pieces using your hands or a knife. This creates shorter strands that cook faster and blend better into the pie. Toss the pasta in a large bowl with 0.25 cup extra-virgin olive oil until evenly coated—this prevents sticking and adds richness.
In a separate bowl, combine the 15 oz ricotta cheese, 2 cups mozzarella cheese, 3 whole large eggs, 0.5 tsp ground black pepper, and 1.5 tsp diamond crystal kosher salt. Use a fork to mix until smooth—no lumps allowed. This is the heart of your pie, so take your time here. The ricotta should be fully incorporated, creating a thick, spreadable batter.
Build Layers for Maximum Flavor
Preheat your oven to 375°F and grease a 9x13-inch baking dish lightly with olive oil. Spread 1 cup of the marinara sauce evenly on the bottom—this prevents sticking and adds a savory base. Scatter half of the oiled spaghetti pieces over the sauce, then pour half of the ricotta-egg mixture on top. Repeat with another layer of spaghetti, then the remaining cheese mixture.
Here's the thing—don't overpack the layers. You want everything to blend together beautifully, not end up with a dense brick. The spaghetti should peek through the cheese in places, ensuring that crispy texture we're after. Sprinkle the remaining 2.5 cups marinara sauce evenly over the top layer, then scatter 0.5 cup grated parmesan cheese and 0.5 tsp red pepper flakes for a finishing touch.
Create the Crispy Crust
Mix the 1 cup italian seasoned breadcrumbs with the 4 minced garlic cloves in a small bowl. Spread this mixture evenly over the top of the pie, pressing down gently with your fingers. This isn't just for texture—it's where the magic happens. The breadcrumbs will toast into a golden, crunchy crust while the garlic infuses flavor throughout.
Bake uncovered for 45-50 minutes until the top is deep golden brown and the edges are bubbling. You'll know it's ready when the crust pulls away slightly from the pan and has a nutty aroma. If it browns too quickly, tent loosely with foil to prevent burning while it finishes cooking.
Rest and Garnish Like a Pro
Remove the pie from the oven and let it rest for 10-15 minutes before cutting. This crucial step allows the layers to set and prevents a runny mess when you serve. The pie will continue cooking slightly from residual heat, so don't skip this—patience pays off with perfect texture.
Once rested, garnish with 0.25 cup chopped fresh basil leaves and an extra sprinkle of grated parmesan cheese. The basil adds a bright, fresh contrast to the rich, cheesy layers. Serve warm with a side salad or garlic bread—this pie is hearty enough to stand alone, but it's even better shared.
Pro Tips For Making Spagetti Pie
- Cook Spaghetti Al Dente: DESCRIPTION: If you boil it until soft, you’ll end up with a mushy base—no one wants that. Pull the spaghetti when it’s still slightly firm (about 2 minutes less than package instructions), drain well, and toss with a drizzle of olive oil right away. This keeps it from sticking together in clumps when you mix it with ricotta later.
- Drain Ricotta Well: DESCRIPTION: Whole-milk ricotta is creamy but holds onto liquid like a sponge. Spread it on paper towels, cover with another layer, and let it sit for 10 minutes before mixing it into the spaghetti. This prevents a watery, soggy pie—trust me, you don’t want to fish it out of the oven.
- Layer Sauce Last: DESCRIPTION: I used to dump all the marinara on top first, thinking it’d soak in nicely. Wrong. Instead, spread half the sauce in the bottom of the dish, then build the spaghetti-ricotta-egg-mozzarella layers, and finish with the rest. This keeps the top from drying out while the bottom stays saucy.
- Press Down Hard: DESCRIPTION: Don’t be shy—pack that final layer of cheese and spaghetti mixture into the dish with your hands or a spatula. This isn’t a delicate soufflé; you want it dense enough to hold together when it comes out of the oven. If it looks uneven, that’s fine—just make sure every bite has that cheesy pull.
Creative variations of this dish
Meat Lover's Twist
Add 1 lb Italian sausage or ground beef for a heartier version. Brown the meat with 4 minced garlic cloves until fully cooked, then drain excess fat. Stir it into the marinara sauce before layering—this adds deep umami flavor. For extra richness, sprinkle ½ cup shredded provolone between layers. 🥓
Vegetarian Protein Boost
Swap meat for 15 oz chickpeas or 1 cup lentils (cooked) mixed with 1 tsp Italian seasoning. Spread them between layers for texture and plant-based protein.
Alternatively, add 1 cup sautéed mushrooms with thyme for an earthy depth. The ricotta-egg mixture remains the star, but these additions keep it satisfying. 🌱
Spinach & Sun-Dried Tomato
Wilt 4 cups baby spinach with 2 tbsp olive oil until just tender, then mix into the ricotta-egg layer. Fold in ¼ cup chopped sun-dried tomatoes> (oil-packed) for a burst of Mediterranean brightness. This variation turns the pie into a vibrant, herbaceous masterpiece. 🌿
Breakfast-for-Dinner
Transform this into a morning meal by adding ½ cup shredded sharp cheddar to the ricotta mix and topping with 2 fried eggs after baking. For extra indulgence, sprinkle crumbled bacon bits> between layers. Serve with hot sauce for a fun, savory breakfast twist. 🍳
Gluten-Free Adaptation
Use gluten-free spaghetti> (like Barilla GF) and replace breadcrumbs with crushed gluten-free crackers> or almond flour>. For binding, add 1 extra egg> to the ricotta mixture. The texture stays rich and crispy—just ensure all ingredients are certified gluten-free. 🌾
Spicy Arrabbiata Style
Boost the heat by adding 1 tbsp red pepper flakes> to the marinara sauce and topping with ¼ cup chopped fresh basil>. For extra kick, stir in 2 tbsp arrabbiata sauce> (or make your own with garlic, chili flakes, and tomatoes).
Serve with a side of crusty bread to soak up the spicy tomato goodness. 🌶️
Nutrition facts
Frequently asked questions
Can I make spaghetti pie ahead of time?
Assemble the pie up to 24 hours ahead and refrigerate uncovered. Bake straight from the fridge, adding 10-15 extra minutes to the cooking time. For freezing, bake completely, cool, wrap tightly, and freeze for up to 3 months. Thaw overnight in the fridge before reheating at 350°F for 20 minutes covered with foil.
Why did my spaghetti pie turn out gummy?
Overmixing the ricotta-egg layer or using too much sauce creates gummy texture. Stick to the 3 eggs and 15 oz ricotta ratio, and drain excess moisture from pre-shredded cheese. Also, ensure your spaghetti is al dente before breaking—overcooked noodles absorb too much liquid.
What’s the best way to reheat leftovers?
Slice and reheat portions at 350°F for 15-20 minutes covered with foil to prevent drying. For microwave reheating, cover with a damp paper towel and heat in 30-second intervals until warmed through. The breadcrumb topping may soften slightly but stays flavorful.
Can I use penne or another pasta shape?
While spaghetti is traditional, you can use short pasta like penne or rigatoni for easier layering. Cook until al dente and drain well. For a rustic look, break longer pasta like linguine into 2-inch pieces. The key is even cooking—avoid overcrowding the pan.
How do I make this dish vegetarian?
Skip meat entirely and boost protein with 15 oz chickpeas or 1 cup cooked lentils mixed into the sauce layer. Add 1 cup sautéed mushrooms with thyme or 4 cups wilted spinach to the ricotta mixture. Use vegetarian parmesan if needed. The dish stays rich and satisfying!
