This sweet potato casserole with pecan topping gives you the best of both Thanksgiving worlds: buttery, spiced sweet potatoes topped with a crunchy brown sugar-pecan topping AND gooey toasted marshmallows. No choosing sides required.
I like a sweet potato casserole with some texture, so this version isn’t just mashed sweet potatoes buried under marshmallows. The pecan topping adds that buttery crunch that makes every bite more interesting, while the marshmallows go on only for the final few minutes so they get soft and golden without disappearing into the casserole.
It’s also a very practical holiday side dish. The sweet potato mixture can be prepared ahead of time, which means less work when the oven and kitchen are already doing overtime on Thanksgiving.

Why This Recipe Works
- You get pecans AND marshmallows. The buttery brown sugar and pecan topping adds crunch, while miniature marshmallows give you that classic gooey Thanksgiving casserole finish.
- The filling isn’t plain mashed sweet potatoes. Butter, brown sugar and pumpkin pie spice turn the sweet potatoes into a rich, warmly spiced base that can hold its own underneath all that topping.
- The marshmallows are added at the end. The pecan topping gets most of the baking time, then the marshmallows are added for just the final 5 minutes so they soften without completely melting away.
- It’s easy to prep ahead. You can get much of the work done before Thanksgiving dinner, then finish and bake the casserole when you’re ready to serve it.
- It feeds a holiday crowd. One batch fills a 9×13-inch baking dish, making it a practical side dish for Thanksgiving, Christmas or another big family meal.
Ingredient Notes
Sweet potatoes: Use 5 medium sweet potatoes, or about 2 pounds total. Peel and cut them into similar-sized chunks so they cook evenly, then boil until very tender for easy mashing.
Brown sugar: You’ll use this in both the sweet potato filling and the pecan topping for sweetness and a hint of caramel flavor.
Pumpkin pie spice: One of my favorite shortcuts here. It adds warm fall flavor without having to measure out several individual spices. Ground cinnamon works as a simple substitute.
Pecans: Chop them fairly small so you get that buttery pecan crunch throughout the topping rather than big pieces in just a few bites.
Mini marshmallows: Don’t add these until the final 5 minutes of baking. This gives them enough time to soften and melt without completely disappearing into the casserole.
How to Make Sweet Potato Casserole With Pecan Topping

- Cook and mash the sweet potatoes
Place the peeled, chopped sweet potatoes in a large saucepan of boiling water. Cook for about 20 minutes, or until fork-tender. Drain well and mash.
Add the eggs, melted butter, milk, brown sugar and pumpkin pie spice. Stir until well combined.

- Make the pecan topping
Preheat the oven to 350°F and coat a 9×13-inch baking dish with cooking spray.
Spread the sweet potato mixture evenly in the prepared dish. In a separate bowl, combine the brown sugar, flour, chopped pecans and melted butter.

- Mix until crumbly
Stir the pecan mixture until the ingredients are completely combined and a crumbly topping forms.

- Add the pecan topping
Sprinkle the pecan topping evenly over the sweet potato mixture. Bake for 20 minutes.

- Add the marshmallows
Sprinkle the miniature marshmallows evenly over the casserole and return it to the oven for 5 minutes, or until the marshmallows are soft and lightly toasted.

- Serve
Let the casserole sit for a few minutes after removing it from the oven, then serve warm.
Recipe Notes
- For a less-sweet casserole: Reduce the brown sugar in the sweet potato filling slightly, but keep the brown sugar in the pecan topping for the best texture.
- Make it nut-free: Leave out the pecans for a nut-free version. The brown sugar, flour and butter mixture will have a different texture without the nuts, but you’ll still get a sweet crumble topping. Crushed pretzels can also add crunch, but keep in mind that they’ll add a salty flavor.
- Marshmallows are optional: Not everyone in my world is a marshmallow-on-sweet-potatoes person (maybe it’s a Minnesota thing?). Feel free to leave them off and let that crunchy pecan topping be the star.
- Fresh sweet potatoes are my preference: They give you more control over the texture and sweetness of the casserole. If using canned sweet potatoes, drain them very well before mashing and measure approximately the same amount of sweet potato called for in the recipe.
What To Serve With Sweet Potato Casserole
This casserole is right at home on a Thanksgiving or Christmas table alongside turkey, ham and other classic holiday sides. For everyday meals, it also pairs well with chicken, pork and beef.
Need more inspiration? I’ve rounded up 32 ideas for what to serve with sweet potatoes, including main dishes, vegetables, salads and more.
Can I Make Sweet Potato Casserole Ahead of Time?
Yes! This is one of my favorite things about this recipe, especially when I’m making it for Thanksgiving.
Prepare the sweet potato filling and spread it in the baking dish up to 2 days in advance. Cover tightly and refrigerate. I recommend keeping the pecan topping separate until you’re ready to bake so it stays as crisp as possible.
When you’re ready to serve, add the pecan topping and bake as directed, adding the marshmallows during the final 5 minutes. Because the casserole is starting cold, it may need a few extra minutes in the oven.
How To Freeze Sweet Potato Casserole
For the best texture, freeze the sweet potato filling without the pecan topping or marshmallows.
Prepare the filling and spread it in a freezer-safe baking dish. Let it cool completely, then cover tightly and freeze for up to 3 months.
Thaw overnight in the refrigerator. Add the freshly mixed pecan topping before baking, then add the marshmallows during the final 5 minutes as directed.
Sweet Potatoes vs. Yams: Which Should I Use?
Sweet potatoes and yams aren’t actually the same vegetable, even though the names are often used interchangeably in U.S. grocery stores.
For this sweet potato casserole, look for orange-fleshed sweet potatoes. They’re moist and naturally sweet when cooked, which makes them ideal for a soft, fluffy casserole filling. Depending on your grocery store, you may see varieties such as Beauregard, Jewel or Garnet, and some may even be labeled “yams.”
White- or pale-fleshed sweet potatoes are still sweet potatoes, but they tend to have a firmer, drier texture. For this recipe, stick with the orange ones.

Sweet Potato Casserole FAQs
Can I make sweet potato casserole without marshmallows?
Absolutely. Simply leave off the marshmallows and bake the casserole with the pecan topping. You’ll still get plenty of sweetness along with a buttery, crunchy topping.
Can I make sweet potato casserole without pecans?
Yes. You can leave out the pecans for a nut-free version. The topping will have a different texture without the nuts, but you’ll still get the buttery brown sugar crumble along with the marshmallows.
Why is my sweet potato casserole runny?
Make sure the cooked sweet potatoes are drained thoroughly before mashing. Excess water can make the filling loose. The casserole will also firm up slightly as it rests after baking.
Can I use canned sweet potatoes instead of fresh?
Yes. Drain canned sweet potatoes very well before mashing and use approximately the same amount called for in the recipe. I prefer fresh sweet potatoes because they give me better control over the texture and sweetness.
How do I know when sweet potato casserole is done?
The casserole should be hot throughout and the pecan topping should look set. During the final 5 minutes, the marshmallows should soften and begin to toast. Let the casserole rest for a few minutes before serving.
How do I store leftover sweet potato casserole?
Store leftover sweet potato casserole covered tightly or in an airtight container in the refrigerator for 3 to 4 days. Reheat individual servings in the microwave or warm a larger portion in the oven until heated through.
More Sweet Potato Recipes
If sweet potatoes are already on the menu, here are a few more ways to use them:
More Thanksgiving Recipes
Planning the rest of your holiday menu? These are a few more of my favorite Thanksgiving side dishes:
- Mom’s Mashed Potatoes
- Crockpot Mac and Cheese
- Hash Brown Casserole
- Cauliflower Stuffing
- Browse these 13 mac and cheese recipes for Thanksgiving for even more holiday side dish ideas.
Will you help add value to Pip and Ebby?
If you make this recipe and love it, stop back and give it a 5-star rating ⭐️⭐️⭐️⭐️⭐️ and leave a comment. THANK YOU!
Sweet Potato Casserole With Pecan Topping
Ingredients
Filling
- 5 medium sweet potatoes (about 2 pounds), peeled and cut into chunks
- 2 eggs
- 1/2 cup butter melted (1 stick)
- 1/2 cup milk
- 2 tsp pumpkin pie spice
- 1/2 cup brown sugar
Topping
- 1/2 cup brown sugar
- 1/2 cup all-purpose flour
- 1 cup pecans chopped
- 1/4 cup butter melted
- 5 cups miniature marshmallows
Instructions
Make The Filling
- Fill a large saucepan halfway with water and bring to a boil over high heat. Add the sweet potato chunks and boil for about 20 minutes, or until fork-tender. Drain well and mash.5 medium sweet potatoes
- Preheat the oven to 350°F and coat a 9×13-inch baking dish with cooking spray.
- Add the eggs, 1/2 cup melted butter, milk, 1/2 cup brown sugar and pumpkin pie spice to the mashed sweet potatoes. Mix well. Spread evenly in the prepared baking dish.2 eggs, 1/2 cup butter, 1/2 cup milk, 1/2 cup brown sugar, 2 tsp pumpkin pie spice
Make The Topping
- In a medium bowl, combine the remaining 1/2 cup brown sugar, flour, pecans and 1/4 cup melted butter. Stir until combined.1/2 cup brown sugar, 1/2 cup all-purpose flour, 1 cup pecans, 1/4 cup butter
- Sprinkle the pecan topping evenly over the sweet potato mixture. Bake for 20 minutes.
- Sprinkle the miniature marshmallows evenly over the casserole. Return to the oven and bake for 5 additional minutes, or until the marshmallows are soft and gooey. Serve warm.5 cups miniature marshmallows
Notes
- For a less-sweet casserole: Reduce the brown sugar in the sweet potato filling slightly, but keep the brown sugar in the pecan topping for the best texture.
- Make it nut-free: Leave out the pecans. The topping will have a different texture without the nuts, but you’ll still get a buttery brown sugar crumble and gooey marshmallow topping.
- Marshmallows are optional: Leave them off if you prefer a sweet potato casserole with pecan topping only.
- Using canned sweet potatoes: Drain them very well before mashing and use approximately the same amount called for in the recipe. I prefer fresh sweet potatoes for better control over the texture and sweetness.
- Make ahead: Prepare the filling up to 2 days in advance and refrigerate it tightly covered. Keep the pecan topping separate and add it just before baking. Add the marshmallows during the final 5 minutes.For the best combination of textures, bake the casserole with the pecan topping first, then add the marshmallows for only the final 5 minutes so they stay soft and gooey instead of melting into the casserole.
Nutrition

Megan Porta is a comfort food recipe creator who specializes in easy family meals and Instant Pot desserts, and the founder of Pip and Ebby. She has been cooking for three decades and developing recipes for over fifteen years, helping home cooks make reliable, cozy recipes for real life.



Love!!!! Use every year for Thanksgiving, Thank you so much for this perfect recipe 👌🥰🍠
I’m so glad to hear it’s enjoyed! Thank you for sharing!
Can this be made without eggs? My daughter had an egg allergy but loves sweet potato casserole
Hi, I have never tried a substitute but I think 1/4 cup unsweetened applesauce would work since it’s already a little bit sweet with the marshmallows on it. I’ve seen it recommended that you can try 1 tsp baking soda + 1 tbsp vinegar but I haven’t played around with it to know for sure. Let me know if you find something that works!
pumpkin pie spice is not under the list of ingredients but you have it on the instructions. Could you include how much pumpkin pie spice to add under the ingredient list?
Corrected! 1 tsp is needed for this recipe. Thank you!
Is it like pie where you put a knife or toothpick in the middle and it should come out clean?
It does!
Hi! I love this recipe and would love to print it out.. are you able to email me a copy with the ingredients and instructions? Thanks so much! It tastes delicious!
Hi Sarah,
This recipe is loaded onto the Pip and Ebby cooking app. There you can access the directions and email or screen shot the ingredients for yourself. I highly recommend trying the app for this!
There is a print button in the recipe card of the instructions. You can send yourself a PDF or copy and paste them into the body of an email so you can print from there.
Thank you!
Do the instructions change if I need to make it the night before and pop it in the oven to reheat it on Thursday?
Hi Grace,
I’ve never thought about that before. What I would say is that you could follow the instructions and cook it but not add marshmallows until the day of and after you reheat it, add the marshmallows for the topping. I’m just not sure you could prepare it and not cook it for a whole day – sorry I wasn’t more help!
Made this for Friendsgiving and was amazing! I added a bit more butter to topping mix and little more brown sugar to potato mix. Yum!
You can never go wrong with a little extra butter and sugar! Glad it was amazing! Thanks for letting me know!
Have a Friendsgiving/Going away party and I’m making these to bring!! Super excited and can’t wait to see how it turns out.
Great choice! It’ll be fun to share with others. Thanks for checking in! Happy Friendsgiving!
what kind of flour can you use?
I use all purpose flour, it’s pretty versatile and this isn’t much for a recipe.
It tried printing the recipe, but the gray text on a gray background is barely legible. Is there somewhere or some way I could print this without the gray background? Otherwise, I made it today for Christmas dinner and it turned out great using canned yams….fresh wasn’t conveniently available with all the other dishes I made.
Hi Donald! I just emailed you the recipe. I hope this helps and I’m so glad you enjoyed it!
Megan
Could canned sweet potatoes be used? And if so, would timing be different?
Hi Jenn! Yes, definitely swap out fresh for canned and no need to adjust cooking time. I hope it turns out great! Enjoy!
Megan
Thank you Megan! 🙂
I don’t know if my comment went through earlier, but when it came time to make the topping it came out in clumps and could not spread on the top. I followed the instructions, could I have put more butter or cut down on the flour?
Not sure why, Sheila, but to fix you definitely could have tried adding a little melted butter. I hope it tasted great!
Megan
I had my brother distracting me, plus he melted the butter in the microwave which I never do.
The measurements do not make sense. Please re-read and revise.
Hi Amy! I’m not sure what isn’t making sense, but the recipe is written out correctly. Topping ingredients are listed separately for better understanding. Hope this helps!
Megan
Could you do this without the pecans?
Definitely, Allie! The pecans add a little something, but still delish without.
Megan
The directions say only bake for 25 min. Mine came out super runny, almost like soup!! But at the top of the recipe it says that it takes 1 hour? Should I be baking the dish longer
Hi Danielle! The 1 hour refers to total time to make recipe. It should only be in the oven for 25 minutes. It definitely should not be runny! What was the consistency of your potato mixture before you added it to your baking dish? It should have been moist but not anywhere close to runny. I hope you’re able to salvage it!
Megan
Try putting it back in the oven for a bit and hopefully that’ll help!
Totally making this but I don’t have pecans in my house so I’m going to try walnuts! Hopefully it still turns out great! 🙂
Thoughts on assembling the night before and then baking the next day?
I am wondering the same thing. I made the sweet potatoes tonight and baked them without the marshmallows. Tomorrow I will reheat in oven and then add marshmallows! Hope this helps!
Let me know how this works, Jenny and Liz! I’ve never tried it before but will love to hear how it turns out. I’m sure it’ll be great!
Megan
Wow, HBN, nasty much?? Constructive criticism is one thing, but day-um!
I think it sounds delish! I will be making this on Thursday with the exception of roasting the tubers, rather thank boiling. Yum yum, can’t wait!
I hope you love it, Amanda! GREAT call on roasting the sweet potatoes. That’ll make it even tastier! YUM!
Megan
Should the butter be slated or unsalted?
Totally your call on this, Linds, but I always always use salted butter!
Megan
I made this for a friendsgiving dinner and didn’t get to taste it until the party. This recipe is awful, you lose the integrity of the sweet potatos and it just tastes like, as my cousin kindly put, "bootlegged pumpkin pie." Less than a quarter of what I made was actually eaten. If you’re looking for a sweet potato casserole recipe, LOOK ELSEWHERE.
"Awful"…oh no! This recipe is a favorite of ours and gets TOTALLY devoured every single time. It is soooo yummy and I can’t imagine anyone labeling it as "bootlegged pumpkin pie." 🙁
Have a Happy Thanksgiving!
The recipe also has false measurements. In the ingredients list, it calls for 1/2 cup of butter, but the instructions ask to use 1/2 cup of butter for the potato mixture, and 1/4 cup of melted butter for the topping, so it should be 3/4 cups total…
The 1/4 cup butter you are referring to is actually listed under TOPPING in the ingredient list. Hope that clarifies things!
@HBN Maybe you just don’t know how to cook and everyone saw that?