Baked Mac and Cheese
- By Jennifer Segal
- Updated September 13, 2026
- 479 Comments
- Leave a Review
This post may contain affiliate links. Read my full disclosure policy.
This baked mac and cheese recipe has a creamy three-cheese sauce and a crisp, golden topping. It’s loved by kids and grown-ups alike.

This baked mac and cheese is everything the classic should be: ultra-creamy and cheesy on the inside, with a crisp, golden panko topping. The trick to getting it just right comes down to two things: plenty of cheese sauce, made with extra-sharp cheddar, Gruyère, and Parmigiano-Reggiano for more depth of flavor, and slightly undercooked pasta, which finishes cooking and absorbs some of the sauce in the oven.
But what really sets this mac and cheese recipe apart is the crispy panko and herb topping, inspired by a “fancy” mac and cheese I once enjoyed at a restaurant. Rather than relying on the oven to brown the breadcrumbs, I toast them in butter first, which guarantees a crunchy, golden crust.
This dish just as at home on a holiday table as it is for a cozy family dinner. And for easy entertaining, it can be assembled ahead of time and baked just before serving.
“I took it to a dinner party last night and it was an absolute hit with all of the adults and children. Gone in minutes and I doubled the recipe!”
What You’ll Need To Make Homemade Mac and Cheese

- Macaroni, cavatappi, or penne pasta: Elbow macaroni is traditional, but any short pasta with plenty of nooks and crannies to catch the creamy cheese sauce works well. Cavatappi is another favorite because its ridges and twists hold onto the sauce beautifully.
- Unsalted butter: Forms the base of the roux and is also used to toast the panko topping. Using unsalted butter gives you better control over the seasoning.
- All-purpose flour: Combines with the butter to make a roux, which thickens the milk into a smooth béchamel and gives the cheese sauce its creamy consistency.
- Whole milk: I prefer whole milk here for the richest, creamiest sauce. Low-fat milk will work, but the finished sauce won’t be quite as rich.
- Gruyère, extra-sharp Cheddar, and Parmigiano-Reggiano: Using three cheeses instead of one gives the sauce more depth of flavor. Gruyère is nutty and melts beautifully, extra-sharp Cheddar adds that classic mac-and-cheese flavor, and Parmigiano-Reggiano brings a salty, savory note. For the smoothest sauce, grate the cheeses yourself rather than using pre-shredded cheese.
- Nutmeg: Just a pinch is traditional in béchamel-based sauces; you won’t really taste it, but it adds warmth and brings out the flavor of the cheese.
- Panko breadcrumbs: Their light, flaky texture makes a much crispier topping than ordinary breadcrumbs. Toasting them in butter before baking guarantees a golden, crunchy crust.
- Herbes de Provence or dried thyme: The herbs give the buttery panko topping a savory, aromatic note.
- Jump to the printable recipe for precise measurements
How To Make Baked Mac And Cheese
Boil the noodles: Cook the pasta until it is just shy of al dente. It should still have a little firmness in the center, since it will continue to cook in the oven and absorb some of the cheese sauce as it bakes. Drain well and set aside.

Make the cheese sauce: Start by cooking the butter and flour together to form a smooth roux. Gradually whisk in the milk, and cook until it thickens into a creamy sauce. Whisk in the Gruyère, Cheddar, and Parmigiano-Reggiano along with the seasonings. Once the cheeses have melted, the sauce should be silky, smooth, and thick enough to coat a spoon. This cheese-enriched béchamel is known as a Mornay sauce.




Assemble: Stir the cooked pasta into the cheese sauce until every piece is well coated. The mixture will look very loose and saucy at this point—almost excessively so—but that is exactly what you want. The pasta will absorb some of the sauce as it bakes, which is what keeps the finished mac and cheese creamy rather than dry. Transfer the mixture to the baking dish and spread it into an even layer.


Prepare the crispy topping: Toast the panko in butter until it begins to turn golden, then stir in the herbs. Giving the breadcrumbs a head start on the stovetop ensures they become deeply golden and crisp in the oven without having to overbake the mac and cheese. Scatter the toasted panko and more Parmesan cheese evenly over the pasta.


Bake: Bake the mac and cheese until the sauce is bubbling around the edges and the topping is crisp and golden. Let it rest briefly before serving so the sauce can settle slightly while remaining creamy. Enjoy!

What To Serve with Mac And Cheese
Baked mac and cheese can be served as a main dish with a simple green salad or roasted vegetables, or as a side with comfort-food favorites like meatloaf, barbecue chicken, pulled pork, or ribs. It’s also a natural fit for holiday meals alongside ham or turkey.
Video Tutorial
More Cheesy Pasta Recipes
Baked Mac and Cheese
Ingredients
- 16 oz macaroni, cavatappi or penne pasta
- ½ cup (1 stick) unsalted butter, divided, plus more for greasing the pan
- ½ cup all-purpose flour
- 5 cups whole milk
- 12 oz Gruyere, shredded (about 4 cups)
- 8 oz extra-sharp Cheddar, shredded (about 2 cups)
- ⅔ cup grated Parmigiano-Reggiano
- 1 teaspoon salt, plus more for the pasta water
- ½ teaspoon freshly ground black pepper
- ¼ teaspoon ground nutmeg
- 1 cup panko breadcrumbs
- 1 teaspoon herbes de Provence or dried thyme
Instructions
- Preheat the oven to 375°F (190°C) and set an oven rack in the middle position. Grease a 9 x 13-in (23 x 33-cm) baking dish with butter.
- Bring a large pot of salted water to a boil. Add the pasta and cook until al dente, or just slightly underdone. (It will continue to cook in the oven so you don't want it fully cooked.) Drain the pasta and rinse it with cold water.
- Meanwhile, melt 6 tablespoons (84 g) of the butter in a medium pot over low heat. Add the flour and cook for 2 minutes, stirring with a whisk. While whisking, gradually add the milk. Bring to a boil, then reduce the heat to low and cook, uncovered, for a few minutes more, until thickened and smooth. Off the heat, whisk in the Gruyere, Cheddar, ½ cup (50 g) of the Parmigiano-Reggiano, salt, pepper, and nutmeg. (If the cheese doesn't fully melt off the heat, it's okay to place the pan back over low heat, but do not let the sauce boil.) Add the cooked pasta and stir well. It will be very soupy; that's good. Pour into the prepared baking dish and set aside.
- In a small skillet over medium heat, melt the remaining 2 tablespoons butter. Add the panko and cook, stirring often, until golden brown. Stir in the herbes de Provence or thyme. Sprinkle the toasted panko mixture over the pasta and cheese sauce, followed by the remaining Parmigiano-Reggiano (about 2½ tablespoons). Bake for 30 to 35 minutes, or until bubbly and golden brown.
Notes
- To reheat leftovers, cover with aluminum foil and warm in a 300°F (150°C) oven. Do not microwave.
- Make-Ahead/Freezing Instructions: The mac and cheese can be assembled up to 1 day ahead of time and refrigerated, or frozen unbaked for up to 3 months. To bake, thaw it in the refrigerator for 24 hours, then follow the baking instructions in the recipe.
Nutrition Information
This website is written and produced for informational purposes only. I am not a certified nutritionist and the nutritional data on this site has not been evaluated or approved by a nutritionist or the Food and Drug Administration. Nutritional information is offered as a courtesy and should not be construed as a guarantee. The data is calculated through an online nutritional calculator, Edamam.com. Although I do my best to provide accurate nutritional information, these figures should be considered estimates only. Varying factors such as product types or brands purchased, natural fluctuations in fresh produce, and the way ingredients are processed change the effective nutritional information in any given recipe. Furthermore, different online calculators provide different results depending on their own nutrition fact sources and algorithms. To obtain the most accurate nutritional information in a given recipe, you should calculate the nutritional information with the actual ingredients used in your recipe, using your preferred nutrition calculator.
Add a Comment Cancel reply
This site uses Akismet to reduce spam. Learn how your comment data is processed.





Hi Jenn,
I love all of the recipes I have tried from your website and cookbook. I would love to make this as one of the dishes for Christmas Eve, feast of the seven fishes. Could I just add cooked lobster meat to the recipe to make it Lobster Mac and Cheese?
Hi Jane, so glad you like the recipes! I’ve never added lobster to this mac and cheese, but it sounds great! I’d stir some lobster into the pasta/cheese mixture before pouring it into the baking dish. Hope everyone enjoys!
Could I replace the cheddar with sheep/goat cheese or just use more gruyere and Parmesan?
Thank you!
Hi Sharon, I’d use more Gruyère.
Thanks so much, Jenn! I love Gruyère so this is great!
I’ve made this three times, and every time it is delicious and creamy before hitting the oven, but the sauce splits during baking. Any ideas for what might be going wrong?
Hi Katie, I’m sorry you’re having a problem with this! Are you grating the cheeses yourself or using pre-shredded cheese? Pre-shredded cheese can sometimes keep the sauce from staying smooth. If you’re grating your own, I wonder if your oven may be running a little hot or the mac and cheese is baking a bit too long—once the sauce gets too hot, the cheese can separate and become oily or grainy.
Hi Jen! If I want to make ahead and freeze this dish, do you recommend waiting to add the breadcrumbs on top until right before baking or can I add them before I freeze it?
You can add the breadcrumbs before freezing it. 😊
Can you make it without the panko topping
Sure. If you omit it, you don’t need to put it in the oven (or you can sprinkle additional cheese on top and pop it in the oven for a few minutes).
This is by far the best Mac and cheese recipe! We’ve made it for years and constantly are asked for the recipe. Gruyère is one of our favorite cheeses. Be sure to grate your own cheese as it tastes so much better than pre grated cheese.
I’ve been making all your recipes for years -love them all! I want to make this a couple hours ahead to bring to a BBQ potluck, how can I keep it warm??
So glad you like the recipes! I’d bake the mac and cheese right before leaving your house, wrap the baking dish in foil, and stow it in an insulated food carrier or cooler lined with towels. It won’t keep it piping hot for a few hours, but it should stay warm enough for serving. If you can use the hosts’ oven, I’d reheat it at 300°F for approximately 30 minutes or until heated through.
I love your recipes, Jenn! You make me look like a good cook!
I wanted to 1.5 times, or double, the mac and cheese recipe.
Can I use a 10×15 baking dish?
Thx in advance!
So glad you like the recipes! A 10 x 15-inch baking dish won’t be large enough to make 1.5 or 2 times the recipe. For the best results, I’d recommend a second 9 x 13-inch baking dish (to double the recipe) or an 8-inch square baking dish to make 1.5 times the recipe.
Thx so much!
Sounds wonderful but can l prep up to oven baking day before?
Sure – just wait to add the breadcrumbs until right before you put it in the oven.