This mac and cheese cake is a savory baked dish that turns your favorite stovetop mac and cheese into a sliceable, golden-crusted cake. It works because the eggs and cream bind the pasta into a firm yet creamy loaf that holds its shape when cut, while the breadcrumb crust adds a crisp contrast. It’s perfect for parties, potlucks, or a fun weeknight dinner that feels special.
Ingredients
- 12 oz (340 g) elbow macaroni or other short pasta
- 4 tbsp (56 g) unsalted butter, plus more for greasing the pan
- 1/4 cup (30 g) all-purpose flour
- 2 cups (480 ml) whole milk
- 1 cup (240 ml) heavy cream
- 1 tsp (5 g) salt
- 1/2 tsp (1 g) black pepper
- 1/2 tsp (1 g) garlic powder
- 1/2 tsp (1 g) onion powder
- 1/4 tsp (0.5 g) cayenne pepper (optional)
- 3 cups (340 g) shredded sharp cheddar cheese, divided
- 1 cup (100 g) shredded Gruyère or Monterey Jack cheese
- 3 large eggs, lightly beaten
- 1 cup (120 g) panko breadcrumbs
- 2 tbsp (30 ml) olive oil or melted butter
- Fresh parsley, chopped, for garnish (optional)
Instructions
- Preheat your oven to 350°F (175°C). Grease a 9x5x3-inch loaf pan (8-cup capacity) with butter or nonstick spray. For easy removal, line the bottom and long sides with a strip of parchment paper, leaving an overhang on two sides.
- Cook the macaroni in a large pot of salted boiling water according to package instructions until just al dente (about 1 minute less than the suggested time). Drain well and set aside.
- In a large saucepan, melt the 4 tablespoons of butter over medium heat. Whisk in the flour and cook for 1 minute, stirring constantly, until the mixture smells toasty but hasn’t browned.
- Gradually whisk in the milk and heavy cream. Continue whisking until the sauce is smooth. Add salt, black pepper, garlic powder, onion powder, and cayenne if using. Cook over medium heat, stirring frequently, until the sauce thickens enough to coat the back of a spoon, about 5-7 minutes.
- Remove the saucepan from heat. Add 2 cups (225 g) of the cheddar cheese and all of the Gruyère or Monterey Jack. Stir until the cheese is fully melted and the sauce is smooth. Let the sauce cool for about 5 minutes.
- In a large mixing bowl, combine the cooked macaroni and the cheese sauce. Stir well to coat every piece. Let the mixture cool for another 5 minutes, then fold in the beaten eggs until fully incorporated.
- Pour the mac and cheese mixture into the prepared loaf pan, pressing it down gently with a spatula to eliminate air pockets. Sprinkle the remaining 1 cup (115 g) cheddar cheese over the top.
- In a small bowl, mix the panko breadcrumbs with the olive oil or melted butter until the crumbs are evenly coated. Sprinkle the breadcrumb mixture over the cheese layer.
- Place the loaf pan on a baking sheet (to catch any overflow) and bake for 45–55 minutes, until the top is golden brown and the internal temperature registers 160°F (71°C) in the center. If the top browns too quickly, loosely tent with foil.
- Remove from the oven and let the cake rest in the pan for 15 minutes. Run a knife around the edges, then lift it out using the parchment sling. Let it cool on a wire rack for another 10 minutes before slicing. Serve warm.
Tips
- Don’t overcook the pasta: Start with al dente pasta because it will continue to cook in the oven. Overcooked pasta will make the cake mushy.
- Cool the sauce before adding eggs: If you add eggs to a hot sauce, they will scramble. Let the sauce cool for at least 5 minutes after removing from heat, and stir constantly when adding the eggs.
- Use the right pan: A 9x5x3-inch loaf pan holds about 8 cups. If your pan is smaller, the batter may overflow; if larger, the cake will be shorter. Adjust baking time accordingly.
- Let it rest: The cake needs time to set. Cutting it too soon will cause it to fall apart. The 15-minute rest in the pan is essential.
Serving Suggestions
Slice the mac and cheese cake like a loaf and serve as a main dish with a side salad or roasted vegetables. It also works well as a hearty appetizer—cut into thick slices and serve with a dollop of sour cream or a drizzle of hot sauce. For a brunch twist, pair it with a fried egg on top.
Variations
- Bacon and Jalapeño: Add 6 slices of cooked, crumbled bacon and 2 finely diced jalapeños (seeds removed) to the mac and cheese mixture before baking.
- Broccoli Cheddar: Fold in 2 cups of steamed, chopped broccoli florets along with the cheese sauce.
- Buffalo Chicken: Stir in 1 cup of shredded cooked chicken tossed in 1/4 cup buffalo sauce, and reduce the cayenne to 1/8 teaspoon.
- Herb and Garlic: Add 2 tablespoons of chopped fresh chives and 1 tablespoon of chopped fresh thyme to the sauce.
Storage and Reheating
Store leftover mac and cheese cake in an airtight container in the refrigerator for up to 4 days. To reheat, place slices on a baking sheet and warm in a 350°F (175°C) oven for 10–15 minutes, or until heated through. You can also microwave individual slices for 1–2 minutes, though the crust will soften. The cake can be frozen for up to 2 months; wrap tightly in plastic wrap and foil, then thaw overnight in the fridge before reheating.
Related
Frequently Asked Questions
Can I make this ahead of time? Yes, you can assemble the cake (without the breadcrumb topping) up to 24 hours in advance. Cover and refrigerate, then add the breadcrumbs and bake as directed, adding 10 minutes to the baking time.
Why did my cake fall apart when I sliced it? The cake needs to rest to set. If it’s still warm in the center, the eggs haven’t fully set. Make sure you let it rest for 15 minutes in the pan and then 10 minutes on the rack. Also, ensure the internal temperature reached 160°F (71°C).
Can I use a different pasta shape? Absolutely. Any short pasta like shells, cavatappi, or rotini works well. Just make sure to cook it al dente and measure it by weight or dry cups for best results.
Can I use pre-shredded cheese? Yes, but pre-shredded cheese often contains anti-caking agents that can make the sauce grainy. For the smoothest sauce, shred your own cheese from a block.
Can I make this gluten-free? Yes, use gluten-free pasta and substitute the all-purpose flour with a gluten-free all-purpose blend. Use gluten-free breadcrumbs for the topping. The sauce may need a little extra cooking time to thicken.
Can I bake this in a round pan instead? Yes, you can use a 9-inch round cake pan (about 8 cups capacity). The baking time will be similar, but start checking at 40 minutes. The cake will be shorter and wider, so adjust your slice size.