Some dishes just need to be made from scratch, and baked mac and cheese is at the top of that list. This version starts with a simple butter and flour roux, turns it into a silky cheese sauce with sharp cheddar and nutty Gruyere, and finishes in the oven under a crisp, buttery panko topping. It is creamy in the middle, crunchy on top and never dry or greasy.
Below I walk through why this homemade baked macaroni and cheese works, the best cheeses to use, step-by-step directions, troubleshooting tips, easy variations, how to make it ahead for holidays and how to store leftovers. The printable recipe card with exact measurements and estimated nutrition is at the bottom of the page.

Why This Baked Mac and Cheese Recipe Works
After years of testing in my own kitchen, I found that great baked mac and cheese comes down to a handful of details. Skip them and you get a dry, clumpy casserole. Follow them and you get a bubbling, spoonable dish with real cheese flavor.
- A classic roux sauce. Butter and flour thicken the milk into a stable base that will not break in the oven.
- Undercooked pasta. The macaroni boils for 2 minutes less than the package says, since it finishes cooking in the sauce as it bakes.
- Two kinds of cheese. Sharp cheddar brings tang and Gruyere brings creaminess and a nutty depth.
- A sauce that is a little loose. The pasta drinks up liquid in the oven, so the sauce should look slightly thinner than you expect.
- A crunchy topping. Panko tossed in melted butter gives you the golden crust that makes baked mac and cheese different from stovetop.
The result is the kind of side dish or main that disappears from the table first. It works for a weeknight dinner, a potluck or the center of your holiday spread.
Ingredients for Homemade Baked Macaroni and Cheese
You will need only basic pantry and dairy items. A few small choices make a big difference in the final texture.
- Elbow macaroni: One pound (450 g). Cavatappi, shells and cellentani also work because they hold the sauce.
- Whole milk: Four cups (960 ml), warmed slightly so the sauce comes together smoothly.
- Butter and all-purpose flour: Make the roux that thickens the sauce.
- Sharp cheddar cheese: Twelve ounces (340 g), freshly shredded. Sharp cheddar gives that classic tang.
- Gruyere cheese: Four ounces (115 g). It melts beautifully. Monterey Jack or fontina are good substitutes.
- Seasonings: Dry mustard, smoked paprika, garlic powder, black pepper and a pinch of cayenne boost the cheese flavor without making it taste spicy.
- Panko breadcrumbs: Toasted in butter for a light, crispy topping.
If you want an extra-creamy texture, replace 1 cup of the milk with half-and-half or evaporated milk. I use whole milk most of the time since it gives plenty of richness, but either swap works well.
Choosing the Best Cheese Blend
Cheese is the star, so it is worth a little thought. The goal is a balance of flavor and melt. Sharp cheddar has the bold taste everyone expects but can turn slightly oily on its own, while softer cheeses melt into velvet but taste mild.
| Cheese | What it adds | Good to know |
|---|---|---|
| Sharp cheddar | Tangy, classic mac and cheese flavor | Choose aged white or yellow cheddar from a block |
| Gruyere | Nutty, creamy melt | A little goes a long way |
| Monterey Jack | Mild, super smooth melting | Great budget-friendly stand-in for Gruyere |
| Smoked gouda | Deep smoky flavor | Use in place of up to half the cheddar |
| Parmesan | Salty, savory depth | Best in the topping or as a small addition |
I avoid extra-sharp cheeses aged more than two years, because they tend to be crumbly and do not melt as evenly. Whatever you choose, let the shredded cheese sit on the counter for 15 minutes while you cook the pasta, since cheese at room temperature melts more gently and smoothly into the hot sauce.
How to Make Baked Mac and Cheese
The whole recipe takes about an hour from start to finish. Here is the overview, and the exact amounts are in the recipe card below.
- Prep the oven and dish. Heat the oven to 350°F (175°C) and butter a 9×13-inch baking dish.
- Boil the pasta. Cook the macaroni in well-salted water for 2 minutes less than the package directions. It should still be quite firm. Drain well and set aside.
- Make the roux. Melt the butter in a large pot over medium heat, whisk in the flour and seasonings, and cook for 1 minute until bubbly and pale gold.
- Build the sauce. Slowly whisk in the warm milk, a little at a time. Simmer for 4 to 5 minutes, stirring often, until the sauce coats the back of a spoon.
- Melt in the cheese. Remove the pot from the heat and stir in about three quarters of the cheese by handfuls until smooth. Season with salt to taste.
- Combine and top. Fold the pasta into the sauce, pour it into the dish, and sprinkle with the remaining cheese. Toss the panko with melted butter and scatter it over the top.
- Bake. Bake uncovered for 25 to 30 minutes until bubbling at the edges and golden on top. Let it rest for 10 minutes before serving so the sauce thickens.

For an even browner top, broil the dish for 1 to 2 minutes at the very end. Stay close to the oven, since panko can go from golden to burnt very quickly.
Tips for the Creamiest Baked Mac and Cheese
- Take the pot off the heat before adding cheese. Cheese that gets too hot turns grainy and oily.
- Warm the milk. Cold milk can cause lumps when it meets the roux.
- Do not overcook the pasta. Mushy noodles are the number one cause of a disappointing casserole.
- Season the sauce well. Pasta absorbs a lot of salt, so taste the sauce before combining and make it slightly bolder than you think you need.
- Let it rest. Ten minutes out of the oven makes the difference between a runny scoop and a creamy, sliceable one.
If you love a good cheesy pasta bake, you might also like my cheesy chicken pasta casserole for dinner, or the ground beef noodle casserole when you need something more filling.
Easy Baked Mac and Cheese Variations
The basic method is endlessly adaptable. Here are some of my favorite twists.
- Bacon and jalapeno: Stir in 6 slices of crumbled bacon and a diced, seeded jalapeno.
- Smoked gouda: Replace the Gruyere with smoked gouda for a deep, campfire-style flavor.
- Buffalo chicken: Add 2 cups of shredded cooked chicken tossed with buffalo sauce.
- Veggie boost: Fold in steamed broccoli florets or a cup of thawed peas.
- Extra crunchy topping: Mix crushed buttery crackers or crushed pretzels into the panko.
- Individual portions: Divide the mixture among eight ramekins and bake for 18 to 20 minutes.
Serving Baked Mac and Cheese for the Holidays
Baked mac and cheese is a fixture at many holiday tables, and it is easy to plan because you can assemble it a day ahead. On Thanksgiving, Thursday, November 26, 2026, I pair it with garlic mashed potatoes and classic green bean casserole, since the oven can handle both while the turkey rests.
For a weeknight dinner, it is wonderful next to something smoky, like crockpot pulled pork, and a simple green salad. Browse more side dish recipes to round out the menu.
Common Mistakes and How to Fix Them
| Problem | Likely cause | How to fix it |
|---|---|---|
| Dry mac and cheese | Sauce too thick or pasta overcooked | Keep the sauce loose and boil the pasta 2 minutes short |
| Grainy sauce | Cheese added over high heat or pre-shredded cheese | Remove from heat and shred cheese from a block |
| Greasy top | Low-quality or overheated cheese | Use real sharp cheddar and stir cheese in off the heat |
| Lumpy sauce | Cold milk or milk added too fast | Warm the milk and whisk it in gradually |
| Soggy topping | Breadcrumbs not coated in butter or dish covered | Toss panko in butter and bake uncovered |
| Bland flavor | Not enough salt or mustard | Season the sauce to taste before baking |
Make Ahead, Storage and Reheating
To make it ahead, assemble the casserole without the topping, cover it tightly and refrigerate for up to 24 hours. Add the buttered panko just before baking, and add 5 to 10 minutes to the baking time since it starts cold. Cooked leftovers keep in an airtight container in the refrigerator for 3 to 4 days.
Dairy-based dishes should not sit out for long. The USDA leftovers and food safety guidance advises refrigerating perishable food within 2 hours and reheating leftovers to 165°F (74°C).
To reheat, spoon a portion into a dish, add a splash of milk, cover and warm at 350°F (175°C) for 15 to 20 minutes, or microwave in 30-second bursts, stirring between each. To freeze, wrap the cooled, unbaked casserole well and freeze for up to 2 months, then thaw in the refrigerator overnight and bake as directed.
Frequently Asked Questions
What cheese is best for baked mac and cheese?
A mix of sharp cheddar for flavor and a good melting cheese like Gruyere, Monterey Jack or fontina gives the best balance of tang and creaminess.
Do I need to boil the pasta first?
Yes. Boil it for 2 minutes less than the package directions, since it keeps cooking and absorbing sauce in the oven.
Why is my baked mac and cheese dry?
The pasta absorbed too much sauce. Make the sauce a little looser than seems right, and avoid overbaking past the point the edges bubble and the top turns golden.
Can I make baked mac and cheese ahead of time?
Yes. Assemble it without the topping up to 24 hours ahead, refrigerate, then add the panko and bake a little longer.
Can I use evaporated milk instead of whole milk?
Yes, evaporated milk makes a very smooth sauce. Use it in place of part or all of the milk, and taste before adding extra salt.
Ready to cook? Here is the full printable baked mac and cheese recipe with exact measurements and estimated nutrition.

Baked Mac and Cheese
Ingredients
Method
- Preheat the oven to 350°F (175°C) and butter a 9×13-inch baking dish.
- Boil the macaroni in well-salted water for 2 minutes less than the package directions. Drain and set aside.
- Melt 4 tablespoons butter in a large pot over medium heat. Whisk in the flour, mustard, paprika, garlic powder and cayenne and cook for 1 minute.
- Gradually whisk in the warm milk and simmer for 4 to 5 minutes, stirring often, until the sauce thickly coats the back of a spoon.
- Remove from the heat. Stir in three quarters of the cheddar and Gruyere until smooth, then stir in the salt.
- Fold the macaroni into the sauce and pour into the prepared dish. Top with the remaining cheese.
- Toss the panko with the melted butter and Parmesan, if using, and sprinkle over the top.
- Bake uncovered for 25 to 30 minutes until bubbly and golden. Rest for 10 minutes before serving.
Notes
I hope this baked mac and cheese brings a little extra comfort to your table. If you make it, please leave a comment and a star rating below and tell me which cheeses you used. Happy cooking, friends!
Free email bonus
30-Minute Meals
Loved this recipe? Get my collection of fast, family-favorite dinners, plus new seasonal recipes straight to your inbox.
