The most common way baked macaroni goes wrong is pasta that turns gummy or mushy because it was boiled until fully tender before baking. The method that avoids it is simple: undercook the pasta by about 2 minutes, then let the sauce and oven finish the job. This gives you a creamy, firm-tender casserole with a golden top, perfect for a weeknight dinner or a potluck.
Pick the Right Pasta and Pan
Use a short, sturdy pasta shape like elbow macaroni, cavatappi, or shells. These hold sauce well and bake evenly. Avoid long thin shapes like spaghetti. You need about 8 oz (225 g) dry pasta for a 2-quart (2 L) baking dish, which serves 4 to 6. A 9×13-inch (23×33 cm) dish works for a double batch. If you use a deeper dish, increase baking time by 5 to 10 minutes and check for doneness at the center.
Boil the Pasta Less Than You Think
Boil the pasta in salted water for 2 minutes less than the package directs for al dente. For most elbows, that is about 6 to 7 minutes. The pasta will finish cooking in the oven, so it should still have a slight white core when you drain it. Do not rinse the pasta after draining; the starch helps the sauce cling.
Make a Sauce That Won’t Curdle or Separate
For a classic baked macaroni, make a béchamel-based cheese sauce. Melt 4 tbsp (55 g) butter in a saucepan over medium heat. Whisk in 4 tbsp (30 g) all-purpose flour and cook for 1 to 2 minutes, until it smells nutty. Slowly whisk in 2 cups (480 ml) whole milk, then 1 cup (240 ml) heavy cream if you want extra richness. Bring to a simmer and cook until thickened, about 3 to 4 minutes. Remove from heat and stir in 2 cups (200 g) shredded sharp cheddar and 1 cup (100 g) shredded Gruyère or Monterey Jack. Stir until smooth. If you skip the cream, use 3 cups (720 ml) milk total. For a lighter version, use 2% milk, but the sauce will be less creamy.
If the sauce looks grainy after adding cheese, it likely got too hot. Keep the heat low and stir constantly. Add cheese off the heat. If it still separates, whisk in 1 tbsp (15 ml) lemon juice or a teaspoon of Dijon mustard to help re-emulsify.
Assemble and Bake at the Right Temperature
- Preheat the oven to 375°F (190°C). Grease a 2-quart (2 L) baking dish with butter or nonstick spray.
- In a large bowl, combine the drained pasta and the cheese sauce. Stir until every piece is coated.
- Pour the mixture into the prepared dish. Smooth the top with a spatula.
- For a crunchy topping, mix 1 cup (100 g) breadcrumbs with 2 tbsp (30 g) melted butter and sprinkle over the top. You can also add 1/4 cup (25 g) grated Parmesan.
- Bake uncovered for 20 to 25 minutes, until the top is golden and the edges are bubbly. The internal temperature should reach 160°F (71°C) if you check with a food thermometer, which is the USDA FSIS safe minimum for egg dishes and casseroles with eggs. If you added no eggs, it is still safe to eat at any temperature above 140°F (60°C), but the 160°F mark ensures even heating.
- Let it rest for 5 minutes before serving. This allows the sauce to set and prevents it from running.
Use This Ratio for Any Batch Size
| Servings | Dry Pasta | Milk | Cheese | Baking Dish |
|---|---|---|---|---|
| 4 | 8 oz (225 g) | 2 cups (480 ml) | 3 cups (300 g) | 2 qt (2 L) |
| 6 | 12 oz (340 g) | 3 cups (720 ml) | 4.5 cups (450 g) | 3 qt (3 L) |
| 8 | 16 oz (450 g) | 4 cups (960 ml) | 6 cups (600 g) | 9×13 in (23×33 cm) |
For every 2 oz (55 g) of pasta, use about 1/2 cup (120 ml) milk and 3/4 cup (75 g) cheese. This ratio keeps the dish creamy without being soupy.
Fix the Three Mistakes That Ruin Baked Macaroni
Mushy Pasta
Overcooking the pasta before baking is the main cause. Undercook by 2 minutes. Also, do not cover the dish while baking; trapped steam turns the pasta soft.
Dry or Crumbly Casserole
Too little sauce or baking too long dries it out. Use the ratio above. If the top browns too fast, cover loosely with foil for the last 10 minutes. Bake only until bubbly, not until the top is dark brown.
Greasy or Separated Sauce
High heat breaks the cheese sauce. Keep the sauce on low heat and add cheese off the heat. Use freshly shredded cheese; pre-shredded bags contain anti-caking agents that can make the sauce grainy. If the dish looks oily after baking, the sauce broke from overheating.
Add Mix-Ins and Swaps Without Breaking the Method
You can add cooked protein or vegetables to the pasta before baking. Fold in 1 to 2 cups (150 to 250 g) of cooked chicken, crumbled bacon, sautéed mushrooms, or roasted broccoli. If you add watery vegetables like zucchini or tomatoes, sauté them first to remove excess moisture, or the casserole will be loose. For a spicy version, stir in 1 tsp (5 g) smoked paprika or 1/2 tsp (2 g) cayenne with the flour. For a richer flavor, replace 1 cup (240 ml) of milk with chicken broth, but reduce salt in the sauce.
Store and Reheat Without Drying Out
Refrigerate leftover baked macaroni within 2 hours. It keeps for 3 to 4 days in an airtight container. To reheat, add a splash of milk or cream, cover, and microwave in 30-second bursts, stirring between, until hot throughout. For the oven, reheat at 350°F (175°C) for 15 to 20 minutes, covered with foil. You can freeze baked macaroni for up to 3 months. Thaw overnight in the fridge, then reheat as above. The texture will be slightly softer after freezing, but it will still taste good.
Ingredients
- 8 oz (225 g) elbow macaroni or similar short pasta
- 4 tbsp (55 g) unsalted butter, plus more for the dish
- 4 tbsp (30 g) all-purpose flour
- 2 cups (480 ml) whole milk
- 1 cup (240 ml) heavy cream (or use 3 cups/720 ml milk total)
- 2 cups (200 g) shredded sharp cheddar
- 1 cup (100 g) shredded Gruyère or Monterey Jack
- 1 tsp (5 g) salt, plus more for pasta water
- 1/2 tsp (2 g) black pepper
- 1/4 tsp (1 g) ground nutmeg (optional)
- 1 cup (100 g) breadcrumbs (optional, for topping)
- 2 tbsp (30 g) melted butter (optional, for topping)
Instructions
- Preheat the oven to 375°F (190°C). Grease a 2-quart (2 L) baking dish.
- Bring a large pot of salted water to a boil. Add the pasta and cook for 2 minutes less than the package directs for al dente. Drain well; do not rinse.
- In a large saucepan over medium heat, melt the butter. Whisk in the flour and cook for 1 to 2 minutes, until golden and fragrant.
- Slowly whisk in the milk and cream. Bring to a simmer, whisking constantly, until thickened, about 3 to 4 minutes.
- Remove from heat. Stir in the cheddar and Gruyère until melted and smooth. Season with salt, pepper, and nutmeg if using.
- In a large bowl, combine the pasta and cheese sauce. Stir well.
- Pour into the prepared dish. If using breadcrumbs, mix with melted butter and sprinkle on top.
- Bake uncovered for 20 to 25 minutes, until bubbly and golden on top. If you check with a thermometer, the center should read 160°F (71°C) for food safety.
- Let rest for 5 minutes before serving.
Related
- Ground Turkey Macaroni Casserole Recipe
- How Long to Boil Macaroni Pasta
- How Long to Boil Pasta for Macaroni Salad
Safe minimum internal temperatures follow USDA FSIS; raw-fish guidance follows the U.S. FDA. See our food safety notes.
Spotted an error? Tell us and we will correct it (corrections policy).