Main Courses
This baked spaghetti mac and cheese delivers the perfect marriage of crispy golden edges and gooey, pull-apart layers—transforming a comfort food classic into something restaurant-worthy. The secret lies in cooking the spaghetti al dente before baking, ensuring each strand stays tender while absorbing the rich, cheesy sauce.
I’ve perfected this technique after years of testing, and the results speak for themselves: a dish that’s impossible to resist.
What sets this recipe apart is the combination of traditional methods with a modern twist—using spaghetti instead of traditional elbow macaroni creates a visually stunning, textured bake. The sauce starts with a velvety roux base, layered with sharp cheddar, Gruyère, and a touch of cream cheese for extra creaminess.
A crispy breadcrumb topping seals in the flavors while adding that coveted crunch.
The baking process is where the magic happens: the pasta absorbs the sauce while the top develops a golden, crackly crust that’s impossible to stop pulling apart.
Each bite delivers that perfect balance of crispy edges and molten cheese centers, making it ideal for family dinners, holiday gatherings, or even a cozy weeknight treat. The best part? It’s easier than it looks, with foolproof steps that ensure success every time.
For an extra boost, consider adding crispy bacon or a sprinkle of smoked paprika before baking—these small additions elevate the dish without complicating the process. Once you try this version, you’ll never go back to the basic boxed mix. Let’s get started on creating your new favorite comfort food masterpiece.
Ingredients for baked spaghetti mac and cheese
Twelve ingredients transform into the ultimate comfort food masterpiece—crispy, gooey, and impossible to resist.
| Ingredient | Amount | Notes |
|---|---|---|
| Spaghetti 🍝 | 12 oz | Cooked al dente, drained |
| Unsalted Butter 🧈 | ½ cup | For velvety roux base |
| All-Purpose Flour 🌾 | ¼ cup | For roux foundation |
| Sharp Cheddar Cheese 🧀 | 2 cups | Shredded, aged variety |
| Gruyère Cheese 🧀 | 1 cup | Shredded, nutty flavor |
| Cream Cheese 🧀 | 4 oz | For extra creaminess |
| Whole Milk 🥛 | 1 cup | Warmed for smooth sauce |
| Panko Breadcrumbs 🍞 | ½ cup | For crispy topping |
| Extra-Virgin Olive Oil 🫒 | 1 tbsp | For breadcrumb crispiness |
| Garlic Cloves 🧄 | 2 cloves | Minced for flavor depth |
| Salt 🧂 | 1 ½ tsp | Adjust to taste |
| Black Pepper 🌶️ | ½ tsp | Freshly ground preferred |
| Smoked Paprika 🌶️ | ¼ tsp | Optional for smoky kick |
| Bacon 🥓 | 4 oz | Crispy, chopped (optional) |
The cheeses are where this dish shines—Gruyère adds nutty depth while sharp cheddar brings that classic tang. I always grab Kraft sharp cheddar for its reliable melt and flavor punch, but Cabot or Tillamook work beautifully too. For Gruyère, Whittard of Chelsea is my go-to, but any quality pre-shredded will do in a pinch. The bacon? Oscar Mayer thick-cut or Costco bacon gives the best crispy texture when chopped small. Pro tip: toast the breadcrumbs in the oven for 5 minutes before adding to the top—they'll get even crunchier.
No Gruyère? Parmigiano-Reggiano works in a pinch, though it won't have that same creamy melt. Out of sharp cheddar? Monterey Jack softens the flavor but still delivers. The cream cheese is non-negotiable for that ultra-smooth texture, but if you're fresh out, add an extra 2 oz of cheddar and 1 tbsp milk. For the spaghetti, De Cecco or Barilla brands hold up best during baking. And if you're feeling fancy, swap the smoked paprika for a pinch of aleppo pepper—it adds a subtle heat that's absolutely essential for that restaurant-quality kick.
This dish reheats like a dream—just cover with foil and warm for 10 minutes at 350°F. Keeps for 3 days in the fridge, though I never make it that long. For make-ahead meals, assemble the dish up to 24 hours ahead and refrigerate uncovered so the top gets slightly dry—it'll crisp up beautifully when baked. Freezes for 2 months if you're planning ahead, but trust me, it's worth making fresh for maximum crispiness. The leftovers? Perfect for quick lunches—just microwave for 1 minute and watch that cheese pull apart again.
Why You'll Love This Recipe
- One-Pot Magic: I swear by this trick—no boiling pasta separately. Just toss the spaghetti straight into the butter and flour roux while it cooks, and by the time the cheese melts, it’s done. No colander, no mess, no fuss.
- Gruyère Glamour: That nutty Gruyère? It’s the star. Sharp cheddar gives it bite, but the Gruyère’s caramelized top? Pure satisfaction. (Yes, even on a Tuesday night.)
- Lunchbox Hero: Make a big batch on Sunday, and you’ve got lunches for the week. Pack it cold or reheat—it’s the same creamy, cheesy goodness. My kids fight over it, and that’s the real test.
- Budget Buster: Spaghetti and cheddar are cheap staples, but Gruyère makes it feel fancy. For half the cost of takeout, you get a dish that’ll have your family begging for seconds. Win-win.
Step-by-step instructions for baked spaghetti mac and cheese
Here's how to create that perfect golden crust with gooey layers—no shortcuts, just foolproof technique.
Cook the Spaghetti Al Dente
Bring a large pot of salted water to a rolling boil. Add the 12 oz spaghetti and cook according to package instructions until 1 minute before it reaches al dente. You want it to have a slight bite—this prevents mushiness when baked.
Drain immediately and rinse under cold water for 10 seconds to stop the cooking process. Toss with 1 tablespoon extra-virgin olive oil to prevent sticking. The oil also helps the cheese cling better later. Let it cool slightly before mixing with the sauce.
Make the Velvety Cheese Sauce
In a large skillet, melt the 0.5 cup unsalted butter over medium heat until foaming. Whisk in the 0.25 cup all-purpose flour and cook for 2-3 minutes until the mixture turns a pale golden color—this is your roux. Don't let it brown or it'll taste bitter.
Slowly pour in the 1 cup warmed whole milk while whisking constantly. Bring to a gentle simmer and cook for 3-4 minutes until thickened. Remove from heat and stir in the 2 cups sharp cheddar cheese, 1 cup gruyère cheese, 4 oz cream cheese, 1.5 tsp salt, 0.5 tsp black pepper, and 0.25 tsp smoked paprika until completely melted and smooth.
Combine Pasta and Sauce
Add the cooked spaghetti to the cheese sauce and toss gently until every strand is fully coated. If the sauce seems too thick, add 1-2 tablespoons of pasta water to loosen it. The mixture should be creamy but still spoonable.
For extra flavor, fold in the 4 oz crispy chopped bacon (if using) and 2 minced garlic cloves. The bacon adds a smoky depth while the garlic brightens the rich cheese. Taste and adjust seasoning—this is your last chance before baking!
Assemble and Create the Crispy Topping
Transfer the spaghetti mixture to a 9x13-inch baking dish, spreading it evenly. In a small bowl, mix together the 0.5 cup panko breadcrumbs and remaining 1 tablespoon extra-virgin olive oil until evenly coated. Sprinkle this mixture evenly over the top.
For extra flavor, you can add a sprinkle of smoked paprika or grated parmesan on top. The breadcrumb layer is what creates that irresistible crispy crust—don't skip this step!
Bake to Golden Perfection
Preheat your oven to 375°F. Bake the mac and cheese for 20-25 minutes until the top is deep golden brown and the edges are bubbling. The center should still be slightly jiggly—this ensures gooey perfection.
For the crispiest top, broil for 1-2 minutes at the end, watching closely to avoid burning. Let it rest for 5 minutes before serving—this helps the layers set and makes slicing easier. Serve immediately with a crisp green salad to cut through the richness!
Pro Tips For Making Baked Spaghetti Mac And Cheese
- COOK PASTA AL DENTE: I learned this the hard way—overcooked spaghetti turns your mac and cheese into mush. Pull it out when it’s still firm to the bite (about 1 minute less than package instructions), then toss it with the cheese sauce immediately. The residual heat finishes cooking it perfectly while absorbing flavor.
- GRATE CHEESE FINE: Sharp cheddar and Gruyère melt differently, so grating them separately makes a real difference. Use a box grater for cheddar (it’s sharper and melts faster) and a microplane for Gruyère (it’s nuttier and needs finer shards to distribute evenly). Mix them halfway through baking for layers of flavor.
- STIR SAUCE VIGOROUSLY: This isn’t the prettiest method, but it’s the tastiest. After whisking butter and flour into a roux, dump in the milk all at once and stir like your life depends on it—no lumps allowed. If you skip this, you’ll end up with a grainy, uneven sauce that won’t coat the pasta properly.
- BAKE COVERED THEN UNCOVERED: Start with 15 minutes covered in foil to let the sauce cling to the pasta, then uncover for the last 10 minutes. This two-step trick guarantees a creamy center and a golden, crispy top—no soggy mess. (Yes, even if you’re impatient like me.)
Make-ahead tips for this baked spaghetti mac and cheese
Prep Ahead Strategy
Assemble the entire dish up to 24 hours before baking for maximum flavor development. I recommend refrigerating the unbaked mac and cheese uncovered—this allows the top layer to dry slightly, creating an even crispier crust when baked. Just cover it loosely with plastic wrap and store in the fridge. 🧊
For the best texture, let the dish sit at room temperature for 30 minutes before baking after refrigeration. This prevents condensation from steaming the breadcrumb topping instead of browning it properly. Trust me, this small step makes all the difference in achieving that perfect golden crust.
Baking Timeline
If you're short on time, you can bake this dish straight from the fridge—just add 5-7 extra minutes to the baking time. I find that preheating the oven for 15 minutes before adding the cold dish helps maintain even cooking. The internal temperature should reach 165°F for food safety.
For a make-ahead meal prep version, bake the dish completely, then let it cool before storing in an airtight container. Reheat covered with foil at 350°F for 10 minutes—the crispy top will soften slightly but still deliver that comforting texture. This method works perfectly for lunches all week.
Freezing Instructions
This mac and cheese freezes beautifully for up to 2 months if stored properly. After baking, let it cool completely, then wrap tightly in plastic wrap followed by aluminum foil to prevent freezer burn. I like to portion it into individual servings for easy reheating.
To reheat from frozen, thaw overnight in the fridge, then bake at 375°F for 15-20 minutes until heated through. For a quick option, microwave on 50% power for 3 minutes, then finish in the oven to restore that crispy texture.
The cheese will be slightly less gooey after freezing, but still delicious!
Pro Tip for Leftovers
If you have leftovers, store them in the fridge for up to 3 days. To revive the texture, sprinkle a little warm milk over the top and broil for 2-3 minutes before serving. This restores some of that crispy magic while keeping the cheese creamy inside.
For a fun twist, I sometimes repurpose leftovers into mac and cheese muffins—just portion into greased muffin tins and bake at 375°F for 15 minutes. These handheld versions are perfect for parties or quick snacks! 💫
Nutrition facts
Frequently asked questions
Why does this recipe use spaghetti instead of elbow macaroni?
The long strands of spaghetti create a visually stunning bake with textured layers that hold sauce beautifully. Unlike elbow macaroni, spaghetti stays distinct when baked, preventing a mushy texture while adding that restaurant-worthy presentation. The strands also create perfect "pull-apart" pockets of melted cheese!
Can I make this dish vegetarian?
Simply omit the bacon and use nutritional yeast or vegan cheese for the same creamy texture. For extra flavor, add sautéed mushrooms or roasted garlic. The recipe will still deliver that perfect crispy-top, gooey-center combination without any animal products.
What's the secret to getting a crispy top without burning?
The key is preheating your oven for 15 minutes before baking and using the broil setting for just 1-2 minutes at the end. Watch closely—it only takes seconds to go from golden to burnt! For extra insurance, toast your breadcrumbs in the oven for 5 minutes before adding them to the top.
How do I fix mushy spaghetti after baking?
If your spaghetti turns out too soft, it likely cooked too long before baking. For future attempts, cook it 1 minute less than package instructions and rinse immediately with cold water. The oil coating also helps prevent sticking. If already baked, try reheating with 1 tablespoon of milk sprinkled on top to restore some creaminess.
Can I use this recipe for a large crowd?
Yes! Scale the recipe up by doubling all ingredients and use two 9x13-inch baking dishes or one 13x18-inch sheet pan. For even baking, rotate the pans halfway through the baking time. This version serves 12-14 people easily, making it perfect for gatherings or potlucks.
