How Long to Bake Mac and Cheese (and Why It Matters)
In this article
The ideal bake time for mac and cheese is 20–25 minutes in a 375°F (190°C) oven, but the exact time depends on whether you are baking a freshly assembled dish or a chilled one. This recipe delivers a creamy, rich mac and cheese with a golden, crispy topping—without drying out the pasta or breaking the sauce. The key is balancing the heat so the cheese sauce stays smooth while the top browns beautifully.
Ingredients
- 1 lb (450 g) elbow macaroni (or similar short pasta)
- 4 tbsp (60 g) unsalted butter, plus more for greasing
- 1/4 cup (30 g) all-purpose flour
- 3 cups (720 ml) whole milk, warmed
- 1 tsp salt (plus more for pasta water)
- 1/2 tsp black pepper
- 1/2 tsp garlic powder (optional)
- 1/2 tsp mustard powder (optional, enhances cheese flavor)
- 3 cups (340 g) shredded sharp cheddar cheese
- 1 cup (100 g) shredded Gruyère or Monterey Jack cheese
- 1 cup (90 g) panko breadcrumbs
- 2 tbsp (30 g) melted butter (for topping)
Instructions
- Preheat your oven to 375°F (190°C). Grease a 9x13-inch (23x33 cm) baking dish with butter.
- Bring a large pot of salted water to a boil. Cook the macaroni for 1–2 minutes less than the package directions (al dente). Drain and set aside.
- In a large saucepan, melt 4 tbsp 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).
- Slowly pour in the warm milk while whisking continuously. Bring to a gentle simmer, then reduce heat to low. Cook for 3–5 minutes, stirring often, until the sauce thickens enough to coat the back of a spoon.
- Remove the saucepan from heat. Stir in the salt, pepper, garlic powder, and mustard powder if using. Add the shredded cheeses in handfuls, stirring until each addition melts completely before adding more. The sauce should be smooth and glossy.
- Add the drained macaroni to the cheese sauce and stir until every piece is coated.
- Pour the mixture into the prepared baking dish and spread evenly.
- In a small bowl, mix the panko breadcrumbs with the 2 tbsp melted butter. Sprinkle evenly over the top.
- Bake uncovered for 20–25 minutes, or until the sauce is bubbling around the edges and the topping is golden brown. If you want a deeper crust, broil for 1–2 minutes at the end, watching closely to prevent burning.
- Let the dish rest for 5–10 minutes before serving. This allows the sauce to set slightly, making it easier to serve and preventing it from being runny.
Tips
- Don't overcook the pasta: Undercook the macaroni by 1–2 minutes because it will continue to cook in the oven. Overcooked pasta turns mushy.
- Use block cheese, not pre-shredded: Pre-shredded cheese contains anti-caking agents that can make the sauce grainy. Shred your own for a smoother result.
- Warm the milk: Adding cold milk to a hot roux can cause lumps. Warm the milk in the microwave or a small pot before adding.
- Chilled mac and cheese needs more time: If you assemble the dish ahead and refrigerate it, bake for 30–35 minutes, covering with foil for the first 15 minutes to heat through, then uncover to brown.
Serving Suggestions
Serve this mac and cheese as a main dish with a side salad or steamed broccoli for a complete meal. It also works well as a hearty side alongside grilled chicken, roasted pork, or a simple green vegetable. For a classic comfort-food dinner, pair it with BBQ ribs or a juicy burger.
Variations
- Add protein: Stir in 1–2 cups of cooked, crumbled bacon, diced ham, or shredded chicken before baking.
- Spice it up: Add 1–2 finely chopped jalapeños or a pinch of cayenne pepper to the sauce for a kick.
- Change the cheese: Substitute smoked gouda, fontina, or pepper jack for the Gruyère or part of the cheddar.
- Add vegetables: Fold in sautéed mushrooms, spinach, or roasted red peppers for extra flavor and nutrition.
- Make it gluten-free: Use gluten-free pasta and substitute the flour with a 1:1 gluten-free flour blend. Use gluten-free breadcrumbs for the topping.
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, or reheat in a 350°F (175°C) oven for 10–15 minutes until heated through. Add a splash of milk before reheating to restore creaminess. You can also freeze the baked mac and cheese for up to 3 months; thaw overnight in the refrigerator before reheating.
Frequently Asked Questions
Why does my mac and cheese turn out dry?
Dryness usually comes from overbaking or using too little sauce. Stick to the 20–25 minute bake time, and make sure your sauce is slightly thinner than you think it should be before baking—it will thicken as it cools. Also, avoid using extra-lean milk or too much flour in the roux.
Can I bake mac and cheese at a higher temperature to save time?
You can, but it's risky. Baking at 400°F (200°C) for 15–18 minutes might work, but the top can brown too quickly while the center stays cold. Stick to 375°F for even cooking. If you're in a hurry, skip the baking step and just broil the top for 2–3 minutes after mixing the ingredients.
Should I cover the dish while baking?
No, leave it uncovered to get a crispy topping. Covering traps steam and makes the topping soggy. If the topping starts to brown too fast, you can tent loosely with foil for the last 5 minutes.
Can I make this mac and cheese ahead of time?
Yes. Assemble the dish completely, cover, and refrigerate for up to 24 hours before baking. Add 10–15 minutes to the bake time, and cover with foil for the first 15 minutes to ensure the center heats through without burning the top.
What's the best cheese for mac and cheese?
Sharp cheddar is the classic choice because it melts well and has strong flavor. Mixing it with a second cheese like Gruyère, Monterey Jack, or American adds creaminess. Avoid cheeses that don't melt smoothly, like feta or goat cheese, unless you want a crumbly texture.
Can I use non-dairy milk and cheese?
Yes, but the texture will differ. Use unsweetened almond or oat milk and a dairy-free cheese that melts well (look for brands labeled "melting" or "shredded"). The sauce may be less creamy, so consider adding a tablespoon of nutritional yeast for flavor or a little extra butter.