Side Dishes
This baked mac and cheese recipe in an 8x8 pan delivers the perfect balance of creamy, gooey goodness with a crispy breadcrumb topping that's impossible to resist. I've been perfecting this recipe for years, and it never fails to impress—whether it's for a weeknight dinner or a holiday gathering. The secret lies in the layering technique and baking at the right temperature.
What sets this recipe apart is the combination of sharp cheddar, Gruyère, and cream cheese for depth of flavor, paired with a buttery breadcrumb topping that adds texture. The macaroni cooks directly in the oven, absorbing the rich cheese sauce while developing a golden crust on top.
I've tested this recipe countless times, and it consistently delivers that restaurant-quality texture we all crave.
By the time it comes out of the oven, you'll have a dish that's creamy in the center, crispy on top, and packed with cheesy flavor in every bite.
The breadcrumbs add a satisfying crunch that contrasts beautifully with the velvety sauce. This is comfort food at its finest—rich, indulgent, and absolutely worth the effort.
Serve it as a side dish or make it the star of the meal with a simple green salad. The best part? This recipe scales easily, so you can make it in a single 8x8 pan or double it for a crowd.
Let's get started on creating your perfect baked mac and cheese.
Ingredients for baked mac and cheese recipe 8x8 pan
Here's what makes this 8x8 pan mac and cheese restaurant-quality cheesy perfection.
| Ingredient | Amount | Notes |
|---|---|---|
| Elbow Macaroni 🍝 | 12 oz | Uncooked, medium or fine shape |
| Sharp White Cheddar Cheese 🧀 | 2 cups | Shredded, block preferred |
| Gruyère Cheese 🧀 | 1 cup | Shredded, aged 12+ months |
| Cream Cheese 🧀 | 8 oz | Full-fat, softened slightly |
| Heavy Whipping Cream 🥛 | ½ cup | Full-fat for richness |
| Unsalted Butter 🧈 | ½ cup | Melted, salted if preferred |
| All-Purpose Flour 🌾 | ¼ cup | For thickening sauce |
| Whole Milk 🥛 | ½ cup | Warmed slightly |
| Panko Breadcrumbs 🍞 | ½ cup | For crispy topping |
| Garlic Powder 🧄 | 1 tsp | Freshly ground preferred |
| Onion Powder 🧅 | 1 tsp | For extra depth |
| Kosher Salt 🧂 | 1 ½ tsp | Adjust to taste |
| Ground Black Pepper 🌶️ | ½ tsp | Freshly cracked |
| Freshly Ground Nutmeg 🌿 | ¼ tsp | Key flavor booster |
The cheeses are where the magic happens. Gruyère adds that nutty depth, but don't skip the sharp cheddar—it's what makes it tangy. I always grab Cabot or Tillamook cheddar from the grocery store's refrigerated section, and for Gruyère, Whole Foods or specialty cheese shops have the best aged options. Cream cheese? Philadelphia is my go-to—it blends silky smooth. Pro tip: shred your own cheeses (block, not pre-shredded) for maximum meltability. That said, if you're in a pinch, Kraft 2% cheddar works in a bind, though it won't have that same rich flavor.
No Gruyère? Add extra sharp cheddar plus a splash of white wine (2 tbsp) to the sauce for complexity. Running low on cream cheese? Substitute with equal parts sour cream, though it'll be slightly tangier. For the breadcrumbs, Panko is non-negotiable—it stays crispy where regular breadcrumbs turn soggy. The garlic and onion powders? Diamond Crystal kosher salt is my secret weapon here—it dissolves better than table salt. And if you're out of nutmeg, a pinch of cinnamon (¼ tsp) gives a similar warmth, though not identical. The macaroni shape? Elbow or cavatappi both work—just don't use penne, it won't layer right.
This dish reheats beautifully—4-5 days in the fridge, 3 months frozen. For freezing, let it cool completely, then wrap tightly in foil. The breadcrumb topping gets even crunchier when reheated, so it's worth making ahead. Store leftovers in the original pan for easy serving. And here's a pro move: Make a double batch—the second one always tastes better as leftovers. The cheese sauce gets even more velvety after sitting overnight, and the breadcrumbs stay crispy when reheated properly.
Why You'll Love This Recipe
- One-Pan Magic: I swear by this recipe because it’s literally one bowl, one pan, and done. No strainer drama, no extra pots—just dump, mix, bake. The elbow macaroni stays plump, the cheeses melt into that perfect stretch, and the 8x8 pan makes it easy to serve straight from the oven. (Yes, even when I’m still in my pajamas.)
- Cheese Love Bomb: Sharp white cheddar and Gruyère? That’s my flavor dream team. The Gruyère adds nutty depth while the cheddar keeps it bold, and the cream cheese ties it all together with that velvety richness. Honestly, the first bite makes me forget I’m supposed to be on a diet.
- Weeknight & Potluck Hero: Between us, this is my go-to for busy nights and gatherings. Freeze half for lazy days, or bring it to a party—it’s always a crowd-pleaser. I’ve even turned it into a casserole for game day, and no one bats an eye when I say it’s “fancy.” (They’re not wrong.)
- Budget Buster: Cream cheese and heavy cream might sound fancy, but they stretch further than you’d think. A block of cheddar and a wheel of Gruyère go a long way, and elbow macaroni? Cheap as chips. I make this twice a month, and my wallet and my family thank me. (Leftovers? Even better the next day.)
Step-by-step instructions for baked mac and cheese in an 8x8 pan
This method delivers creamy, gooey perfection with a golden, crispy breadcrumb topping every time.
Cook the Elbow Macaroni to Al Dente
Bring a large pot of water to a rolling boil and add the 12 oz elbow macaroni. I like to use a pinch of salt in the water—just enough to taste like the sea. Cook until 1 minute before the package instructions for al dente (about 10-12 minutes). This ensures the pasta stays firm enough to hold together when baked.
Drain the pasta in a colander and immediately rinse it with cold water for 10 seconds. This stops the cooking process and removes excess starch that can make the cheese sauce too thin. Shake the colander vigorously to remove all water droplets—you want the pasta completely dry for maximum crispiness in the final dish.
Make the Ultra-Creamy Cheese Sauce
In a large bowl, combine the 2 cups sharp white cheddar cheese, 1 cup gruyère cheese, 8 oz cream cheese, 0.5 cup heavy whipping cream, and 0.5 cup whole milk. I use a hand mixer here for 2-3 minutes until the mixture is completely smooth and creamy. The gruyère adds that perfect nutty depth, while the cream cheese ensures a velvety texture.
In a separate saucepan, melt the 0.5 cup unsalted butter over medium heat. Whisk in the 0.25 cup all-purpose flour and cook for 1-2 minutes until it forms a smooth paste (this is your roux). Slowly pour in the warm milk while whisking constantly to prevent lumps. Let it simmer for 3-4 minutes until thickened. Remove from heat and stir in the cheese mixture until fully combined.
Combine Pasta and Sauce in the 8x8 Pan
Preheat your oven to 350°F. Lightly grease an 8x8-inch baking dish with butter or nonstick spray. Add the cooked pasta to the baking dish and pour the cheese sauce evenly over the top. Use a spatula to gently fold everything together, making sure every noodle is coated in that rich, creamy goodness.
Sprinkle the 0.5 cup panko breadcrumbs evenly over the top, followed by the 1 tsp garlic powder, 1 tsp onion powder, 1.5 tsp kosher salt, 0.5 tsp ground black pepper, and 0.25 tsp freshly ground nutmeg. The nutmeg is key here—it adds that warm, earthy flavor that takes this dish to the next level. Press the breadcrumbs down gently so they stick to the cheese.
Bake to Golden Perfection
Place the baking dish on the center rack of your oven and bake for 25-30 minutes. You're looking for the top to be deep golden brown with crispy breadcrumbs, while the cheese underneath remains creamy and bubbly. If the top browns too quickly, tent it loosely with aluminum foil for the last 10 minutes of baking.
For the best results, I like to broil the dish for the final 2-3 minutes on high. Watch it closely—you want that beautiful caramelization without burning. The cheese should be melted completely, with just a slight pull when you gently tug at the edges of the pan.
Rest and Serve Warm
Remove the mac and cheese from the oven and let it rest for 5-10 minutes before serving. This resting time allows the cheese to set slightly, making it easier to slice and serve. The breadcrumbs will be crispy on top, while the inside remains perfectly creamy and gooey.
Serve immediately with a side of garlic bread or a simple green salad. The contrast of the crispy top with the creamy interior is what makes this dish truly special. Trust me, every bite will be worth the wait!
Pro Tips For Making Baked Mac And Cheese Recipe 8x8 Pan
- COOK PASTA AL DENTE: I learned this the hard way—overcooked pasta turns mushy when baked, no matter how much cheese you add. Pull elbows just before the package says "al dente" (about 1-2 minutes early), drain, and rinse lightly with cold water. The starch clings to the noodles, helping the sauce stick later.
- GRATE CHEESE FINE: Sharp cheddar and Gruyère melt differently, so grating them yourself makes all the difference. Use a box grater for the cheddar (it’s sharper) and a microplane for the Gruyère (it’s harder and melts cleaner). Skip pre-shredded cheese unless you’re okay with a gummy texture—it’s packed with anti-caking agents that release moisture.
- BAKE LOW AND SLOW: That 8x8 pan wants patience. After mixing, cover it tightly with foil and bake at 350°F for 25 minutes. Then, uncover and crank to 400°F for the last 10–15 minutes—this gives you a crispy top without burning the edges. I used to rush this, and the cheese would separate or the crust would turn rubbery.
- STIR IN CREAM CHEESE LAST: Sounds weird, but it works: fold in the cream cheese after the sauce is mostly combined, not at the start. It keeps the sauce from breaking or curdling—especially important with the heavy cream and Gruyère. Just mix it in until just melted, then dump it into the pan. No need to overwork it.
Dietary considerations for this dish
Gluten-Free Swaps
If you need a gluten-free version, swap the elbow macaroni for gluten-free pasta—I recommend Barilla Gluten-Free or De Cecco for that al dente texture. For the breadcrumb topping, use certified gluten-free panko (like Annie's or Schär).
The cheese sauce remains the same, but you might need an extra 1-2 tablespoons of cornstarch in the roux to help thicken it properly. 🌾
Dairy-Free Options
For a dairy-free twist, replace the cheddar and Gruyère with sharp dairy-free cheddar (like Violife) and nutritional yeast for that cheesy depth. Use dairy-free cream cheese (such as Kite Hill) and coconut milk instead of heavy cream.
The texture will be slightly lighter, but still rich and satisfying. I've tested this version, and it works beautifully!
Lower-Carb Adaptations
Want fewer carbs? Swap the macaroni for cauliflower rice or shredded zucchini—sauté them first to remove excess moisture. For a heartier option, use roasted butternut squash or spaghetti squash.
The cheese sauce stays the same, but you'll need to adjust baking time to 20-25 minutes since veggies cook faster. The result is still creamy and indulgent, just with fewer carbs. 🥦
Vegan Cheese Sauce
For a fully vegan version, blend 1 cup cashews (soaked overnight) with 1 cup unsweetened almond milk, 2 tbsp nutritional yeast, 1 tbsp lemon juice, and 1 tsp white miso paste until smooth.
Use this as your base instead of the cheese sauce. Top with gluten-free breadcrumbs and bake as directed. The nutmeg and garlic powder still work wonders here—trust me, it's surprisingly cheesy! 🌱
Lactose-Free Adjustments
If lactose is the issue but not dairy entirely, use lactose-free cheddar (like Green Valley) and lactose-free cream cheese. The rest of the recipe stays the same, and you'll get all the creamy goodness without the digestive discomfort.
I've made this version for friends with sensitivities, and they never guess it's lactose-free!
Protein Boost
Add ½ cup cooked chicken or crumbled bacon to the pasta before baking for extra protein. For a vegetarian option, stir in ½ cup chickpeas (rinsed well) or white beans for a heartier dish.
The cheese sauce will still be the star, but these additions make it even more satisfying. I love adding bacon—it adds a smoky depth that pairs perfectly with the nutmeg. 🍳
Nutrition facts
Frequently asked questions
Can I use a different pan size?
This recipe is designed for an 8x8 pan, but you can easily adapt it. For a 9x13 pan, spread the same ingredients over a larger surface and reduce baking time by about 5-7 minutes. For individual servings, divide into 4-6 ramekins and bake at 375°F for 15-20 minutes. The key is maintaining the same depth of ingredients.
How do I make it extra crispy?
For maximum crispiness, press the panko breadcrumbs firmly onto the cheese before baking. Add a sprinkle of grated Parmesan (1 tbsp) to the breadcrumbs for extra crunch. After baking, broil for 2-3 minutes on high heat to crisp the top further. For the crispiest version, bake at 375°F instead of 350°F.
What if my mac and cheese is too runny?
If your sauce is too thin, it's likely because the pasta released too much starch. Mix 1 tablespoon cornstarch with 1 tablespoon cold water to make a slurry, then stir it into the sauce. Bake for an extra 5 minutes to thicken. For prevention, always rinse pasta with cold water after cooking to remove excess starch.
Can I make this ahead of time?
Assemble the dish up to 24 hours ahead and refrigerate uncovered. The next day, bake at 350°F for 30-35 minutes (covered with foil for the first 20 minutes to prevent over-browning). For freezing, bake completely, cool, wrap tightly, and freeze for up to 3 months. Reheat covered at 350°F for 20-25 minutes.
What's the best way to reheat leftovers?
For best results, cover the dish with foil and reheat at 350°F for 15-20 minutes. To revive crispiness, broil for 2-3 minutes at the end. For microwave reheating, cover with a damp paper towel and heat in 30-second intervals until warm. The breadcrumbs won't be as crispy but will still be tasty!
