Baked Spaghetti: Cheesy, Saucy Casserole With Exact Temps and Times

Good baked spaghetti has bubbling edges, a golden cheese crust, and noodles that hold together when you cut a square. Bad baked spaghetti is dry on top, soggy underneath, or a greasy puddle of sauce. The difference comes down to three things: undercooked noodles, enough sauce, and a two-stage bake at 375°F (190°C).

This baked spaghetti recipe uses a meaty tomato sauce, a creamy ricotta layer, and plenty of mozzarella. It feeds 8 and takes about 1 hour 15 minutes. If you like casserole-style dinners, our ground beef casserole is a good companion.

Quick Answer: For cheesy baked spaghetti, boil 12 oz spaghetti 2 minutes short of al dente, layer it with ricotta, meat sauce, and mozzarella in a 9×13 dish, and bake at 375°F (190°C) for 20 minutes covered plus 15–20 minutes uncovered. Pull when bubbling and the center reads 165°F (74°C). Rest 10 minutes. Total time: about 1 hour 15 minutes.

Why This Baked Spaghetti Recipe Works

Five choices make this easy baked spaghetti turn out the same every time.

  • Noodles pulled early. Spaghetti cooks 2 minutes less than the package says, so it finishes in the oven instead of turning mushy.
  • A saucy meat sauce. Pasta keeps drinking liquid as it bakes. Using 4 cups of sauce plus a splash of pasta water keeps the casserole moist.
  • A ricotta layer. The ricotta, egg, and Parmesan mix sets into a creamy middle that makes squares hold together.
  • Cover first, uncover later. Foil traps steam for the first 20 minutes so the noodles soften evenly. Then the uncovered bake browns the cheese.
  • A rest. Ten minutes out of the oven lets the sauce thicken so slices don’t slump.

The result is baked spaghetti with ground beef that is saucy, creamy, and cheesy without being soupy. For more weeknight ideas, browse our easy pasta recipes.

Ingredients and Equipment for Baked Spaghetti

This serves 8 and fits a 9×13-inch (23×33 cm) baking dish.

IngredientAmountNotes
Spaghetti12 oz (0.75 lb / 0.34 kg)Break in half only if you want shorter noodles
Ground beef (80/20)1 lb (0.45 kg)Or half beef, half Italian sausage
Yellow onion1 medium, diced
Garlic3 cloves, minced
Olive oil1 tbsp
Marinara or pasta sauce4 cups (about 32 oz / 945 ml)One 24-oz jar plus one 8-oz can tomato sauce works
Italian seasoning1 tsp
Salt and black pepper½ tsp and ¼ tspAdjust to your sauce
Ricotta15 oz (0.94 lb / 0.43 kg)Whole milk gives the creamiest result
Large egg1For the ricotta mix
Grated Parmesan¼ cup plus 2 tbspMixed in and sprinkled on top
Shredded mozzarella3 cups (12 oz / 0.75 lb / 0.34 kg)Shred from a block for better melt
Fresh parsley or basil2 tbsp, choppedFor serving

Equipment:

  • 9×13 baking dish and aluminum foil
  • Large pot and a colander
  • Large skillet or Dutch oven for the sauce
  • Instant-read thermometer
  • Box grater (optional, for the mozzarella)

Easy Substitutions

SwapUse instead
RicottaCottage cheese, drained and lightly blended
Ground beefGround turkey, Italian sausage, or lentils for a meatless version
MozzarellaProvolone or a mozzarella-provolone blend
SpaghettiLinguine or thin spaghetti; adjust the boil time
Jar sauceHomemade marinara, same quantity

Choosing and Prepping Baked Spaghetti Ingredients

The Meat Sauce

An 80/20 ground beef gives flavor, but it also gives off fat. Brown it for 6–8 minutes over medium-high heat, breaking it into small crumbles, until no pink remains. Spoon off excess fat so the casserole doesn’t turn greasy.

Cook the beef to a safe level before it goes in the dish. The USDA’s safe minimum for ground beef is 160°F (71°C), and the finished casserole gets its own check at the end.

Add the onion and cook 4–5 minutes until soft, then garlic for 30 seconds. Stir in the sauce, Italian seasoning, salt, and pepper, and simmer 10 minutes.

The Noodles

Boil the spaghetti in well-salted water for 2 minutes less than the package time, usually 7–8 minutes. It should still have a firm bite. Reserve ½ cup (120 ml) of the pasta water, drain, and toss the noodles with a little sauce so they don’t clump.

The Cheese

Stir the ricotta, egg, ¼ cup Parmesan, and a pinch of salt together in a bowl. Shred the mozzarella yourself if you can. Pre-shredded bags are coated to stay loose, and they melt less smoothly.

Meat sauce simmering in a skillet, browned beef crumbles and onion visible

Step-by-Step: How to Make Baked Spaghetti

  1. Heat the oven to 375°F (190°C). Position a rack in the center. Lightly grease a 9×13 dish.
  2. Boil the spaghetti. Cook 7–8 minutes (2 minutes under the package time). Reserve ½ cup pasta water, then drain.
  3. Brown the beef. Cook 6–8 minutes, then drain the excess fat.
  4. Build the sauce. Add onion (4–5 minutes), garlic (30 seconds), sauce, seasonings, and the pasta water. Simmer 10 minutes.
  5. Mix the ricotta layer. Combine ricotta, egg, ¼ cup Parmesan, and parsley.
  6. Start the layers. Spread ½ cup sauce on the bottom of the dish. Add half the spaghetti.
  7. Add cheese and sauce. Spread the ricotta mix over the noodles, add 1 cup mozzarella, then spoon over half the remaining meat sauce.
  8. Finish the layers. Add the rest of the spaghetti, the rest of the sauce, then top with 2 cups mozzarella and 2 tbsp Parmesan.
  9. Bake covered for 20 minutes. Use foil sprayed with oil so the cheese doesn’t stick.
  10. Bake uncovered for 15–20 minutes. The edges should bubble and the cheese should turn golden.
  11. Check the temperature. Insert a thermometer in the center. You want 165°F (74°C).
  12. Rest for 10 minutes before cutting.
Assembled baked spaghetti in the 9x13 dish before baking, cheese layer on top

Pitmaster Tip: Park the dish on a foil-lined sheet pan. Pasta sauce can bubble over, and the pan makes cleanup easy. For extra browning, broil for 1–2 minutes at the end, and watch it closely so the cheese doesn’t burn.

Common Mistake: Cooking the spaghetti all the way before baking. Fully cooked noodles keep absorbing sauce, then turn soft and mushy in the oven. Pull them early and the baked spaghetti stays firm and saucy.

Finished casserole fresh from the oven, bubbling edges and golden cheese

Time and Temperature Table for Baked Spaghetti

StageTemperatureTimeWhat to look for
Boil spaghettiRolling boil7–8 min (2 min under package)Firm bite in the center
Brown beefMedium-high6–8 minNo pink; USDA minimum for ground beef is 160°F (71°C)
Simmer sauceMedium-low10 minSlightly thickened
Bake covered375°F (190°C)20 minSteam trapped under the foil
Bake uncovered375°F (190°C)15–20 minBubbling edges, golden cheese
Final temp checkCenter of dishn/a165°F (74°C)
RestRoom temperature10 minSauce thickens, squares hold shape
Reheat leftovers350°F (177°C) oven20–25 min covered165°F (74°C) in the center

How to Tell When Baked Spaghetti Is Done

Use your eyes and a thermometer.

  • Edges: Sauce bubbles around the perimeter of the dish.
  • Top: The cheese is melted with golden brown spots.
  • Center: A thermometer reads 165°F (74°C). The USDA lists 165°F (74°C) for casseroles, including those with meat.
  • Moisture: A little sauce pools when you cut in, but it doesn’t run like soup.

If the top browns before the center hits 165°F, tent with foil and keep baking in 5-minute checks.

Resting, Slicing, and Serving

Let the pan sit 10 minutes. This lets the cheese set and the noodles relax, so you get clean squares instead of a loose pile. Use a sharp knife or a sturdy spatula and cut the dish into 8 even pieces.

Top each portion with fresh parsley or basil and a little extra Parmesan. Serve within 2 hours of baking. The USDA calls 40–140°F the Danger Zone for bacterial growth, so cover the dish and keep it hot if it’s going to sit.

What to Serve With Baked Spaghetti

Garlic bread is the classic partner. Try slices of grilled bread brushed with garlic butter for a smoky, crunchy side.

A crisp green salad with a lemony vinaigrette cuts the richness. Roasted or grilled vegetables work well too, such as grilled carrots or broccoli. For more pairings and pasta night ideas, see our dinner ideas with pasta.

Storing, Freezing, and Reheating Leftover Baked Spaghetti

Refrigerate leftovers within 2 hours (1 hour if it’s above 90°F). The USDA’s leftover guidance says most leftovers keep 3–4 days in the fridge. Freezer times vary by food, so use 2–3 months for best quality with a meat casserole

To store: Divide into shallow airtight containers so it cools fast.

To freeze: Wrap individual portions in plastic, then foil, or use freezer-safe containers. Label the date. Thaw overnight in the refrigerator.

To reheat:

  • Oven: Cover with foil and heat at 350°F (177°C) for 20–25 minutes. Add a spoonful of sauce or water if it looks dry.
  • Microwave: Heat a portion 1½–2 minutes, stirring once if possible.
  • Skillet: Warm slices over medium-low heat with a lid for 5–8 minutes.

Reheat leftovers to 165°F (74°C) throughout. For tips on keeping creamy pasta from drying out, see how to reheat alfredo the same way.

Make-Ahead Baked Spaghetti

Assemble the casserole, cover tightly, and refrigerate up to 24 hours. Add 10–15 minutes to the covered bake, then check the center for 165°F (74°C). Cold dishes straight from the fridge take longer to heat through, so don’t skip the thermometer.

Baked Spaghetti Variations: Pellet Grill, Charcoal, Oven, and Diet Twists

Oven (the Main Method)

The oven gives the most even bake. Use the center rack at 375°F (190°C) and follow the times above.

Pellet Grill

Set your pellet grill to 375°F (190°C) and use indirect heat. Place the foil-covered dish on the grates and cook 20 minutes, then uncover and cook 15–25 minutes. Mild pellets like apple or oak add a light smoky note, while hickory can overpower the sauce. Check the center for 165°F (74°C).

Charcoal Grill or Dutch Oven

Build a two-zone fire and aim for 375°F (190°C) at the grate. Cook the dish over the cool side with the lid closed. Rotate it halfway through, and expect to need an extra 5–10 minutes. Use a cast iron Dutch oven if you want a deeper, crustier edge.

Oven Skillet Version

Build the layers in a 12-inch (30 cm) oven-safe skillet for a smaller batch that serves 4. Halve the ingredients and bake at 375°F (190°C) for about 30 minutes total.

Flavor and Diet Twists

  • Baked spaghetti with sausage: Replace half the beef with Italian sausage and add ¼ tsp red pepper flakes.
  • Lighter version: Use lean ground turkey and part-skim mozzarella. Our healthy ground beef recipes have more lighter ideas.
  • Meatless: Swap the beef for sauteed mushrooms and spinach. See our vegetarian pasta recipes for more.
  • Extra veggie: Fold a cup of chopped spinach into the ricotta layer.

Troubleshooting Baked Spaghetti

ProblemLikely causeFix
Dry casseroleNot enough sauce or too long uncoveredUse 4 cups sauce plus pasta water; tent with foil
Mushy noodlesSpaghetti fully cooked firstBoil 2 minutes under package time
Greasy surfaceFat not drainedDrain the beef and skim the sauce
Watery bottomSauce too thin or no restSimmer sauce 10 minutes; rest 10 minutes
Cheese won’t brownFoil left on or oven too lowUncover for the last 15–20 minutes; broil briefly
Cheese burnsRack too highUse center rack; tent if needed
Cold centerDish assembled coldBake longer; check for 165°F (74°C)
Slices fall apartNo restWait 10 minutes before cutting

Baked Spaghetti Recipe Card

Cheesy Baked Spaghetti With Meat Sauce

  • Servings: 8
  • Prep: 25 minutes | Cook: 35–40 minutes | Rest: 10 minutes | Total: about 1 hour 15 minutes
  • Oven: 375°F (190°C) | Pull temp: 165°F (74°C)

Ingredients: 12 oz (0.34 kg) spaghetti, 1 lb (0.45 kg) ground beef, 1 onion, 3 garlic cloves, 1 tbsp olive oil, 4 cups marinara, 1 tsp Italian seasoning, 15 oz (0.43 kg) ricotta, 1 egg, ¼ cup plus 2 tbsp Parmesan, 3 cups (0.34 kg) mozzarella, salt, pepper, parsley.

Steps:

  1. Heat the oven to 375°F (190°C).
  2. Boil spaghetti 2 minutes under package time.
  3. Brown the beef, add onion, garlic, and sauce, and simmer 10 minutes.
  4. Mix ricotta, egg, and ¼ cup Parmesan.
  5. Layer sauce, spaghetti, ricotta, mozzarella, and meat sauce, then repeat and top with cheese.
  6. Bake covered 20 minutes, then uncovered 15–20 minutes.
  7. Check for 165°F (74°C), rest 10 minutes, and serve.

FAQ

Do you boil spaghetti before baking it?

Yes. Boil the noodles about 2 minutes less than the package says, so they’re firm but flexible. They finish cooking in the oven as they absorb sauce. Fully cooked noodles turn mushy, and raw noodles won’t soften evenly, so aim for that slightly undercooked point.

How long do you bake spaghetti at 375°F?

Bake covered for 20 minutes, then uncovered for 15–20 minutes. That’s about 35–40 minutes total. Look for bubbling edges and golden cheese, and check that the center reaches 165°F (74°C). Cold or make-ahead dishes need an extra 10–15 minutes.

Do you cover baked spaghetti with foil?

Cover it for the first 20 minutes. Foil traps steam, which keeps noodles tender and prevents the top from drying out. Then remove the foil for the last 15–20 minutes so the cheese melts, bubbles, and browns. Spray the foil with oil so cheese doesn’t stick.

Why is my baked spaghetti dry?

Usually there isn’t enough sauce, or the dish baked uncovered too long. Pasta keeps absorbing liquid, so use about 4 cups of sauce for 12 ounces of spaghetti and add a splash of pasta water. Cover with foil for the first half of baking.

Can you make baked spaghetti ahead of time?

Yes. Assemble it, cover tightly, and refrigerate up to 24 hours before baking. Add 10–15 minutes to the covered stage and confirm the center reaches 165°F (74°C). You can also freeze unbaked or baked portions and thaw them overnight in the refrigerator.

How long does baked spaghetti last in the fridge?

Refrigerate within 2 hours of cooking and eat within 3–4 days, following USDA leftover guidance. Store it in shallow airtight containers so it cools quickly. Reheat to 165°F (74°C) in the center, adding a spoonful of sauce or water if the pasta looks dry.

Final Thoughts on Making Baked Spaghetti

Great baked spaghetti comes down to a few repeatable habits: undercook the noodles, keep plenty of sauce, bake covered then uncovered at 375°F (190°C), and rest the pan for 10 minutes. Once you have the layers down, you can switch in sausage, turkey, or vegetables without losing the creamy, cheesy result.

Check the center for 165°F (74°C), let it set, and serve it with something crunchy. It’s an easy casserole that’s great for a crowd and even better the next day. Make this baked spaghetti once and it’ll earn a place in your regular rotation.

I'm Laura, I like all the kind of delicious grilled foods which makes me hungry all the time I see them. That's why I built this blog to share with you all of my Grilling experiences, recipes, and all the tips about foods that I've learned from food experts.

Share on: