Best Mac and Cheese Recipe

This post may contain affiliate links. If you purchase through these links, we may earn a small commission at no extra cost to you.
Creamy, cheesy baked mac and cheese with a golden panko crust — a real roux-based sauce that stays silky, on the table in under an hour.
There are two kinds of mac and cheese in this world: the kind with a proper cheese sauce, and the kind that breaks into a grainy, oily mess the moment it hits the oven. The difference is almost never the recipe — it’s two small decisions. Warm the milk before it goes into the roux, and shred your cheese from a block instead of opening a bag.
That second one matters more than people expect. Pre-shredded cheese is coated in anti-caking starch, and that starch is exactly what turns a smooth sauce gritty. Five minutes with a box grater buys you the silkiest sauce you’ve ever made at home — the kind that stretches in long, glossy pulls when you lift a spoonful.
This version uses sharp cheddar for punch and Gruyère for melt, a mustard-powder backbone you can’t quite identify but would miss, and a buttery panko topping that goes deeply golden in the oven. It feeds eight as a side or four as a very committed main dish.
Why You’ll Love This Recipe
- Quick: 15 minutes of active cooking, then the oven does the rest — dinner in 50 minutes.
- Easy method: One saucepan for the sauce, one pot for the pasta, one baking dish. No special equipment.
- Texture/flavor: Silky cheddar-Gruyère sauce with a sharp, savory edge from mustard powder, under a crisp buttery crumb.
- Flexible: Works with any short pasta; swap Gruyère for Monterey Jack or fontina without missing a beat.
- Practical: Assembles a day ahead and reheats beautifully — ideal for holidays and potlucks.
Ingredients
- 1 lb elbow macaroni: The classic shape; the tubes trap sauce. Any short pasta works — shells and cavatappi are excellent.
- 1/4 cup unsalted butter: For the roux. Unsalted lets you control the salt, since cheddar brings plenty.
- 1/4 cup all-purpose flour: Equal parts butter and flour make a roux that thickens 4 cups of liquid to a sauce that coats a spoon.
- 1 teaspoon mustard powder: The quiet background note that makes cheese taste more like itself. You won’t identify it; you’d notice its absence.
- 1/2 teaspoon garlic powder: Adds savory depth without visible bits. Fresh garlic can turn bitter in a roux; powder is safer here.
- 1/2 teaspoon paprika: Mostly for warm color in the sauce. Smoked paprika works too if you want a whisper of smoke.
- 3 cups whole milk, warmed: Warm milk incorporates into the roux without lumps. Cold milk into hot roux is the top cause of a lumpy sauce.
- 1 cup heavy cream: Adds richness and insurance — the extra fat keeps the sauce stable in the oven.
- 3 cups sharp cheddar, shredded from a block: About 12 oz. Shred it yourself; bagged shreds contain starch that makes sauces grainy.
- 1 1/2 cups Gruyère, shredded from a block: About 6 oz. Melts like a dream. Monterey Jack or fontina are fine substitutes.
- 1 teaspoon kosher salt: Start here; taste the sauce before the pasta goes in and adjust. Cheddar varies in saltiness.
- 1/2 teaspoon black pepper: Freshly cracked if you have it.
- 1 cup panko breadcrumbs: For the topping. Panko stays crunchier than fine breadcrumbs under the broiler-like heat.
- 2 tablespoons butter, melted: Tossed with the panko so every crumb browns.
- 1/4 cup grated Parmesan: Mixed into the topping for extra savory crust.
Substitutions: Gruyère can be swapped 1:1 for Monterey Jack, fontina, or Gouda — all melt smoothly. Whole milk can replace the heavy cream (use 4 cups milk total), though the sauce will be slightly less rich. Gluten-free pasta and a 1:1 gluten-free flour blend work; we have not tested dairy-free cheese in this recipe, so we can’t vouch for the melt.
How to Make Mac and Cheese
- Boil the pasta. Bring a large pot of well-salted water to a rolling boil and cook the macaroni 1 minute shy of the package directions — it finishes in the oven. Drain and set aside. Don’t rinse; the surface starch helps the sauce cling.
- Make the roux. In a large saucepan or Dutch oven, melt the 1/4 cup butter over medium heat. Whisk in the flour, mustard powder, garlic powder, and paprika and cook, whisking constantly, for 2 minutes until it smells toasty and turns a shade darker. Don’t rush this — raw flour tastes pasty in the finished sauce.
- Build the sauce. Warm the milk (a minute in the microwave is fine) and pour it in gradually, whisking constantly to keep it smooth. Add the cream, then bring to a gentle simmer — not a boil — whisking until the sauce thickens enough to coat the back of a spoon, 4 to 5 minutes.
- Add the cheese off the heat. Remove the pan from the burner entirely. Add the cheddar and Gruyère a handful at a time, stirring until each handful melts before adding the next. This is the failure point: cheese added over active heat overheats, the proteins tighten, and the sauce turns grainy or breaks into grease. Off the heat, it stays silky. Taste and adjust salt and pepper.
- Combine. Fold the drained pasta into the sauce until every piece is coated. Pour into a buttered 9×13-inch baking dish and spread evenly.
- Top it. Toss the panko with the melted butter and Parmesan and sprinkle evenly over the top. Every crumb should glisten with butter — dry crumbs stay pale.
- Bake. Bake at 375°F for 20 to 25 minutes, until the sauce bubbles at the edges and the topping is deeply golden. Rest 10 minutes before serving; the sauce sets slightly as it stands and servings hold together.
Tips for Success
- Shred your own cheese: Bagged shreds are coated with cellulose to prevent clumping, and that coating is the number one cause of grainy cheese sauce. A box grater and five minutes solve it.
- Warm the milk: Cold milk hitting a hot roux seizes into lumps that no amount of whisking fully removes. Warm milk blends in smoothly on the first pour.
- Undercook the pasta: It absorbs sauce and finishes cooking in the oven. Pasta cooked fully before baking turns soft and bloated by serving time.
- Salt the pasta water generously: It should taste like the sea. This is the only chance to season the pasta itself, and bland pasta dilutes the whole dish.
- Don’t skip the rest: Ten minutes out of the oven lets the sauce thicken to its final consistency. Serve immediately and it’s soupy; wait and it’s scoopable.
Variations
- Buffalo chicken mac: Fold in 2 cups shredded cooked chicken tossed with 1/3 cup buffalo sauce before baking.
- Stovetop-only: Skip the topping and baking — serve straight from the saucepan after step 4. Dinner in 25 minutes.
- Broccoli cheddar: Fold in 2 cups small blanched broccoli florets with the pasta for a one-dish meal.
- Smoky bacon: Top with 6 strips of crumbled cooked bacon along with the panko before baking.
Storage & Freezing
Refrigerate leftovers in an airtight container for up to 4 days; reheat covered at 350°F with a splash of milk to loosen the sauce, or microwave individual portions. To freeze, cool the baked mac and cheese completely, wrap tightly, and freeze up to 2 months — thaw overnight in the fridge before reheating. The panko topping softens on reheating; a few minutes under the broiler crisps it back up.
Frequently Asked Questions
Can I make mac and cheese ahead of time?
Yes — assemble everything through step 6, cover, and refrigerate up to 24 hours. Add 10 minutes to the bake time since it’s going in cold. Don’t bake it twice; assemble unbaked for the best texture.
Why did my cheese sauce turn out grainy?
Almost always one of two causes: the cheese was added over too much heat, or pre-shredded cheese was used. Cheese proteins tighten and squeeze out fat above about 180°F, which reads as grainy. Keep the pan off the burner when adding cheese, add it gradually, and shred from a block.
Can I use different cheeses?
Absolutely, with one rule: pair a flavorful aged cheese (cheddar, Gruyère, Gouda) with a good melter (Monterey Jack, fontina, young Gouda). Avoid aged hard cheeses like Parmesan as the main cheese — they don’t melt smoothly and the sauce turns gritty.
How do I know when it’s done baking?
Look for active bubbling at the edges of the dish and a topping that’s deeply golden brown, not just pale gold — 20 to 25 minutes at 375°F. An instant-read thermometer in the center should read about 165°F. If the top browns before the edges bubble, tent loosely with foil.
Best Mac and Cheese Recipe
Creamy baked mac and cheese with a silky cheddar-Gruyère sauce and a golden buttery panko crust.
Prep Time: 15 mins | Cook Time: 35 mins | Total Time: 50 mins | Servings: 8
Ingredients
- 1 lb elbow macaroni
- 1/4 cup unsalted butter, plus more for the dish
- 1/4 cup all-purpose flour
- 1 teaspoon mustard powder
- 1/2 teaspoon garlic powder
- 1/2 teaspoon paprika
- 3 cups whole milk, warmed
- 1 cup heavy cream
- 3 cups sharp cheddar cheese, shredded from a block (about 12 oz)
- 1 1/2 cups Gruyère cheese, shredded from a block (about 6 oz)
- 1 teaspoon kosher salt, plus more to taste
- 1/2 teaspoon black pepper
- 1 cup panko breadcrumbs
- 2 tablespoons butter, melted
- 1/4 cup grated Parmesan cheese
Instructions
- Bring a large pot of salted water to a boil. Cook macaroni 1 minute shy of package directions. Drain; do not rinse.
- Melt 1/4 cup butter in a large saucepan over medium heat. Whisk in flour, mustard powder, garlic powder, and paprika; cook 2 minutes, whisking constantly.
- Gradually whisk in warm milk and cream. Simmer gently, whisking, until thickened enough to coat a spoon, 4 to 5 minutes.
- Remove from heat. Add cheddar and Gruyère a handful at a time, stirring until melted. Season with salt and pepper; taste and adjust.
- Fold in the drained pasta. Transfer to a buttered 9×13-inch baking dish.
- Toss panko with melted butter and Parmesan; sprinkle evenly over the top.
- Bake at 375°F for 20 to 25 minutes, until bubbly at the edges and deeply golden. Rest 10 minutes before serving.
Notes: Shred cheese from a block — pre-shredded cheese makes grainy sauce. Add cheese off the heat to prevent breaking.
You May Also Like
- Best Lasagna Recipe – The classic layered pasta bake for when you want a project.
- Best Pasta Salad Recipes – The cold-pasta counterpart for potlucks and picnics.
- Best Pizza Dough Recipe – Another cheesy carb worth mastering from scratch.

