Skip to Content

Vegetarian Baked Spaghetti

This easy recipe for vegetarian baked spaghetti is sure to be a new family favorite!

taking a serving of spaghetti bake from the dish

This Vegetarian Baked Spaghetti Recipe is the perfect comfort food!

Sometimes you just need good old comfort food, and this vegetarian spaghetti is one of my favorites. Baked spaghetti is the perfect comfort food!

This veggie spaghetti is made with two kinds of cheese, lots of hearty vegetables that give it so much flavor, and baked until bubbly brown on the edges.

It makes a bunch and is perfect for having leftovers the next night for dinner. This spaghetti bake is so delicious and made without any meat.

This recipe is one of my favorite pasta recipes, as is this Veggie Lover’s Pasta Bake. 

vegetarian baked spaghetti

Spaghetti is one of my go-to comfort foods. We have it pretty often, and love that it makes a ton of food.

As a kid I’m not sure I was crazy about leftovers, but as an adult I love them! I love to make this baked spaghetti for dinner and then eat the leftovers the next night and not have to cook.

Any night that we are eating leftovers is a good night for me!

ingredients to make veggie spaghetti bake

What you’ll need for Baked Spaghetti with Vegetables

  • Onion
  • Garlic
  • Mushrooms
  • Bell pepper
  • Olive oil
  • Salt and pepper
  • Dried basil and oregano
  • Jarred pasta sauce
  • Grated parmesan cheese
  • Mozzarella cheese
  • Spaghetti
chopped mushrooms, onion, green bell pepper, and garlic

What veggies go well in pasta?

This recipe has all the best veggies that go well with spaghetti: garlic, onion, mushrooms, and bell peppers.

grated cheese on a cutting board

How to make Vegetarian Baked Spaghetti

Step 1: Cook the spaghetti: cook your spaghetti to al dente according to package instructions. Drain and set aside.

Step 2: Cook the veggies: Add the onion, garlic, mushrooms, green pepper, olive oil, sea salt, pepper, basil and oregano in a large skillet and cook until the liquid has evaporated.

Step 3: Add the pasta sauce to the veggie mixture and stir to combine.

Step 4: Grease a casserole dish. Add the spaghetti: spread out into the casserole dish. Top the spaghetti with ½ cup mozzarella and 1 ¼ cups of parmesan cheese.

grated cheese on a cutting board

Step 5: Add the veggie pasta sauce over top and mix to combine.

Step 6: Top the spaghetti bake with the remaining mozzarella cheese sprinkled over the top.

Step 7: Bake the veggie spaghetti at 375 degrees for 15-20 minutes, or until the cheese is bubbly and starting to brown.

vegetarian baked spaghetti

This spaghetti is hearty and filling with bites of warm melty cheese. Whether you are vegetarian or not, I guarantee you’re going to love this delicious dinner. 

veggie spaghetti

How to serve Baked Spaghetti

This spaghetti with vegetables would pair perfectly with a side salad and a loaf of garlic bread. We like adding red pepper flakes on top for a little extra spice sometimes!

veggie spaghetti

Storing Veggie Spaghetti

  • Storing: Leftover veggie spaghetti can be stored in an airtight container in the refrigerator for 3-4 days.
  • Reheating: Place the spaghetti in a casserole dish and bake at 350 until heated through. You can also use the microwave to reheat individual portions.
vegetarian baked spaghetti

Vegetarian Spaghetti FAQs

What is the difference between baked spaghetti and regular spaghetti?

The difference between baked spaghetti and regular spaghetti is the cooking method. Baked spaghetti is mixed with the pasta sauce and cheese and then baked in the oven until hot and bubbly.

How do you keep baked spaghetti from drying out?

Don’t overcook the noodles: spaghetti noodles should be cooked to al dente and drained immediately. Try to avoid overcooked spaghetti noodles which can result in a mushy and dried out pasta.

Add enough sauce: Make sure you use enough sauce to cover the noodles. If you are adding additional vegetables or other ingredients you may need to add more sauce also.

veggie spaghetti bake

Be sure to pin this recipe for later and follow Build Your Bite on Pinterest for all the latest delicious recipes!

This veggie spaghetti bake is a guaranteed family pleaser, perfect for a weeknight dinner!

More Pasta Recipes

taking a serving of spaghetti bake from the dish

Did you make this recipe? Be sure to leave a star rating below!

taking a serving of spaghetti bake from the dish

Veggie Spaghetti Bake

Yield: 8 servings
Prep Time: 10 minutes
Cook Time: 30 minutes
Total Time: 40 minutes

Easy and delicious vegetarian baked spaghetti recipe with mushrooms, bell pepper, and onion.


  • 1 small yellow onion, diced
  • 8 large garlic cloves, minced
  • 16 oz sliced white mushrooms
  • 1 green bell pepper, diced
  • 2 tablespoons olive oil
  • ½ teaspoon salt
  • ½ teaspoon pepper
  • 2 teaspoons dried basil
  • 1 teaspoon dried oregano
  • 1 (25 oz) jar pasta sauce
  • 1 ¼ cups grated parmesan cheese
  • 2 cups shredded mozzarella cheese
  • 16 oz spaghetti


  1. Cook the spaghetti according to package directions to al dente, set aside
  2. Combine the onion, garlic, mushrooms, green pepper, olive oil, salt, pepper, basil and oregano in a large skillet.
  3. Sautee over medium high heat, stirring frequently for 15-20 minutes, or until the mushrooms cook down and evaporate their liquid
  4. Add the pasta sauce to veggie mixture and stir to combine
  5. Grease a 9 by 13 baking dish with cooking spray
  6. Place the spaghetti on the bottom of the baking dish
  7. Top the spaghetti noodles with ½ cup mozzarella cheese and 1 ¼ cups of parmesan cheese
  8. Pour the veggie pasta sauce over the top of the spaghetti and mix it up with tongs until well combined
  9. Top the spaghetti with the remaining 1 ½ cups of mozzarella cheese sprinkled over the top
  10. Bake the spaghetti at 375 degrees for 15-20 minutes, or until the cheese is bubbly and starting to brown on the edges of the dish


I love adding red pepper flakes for spiciness, if you do not like spicy things, simply omit from the recipe.

Nutrition Information:
Yield: 8 Serving Size: 1
Amount Per Serving: Calories: 283Total Fat: 13gSaturated Fat: 5gTrans Fat: 0gUnsaturated Fat: 6gCholesterol: 28mgSodium: 638mgCarbohydrates: 28gFiber: 3gSugar: 4gProtein: 14g

Did you make this recipe?

Be sure to tag me on instagram @buildyourbite and hashtag #buildyourbite with your recipe creations!

Sharing is caring!


Sunday 22nd of October 2023

Should this recipe be covered up when put in the oven?

Joy Shull

Saturday 28th of October 2023

I do not cover it


Tuesday 29th of August 2023

I made this with whole wheat spaghetti - total home run that will go into my "favorites" rotation.

Joy Shull

Sunday 10th of September 2023

Yay! So glad you enjoyed the recipe :)


Wednesday 22nd of February 2023

Can I make this ahead and freeze it? I make up casseroles for a homeless ministry and love feeding them healthy food.

Barbara Alley

Tuesday 24th of May 2022

Sounds so good.Could you use roasted sweet potatoes in ir?

Ilona Smith

Wednesday 8th of September 2021

I made thIs recipe and I added a lot of vegetables: carrots, mushrooms, zucchini, broccoli, onions, bell red pepper, garlic and onion. I used whole wheat thin spaghetti, a bottle of spaghetti sauce with basil and roasted peppers and tomato sauce, salt and pepper, Parmesan cheese and mozzarella cheese. This casserole was a big hit in my house. I will definitely make this casserole again.

Skip to Recipe