Dinners

Baked Layered Mac and Cheese Recipe

Updated · By Stir & Share

Total timeprep + cook
1 hr 15 min
Prep
20 min
hands-on
Cook
55 min
oven or stovetop
Serves
8
as written

Jump to recipe Save

Time: 1 hr 15 min  ·  Serves: 8  ·  The key step: Build the layers in the pan, then bake until the top is deeply golden and the sauce bubbles at the edges. This is a rich, creamy baked mac and cheese with a crisp breadcrumb topping, perfect for a family dinner, potluck, or holiday side dish.

Ingredients

  • 1 lb (450 g) elbow macaroni (or other short pasta)
  • 4 tbsp (56 g) unsalted butter, plus more for the dish
  • 1/4 cup (30 g) all-purpose flour
  • 3 cups (720 ml) whole milk, warmed
  • 1 tsp (5 g) salt
  • 1/2 tsp (1 g) black pepper
  • 1/2 tsp (1 g) garlic powder (optional)
  • 1/2 tsp (1 g) onion powder (optional)
  • 1/4 tsp (0.5 g) cayenne pepper (optional, for heat)
  • 3 cups (340 g) sharp cheddar cheese, shredded
  • 2 cups (225 g) Gruyère or Monterey Jack cheese, shredded
  • 1 cup (50 g) panko breadcrumbs
  • 2 tbsp (28 g) unsalted butter, melted (for topping)

Instructions

  1. Preheat the oven to 375°F (190°C). Butter a 9×13-inch (23×33 cm) baking dish.
  2. Bring a large pot of salted water to a boil. Cook the macaroni for 2 minutes less than the package directions call for (about 6-7 minutes). Drain and set aside.
  3. In a large saucepan, melt 4 tbsp (56 g) butter over medium heat. Whisk in the flour and cook for 1-2 minutes, until it smells nutty and is lightly golden.
  4. Gradually whisk in the warm milk. Bring to a simmer, whisking constantly, and cook for 3-5 minutes until the sauce thickens enough to coat the back of a spoon.
  5. Remove from heat. Stir in the salt, pepper, garlic powder, onion powder, and cayenne (if using). Add the shredded cheddar and Gruyère, a handful at a time, stirring until smooth.
  6. Add the cooked macaroni to the sauce and stir until every piece is coated.
  7. Pour half of the macaroni mixture into the prepared dish. Top with half of the remaining shredded cheese (if you reserved any). Repeat with the rest of the macaroni and cheese. (Alternatively, you can just mix all the cheese into the sauce and pour it all at once.)
  8. In a small bowl, toss the panko with the melted butter. Sprinkle evenly over the top.
  9. Bake for 25-30 minutes, until the top is golden brown and the sauce is bubbling at the edges. Let rest for 10 minutes before serving.

Choose Your Pan and Adjust Baking Time

This recipe fits a 9×13-inch (23×33 cm) baking dish. If you use a smaller, deeper dish (like an 8×8-inch / 20×20 cm), the layers will be thicker and you’ll need to bake for 35-40 minutes. If you use a larger, shallower dish (like a 10×15-inch / 25×38 cm), bake for 20-25 minutes. In all cases, the top should be golden and the sauce should bubble.

Scale the Recipe for a Half or Double Batch

Batch Pasta Cheese Milk Baking dish Bake time
Half 8 oz (225 g) 2 1/2 cups (280 g) total 1 1/2 cups (360 ml) 8×8-inch (20×20 cm) 25-30 min
Full 1 lb (450 g) 5 cups (565 g) total 3 cups (720 ml) 9×13-inch (23×33 cm) 25-30 min
Double 2 lb (900 g) 10 cups (1.1 kg) total 6 cups (1.4 L) Two 9×13-inch dishes or one 12×18-inch (30×46 cm) 30-35 min

For a double batch, you may need to cook the pasta in two batches to avoid overcrowding. Bake until the top is golden and the center reaches 160°F (71°C) if you want to check with a thermometer.

Two Easy Variations

Add Bacon or Ham

Cook 6 slices of bacon until crisp, crumble, and stir into the sauce before layering. Or add 1 cup (150 g) diced ham. Both add a smoky, salty flavor.

Make It Spicy

Add 1-2 diced jalapeños (seeded if you prefer less heat) to the sauce. Or stir in 1/2 cup (75 g) diced roasted green chiles. This pairs well with pepper jack cheese instead of Gruyère.

What to Serve With Baked Mac and Cheese

This dish is rich, so pair it with something bright and fresh. A simple green salad with vinaigrette, roasted broccoli, or steamed green beans work well. It also stands up to grilled chicken, meatloaf, or pulled pork. For a holiday table, serve it alongside turkey or ham.

Leftovers and Reheating

Refrigerate leftovers in an airtight container within 2 hours. They will keep for 3-4 days. To reheat, place a portion in the microwave for 1-2 minutes, or in a 350°F (175°C) oven for 10-15 minutes. For a crisp top, reheat under the broiler for the last minute. You can also freeze the baked mac and cheese for up to 2 months. Thaw overnight in the refrigerator before reheating.

Why the Sauce Might Look Curdled

If the sauce curdles, it is usually because the heat was too high or the cheese was added too quickly. Always whisk in cheese over low heat, and add it in small handfuls. If it does curdle, you can sometimes rescue it by whisking in a tablespoon of hot water or milk, but the texture may not be as smooth. To avoid this, make sure the milk is warm before adding it to the roux, and keep the heat low.

Can You Make It Ahead?

Yes. Assemble the mac and cheese (without the breadcrumb topping) up to 24 hours ahead. Cover and refrigerate. When ready to bake, add the breadcrumb topping and increase the baking time by 10-15 minutes, since it starts cold. Check that the center is hot and bubbling before serving.

How to Get a Golden Top Without Overbaking

If the top is browning too quickly, cover loosely with foil for the last 10 minutes of baking. If it is not brown enough after the recommended time, turn on the broiler for 1-2 minutes, watching closely, until the breadcrumbs are golden.

Related

Safe minimum internal temperatures follow USDA FSIS; raw-fish guidance follows the U.S. FDA. See our food safety notes.

Spotted an error? Tell us and we will correct it (corrections policy).