Mac and cheese is a beloved comfort dish made from tender pasta bound in a rich, creamy cheese sauce. Getting the timing right ensures perfectly cooked pasta and a sauce that’s smooth, not grainy or separated. This guide breaks down exactly how long to cook mac and cheese—whether baked or stovetop—so you get consistent, delicious results every time.
Ingredients
- 8 ounces (225g) elbow macaroni or small pasta
- 3 tablespoons (45g) unsalted butter
- 3 tablespoons (24g) all-purpose flour
- 2 cups (480ml) whole milk, warmed
- 1/2 teaspoon salt, or to taste
- 1/4 teaspoon black pepper
- 1/4 teaspoon garlic powder (optional)
- 1/4 teaspoon paprika (optional)
- 2 cups (225g) shredded sharp cheddar cheese
- 1/2 cup (55g) shredded Gruyère or mozzarella (optional, for creaminess)
- 1/2 cup (50g) grated Parmesan cheese (optional, for topping)
- 1/2 cup panko breadcrumbs (optional, for topping)
Instructions
- Preheat your oven to 375°F (190°C) if making baked mac and cheese. For stovetop-only, skip preheating.
- Bring a large pot of salted water to a boil. Add the elbow macaroni and cook for 7–8 minutes, or until al dente (firm to the bite). Do not overcook, as pasta will continue to absorb liquid in the sauce. Drain and set aside.
- In a medium saucepan, melt the butter over medium heat. Add the flour and whisk constantly for 1–2 minutes to form a roux. The mixture should be bubbly and golden but not browned.
- Gradually pour in the warm milk, whisking continuously to prevent lumps. Cook for 4–5 minutes, until the mixture thickens enough to coat the back of a spoon.
- Reduce heat to low. Stir in salt, pepper, garlic powder, and paprika. Add the shredded cheddar and optional Gruyère, a handful at a time, stirring until each addition is fully melted before adding more. Avoid high heat to prevent the sauce from breaking.
- Fold the cooked pasta into the cheese sauce until evenly coated. Taste and adjust seasoning if needed.
- For stovetop mac and cheese: Serve immediately while hot and creamy.
- For baked mac and cheese: Transfer the mixture to a greased 2-quart baking dish. In a small bowl, mix panko breadcrumbs and Parmesan (if using), then sprinkle evenly over the top.
- Bake uncovered for 20–25 minutes, until the top is golden and the sauce is bubbling around the edges. Let rest 5–10 minutes before serving for cleaner cuts and safer eating temperature.
Tips
- Use freshly shredded cheese—pre-shredded contains anti-caking agents that can make the sauce grainy.
- Warm the milk before adding it to the roux to prevent lumps and speed thickening.
- Undercook pasta by 1 minute if baking—extra time in the oven will finish cooking it.
- Don’t boil the cheese sauce—keep heat low when melting cheese to avoid separation.
Serving Suggestions
Serve mac and cheese hot as a standalone dish or alongside grilled chicken, roasted vegetables, or a crisp green salad. It pairs well with a light vinaigrette to cut the richness. For a comforting meal, add crispy bacon bits or sautéed onions on top just before serving.Variations
- Spicy Mac: Add 1/4–1/2 teaspoon cayenne pepper or diced jalapeños to the sauce.
- Loaded Baked Mac: Mix in cooked, crumbled bacon, diced ham, or sautéed mushrooms before baking.
- Vegetable-Boosted: Stir in steamed broccoli, peas, or roasted cauliflower florets with the pasta.
- Gluten-Free: Use gluten-free pasta and substitute cornstarch or gluten-free flour for the all-purpose flour in a 1:1 ratio.