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.
| Ingredient | Amount | Notes |
| Spaghetti | 12 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 onion | 1 medium, diced | |
| Garlic | 3 cloves, minced | |
| Olive oil | 1 tbsp | |
| Marinara or pasta sauce | 4 cups (about 32 oz / 945 ml) | One 24-oz jar plus one 8-oz can tomato sauce works |
| Italian seasoning | 1 tsp | |
| Salt and black pepper | ½ tsp and ¼ tsp | Adjust to your sauce |
| Ricotta | 15 oz (0.94 lb / 0.43 kg) | Whole milk gives the creamiest result |
| Large egg | 1 | For the ricotta mix |
| Grated Parmesan | ¼ cup plus 2 tbsp | Mixed in and sprinkled on top |
| Shredded mozzarella | 3 cups (12 oz / 0.75 lb / 0.34 kg) | Shred from a block for better melt |
| Fresh parsley or basil | 2 tbsp, chopped | For 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
| Swap | Use instead |
| Ricotta | Cottage cheese, drained and lightly blended |
| Ground beef | Ground turkey, Italian sausage, or lentils for a meatless version |
| Mozzarella | Provolone or a mozzarella-provolone blend |
| Spaghetti | Linguine or thin spaghetti; adjust the boil time |
| Jar sauce | Homemade 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.

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

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.

Time and Temperature Table for Baked Spaghetti
| Stage | Temperature | Time | What to look for |
| Boil spaghetti | Rolling boil | 7–8 min (2 min under package) | Firm bite in the center |
| Brown beef | Medium-high | 6–8 min | No pink; USDA minimum for ground beef is 160°F (71°C) |
| Simmer sauce | Medium-low | 10 min | Slightly thickened |
| Bake covered | 375°F (190°C) | 20 min | Steam trapped under the foil |
| Bake uncovered | 375°F (190°C) | 15–20 min | Bubbling edges, golden cheese |
| Final temp check | Center of dish | n/a | 165°F (74°C) |
| Rest | Room temperature | 10 min | Sauce thickens, squares hold shape |
| Reheat leftovers | 350°F (177°C) oven | 20–25 min covered | 165°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
| Problem | Likely cause | Fix |
| Dry casserole | Not enough sauce or too long uncovered | Use 4 cups sauce plus pasta water; tent with foil |
| Mushy noodles | Spaghetti fully cooked first | Boil 2 minutes under package time |
| Greasy surface | Fat not drained | Drain the beef and skim the sauce |
| Watery bottom | Sauce too thin or no rest | Simmer sauce 10 minutes; rest 10 minutes |
| Cheese won’t brown | Foil left on or oven too low | Uncover for the last 15–20 minutes; broil briefly |
| Cheese burns | Rack too high | Use center rack; tent if needed |
| Cold center | Dish assembled cold | Bake longer; check for 165°F (74°C) |
| Slices fall apart | No rest | Wait 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:
- Heat the oven to 375°F (190°C).
- Boil spaghetti 2 minutes under package time.
- Brown the beef, add onion, garlic, and sauce, and simmer 10 minutes.
- Mix ricotta, egg, and ¼ cup Parmesan.
- Layer sauce, spaghetti, ricotta, mozzarella, and meat sauce, then repeat and top with cheese.
- Bake covered 20 minutes, then uncovered 15–20 minutes.
- 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.