Few meals hit the table with as much crowd-pleasing power as a good vegetarian baked spaghetti.
It’s cheesy, hearty, bubbling hot from the oven, and packed with so much flavor that nobody misses the meat.
This is the kind of dish that turns a regular Tuesday night into something worth looking forward to.
I’ve made this for picky kids, skeptical meat-eaters, and dinner parties alike, and it never fails.
The base is a rich, garlicky tomato sauce loaded with sautéed vegetables.
It gets tossed with perfectly cooked spaghetti, layered with ricotta and mozzarella, and baked until everything is gloriously golden and melty. Simple, satisfying, and absolutely delicious.
If you love pasta bakes, you might also enjoy my Baked Spaghetti with Ricotta Cheese for another cheesy spin on a classic.
| Quick Recipe Summary | |
|---|---|
| Prep Time | 20 minutes |
| Cook Time | 35 minutes |
| Total Time | 55 minutes |
| Servings | 6 servings |
| Difficulty Level | Easy |

Why You’ll Love This Vegetarian Baked Spaghetti
This dish checks every box for a satisfying weeknight dinner.
It’s filling and rich, but you’re also sneaking in a solid amount of vegetables with every single bite.
It’s also a fantastic make-ahead meal. You can assemble the whole thing a day in advance and just pop it in the oven when you’re ready.
Leftovers reheat beautifully, which means lunch the next day is already sorted.
- Completely meat-free without feeling like anything is missing.
- Loaded with vegetables like zucchini, bell peppers, and mushrooms in a rich tomato sauce.
- Cheesy and satisfying thanks to a generous layering of ricotta, mozzarella, and Parmesan.
- Easy to customize based on whatever vegetables or cheeses you have on hand.
- Great for feeding a crowd since it scales up easily and bakes in one dish.
- Kid-friendly because that bubbly, golden cheese layer wins everyone over every time.
For more comforting pasta casserole ideas, check out my Baked Cream Cheese Spaghetti Casserole.
Ingredients
Here’s everything you’ll need to make this vegetarian baked spaghetti. Most of these are pantry staples, and the fresh vegetables can easily be swapped out based on what’s in season.
- 12 oz spaghetti
- 2 tablespoons olive oil
- 1 medium yellow onion, finely diced
- 4 garlic cloves, minced
- 1 medium zucchini, diced
- 1 red bell pepper, diced
- 8 oz cremini or baby bella mushrooms, sliced
- 1 teaspoon dried Italian seasoning
- 1/2 teaspoon crushed red pepper flakes (optional)
- Salt and black pepper to taste
- 1 jar (24 oz) marinara sauce
- 1 can (14.5 oz) diced tomatoes, drained
- 15 oz whole milk ricotta cheese
- 1 large egg
- 2 cups shredded low-moisture mozzarella cheese, divided
- 1/2 cup freshly grated Parmesan cheese, divided
- 1/4 cup fresh basil leaves, for garnish
Read Also: Spinach and Ricotta Stuffed Shells Recipe
Kitchen Equipment Needed
You don’t need any fancy equipment for this recipe. A large pot, a skillet, and a good baking dish are really all it takes to pull this together.
- Large pot for boiling pasta
- Colander for draining pasta
- Large skillet or sauté pan
- 9×13 inch ceramic or glass baking dish
- Wooden spoon or spatula
- Medium mixing bowl
- Chef’s knife and cutting board
- Measuring cups and spoons
- Aluminum foil for covering the dish while baking
- Box grater for Parmesan (if using a block)
You might also love: Pasta Primavera
Recommended Products for This Recipe
These are products I personally reach for when making this recipe, and they genuinely make a difference in the final result.
1. OXO Good Grips 9×13 Baking Dish
A quality baking dish makes all the difference in how evenly your baked spaghetti cooks.
This one distributes heat beautifully so you get that perfect golden cheese top without any scorched corners. The handles make it easy to pull in and out of a hot oven safely.
2. Rao’s Homemade Marinara Sauce
When you’re using jarred sauce, the quality really shows in the finished dish.
Rao’s is made with simple, clean ingredients and has a depth of flavor that sets it apart from most store brands.
It tastes like a sauce that simmered all day, and it makes this recipe feel extra special with zero extra effort.
3. Whole Milk Ricotta Cheese
Part-skim ricotta can sometimes come out grainy and dry after baking.
Whole milk ricotta stays creamy and lush even after time in the oven, giving you that silky, satisfying layer in every forkful. It’s worth the upgrade.
4. OXO Box Grater with Measurement Cup
Freshly grated Parmesan melts more smoothly and tastes significantly better than the pre-grated variety.
This box grater is sturdy, catches all the cheese in a built-in cup, and handles both soft and hard cheeses with ease.
The ricotta layer in this dish also works wonderfully in my Cottage Cheese Lasagna, if you’re in the mood for another hearty baked pasta.

Step-by-Step Instructions: How to Make Vegetarian Baked Spaghetti
1. Preheat the Oven and Prep Your Baking Dish
- Preheat your oven to 375°F (190°C). You want the oven fully up to temperature by the time your casserole goes in, so do this first.
- Lightly grease your 9×13 inch baking dish with a drizzle of olive oil or a quick spray of nonstick cooking spray. Set it aside.
2. Cook the Spaghetti
- Bring a large pot of water to a rolling boil over high heat. Add a generous pinch of salt, which is important for flavoring the pasta itself.
- Add the 12 oz of spaghetti and cook for 2 minutes less than the package directions. The pasta will continue cooking in the oven, so you want it slightly underdone (al dente) at this stage. This prevents it from becoming mushy after baking.
- Drain the pasta through a colander and set it aside. Do not rinse it. The starch on the surface helps the sauce cling to the noodles.
3. Sauté the Vegetables
- While the pasta cooks, heat 2 tablespoons of olive oil in a large skillet over medium heat. Let the oil shimmer before adding the vegetables.
- Add the finely diced onion and cook for 3 to 4 minutes, stirring occasionally, until it turns soft and translucent.
- Add the minced garlic and cook for another 60 seconds, stirring constantly. Garlic burns quickly, so keep it moving.
- Add the diced zucchini, red bell pepper, and sliced mushrooms to the skillet. Spread them out as much as possible and let them cook undisturbed for 2 to 3 minutes before stirring. This helps them brown slightly rather than just steaming.
- Stir and continue cooking for another 4 to 5 minutes until all the vegetables are tender and any liquid released by the mushrooms has mostly evaporated.
- Season with 1 teaspoon of dried Italian seasoning, 1/2 teaspoon of crushed red pepper flakes if using, and salt and black pepper to taste. Stir to coat the vegetables evenly in the seasonings.
4. Build the Tomato Sauce
- Pour the 24 oz jar of marinara sauce directly into the skillet with the sautéed vegetables.
- Add the drained 14.5 oz can of diced tomatoes. Stir everything together until well combined.
- Let the sauce simmer over medium-low heat for 5 minutes, stirring occasionally. This allows all the flavors to meld together into one cohesive sauce. Taste and adjust seasoning with more salt, pepper, or red pepper flakes as needed.
- Remove the skillet from the heat.
5. Prepare the Ricotta Mixture
- In a medium mixing bowl, combine the 15 oz of whole milk ricotta cheese, 1 large egg, and 1/4 cup of the grated Parmesan cheese.
- Season this mixture with a pinch of salt and a few cracks of black pepper.
- Stir well until the egg is fully incorporated and the mixture is smooth and creamy. The egg acts as a binder that helps the ricotta layer hold together when sliced.
6. Combine the Pasta and Sauce
- Add the drained spaghetti directly into the skillet with the vegetable tomato sauce (or transfer both to a large bowl if your skillet is too small).
- Toss the pasta and sauce together thoroughly using tongs or two large forks. Make sure every strand of spaghetti is coated in the sauce and the vegetables are evenly distributed throughout.
7. Assemble the Casserole
- Spread half of the sauced spaghetti mixture into the bottom of your prepared 9×13 inch baking dish in an even layer.
- Drop spoonfuls of the ricotta mixture evenly across the top of the pasta layer. Use the back of the spoon to gently spread it into an even layer without disturbing the pasta too much underneath.
- Sprinkle 1 cup of the shredded mozzarella evenly over the ricotta layer.
- Add the remaining spaghetti mixture on top, pressing it down gently to create a flat surface.
- Scatter the remaining 1 cup of mozzarella evenly over the top, followed by the remaining 1/4 cup of Parmesan. This double cheese top is what gives you that irresistible golden crust.
8. Bake the Spaghetti
- Cover the baking dish tightly with aluminum foil. This traps steam inside and helps the center heat through evenly without the top cheese burning.
- Bake in the preheated 375°F oven for 20 minutes covered.
- Remove the foil and continue baking for an additional 15 minutes, or until the cheese on top is melted, bubbly, and lightly golden brown in spots.
- If you want a deeper golden color, switch your oven to broil for the last 2 to 3 minutes. Watch it closely so it doesn’t burn.
9. Rest and Serve
- Remove the baking dish from the oven and let it rest for 5 to 10 minutes before serving. This resting time is important because it allows the casserole to set slightly, making it much easier to slice and serve in neat portions.
- Tear fresh basil leaves and scatter them across the top just before serving for a pop of color and fresh flavor.
- Slice into squares or scoop with a large spoon and serve directly from the dish.
Another great baked pasta night option: Million Dollar Baked Spaghetti
Tips for The Best Vegetarian Baked Spaghetti
A few simple tricks make the difference between a good baked spaghetti and a truly great one.
- Always undercook the pasta. Pull it 2 minutes early every time. The oven finishes the job, and this keeps your final dish from turning out soft and mushy.
- Don’t skip salting the pasta water. This is your one chance to season the pasta itself from the inside out.
- Use whole milk ricotta. Part-skim ricotta tends to release more moisture and can make the casserole watery. Full-fat keeps it creamy and stable after baking.
- Let your vegetables cook until the liquid evaporates. Mushrooms especially release a lot of water. If you rush this step, that extra moisture goes into your sauce and can make the casserole soggy.
- Grate your own Parmesan. Pre-shredded Parmesan contains anti-caking agents that prevent it from melting smoothly. A block and a box grater give you far better results.
- Rest before serving. Ten minutes of rest time transforms a loose, scoopy casserole into one you can actually cut into clean portions.
- Taste and season your sauce before assembling. This is the time to adjust salt, pepper, and seasoning before everything is locked in the oven.
The tip about undercooking pasta also applies when making my San Giorgio Lasagna, another great layered pasta bake.
Serving Suggestions

This vegetarian baked spaghetti is filling enough to be a complete meal on its own, but a few simple sides round it out beautifully.
A crisp green salad with a bright vinaigrette is the perfect contrast to the rich, cheesy casserole.
- Serve alongside a classic Arugula Salad for a peppery, refreshing contrast.
- A thick slice of garlic bread is practically mandatory for mopping up extra sauce.
- Pair with a bowl of Tomato Soup for a warming, comforting combo on cold nights.
- Roasted vegetables on the side, like Baked Acorn Squash, add color and variety to the plate.
- A simple Cucumber Tomato Salad adds freshness and crunch without any cooking required.
- For a bigger dinner spread, Stuffed Mushrooms make a lovely vegetarian starter before this main course.
Variations of Vegetarian Baked Spaghetti
This recipe is wonderfully flexible. Once you have the basic technique down, it’s easy to put your own spin on it.
- Vegan version: Swap the ricotta for a cashew cream or a firm tofu ricotta, replace the egg with a flax egg (1 tablespoon ground flaxseed mixed with 3 tablespoons water), and use vegan shredded mozzarella. The result is surprisingly close to the original.
- Spinach and artichoke version: Stir 2 cups of fresh baby spinach and a drained can of quartered artichoke hearts into the sauce for a richer, more complex filling.
- White sauce variation: Replace the marinara sauce with a creamy béchamel or Cream Cheese Alfredo Sauce for a totally different but equally delicious result.
- Spicy arrabbiata version: Double the red pepper flakes and add a teaspoon of smoked paprika to the sauce for a bolder, spicier casserole.
- Gluten-free version: Swap regular spaghetti for your favorite gluten-free pasta. Brown rice spaghetti holds up particularly well in a bake.
- Extra cheese version: Add a layer of sliced fresh mozzarella on top of the shredded mozzarella before the final bake for next-level melt.
Storage and Reheating
This recipe stores and reheats so well, it’s one of those rare dishes that’s almost better the next day after the flavors have had time to meld.
- Refrigerator: Store leftovers in an airtight container or cover the baking dish tightly with plastic wrap. It keeps well in the fridge for up to 4 days.
- Freezer: Let the casserole cool completely, then wrap tightly in plastic wrap followed by a layer of foil. Freeze for up to 3 months. Thaw overnight in the refrigerator before reheating.
- Reheating in the oven: Place portions in an oven-safe dish, cover with foil, and reheat at 350°F for 15 to 20 minutes until warmed through. This method keeps the cheese from drying out.
- Reheating in the microwave: Transfer a portion to a microwave-safe plate, add a small splash of water or marinara sauce on top to keep things moist, cover loosely, and heat in 90-second intervals until hot.
- Make-ahead tip: Assemble the casserole up through Step 7, cover tightly, and refrigerate for up to 24 hours before baking. Add an extra 10 minutes to the covered bake time if going straight from the fridge to the oven.
Read Also: Baked Chicken Spaghetti Recipe
Nutritional Facts
The values below are estimates per serving based on the recipe as written, serving 6 people.
| Nutrient | Per Serving (approx.) |
|---|---|
| Calories | 490 kcal |
| Protein | 26g |
| Total Fat | 18g |
| Saturated Fat | 9g |
| Carbohydrates | 55g |
| Dietary Fiber | 5g |
| Sugars | 10g |
| Sodium | 720mg |
| Calcium | 380mg |
| Iron | 3.5mg |
Nutritional values are estimates and will vary based on specific brands and ingredients used.
Health Benefits of Key Ingredients
This dish is a genuinely nutritious meal, not just a comfort food indulgence.
The combination of vegetables, whole grains, and dairy provides a solid range of vitamins, minerals, and macronutrients in every serving.
- Mushrooms are one of the few plant-based sources of vitamin D and are rich in B vitamins that support energy metabolism.
- Zucchini is low in calories but high in potassium and vitamin C, contributing to heart health and immune function.
- Bell peppers are an exceptional source of vitamin C, with red bell peppers containing more than an orange per serving.
- Tomatoes (in both the marinara and diced tomatoes) deliver lycopene, a powerful antioxidant that may help reduce the risk of certain chronic diseases.
- Ricotta cheese provides a good hit of calcium and protein, supporting bone density and muscle repair.
- Garlic contains allicin and other sulfur compounds with well-documented anti-inflammatory and immune-boosting properties.
- Olive oil is rich in heart-healthy monounsaturated fats and polyphenols that help reduce inflammation.
For another veggie-forward recipe, try my Pasta Primavera, which is loaded with fresh seasonal vegetables.
FAQs About Vegetarian Baked Spaghetti
1. Can I make vegetarian baked spaghetti ahead of time?
Yes, and it’s actually one of the best make-ahead pasta dishes around. You can assemble the entire casserole, cover it tightly, and store it in the refrigerator for up to 24 hours before baking.
Just remember to add about 10 extra minutes to the covered baking time if it goes straight from the fridge into the oven.
2. What vegetables work best in this recipe?
Zucchini, mushrooms, bell peppers, and onions are the classic combination, but this recipe is very adaptable.
Spinach, eggplant, cherry tomatoes, broccoli, and even artichoke hearts all work beautifully here.
Just make sure any high-moisture vegetables (like spinach or zucchini) are cooked down properly before adding the sauce, so they don’t release excess water into the casserole.
3. Can I use a different type of pasta?
Absolutely. Spaghetti is traditional for this style of bake, but penne, rigatoni, or linguine all work well too. Thicker pasta shapes can actually hold up even better in the oven.
If you use gluten-free pasta, stick to a brand made from brown rice or chickpeas, as they tend to have the best texture after baking.
4. How do I keep the casserole from drying out?
The key is to make sure your sauce is generously coating all of the pasta before it goes into the dish. A thin, dry sauce at the start will dry out completely in the oven.
Also, covering the casserole with foil for the first 20 minutes of baking traps steam and keeps everything moist while it heats through.
5. Can this recipe be made vegan?
It can, with a few easy swaps. Replace the ricotta with a cashew-based ricotta or blended firm tofu seasoned with lemon juice, nutritional yeast, and garlic.
Use a flax egg instead of a regular egg, and swap in your favorite vegan mozzarella shreds.
The result won’t be identical to the original, but it’s still a very satisfying, flavor-packed baked pasta.

Vegetarian Baked Spaghetti
Ingredients
- 12 oz spaghetti 340g
- 2 tbsp olive oil
- 1 yellow onion medium, finely diced
- 4 garlic cloves minced
- 1 zucchini medium, diced
- 1 red bell pepper diced
- 8 oz cremini or baby bella mushrooms 225g, sliced
- 1 tsp dried Italian seasoning
- 1/2 tsp crushed red pepper flakes optional
- salt and black pepper to taste
- 24 oz marinara sauce 1 standard jar, about 680g
- 14.5 oz diced tomatoes 1 can, about 410g, drained
- 15 oz whole milk ricotta cheese 425g; do not substitute part-skim
- 1 large egg
- 2 cups shredded low-moisture mozzarella cheese about 225g, divided into two 1-cup portions
- 1/2 cup Parmesan cheese about 50g, freshly grated, divided into two 1/4-cup portions
- 1/4 cup fresh basil leaves torn, for serving
Equipment
- Large pot For boiling pasta
- Colander For draining pasta
- Large skillet or sauté pan For building the vegetable tomato sauce
- 9×13-inch ceramic or glass baking dish For assembling and baking the casserole
- Wooden spoon or spatula For stirring
- Medium mixing bowl For the ricotta mixture
- Chef’s knife and cutting board For prepping vegetables
- Measuring cups and spoons
- Aluminum foil For covering the dish while baking
- Box grater For grating Parmesan; optional if using pre-grated
Method
- Preheat your oven to 375°F (190°C). Lightly grease a 9×13 inch baking dish with olive oil or nonstick spray and set aside.
- Bring a large pot of salted water to a boil, then cook the spaghetti for 2 minutes less than the package directions. Drain (do not rinse) and set aside.
- Heat olive oil in a large skillet over medium heat. Cook the onion for 3 to 4 minutes until soft, then add the garlic and stir for 60 seconds. Add the zucchini, bell pepper, and mushrooms; cook for 6 to 7 minutes until tender and any liquid has evaporated. Season with Italian seasoning, red pepper flakes, salt, and pepper.
- Stir the marinara sauce and drained diced tomatoes into the skillet with the vegetables. Simmer over medium-low heat for 5 minutes, then remove from heat and taste for seasoning.
- In a medium bowl, stir together the ricotta, egg, 1/4 cup Parmesan, and a pinch of salt and pepper until smooth and well combined.
- Add the drained spaghetti to the skillet with the tomato vegetable sauce and toss thoroughly until every strand is coated and the vegetables are evenly distributed.
- Spread half the sauced pasta in the prepared baking dish, then layer with all of the ricotta mixture and 1 cup of mozzarella. Top with the remaining pasta, then scatter the remaining 1 cup of mozzarella and 1/4 cup of Parmesan evenly over the top.
- Cover the dish tightly with aluminum foil and bake at 375°F for 20 minutes.
- Remove the foil and bake for another 15 minutes, until the cheese is melted and golden. For a deeper golden top, broil for 2 to 3 minutes, watching closely.
- Let the casserole rest for 5 to 10 minutes before serving to help it set. Scatter torn fresh basil over the top and serve directly from the dish.
Nutrition
Notes
- Always undercook the pasta by 2 minutes before baking — it finishes cooking in the oven and this prevents a mushy texture.
- Use whole milk ricotta, not part-skim. Full-fat ricotta stays creamy after baking; part-skim can turn grainy and release extra moisture.
- Grate your own Parmesan from a block for best melt and flavor. Pre-grated contains anti-caking agents that prevent smooth melting.
- Make sure mushroom liquid fully evaporates before adding the sauce — this prevents a watery casserole.
- Make ahead: assemble the full casserole, cover tightly, and refrigerate up to 24 hours. Add 10 extra minutes to the covered bake time when going straight from fridge to oven.
- Storage: refrigerate leftovers in an airtight container for up to 4 days. Freeze (tightly wrapped) for up to 3 months; thaw overnight in the fridge before reheating.
- Reheat in a 350°F oven covered with foil for 15 to 20 minutes, or microwave individual portions with a splash of marinara on top to prevent drying out.
- Vegan swap: replace ricotta with cashew cream or seasoned firm tofu, use a flax egg (1 tbsp ground flaxseed + 3 tbsp water), and swap in vegan mozzarella shreds.
- Vegetable variations: spinach, eggplant, artichoke hearts, broccoli, or cherry tomatoes all work well — just cook down any high-moisture additions before adding the sauce.
- White sauce version: substitute the marinara with a creamy béchamel or alfredo sauce for a completely different but equally delicious bake.
Private Notes
Tried this recipe?
Let us know how it was!Conclusion
This vegetarian baked spaghetti is proof that meatless cooking can be just as hearty, comforting, and deeply satisfying as anything else on the dinner table.
The combination of sautéed vegetables, rich tomato sauce, and that gorgeous, bubbling cheese topping makes this a dish people genuinely get excited about.
It’s simple enough for a weeknight but special enough to serve at a dinner party.
If you try this recipe, I’d love to hear how it turned out. Drop a comment below and let me know what vegetables you used or any fun variations you tried.
And if you loved it, share it with a friend who could use a new pasta night favorite in their rotation.
Recommended:
- Spinach Tomato Tortellini Recipe
- Mushroom Spinach Pasta Recipe
- Tomato Basil Pasta Recipe
- Spinach Ricotta Pasta Recipe
- Lemon Ricotta Pasta Recipe



