Sweet potato pasta gratin is basically autumn comfort food at its absolute finest—creamy, cheesy pasta meets the natural sweetness of roasted sweet potatoes in a dish that’s somehow both sophisticated and soul-warming. I’m talking about layers of tender pasta, caramelized sweet potatoes, and a rich cheese sauce that gets all bubbly and golden on top. This isn’t your typical pasta bake or your standard sweet potato casserole; it’s this gorgeous hybrid that’ll make everyone at your dinner table wonder why they’ve been eating boring sides all their lives.
I discovered this sweet potato pasta gratin combo during one of those “clean out the pantry” cooking sessions when I had leftover roasted sweet potatoes and was craving something more exciting than reheated leftovers. What started as a random experiment became my go-to dish for impressing people without actually working that hard. The best part? It tastes like you spent hours in the kitchen, but it’s surprisingly straightforward to make.

Why This Sweet Potato Pasta Gratin Will Become Your Fall Obsession
• Perfect fall comfort food – Sweet potatoes and cheese sauce are basically a hug in casserole form • Impressive presentation – Looks like something from a fancy restaurant but uses simple ingredients • Make-ahead friendly – Assemble hours ahead and just pop in the oven when ready • Crowd-pleaser magic – Appeals to both adventurous eaters and comfort food traditionalists • Leftover gold – Actually tastes better the next day (if there are any leftovers)
What You’ll Need (Ingredients)
For the Sweet Potato Pasta Gratin Base:
- 2 lbs sweet potatoes (900g) – medium-sized work best
- 12 oz penne or rigatoni pasta (340g) – shapes that hold sauce well
- 3 tbsp olive oil (45ml)
- 1 large onion, thinly sliced (about 2 cups)
- 4 cloves garlic, minced
- 2 tbsp fresh sage leaves (or 1 tsp dried)
- Salt and black pepper to taste
- ¼ tsp ground nutmeg
- Pinch of red pepper flakes (optional)
For the Creamy Cheese Sauce:
- 4 tbsp butter (60g)
- 4 tbsp all-purpose flour (30g)
- 3 cups whole milk (720ml) – warmed slightly
- 1 cup heavy cream (240ml)
- 2 cups Gruyère cheese, grated (200g) – the star of the show
- 1 cup sharp white cheddar, grated (100g)
- ½ cup Parmesan cheese, grated (50g)
- 1 tsp Dijon mustard
- ½ tsp salt
- ¼ tsp white pepper
For the Golden Topping:
- 1 cup panko breadcrumbs (60g)
- ½ cup grated Parmesan (50g)
- 3 tbsp butter, melted (45g)
- 2 tbsp fresh thyme leaves
- Extra Gruyère for sprinkling
Essential Equipment
- Large rimmed baking sheet
- Large pot for pasta
- Large skillet
- Medium saucepan for cheese sauce
- 9×13 inch baking dish (or equivalent gratin dish)
- Whisk
- Sharp knife
- Cheese grater

Step-by-Step Instructions for Perfect Sweet Potato Pasta Gratin
Roast Those Sweet Potatoes to Perfection
- Preheat and prep – Heat oven to 425°F (220°C). Line a large baking sheet with parchment paper for easy cleanup.
- Prep the sweet potatoes – Peel sweet potatoes and cut into ¾-inch cubes. You want them substantial enough to hold their shape but not so big they take forever to cook.
- Season and roast – Toss sweet potato cubes with 2 tablespoons olive oil, salt, and pepper. Spread in a single layer on the baking sheet and roast for 25-30 minutes until tender and lightly caramelized. They should be fork-tender but not mushy.
Cook Pasta and Build Flavor Base
- Cook pasta perfectly – While sweet potatoes roast, cook pasta in heavily salted water until just shy of al dente (about 1 minute less than package directions). It’ll finish cooking in the gratin, so don’t overdo it.
- Caramelize the onions – In a large skillet, heat remaining olive oil over medium heat. Add sliced onions and cook for 8-10 minutes until golden and caramelized. This step adds incredible depth to the dish.
- Add aromatics – Add minced garlic and sage leaves to the onions, cooking for another 1-2 minutes until fragrant. Season with salt, pepper, nutmeg, and red pepper flakes if using.
Create the Ultimate Cheese Sauce
- Make the roux – In a medium saucepan, melt butter over medium heat. Whisk in flour and cook for 2 minutes, stirring constantly. This removes the raw flour taste and creates the base for your sauce.
- Add liquids gradually – Slowly whisk in the warm milk and cream, making sure there are no lumps. Add Dijon mustard, salt, and white pepper. Simmer for 3-4 minutes until thickened.
- Melt in the cheese – Remove from heat and gradually whisk in Gruyère, cheddar, and Parmesan until completely smooth and melted. Taste and adjust seasoning—this should be rich and flavorful.
Assemble Your Sweet Potato Pasta Gratin
- Reduce oven temperature – Lower oven to 375°F (190°C). Butter your baking dish generously.
- Layer the magic – In your prepared dish, combine cooked pasta, roasted sweet potatoes, and caramelized onion mixture. Pour the cheese sauce over everything and gently fold to combine, making sure everything is well coated.
- Top for golden perfection – Mix panko, Parmesan, melted butter, and thyme in a bowl. Sprinkle evenly over the gratin, then add a final sprinkle of extra Gruyère for maximum cheese factor.
Bake to Bubbly Golden Perfection
- Bake until gorgeous – Bake for 35-40 minutes until bubbly around the edges and golden brown on top. The surface should be crispy while the inside stays creamy.
- Rest before serving – Let the sweet potato pasta gratin rest for 10 minutes before serving. This helps it set up and prevents molten cheese disasters.
Smart Substitutions and Seasonal Variations
Different squash: Butternut squash or delicata squash work beautifully instead of sweet potatoes. Just adjust roasting time accordingly.
Cheese alternatives: Fontina or aged white cheddar can substitute for Gruyère, though the flavor will be different.
Gluten-free version: Use gluten-free pasta and substitute flour with cornstarch (use 3 tablespoons instead of 4 tablespoons flour).
Herb variations: Try fresh rosemary or oregano instead of sage for different flavor profiles.
Protein additions: Cooked Italian sausage, bacon, or roasted chicken make this a complete meal.
Pro Tips for Sweet Potato Pasta Gratin Success
• Don’t skip the roasting step – Raw sweet potatoes will release too much moisture and make your gratin watery. Roasting concentrates flavors and removes excess moisture.
• Warm your milk – Cold milk added to hot roux can cause lumps. Slightly warm milk incorporates much more smoothly.
• Grate cheese fresh – Pre-shredded cheese has anti-caking agents that prevent smooth melting. Fresh-grated is worth the effort.
• Layer thoughtfully – Make sure sweet potatoes and onions are evenly distributed throughout, not just sitting on top or bottom.
• Cover if browning too fast – If the top gets too dark before the inside is heated through, tent with foil and continue baking.
Common Mistakes That’ll Ruin Your Gratin
Overcooking the pasta – It continues cooking in the oven, so undercook it initially. Mushy pasta ruins the texture.
Underseasoning the components – Season the sweet potatoes, onions, and cheese sauce separately. Each layer should be flavorful on its own.
Rushing the onions – Properly caramelized onions take time and add incredible sweetness and depth. Don’t shortcut this step.
Making sauce too thick – The sauce should coat a spoon but still be pourable. It thickens more as it bakes.
Not letting it rest – Cutting into it immediately results in a saucy mess. Patience equals better presentation.
Make-Ahead and Storage Magic
Make-ahead strategy: Assemble the entire sweet potato pasta gratin (without breadcrumb topping) up to 1 day ahead. Cover and refrigerate, then add topping and bake when ready.
Storage: Leftovers keep for 4-5 days in the fridge and honestly taste even better as the flavors meld together.
Reheating: Cover with foil and reheat at 350°F until warmed through, about 25-30 minutes. Add a splash of milk if it seems dry.
Freezing: Freezes well for up to 2 months. Thaw completely before reheating for best results.
Perfect Fall Pairings
This sweet potato pasta gratin pairs beautifully with:
- Simple arugula salad with lemon vinaigrette to cut through the richness
- Roasted pork tenderloin or herb-crusted chicken for protein
- Sautéed green beans or roasted Brussels sprouts for color contrast
- Crusty sourdough bread for sopping up any extra cheese sauce
- Pinot Noir or Chardonnay for wine pairing perfection
Nutritional Info (Per Serving, Serves 8)
Real talk about this indulgent comfort food
- Calories: 485
- Protein: 18g
- Carbohydrates: 52g
- Fat: 22g
- Fiber: 4g
- Vitamin A: 184% daily value (hello, sweet potatoes!)
- Calcium: 25% daily value

Sweet Potato Pasta Gratin
Equipment
- Large rimmed baking sheet
- Large pot (for pasta)
- Large skillet
- Medium saucepan
- 9×13-inch baking dish
- Whisk
- Sharp Knife
- Cheese grater
Ingredients
- 2 lbs sweet potatoes (medium-sized, peeled and cubed)
- 12 oz penne or rigatoni pasta
- 3 tbsp olive oil
- 1 large onion, thinly sliced
- 4 cloves garlic, minced
- 2 tbsp fresh sage leaves (or 1 tsp dried)
- to taste salt and black pepper
- 1/4 tsp ground nutmeg
- pinch red pepper flakes (optional)
- 4 tbsp butter
- 4 tbsp all-purpose flour
- 3 cups whole milk (warmed)
- 1 cup heavy cream
- 2 cups Gruyère cheese, grated
- 1 cup sharp white cheddar, grated
- 1/2 cup Parmesan cheese, grated
- 1 tsp Dijon mustard
- 1/2 tsp salt
- 1/4 tsp white pepper
- 1 cup panko breadcrumbs
- 1/2 cup grated Parmesan (for topping)
- 3 tbsp butter, melted
- 2 tbsp fresh thyme leaves
- to taste extra Gruyère for topping
Instructions
- Preheat oven to 425°F (220°C) and line a baking sheet with parchment paper.
- Peel and cube sweet potatoes into ¾-inch pieces.
- Toss cubes with 2 tbsp olive oil, salt, and pepper. Roast 25–30 minutes until caramelized and fork-tender.
- Cook pasta in salted water until just shy of al dente. Drain and set aside.
- In a skillet, sauté onions in remaining olive oil until caramelized, 8–10 minutes.
- Add garlic, sage, nutmeg, and red pepper flakes. Cook 1–2 minutes until fragrant.
- In a saucepan, melt butter and whisk in flour. Cook 2 minutes to form roux.
- Gradually add milk and cream, whisking constantly. Add Dijon, salt, and white pepper. Simmer until thickened.
- Remove from heat and stir in Gruyère, cheddar, and Parmesan until melted.
- Lower oven to 375°F (190°C). Butter baking dish.
- Combine pasta, sweet potatoes, and onion mix in the dish. Pour in cheese sauce and fold gently.
- Mix breadcrumbs, Parmesan, melted butter, and thyme. Sprinkle on top. Add extra Gruyère if desired.
- Bake for 35–40 minutes until bubbly and golden brown.
- Let rest for 10 minutes before serving.
Notes
Nutrition
Your Most Important Questions About Sweet Potato Pasta Gratin
Q: Can I use regular potatoes instead of sweet potatoes? A: You could, but you’d lose that subtle sweetness that makes this dish special. If you do substitute, maybe add a touch of maple syrup to the cheese sauce to compensate.
Q: What if I can’t find Gruyère cheese? A: Swiss cheese is the closest substitute, or try fontina for a different but delicious flavor. The dish won’t be quite the same, but it’ll still be amazing.
Q: Can I make this sweet potato pasta gratin dairy-free? A: It’s challenging since dairy is central to this dish, but you could try cashew cream and nutritional yeast. The texture and flavor will be completely different, though.
Q: How do I know when the gratin is done? A: It should be bubbly around the edges, golden brown on top, and when you insert a knife in the center, it should come out hot. The internal temperature should reach 165°F (74°C).
Q: Can I add protein to make this a complete meal? A: Absolutely! Cooked Italian sausage, diced ham, or shredded rotisserie chicken all work beautifully. FYI, add cooked proteins when you combine the pasta and sweet potatoes, so everything heats through evenly.
There you have it—sweet potato pasta gratin that’ll make your fall dinner table the envy of everyone who tries it. This is the kind of dish that bridges the gap between everyday comfort food and special occasion elegance, and honestly, it might just become your new signature recipe. Whether you’re hosting a dinner party or just want to treat your family to something extraordinary, this gratin delivers cozy, cheesy, sweet potato perfection every single time! :/






