Baked Spaghetti Mac and Cheese Recipe: Crispy Top, Gooey Pull-Apart Layers

Main Courses

Baked Spaghetti Mac and Cheese Recipe: Crispy Top, Gooey Pull-Apart Layers

This baked spaghetti mac and cheese recipe delivers the ultimate comfort food experience with crispy golden edges and gooey pull-apart layers that disappear faster than you can say "cheese." 💛 The secret lies in combining two classic dishes into one showstopping casserole—creamy mac and cheese meets perfectly cooked spaghetti, all baked to perfection in one dish.

What sets this recipe apart is the foolproof technique for achieving that signature crispy top without sacrificing the creamy, cheesy goodness underneath. We'll use a simple layering method that ensures every bite has the ideal texture—tender pasta, rich cheese sauce, and a crackly crust that's impossible to resist.

The best part? It's ready in under an hour, making it perfect for busy weeknights or weekend family dinners.

Imagine pulling this dish from the oven to reveal golden-brown spaghetti peeking through a blanket of melted cheese, with that irresistible pull-apart texture that makes sharing difficult.

The flavor is a perfect balance of savory, cheesy, and slightly buttery, with optional breadcrumbs for extra crunch if you want to take it to the next level. This isn't just mac and cheese—it's a restaurant-quality main course that'll have everyone asking for seconds.

Whether you're feeding a crowd or treating yourself to a cozy meal, this recipe delivers consistent results every time. The instructions are straightforward, and the ingredients are simple—just a few pantry staples and some quality cheese. Let's get started on creating this ultimate comfort food masterpiece!

👨‍🍳
Difficulty
Easy
🔥
Calories
High Cal

Ingredients for baked spaghetti mac and cheese

Crispy edges, gooey layers—this baked spaghetti mac and cheese delivers restaurant-style comfort in one dish.

Ingredient Amount Notes
Spaghetti 🍝 12 oz Uncooked, medium thickness
Sharp Cheddar Cheese 🧀 2 cups Shredded, block preferred
Heavy Cream 🥛 1 cup Full-fat for richness
Whole Milk 🥛 1 cup Warmed for smooth sauce
Unsalted Butter 🧈 4 tbsp Cold, cubed for sauce
All-Purpose Flour 🌾 ¼ cup For roux, sifted
Garlic Cloves 🧄 4 cloves Minced, fresh preferred
Yellow Onion 🧅 1 whole Diced, medium size
Dijon Mustard 🍯 1 tbsp For depth of flavor
Dry Breadcrumbs 🍞 ½ cup Panko for extra crunch
Gruyère Cheese 🧀 ½ cup Shredded, nutty flavor
Kosher Salt 🧂 1 ½ tsp Adjust to taste
Ground Black Pepper 🌶️ ½ tsp Freshly ground
Freshly Ground Nutmeg 🌿 ¼ tsp Fine grind

The cheese makes this dish shine, so skip pre-shredded—it gets clumpy when baked. Sharp cheddar from a block (like Cabot or Tillamook) melts perfectly, while Gruyère adds nutty depth. For the best flavor, grab a wedge from the deli counter—pre-shredded just won’t cut it. The spaghetti? Medium thickness holds up better than thin strands when baked. If you're short on time, Whole Foods or Trader Joe's carry pre-cooked spaghetti that saves you 10 minutes of boiling. Just drain it well before mixing.

No heavy cream? Full-fat Greek yogurt works in a pinch—just thin it with a splash of milk. Running low on Gruyère? Extra sharp cheddar or Parmesan keeps the flavor profile close. The mustard is non-negotiable—it brightens up the richness, but if you're avoiding it, lemon zest at half the amount adds a similar tang. For the breadcrumbs, Panko from the Asian aisle gives that perfect crunch, but regular breadcrumbs work too. Pro tip: Toast them lightly in the oven before adding to the top layer—they’ll stay crispy longer.

This dish reheats beautifully—just cover with foil and bake at 350°F for 15 minutes. Portion into individual servings before baking if you're prepping ahead; the cheese sets up nicely for grab-and-go lunches. Leftovers keep for 4-5 days in the fridge, but honestly, it won’t last that long. For freezer-friendly portions, wrap tightly in parchment and foil—3 months in the freezer with no texture loss. The secret to crispy edges? Bake uncovered for the last 5 minutes—watch that top turn golden like a dream.

❤️

Why You'll Love This Recipe

  • One-Pan Magic: I swear by this—just toss the spaghetti, cheese, and cream into one dish, bake, and walk away. No boiling pots, no straining, no extra cleanup. That sharp cheddar melts into a golden crust while the center stays creamy, and honestly? It’s the kind of dish that makes me feel like I’ve earned my dinner.
  • Creamy-Crisp Perfection: Between us, the secret’s in the butter-to-milk ratio. The heavy cream makes it velvety, but the butter? That’s what gives it that irresistible crispy top while keeping the inside rich and stretchy. It’s the kind of mac and cheese that makes you close your eyes and sigh—no joke.
  • Leftovers That Don’t Suffer: I make a double batch on Sundays, and by Wednesday, I’m still reaching for it. The texture holds up better than stovetop versions—no soggy noodles here. Pop it in the microwave or reheat in the oven, and it’s just as good as day one. My kids actually ask for leftovers.
  • Budget-Friendly Luxury: Sharp chedddar and heavy cream sound fancy, but this recipe stretches ingredients further than takeout. A single block of cheese and a stick of butter feed four for under $10, and it’s way more satisfying than a sad boxed mac. Plus, it’s the kind of comfort food that makes even a tight budget feel generous.

Step-by-step instructions for baked spaghetti mac and cheese

Here's how to build layers of cheesy perfection with a golden, crunchy top every time.

1

🍳 Step 1: Cook the Spaghetti Al Dente and Make the Cheese Sauce

Start by boiling 12 oz spaghetti in heavily salted water until 1 minute before package instructions for al dente. Reserve 1 cup of pasta water before draining—this starchy liquid is your secret weapon for ultra-smooth sauce.

In a separate saucepan, melt 4 tbsp unsalted butter over medium heat. Add 1 whole yellow onion and 4 cloves garlic cloves, cooking for 5 minutes until softened but not browned. Whisk in 0.25 cup all-purpose flour and cook for 1 minute to remove the raw flour taste. Slowly pour in 1 cup whole milk and 1 cup heavy cream, whisking constantly to prevent lumps. Bring to a gentle simmer and cook for 5 minutes until slightly thickened.

Remove from heat and stir in 2 cups sharp cheddar cheese, 0.5 cup gruyère cheese, 1 tbsp Dijon mustard, 1.5 tsp kosher salt, 0.5 tsp ground black pepper, and 0.25 tsp freshly ground nutmeg. Add the drained spaghetti and toss until fully coated, adding reserved pasta water 1 tablespoon at a time until the sauce reaches a creamy, clingy consistency. The mixture should be thick enough to coat the back of a spoon but still pourable.

2

🥘 Step 2: Assemble the Bake in Layers

Preheat your oven to 375°F. Grease a 9x13-inch baking dish generously with butter or oil—this prevents sticking and makes cleanup a breeze. Spread half of the spaghetti mixture evenly in the bottom of the dish, pressing down lightly to create an even base layer.

Sprinkle 0.25 cup dry breadcrumbs evenly over the first layer. This creates a crispy barrier between layers that prevents a soggy bottom. Add the remaining spaghetti mixture on top, spreading it out evenly. The breadcrumbs will absorb some moisture, helping that top crust get extra crispy.

Here's the thing—don't overmix the final layer. You want visible pockets of cheese that will melt into gooey goodness. The breadcrumbs will create that perfect textural contrast we're after.

3

🔥 Step 3: Bake Until Bubbly and Golden

Bake uncovered for 25-30 minutes until the top is deep golden brown and the edges are bubbling. You'll see the breadcrumbs transform from pale to toasted brown—that's your visual cue it's ready. If it's browning too quickly, tent loosely with foil for the last 10 minutes to prevent burning while still allowing it to cook through.

For the ultimate crispy top, broil for 1-2 minutes at the very end, watching closely to prevent burning. The center should still be warm and gooey when you cut into it—this ensures that pull-apart texture we're all craving. Let it rest for 5 minutes before serving; this helps the layers set and makes slicing cleaner.

4

🍽️ Step 4: Serve with Confidence

Run a sharp knife around the edges to loosen, then slice into 6 generous portions for your 6 servings. The perfect baked mac and cheese should have a crispy golden crust on top, gooey melted cheese throughout, and tender al dente spaghetti in every bite. The breadcrumb layer adds just the right amount of crunch to cut through the richness.

Garnish with extra sharp cheddar cheese and freshly ground black pepper right before serving. This dish tastes even better the next day—leftovers reheat beautifully in the oven at 350°F for 15-20 minutes until bubbly and crispy again. The secret to success? Don't skip the breadcrumb layer or the pasta water—these two elements make all the difference in texture.

👨‍🍳

Pro Tips For Making Baked Spaghetti Mac And Cheese

  • Cook Spaghetti Al Dente: Pasta that’s mushy ruins everything—this isn’t risotto. Boil spaghetti one minute less than the package says, then drain and shock it in ice water for 30 seconds. That extra firmness holds up better when baked, so it doesn’t turn to glue.
  • Grate Cheese Fresh: Pre-shredded cheese has anti-caking agents that make baked macaroni grainy. Use a box grater for sharp cheddar—it melts smoother and browns better. (Yes, even if you’re lazy, skip the bagged stuff.)
  • Don’t Skip the Cream Routine: Heavy cream and whole milk aren’t just flavor—they’re the glue. Heat them together with butter until steaming (not boiling), then whisk in cheese until fully melted. This step makes the sauce silky, not oily.
  • Bake Low and Slow: High heat = burnt top, soupy bottom. Cover with foil and bake at 350°F (175°C) for 20 minutes first, then uncover and broil 2–3 minutes for a golden crust. (Your oven’s broiler is your friend—watch it like a hawk.)

Dietary considerations for this recipe

Gluten-Free Adaptation

To make this recipe gluten-free, swap the all-purpose flour for a 1:1 gluten-free flour blend like Bob's Red Mill or King Arthur. Use ½ cup gluten-free breadcrumbs (certified GF) for the topping layer instead of regular panko. I recommend Pillsbury gluten-free breadcrumbs for the best texture. 💛

For the spaghetti, choose gluten-free pasta like Barilla GF or Jovial. Cook it 1 minute less than package instructions—it tends to soften faster when baked. The cheese sauce will still work perfectly with these swaps, keeping all that creamy goodness intact.

Dairy-Free Options

Replace the heavy cream and milk with full-fat coconut milk (1 can, full-fat) for richness. Use dairy-free butter (like Miyoko's) and dairy-free cheese (Violife or Follow Your Heart brands) for the sauce. The texture stays creamy but slightly lighter.

For the crispy topping, toast ½ cup crushed nuts (walnuts or pecans) or gluten-free cornflakes instead of breadcrumbs. These add crunch while keeping the dish dairy-free. The flavor will be slightly different but still delicious!

Lower-Carb Version

Cut carbs by using shirataki noodles (like Miracle Noodle) instead of spaghetti. These low-carb noodles hold up well when baked. Reduce the cheese to 1.5 cups total (1 cup cheddar, ½ cup Gruyère) to balance the lighter base.

For extra protein, fold in ½ cup cooked ground turkey or chickpeas into the cheese sauce. This keeps the dish satisfying while reducing carb content. The texture stays creamy but with a slight protein boost!

Vegetarian-Friendly

This recipe is already vegetarian, but you can enhance it with roasted mushrooms or spinach for extra nutrition. Sauté 1 cup sliced mushrooms with the onions and garlic for added umami depth.

For a protein boost, stir in ½ cup crumbled feta (optional) or vegan cheese** at the end. The dish remains rich and satisfying while keeping all the cheesy goodness intact.

Nutrition facts

Servings 6
Amount Per Serving
Calories 680kcal
% Daily Value *
Total Fat 42g54%
Saturated Fat 26g130%
Cholesterol 185mg62%
Sodium 980mg43%
Total Carbohydrate 58g21%
Dietary Fiber 3g11%
Sugars 8g
Protein 32g64%
* Percent Daily Values are based on a 2,000 calorie diet. Your daily values may be higher or lower depending on your calorie needs.

Frequently asked questions

1

Can I use elbow macaroni instead of spaghetti?

For a classic mac and cheese texture, swap the spaghetti for 2 cups uncooked elbow macaroni. The cooking time remains the same, but you'll want to use 1.5 cups milk and 1 cup heavy cream instead to maintain the creamy consistency. The dish will have a more traditional mac and cheese texture with those familiar little pockets of cheese.

Why did my baked mac and cheese turn out soggy? Soggy results usually happen when the breadcrumbs get wet or the baking time is insufficient. Always toast the breadcrumbs in the oven for 3-5 minutes before adding them to the top layer—they'll stay crispy longer. Also,

2

How do I make this dish extra crispy on top?

For maximum crispiness, start by tossing the breadcrumbs with 1 tablespoon melted butter before sprinkling them on top. Bake uncovered at 375°F for 25-30 minutes, then broil for 2-3 minutes until golden brown. If your oven runs hot, tent with foil for the last 10 minutes to prevent burning while still getting that crispy texture.

3

Can I make this ahead of time?

Yes! Assemble the dish up to 24 hours ahead and refrigerate uncovered. When ready to bake, cover tightly with foil and bake at 375°F for 30-35 minutes (5-10 minutes longer than fresh). For freezer-friendly portions, wrap individual servings in parchment and foil—bake straight from frozen at 375°F for 45-50 minutes. The texture stays creamy, though the crust may not be as crispy.

4

What's the best cheese substitute if I don't have Gruyère?

Gruyère adds nutty depth, but you can substitute with ½ cup extra sharp cheddar or ½ cup Parmesan cheese for a similar rich flavor. For a creamier texture, add ¼ cup cream cheese to the sauce. Avoid pre-shredded cheese—it contains anti-caking agents that make the sauce grainy when baked.

★★★★★4.8(2 reviews)
Categories Main Courses