The Feast

Home cooking recipes for everyday dinners and easy entertaining

How Long to Bake Mac and Cheese for Perfect Results

· 5 min read · Baking and Desserts

The ideal baking time for mac and cheese is 20–25 minutes in a 375°F oven, but the exact time depends on whether you bake it immediately or chill it first. This recipe delivers a creamy, rich casserole with a golden, crispy topping—no dry, grainy sauce. The key is using a well-made béchamel and baking just until bubbly and browned, so the pasta stays tender and the cheese sauce stays silky.

Ingredients

  • 1 lb (16 oz) elbow macaroni or similar short pasta
  • 4 tbsp (1/2 stick) unsalted butter, plus more for greasing the dish
  • 1/4 cup all-purpose flour
  • 3 cups whole milk, warmed
  • 1 tsp salt
  • 1/2 tsp black pepper
  • 1/2 tsp paprika (optional)
  • 1/4 tsp garlic powder (optional)
  • 3 cups shredded sharp cheddar cheese (about 12 oz)
  • 1 cup shredded Gruyère or Monterey Jack cheese (about 4 oz)
  • 1/2 cup panko breadcrumbs
  • 2 tbsp melted butter (for topping)

Instructions

  1. Preheat your oven to 375°F. Grease a 9x13-inch baking dish with butter or nonstick spray.
  2. Bring a large pot of salted water to a boil. Cook the macaroni for 1–2 minutes less than the package directions (about 6–7 minutes for standard elbows). Drain and set aside. The pasta will finish cooking in the oven.
  3. In a large saucepan, melt 4 tablespoons of butter over medium heat. Whisk in the flour and cook for 1–2 minutes, stirring constantly, until the mixture is bubbly and lightly golden (this is a roux).
  4. Gradually whisk in the warm milk. Continue whisking until the sauce thickens and comes to a gentle simmer, about 3–5 minutes. The sauce should coat the back of a spoon.
  5. Remove the saucepan from heat. Stir in the salt, pepper, paprika, and garlic powder if using. Add the shredded cheeses (reserve about 1/2 cup of cheddar for the top) and stir until fully melted and smooth.
  6. Add the cooked macaroni to the cheese sauce and stir until every piece is coated. Pour the mixture into the prepared baking dish and spread it evenly.
  7. In a small bowl, mix the panko breadcrumbs with the 2 tablespoons of melted butter. Sprinkle the remaining 1/2 cup of cheddar over the mac and cheese, then top with the buttered breadcrumbs.
  8. Bake uncovered for 20–25 minutes, until the top is golden brown and the edges are bubbling. If you prefer a deeper crunch, broil for 2–3 minutes at the end, watching carefully to avoid burning.
  9. Let the dish rest for 5–10 minutes before serving. This allows the sauce to set slightly, so it doesn't run all over the plate.

Tips

  • Chilled vs. room temperature: If you assemble the mac and cheese ahead and refrigerate it, add 10–15 minutes to the baking time. A cold casserole needs about 35–40 minutes total to heat through.
  • Don't overcook the pasta: Undercook it by 1–2 minutes. Overcooked pasta becomes mushy after baking, and the dish will turn out gluey.
  • Use freshly shredded cheese: Pre-shredded cheeses contain anti-caking agents that prevent smooth melting. Shredding your own gives a creamier sauce.
  • If the top browns too fast: Cover loosely with foil for the first 15 minutes, then remove the foil for the last 10 minutes to get a crispy top without burning.

Serving Suggestions

Serve this baked mac and cheese as a main dish with a simple green salad or roasted vegetables. It also pairs well with grilled chicken, meatloaf, or BBQ ribs. For a heartier meal, stir in cooked bacon, diced ham, or sautéed mushrooms before baking. A sprinkle of fresh parsley or chives on top adds color and freshness.

Variations

  • Lobster Mac and Cheese: Fold in 1–2 cups of cooked lobster meat just before baking.
  • Buffalo Chicken: Add 2 cups of shredded cooked chicken tossed in buffalo sauce and 1/2 cup crumbled blue cheese.
  • Vegetable Mac: Sauté broccoli, spinach, or roasted butternut squash and mix into the cheese sauce.
  • Smoky Mac: Use smoked gouda or smoked cheddar in place of some of the regular cheese, and add a pinch of smoked paprika.
  • Gluten-Free: Use gluten-free pasta and a 1:1 gluten-free flour blend for the roux. Ensure your breadcrumbs are gluten-free.

Storage and Reheating

Store leftover mac and cheese in an airtight container in the refrigerator for up to 4 days. To reheat, place individual portions in the microwave for 1–2 minutes, stirring halfway. For a crispier result, reheat in a 350°F oven for 10–15 minutes, covered with foil to prevent drying. You can also freeze baked mac and cheese for up to 3 months. Thaw overnight in the refrigerator, then reheat at 350°F for 20–30 minutes, adding a splash of milk if it seems dry.

Frequently Asked Questions

Why is my mac and cheese dry after baking?

Dryness usually comes from overbaking or using too little sauce. Make sure your sauce is slightly looser than you think it should be—it will thicken as it bakes. Also, avoid baking longer than 25 minutes unless the dish was chilled.

Can I use pre-shredded cheese?

Yes, but the sauce may be less smooth because of the anti-caking starches. If you do use pre-shredded, add an extra 1/2 cup of milk to compensate for the thicker texture.

What temperature should the internal dish reach?

The mac and cheese is safe to eat when it reaches 165°F internally. Use an instant-read thermometer inserted into the center to check. This is especially important if you added meat or eggs.

Can I make this ahead of time?

Absolutely. Assemble the dish completely, cover, and refrigerate for up to 2 days. When ready to bake, add 10–15 minutes to the baking time. You may need to cover with foil for the first 20 minutes to prevent over-browning.

How do I prevent the sauce from curdling?

Curdling happens when the sauce is overheated or the milk is too cold when added. Always warm the milk before adding it to the roux, and keep the heat at medium, not high. Stir constantly until the cheese is melted.

Can I bake mac and cheese at 350°F instead?

Yes, you can bake at 350°F for 25–30 minutes. The lower temperature will take a bit longer but may produce a slightly creamier result. Just ensure the top is golden and the edges bubble.

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