Baked Macaroni and Cheese
Baked Macaroni and Cheese

There is a specific kind of comfort found in a dish that balances a rich, velvety cheese sauce with the gentle chew of cooked pasta. This Baked Macaroni and Cheese delivers exactly that: a golden, bubbling top layer that gives way to a creamy, savory interior. The flavor profile relies on a blend of sharp cheddar for depth and a touch of Gruyère for nuttiness, all bound together by a roux-based sauce that clings to every elbow. It is an ideal choice for a weeknight dinner when you need something hearty, for a potluck where it needs to hold up, or for a holiday gathering where a classic side dish is essential. The texture should be tender but not mushy, with a sauce that is thick enough to coat the back of a spoon but fluid enough to flow slightly when served.
For those looking to connect with more culinary inspiration, Follow Hailee Recipes on Pinterest for a wide collection of tested dishes.
Why This Recipe Works
This approach relies on a classic béchamel base rather than a quick stovetop mix of milk and cheese. Starting with a roux of butter and flour creates a stable emulsion that prevents the sauce from breaking or becoming grainy during the baking process. By cooking the pasta until it is just shy of al dente before combining it with the sauce, you ensure the noodles absorb liquid in the oven without turning into a mushy block. The addition of a small amount of mustard powder enhances the cheese flavor without making the dish taste spicy. Finally, a topping of buttered breadcrumbs or extra cheese provides a necessary textural contrast to the soft, creamy pasta underneath.
Ingredients
To make this dish for six people, you will need the following items. Ensure all ingredients are at room temperature before starting to help the sauce emulsify smoothly.
- 12 ounces (340g) elbow macaroni or cavatappi
- 4 tablespoons (57g) unsalted butter
- 1/3 cup (42g) all-purpose flour
- 3 cups (720ml) whole milk, warmed slightly
- 1 teaspoon Dijon mustard
- 1/2 teaspoon salt, plus more for pasta water
- 1/4 teaspoon black pepper
- 1/4 teaspoon garlic powder
- 1/4 teaspoon dry mustard powder
- 3 cups (340g) sharp cheddar cheese, freshly shredded
- 1 cup (115g) Gruyère cheese, freshly shredded
- 1/2 cup (50g) panko breadcrumbs
- 2 tablespoons (28g) unsalted butter, melted
Using pre-shredded cheese is not recommended for this recipe, as the anti-caking agents can prevent the sauce from melting smoothly. Shredding your own cheese from a block ensures a creamy, uniform texture.
How To Make Baked Macaroni and Cheese
- Prepare the Pasta and Oven: Preheat your oven to 375°F (190°C). Bring a large pot of salted water to a boil. Add the macaroni and cook for 2 minutes less than the package instructions indicate for al dente. The pasta will continue to cook in the oven, so it must remain slightly firm. Drain the pasta and set it aside in a large mixing bowl.
- Create the Roux: In a large Dutch oven or heavy-bottomed saucepan, melt the 4 tablespoons of butter over medium heat. Once the butter is foaming, whisk in the flour. Cook this mixture, stirring constantly, for about 2 minutes until it turns a pale golden color and smells slightly nutty. This step cooks out the raw flour taste and creates the thickening agent for your sauce.
- Make the Cheese Sauce: Slowly pour in the warm milk while whisking vigorously to prevent lumps from forming. Continue to cook and stir until the mixture thickens enough to coat the back of a spoon, which usually takes 5 to 7 minutes. Remove the pan from the heat and stir in the Dijon mustard, salt, black pepper, garlic powder, and dry mustard. Gradually add the shredded cheddar and Gruyère, stirring until the cheese is completely melted and the sauce is smooth.
- Combine and Assemble: Pour the cheese sauce over the drained pasta and stir gently until every noodle is evenly coated. Transfer the mixture into a greased 9×13 inch baking dish. In a small bowl, mix the panko breadcrumbs with the 2 tablespoons of melted butter. Sprinkle this mixture evenly over the top of the macaroni and cheese.
- Bake to Perfection: Place the dish in the center of the preheated oven. Bake for 20 to 25 minutes, or until the sauce is bubbling vigorously around the edges and the top is golden brown. If you prefer a darker crust, you can broil for the last 1 to 2 minutes, but watch closely to prevent burning. Remove the dish from the oven and let it rest for 10 minutes before serving. This resting period allows the sauce to thicken slightly, making it easier to serve.
Doneness And Troubleshooting
Visual cues are your best guide when baking this dish. The sauce should be bubbling actively around the corners of the pan, not just in the center. If the top browns too quickly before the interior is hot, cover the dish loosely with aluminum foil for the remainder of the baking time. The internal temperature of the casserole should reach at least 165°F (74°C) to ensure it is safe to eat and the cheese is fully melted.
If the macaroni and cheese comes out too dry, it likely means the pasta absorbed too much liquid or the sauce was too thick before baking. You can stir in a splash of warm milk or cream before serving to loosen the texture. Conversely, if the sauce seems runny, it may need a few more minutes in the oven to reduce, or it may require a longer resting time to set.
Substitutions And Variations
This recipe is adaptable to various dietary needs and flavor preferences. For a dairy-free version, you can substitute the butter and milk with plant-based alternatives, though the melting properties of the cheese may vary; look for dairy-free cheddar and Gruyère styles specifically designed for melting. To make the dish gluten-free, use a 1:1 gluten-free flour blend for the roux and ensure your pasta is certified gluten-free. While the breadcrumb topping is traditional, you can substitute it with crushed crackers, toasted cornflakes, or simply extra shredded cheese for a different crunch.
Adding vegetables is a great way to incorporate more nutrients. Sautéed spinach, steamed broccoli florets, or caramelized onions can be folded into the sauce before baking. Keep in mind that adding wet vegetables may release moisture during baking, so you might need to slightly reduce the milk by a quarter cup or increase the flour in the roux by a teaspoon to maintain the desired thickness.
Serving Suggestions
This dish pairs wonderfully with a crisp green salad dressed in a light vinaigrette to cut through the richness of the cheese. For a complete meal, serve it alongside grilled chicken, roasted pork chops, or a simple steak. A side of fresh fruit, such as apple slices or grapes, adds a refreshing contrast. If you are serving a larger group, this casserole can be doubled and baked in two pans, or you can prepare it ahead and bake it just before guests arrive.
Storage And Reheating
Leftovers can be stored in an airtight container in the refrigerator for up to 3 days. To reheat, place the portion in an oven-safe dish and cover with foil. Bake at 350°F (175°C) for 15 to 20 minutes, or until heated through. If the sauce has thickened too much during storage, stir in a small amount of milk before reheating. You can also freeze the unbaked casserole for up to 3 months. If freezing, assemble the dish but do not bake it. Cover tightly and freeze. When ready to cook, thaw overnight in the refrigerator and then bake as directed, adding 10 to 15 minutes to the cooking time.
Remember that the quality of your cheese makes the biggest difference in the final result. Taking the time to shred your own cheese and measure your ingredients carefully will yield a dish that is consistently creamy and delicious every time.

Baked Macaroni and Cheese
Ingredients
Method
- Preheat oven to 375°F (190°C). Boil salted water and cook macaroni for 2 minutes less than package instructions. Drain.
- Melt 4 tablespoons butter in a large pot over medium heat. Whisk in flour and cook for 2 minutes until golden.
- Slowly whisk in warm milk until thickened. Remove from heat and stir in mustard, salt, pepper, garlic powder, and dry mustard.
- Add shredded cheddar and Gruyère, stirring until melted and smooth. Pour over pasta and mix well.
- Transfer to a greased 9x13 inch baking dish. Top with panko mixed with 2 tablespoons melted butter. Bake for 20-25 minutes until bubbly and golden. Rest for 10 minutes before serving.
Notes
Make-ahead: Assemble the dish up to 24 hours in advance and refrigerate before baking. Add 10 minutes to the baking time if cooking from cold.
