Skip to main content

Baked Spaghetti with White Sauce Recipe

| ~6 min read | Pasta Sauces

Sections
  1. Ingredients
  2. Instructions
  3. Tips
  4. Serving Suggestions
  5. Variations
  6. Storage and Reheating
  7. Frequently Asked Questions

Baked spaghetti with white sauce is the creamy, cheesy counterpart to the tomato-based casserole most of us grew up with. Spaghetti is tossed in a béchamel-based sauce, layered with mozzarella and Parmesan, and baked until the top is golden and bubbling. It works because the white sauce clings to the pasta instead of pooling, and the oven gives you crisp edges without drying out the strands.

Ingredients

  • 12 oz (340 g) dried spaghetti
  • 1 tbsp salt, for the pasta water
  • 4 tbsp (56 g) unsalted butter
  • 1/4 cup (30 g) all-purpose flour
  • 3 cups (720 ml) whole milk, warmed
  • 1/2 tsp salt, plus more to taste
  • 1/4 tsp ground white or black pepper
  • 1/8 tsp freshly grated nutmeg
  • 1 1/2 cups (150 g) shredded low-moisture mozzarella
  • 1/2 cup (50 g) grated Parmesan, divided
  • 1 cup (240 g) ricotta or cottage cheese (optional, for a heartier layer)
  • 2 tbsp (28 g) butter, melted, for the topping
  • 1/4 cup (25 g) panko or dry breadcrumbs

Instructions

  1. Heat the oven to 375°F (190°C). Grease a 9x13-inch baking dish with butter or a light coating of oil.
  2. Bring a large pot of water to a boil and add 1 tbsp salt. Cook the spaghetti for 2 minutes less than the package directions for al dente, usually about 7 minutes for standard dried spaghetti. It will finish cooking in the oven. Before draining, scoop out and reserve 1 cup of the starchy pasta water. Drain the pasta and set aside.
  3. While the pasta cooks, make the white sauce. Melt 4 tbsp butter in a medium saucepan over medium heat. Whisk in the flour and cook for 1 minute, stirring constantly, until it smells toasted but has not browned.
  4. Pour in the warm milk in a steady stream, whisking constantly to prevent lumps. Cook for 5 to 7 minutes, whisking, until the sauce thickens enough to coat the back of a spoon. Season with 1/2 tsp salt, the pepper and the nutmeg. Taste and adjust salt. Remove from the heat.
  5. Stir 1/2 cup of the mozzarella and 1/4 cup of the Parmesan into the hot white sauce until melted. If the sauce seems thick, loosen it with a splash of the reserved pasta water.
  6. Toss the drained spaghetti with the sauce in the pot or a large bowl until every strand is coated. If using ricotta, dot it through the pasta now rather than stirring it in completely, so you get pockets of creamy cheese.
  7. Transfer half the pasta to the baking dish. Scatter over half the remaining mozzarella. Add the rest of the pasta on top, then the remaining mozzarella and Parmesan.
  8. Mix the melted butter with the breadcrumbs and scatter over the top for a crisp crust.
  9. Bake uncovered for 25 to 30 minutes, until the sauce bubbles at the edges and the top is golden brown. If the top darkens too quickly, tent loosely with foil for the last 10 minutes.
  10. Let the dish rest for 10 minutes before cutting. The casserole must reach 165°F (74°C) in the center; check with a food thermometer rather than judging by color.

Tips

  • Undercook the pasta. Boiling it fully before baking is the most common mistake; it turns soft and mushy in the oven. Pull it 2 minutes early and rely on the bake to finish it.
  • Warm the milk. Cold milk added to a hot roux seizes and turns lumpy. Warm it in the microwave or a separate pan first, and whisk constantly as you pour.
  • Watch the salt. Parmesan and mozzarella are both salty, so season the white sauce lightly and taste before the final adjustment.
  • Loosen with pasta water. If the sauce tightens too much while you assemble, a few tablespoons of reserved pasta water bring it back to a coating consistency without diluting the flavor.

Serving Suggestions

Serve with a simple green salad dressed with lemon and olive oil, or steamed broccoli with a squeeze of lemon to cut the richness. Garlic bread or a crusty loaf works well for mopping up the sauce. A dry white wine or sparkling water with lemon suits the creamy profile; any alcohol served alongside is for adults only.

Variations

  • Add protein: Stir in 2 cups of cooked, shredded chicken (cooked to 165°F/74°C), browned Italian sausage (160°F/71°C), or sautéed mushrooms for a vegetarian version.
  • Add vegetables: Frozen peas, blanched spinach or roasted cauliflower fold in without extra liquid if you squeeze or drain them well first.
  • Cheese swap: Fontina or Gruyère melt smoothly in place of mozzarella; a sharper aged cheddar adds a stronger flavor but can release oil, so use it in smaller amounts.
  • Make it ahead: Assemble through the breadcrumb topping, cover and refrigerate up to 24 hours, then bake from cold with 10 extra minutes.

Storage and Reheating

Cool leftovers within 2 hours (1 hour if the room is above 90°F/32°C) and refrigerate in a covered container at 40°F (4°C) or below. The baked spaghetti keeps 3 to 4 days in the fridge. To reheat, cover with foil and warm in a 350°F (175°C) oven for 20 to 25 minutes, or microwave individual portions until steaming. Reheated leftovers must reach 165°F (74°C). For freezing, portion into freezer-safe containers and freeze at 0°F (-18°C) for up to 3 months; thaw in the fridge overnight, never on the counter, then reheat as above.

Frequently Asked Questions

Can I use a different pasta shape?

Yes. Penne, rigatoni, ziti and fusilli all work well because their ridges and hollows hold the white sauce. Adjust the boiling time to the shape's package directions, still pulling it 2 minutes early before baking.

Why is my white sauce lumpy?

Lumps usually come from adding cold milk to a hot roux too quickly or not whisking enough. If it happens, strain the sauce through a fine-mesh sieve and return it to the pan, or whisk vigorously until smooth. Warming the milk and pouring it slowly prevents the problem.

Can I make this without flour?

You can thicken the sauce with cornstarch instead: whisk 3 tbsp cornstarch into 1/4 cup cold milk, then add the rest of the milk and cook until thickened. The texture is slightly glossier but works fine in a baked dish.

Is it safe to reheat baked spaghetti twice?

Reheat only the portion you plan to eat, and reheat it once. Repeated cooling and warming cycles give bacteria more chances to grow. Reheat to 165°F (74°C) and discard anything left out more than 2 hours.

Can I freeze it before baking?

Yes. Assemble the dish, cover tightly and freeze for up to 3 months. Thaw in the fridge overnight, then bake at 375°F (190°C) for 35 to 40 minutes, until the center reaches 165°F (74°C). Add the breadcrumb topping just before baking so it stays crisp.

How do I keep the pasta from drying out in the oven?

Use enough sauce to coat every strand generously, and cover with foil if the top browns before the center is hot. A dish that looks dry going in will only get drier, so don't skimp on the white sauce.

Similar articles