Macaroni and cheese loaf is a baked, sliceable casserole that turns everyone’s favorite stovetop side into a firm, golden loaf you can cut into neat squares or thick slices. It’s essentially a mac and cheese “meatloaf” without the meat—pasta bound with a rich cheese sauce, eggs, and breadcrumbs, then baked until set and browned on top. This version works because the eggs and starch create a structure that holds together when warm, so you can serve it as a main dish, a hearty side, or even cold leftovers in a sandwich.
Ingredients
- 1 lb (450 g) elbow macaroni (or other short pasta)
- 4 tbsp (56 g) unsalted butter, plus more for greasing
- 1/4 cup (30 g) all-purpose flour
- 3 cups (710 ml) whole milk
- 1 tsp (5 g) salt, plus more for pasta water
- 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
- 1 cup (100 g) shredded Gruyère or Monterey Jack cheese
- 3 large eggs, lightly beaten
- 1 cup (120 g) plain breadcrumbs (or panko)
- 1/4 cup (30 g) grated Parmesan cheese (for topping)
- Fresh parsley, chopped (for garnish, optional)
Instructions
- Preheat your oven to 350°F (175°C). Grease a 9×5-inch (23×13 cm) loaf pan with butter or nonstick spray, then line it with parchment paper, leaving overhang on two sides for easy lifting.
- Bring a large pot of salted water to a boil. Cook the macaroni until just al dente, about 1 minute less than the package directions (usually 6-7 minutes). Drain well and set aside.
- In a large saucepan, melt the butter over medium heat. Whisk in the flour and cook, stirring constantly, for 1-2 minutes until it turns light golden and smells nutty.
- Gradually pour in the milk while whisking to prevent lumps. Add the salt, pepper, garlic powder, onion powder, and cayenne (if using). Continue whisking until the sauce thickens and bubbles gently, about 5-6 minutes. It should coat the back of a spoon.
- Remove the saucepan from heat. Add the shredded cheddar and Gruyère (or Monterey Jack) in handfuls, stirring until completely melted and smooth. Taste and adjust seasoning if needed.
- Let the cheese sauce cool for about 5 minutes. Then, whisk in the beaten eggs slowly, stirring constantly so they don’t scramble. The mixture should be smooth and slightly thickened.
- In a large bowl, combine the cooked macaroni, cheese sauce, and breadcrumbs. Stir until everything is evenly coated.
- Pour the mixture into the prepared loaf pan. Press it down gently with a spatula to remove air pockets. Sprinkle the top with the grated Parmesan.
- Bake for 50-60 minutes, until the top is deep golden brown and the loaf feels firm to the touch. A knife inserted in the center should come out clean, and the internal temperature should reach 160°F (71°C) as a safe minimum for egg dishes (USDA FSIS).
- Let the loaf rest in the pan for at least 15 minutes. Then, lift it out using the parchment overhang. Slice and serve warm.
Tips
- Don’t overcook the pasta: Slightly undercooked macaroni holds up better during baking. If it’s fully cooked, it can become mushy in the loaf.
- Cool the sauce before adding eggs: If the cheese sauce is too hot, the eggs will curdle. Let it sit for 5-10 minutes, stirring occasionally, until it’s warm but not steaming.
- Use freshly shredded cheese: Pre-shredded cheese often contains anti-caking agents that prevent smooth melting. Shredding your own from a block gives a creamier sauce.
- Line the pan with parchment: This isn’t just for easy removal—it also helps the loaf keep its shape when sliced. The overhang makes lifting effortless.
Serving Suggestions
Serve the macaroni and cheese loaf as a vegetarian main dish with a crisp green salad and roasted broccoli. It also pairs well with grilled chicken or steak, making it a versatile side for a dinner party. For a fun twist, slice it thick and pan-fry the slices in a little butter until golden and crispy on both sides—they’re irresistible.
Variations
- Add bacon or ham: Fold in 1 cup (150 g) of cooked, crumbled bacon or diced ham before baking for a smoky, meaty version.
- Spice it up: Add 1 finely chopped jalapeño and 1/2 cup (75 g) of diced pickled jalapeños to the mixture, or swap the cheddar for pepper jack.
- Use different cheeses: Try smoked gouda, fontina, or a mix of your favorites. Each cheese changes the flavor—smoked gouda adds a deep, woodsy note.
- Make it gluten-free: Use gluten-free pasta and substitute the flour with a 1:1 gluten-free blend, and use gluten-free breadcrumbs. The texture will be slightly more delicate but still holds together.
Storage and Reheating
Store leftover macaroni and cheese loaf 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, but the texture will be softer. The loaf can be frozen for up to 2 months—wrap it tightly in plastic wrap and foil, then thaw overnight in the fridge before reheating. Reheat frozen slices directly in the oven at 350°F (175°C) for about 20 minutes.
Frequently Asked Questions
Can I make this ahead of time? Yes, you can assemble the loaf (without baking) up to 24 hours in advance. Cover and refrigerate, then bake as directed, adding about 10 minutes to the baking time since the mixture starts cold.
Why did my loaf fall apart when slicing? The loaf needs time to set. If you slice it too soon after baking, it will crumble. Let it rest for at least 15 minutes, and for cleaner slices, refrigerate it for 30 minutes before cutting—then reheat the slices.
Can I use a different pasta shape? Absolutely. Shells, cavatappi, or rotini work well. Just make sure to cook them to al dente and measure the same weight (1 lb / 450 g) for the right pasta-to-sauce ratio.
Is this loaf suitable for a gluten-free diet? Yes, if you use gluten-free pasta, flour, and breadcrumbs. The texture will be slightly less sturdy, so let it cool longer before slicing.
Can I reduce the fat? You can use 2% milk instead of whole, and reduce the cheese to 3 cups total, but the loaf will be less creamy and may be drier. Low-fat cheese doesn’t melt as well, so stick with full-fat for best results.
What if I don’t have a loaf pan? Use an 8×8-inch (20×20 cm) baking dish instead. The baking time will be shorter—about 40-45 minutes—since the mixture is spread thinner. Check for doneness with a knife inserted in the center.
Related
- New Jersey Style Sloppy Joe Recipe
- NJ Deli Sloppy Joe Recipe (Cold, Not Saucy)
- NJ Sloppy Joe Recipe: A Deli Classic
More recipes to cook
Safety notes: safe minimum internal temperatures from USDA FSIS; raw and undercooked fish guidance from the U.S. FDA. Food safety notes
Spotted an error? Tell us and we will correct it (corrections policy).