The Feast

Home cooking recipes for everyday dinners and easy entertaining

How Long to Cook Mac and Cheese in Oven

· 5 min read · Dinners

The oven is the secret to turning stovetop mac and cheese into a golden, bubbling, crowd-pleasing casserole. Baking time depends on whether you start with cooked pasta or an assembled unbaked dish, but the sweet spot is usually 20–30 minutes at 375°F (190°C). This method works because the oven gently melts the cheese into a creamy sauce while the top forms a crisp, buttery crust that stovetop versions can't achieve.

Ingredients

  • 1 lb (450 g) elbow macaroni or similar short pasta
  • 4 tbsp (60 g) unsalted butter, plus more for greasing
  • 4 tbsp (30 g) all-purpose flour
  • 3 cups (720 ml) whole milk, warmed
  • 1 tsp salt
  • 1/2 tsp black pepper
  • 1/2 tsp dry mustard (optional)
  • 3 cups (340 g) shredded sharp cheddar cheese
  • 1 cup (110 g) shredded Gruyère or Monterey Jack (optional)
  • 1/2 cup (50 g) panko breadcrumbs
  • 2 tbsp (30 g) melted butter for topping

Instructions

  1. Preheat your oven to 375°F (190°C). Grease a 9x13-inch (23x33 cm) baking dish with butter or nonstick spray.
  2. Cook the pasta in a large pot of salted boiling water until al dente (about 2 minutes less than package directions). Drain and set aside.
  3. In a large saucepan over medium heat, melt 4 tablespoons of butter. Whisk in the flour and cook for 1–2 minutes until it smells nutty and turns light golden.
  4. Slowly whisk in the warm milk, a little at a time, until smooth. Bring to a gentle simmer, stirring constantly, until the sauce thickens enough to coat the back of a spoon (about 5–7 minutes).
  5. Remove from heat and stir in salt, pepper, dry mustard (if using), and 2 cups of the cheddar cheese (reserve the rest for topping). Stir until melted and smooth.
  6. Combine the cooked pasta and cheese sauce in a large bowl. Pour into the prepared baking dish.
  7. Sprinkle the remaining cheddar and Gruyère (if using) evenly over the top.
  8. Mix the panko breadcrumbs with the 2 tablespoons of melted butter. Sprinkle over the cheese layer.
  9. Bake uncovered for 20–25 minutes, until the sauce is bubbly around the edges and the top is golden brown. If you want a deeper crust, broil for 1–2 minutes at the end, watching closely.
  10. Let rest for 5–10 minutes before serving. This allows the sauce to set slightly and prevents it from running off the plate.

Tips

  • Don't overcook the pasta initially. It will continue to cook in the oven, so undercook by 2 minutes to avoid mushy mac.
  • Use block cheese and shred it yourself. Pre-shredded bagged cheese contains anti-caking agents that prevent smooth melting.
  • If your sauce looks thin before baking, don't panic. The pasta absorbs some liquid, and the sauce thickens as it bakes. But if it's very runny, add 1/2 cup more cheese.
  • For a crispy top without burning, cover the dish with foil for the first 15 minutes, then remove for the last 5–10 minutes.

Serving Suggestions

Serve this baked mac and cheese as a main dish with a simple green salad or steamed broccoli. It also pairs well with roasted chicken, pulled pork, or meatloaf. For a game-day spread, offer it alongside chili or BBQ ribs. A sprinkle of fresh chopped parsley or chives on top adds color and freshness.

Variations

  • Add protein: Stir in 1–2 cups of cooked bacon, ham, or shredded rotisserie chicken before baking.
  • Add vegetables: Fold in sautéed mushrooms, caramelized onions, roasted red peppers, or steamed peas.
  • Spice it up: Add 1/2 teaspoon of smoked paprika, cayenne, or hot sauce to the cheese sauce.
  • Swap the cheese: Use smoked gouda, fontina, or pepper jack instead of Gruyère for a different flavor profile.
  • Make it gluten-free: Use gluten-free pasta and a 1:1 gluten-free flour blend for the roux.

Storage and Reheating

Leftover baked mac and cheese can be refrigerated in an airtight container for up to 3–4 days. To reheat, place individual portions in the microwave for 1–2 minutes, stirring halfway. For a crispy top, reheat in a 350°F (175°C) oven for 10–15 minutes, covered with foil to prevent drying. You can also freeze the unbaked casserole (before topping) for up to 2 months; thaw overnight in the fridge, then bake as directed, adding 10–15 minutes to the cooking time.

Frequently Asked Questions

How long do I bake mac and cheese at 350°F?

At 350°F (175°C), bake for 25–30 minutes. The lower temperature means slightly longer time, but it's gentler on the sauce and less likely to curdle.

Can I prepare mac and cheese ahead of time and bake later?

Yes. Assemble the casserole completely (without the breadcrumb topping) and refrigerate for up to 24 hours. When ready to bake, add the topping and increase the baking time by 10–15 minutes, since you're starting from cold.

Why is my baked mac and cheese dry?

Overbaking or using too little sauce are the usual culprits. Make sure your sauce is slightly thinner than you think it should be before baking, and check the dish at the minimum time. Also, cover with foil for the first half of baking to trap steam.

Should I cover mac and cheese when baking?

Covering with foil for the first 15 minutes helps the center heat through without over-browning the top. Uncover for the last 10–15 minutes to get a golden crust.

Can I use pre-cooked pasta that's already been refrigerated?

Yes, but reduce the baking time to 15–20 minutes, since the pasta is already cooked. You may also need to add a splash of milk to the sauce to compensate for the pasta absorbing more liquid.

What's the best cheese for baked mac and cheese?

Sharp cheddar is classic for flavor, but combining it with a melting cheese like Gruyère, fontina, or American gives the creamiest texture. Avoid using only aged hard cheeses like Parmesan, as they don't melt smoothly.

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