How to Cook Baked Macaroni and Cheese
| ~6 min read | Mac and Cheese
Baked macaroni and cheese is pasta tossed in a cheese sauce, topped with more cheese or breadcrumbs, and baked until the top browns and the sauce bubbles. The result is creamy underneath and crisp on top. What it achieves is a casserole that holds together when spooned, feeds a crowd, and reheats well. Before you start, you need one essential piece of equipment: a large pot for boiling pasta, plus a baking dish roughly 9 by 13 inches or a 3-quart casserole. You also need a whisk, because the sauce is a roux-thickened white sauce (béchamel) into which cheese is melted. Read the whole recipe first: the pasta must be undercooked slightly, the sauce must be seasoned before baking, and the dish must rest before serving so it sets.
What You'll Need
- 12 ounces (340 g) elbow macaroni, or another short shape such as penne, cavatappi, or shells
- 4 tablespoons (56 g) unsalted butter
- 1/4 cup (30 g) all-purpose flour
- 3 cups (720 ml) whole milk, warmed slightly
- 3 cups (about 340 g) shredded cheese: a mix of sharp cheddar and a melting cheese such as Gruyère, Monterey Jack, or mozzarella works well
- 1 teaspoon salt, plus more for the pasta water
- 1/2 teaspoon dry mustard powder (optional but helps the cheese flavor)
- 1/4 teaspoon black pepper
- 1 cup (about 60 g) fresh breadcrumbs or panko, tossed with 2 tablespoons melted butter (optional topping)
- Large pot, colander, whisk, 3-quart baking dish, food thermometer
Step-by-Step
- Heat the oven to 375°F (190°C). Set a rack in the middle. Butter the baking dish lightly so the pasta does not stick.
- Boil the pasta in well-salted water. Bring a large pot of water to a rolling boil and add about 1 tablespoon of salt per 4 quarts of water. Add the 12 ounces of macaroni and cook 2 minutes less than the package directions say, so the pasta is firm and slightly underdone. It will finish cooking in the oven and absorb sauce without turning mushy. Before draining, scoop out and save about 1/2 cup of the starchy pasta water; you may need it to loosen the sauce later.
- Drain the pasta and set it aside. Do not rinse it. The starch on the surface helps the sauce cling.
- Make the roux. In the same pot (wiped dry) or a wide saucepan, melt the 4 tablespoons of butter over medium heat. Whisk in the 1/4 cup of flour and cook, whisking constantly, for 1 to 2 minutes until it smells toasty but has not browned. This cooks out the raw flour taste.
- Add the milk gradually. Pour in the warm milk in a slow stream while whisking, so no lumps form. Add the salt, pepper, and mustard powder. Cook over medium heat, whisking often, until the sauce thickens enough to coat the back of a spoon, about 5 to 7 minutes. Do not let it boil hard.
- Melt in the cheese off the heat. Remove the pot from the burner and stir in the shredded cheese a handful at a time until smooth. Taste and adjust salt. If the sauce looks thick, stir in a splash of the reserved pasta water.
- Combine pasta and sauce. Fold the drained macaroni into the cheese sauce until every piece is coated. Pour the mixture into the prepared baking dish and level the top.
- Add the topping. Scatter the buttered breadcrumbs over the surface, or add an extra 1/2 cup of shredded cheese. Either gives a browned crust.
- Bake uncovered for 25 to 30 minutes. The sauce should bubble at the edges and the top should be golden brown. If the top browns too fast, tent it loosely with foil.
- Check the temperature and rest before serving. A casserole like this should reach 165°F (74°C) in the center; check with a food thermometer rather than judging by the color of the top. Let the dish rest 10 minutes before spooning, so the sauce thickens and portions hold together.
- Store leftovers properly. Refrigerate within 2 hours (1 hour if the room is above 90°F) in a covered container at 40°F (4°C) or below. Eat within 3 to 4 days. Reheat portions to 165°F (74°C), covered, in a 350°F oven or in the microwave with a splash of milk to loosen the sauce. Freeze leftovers at 0°F (-18°C) for up to 2 months; thaw in the fridge overnight, never on the counter.
Common Mistakes
The most frequent problem is overcooked pasta. Boiling it to full doneness before baking means it turns soft and collapses in the oven, so pull it early. The second is a grainy sauce: cheese added over high heat or a sauce that boils after the cheese goes in can separate. Keep the heat low and add cheese off the burner. Another mistake is under-seasoning; the sauce should taste slightly salty before it is combined with the pasta, because the pasta dilutes it. Skipping the rest time is also common: cutting in immediately gives a runny, soupy portion. Finally, using only a hard aged cheese like Parmesan gives a dry, stringy result, so pair it with a melting cheese.
Tips
Shred cheese from a block rather than using pre-shredded bags, which are coated with anti-caking starch and melt less smoothly. Warm the milk before adding it to the roux; cold milk slows the thickening and can cause lumps. For a sharper flavor, use extra-sharp cheddar and add a pinch of cayenne. If you want a deeper crust, broil the finished dish for 1 to 2 minutes, watching constantly so the crumbs do not burn. To feed a crowd, the recipe doubles cleanly in a 4-quart dish, but add 5 to 10 minutes of baking time. For a make-ahead version, assemble the dish, cool it, cover, and refrigerate up to 24 hours; add 10 minutes to the bake time and check the center reaches 165°F (74°C).
Troubleshooting
Sauce is grainy or separated: the heat was too high or the cheese was added while boiling. Start the sauce again gently, or stir in a tablespoon of warm milk and a slice of processed cheese to help it re-emulsify. Sauce is too thick: stir in reserved pasta water or milk a tablespoon at a time. Too thin after baking: the pasta was under-rested or the sauce was not thick enough before baking; next time cook the béchamel a minute longer. Top is burning before the center is hot: cover with foil and lower the oven to 350°F. Pasta is dry: the dish was baked too long uncovered; tent with foil for the last 10 minutes. Lacks flavor: add more salt to the pasta water and the sauce, plus mustard powder or a dash of hot sauce.
Frequently Asked Questions
Can I use pre-shredded cheese?
Yes, but it melts less smoothly because of the anti-caking coating. Block cheese you shred yourself gives the best texture.
Why is my baked mac and cheese dry?
Usually too little sauce, overbaking, or pasta cooked too long. Use the full 3 cups of milk, bake just until bubbling, and undercook the pasta by 2 minutes.
Can I make it ahead of time?
Yes. Assemble, cover, and refrigerate up to 24 hours, then bake with about 10 extra minutes, checking the center reaches 165°F (74°C).
How long do leftovers last?
Covered in the fridge at 40°F (4°C) or below, 3 to 4 days. Reheat to 165°F (74°C).
Can I freeze baked macaroni and cheese?
Yes, at 0°F (-18°C) for up to 2 months. Thaw in the fridge overnight and reheat covered to 165°F (74°C).
What pasta shape works best?
Elbows are classic, but cavatappi, penne, shells, and rotini all hold sauce well. Cook any shape to the same slightly underdone stage.