This is the BEST Vegan Sweet Potato Casserole, with a warmly spiced, melt-in-your-mouth sweet potato layer baked beneath a crunchy butter pecan topping. It’s a sweet and decadent side dish no one will guess is vegan!
The side dishes are the best part of the holiday meal! Especially when The Best Vegan Stuffing, my Vegan Green Bean Casserole, and these Vegan Scalloped Potatoes are on the menu.

Meet one of my favorite Thanksgiving foods: Sweet Potato Casserole with Pecan Topping. This is a classic, must-have dish for any holiday meal, just like my Vegan Turkey Roast. It’s basically a dessert that passes as a side dish!
The sweet potatoes are perfectly sweet, smooth, and decadent, while the buttery pecan topping adds just the right amount of crunch. It’s easy peasy to put together and always a crowd-pleaser at dinner! I usually have at least one guest ask for the recipe before the night ends.
⭐⭐⭐⭐⭐
“I just made this for a Friendsgiving gathering and it was THE DISH of the entire night. Everyone absolutely loved it — even the non-vegans! It is DELICIOUS. The perfect amount of sweet, with that touch of texture from the pecans.” – Brianna
Why you’ll love this sweet potato casserole
- The sweetest side dish – Between the meaty vegan wellington and garlicky mashed potatoes smothered in vegan gravy, holiday dinners tend to lean savory. This sweet potato side dish brings a perfect pop of sweetness to the meal!
- Make it ahead of time – No oven space? No problem! Prepare the casserole hours before the holiday dinner, then bake right before everyone sits down.
- Flexible – You can adjust the sweetness, make it gluten-free, or lighten it up as needed.

How to make a vegan sweet potato casserole
Find the complete printable recipe with measurements below in the recipe card.
First, boil the sweet potatoes: Add the sweet potatoes to a large pot, cover with water, and bring to a boil. Cook until fork-tender. Drain, then add them back to the pot.
Roast the sweet potatoes instead
I prefer to boil the potatoes, but a bunch of my readers roasted them instead and had great results! If you’d like to try it, roast the whole sweet potatoes in a 400ºF oven for 1 hour or until fork-tender. Set aside to cool, then scoop out the flesh and mash as normal.
Add the coconut milk, brown sugar, vanilla, salt, cinnamon, and nutmeg to the pot with the boiled sweet potatoes. Mash with a potato masher until smooth.

Transfer the mashed sweet potatoes to a casserole dish and spread into an even layer.
To make the pecan topping, combine the topping ingredients (except the pecans) in a bowl and mix until you have moist crumbs. Fold in the pecans to finish.
Evenly sprinkle the pecan topping over the sweet potatoes, then bake until the edges are bubbly and the topping is golden.


Serve warm with the rest of your vegan Thanksgiving menu and enjoy!

Frequently asked questions
Absolutely! Vegan mini marshmallows would be great on top. Just keep in mind that they’ll make the casserole taste sweeter.
Yes, you can make a gluten-free sweet potato casserole by swapping the all-purpose flour for a 1:1 gluten-free baking flour or almond flour.
I personally like the sweetness in this casserole, but if you’d prefer a less-sweet version, cut the sugar in half in the sweet potato mixture. Or, use 1/2 cup of pure maple syrup and decrease the coconut milk by 1/2 cup.
Almond, cashew, oat, and soy milk all work as substitutes for the coconut milk.
Sure! Spread the sweet potato filling in the casserole dish, then cover it with plastic wrap and refrigerate overnight. You can also make the topping and chill it in the fridge until it’s time to bake.
When you’re ready to bake, sprinkle the pecan topping over the sweet potatoes and bake as normal, adding 5 to 10 minutes to the bake time.
Cover the cooled leftovers and refrigerate for 4 to 5 days. You can eat it right out of the fridge or reheat it in the oven or toaster oven to crisp up the topping. I love treating myself to a scoop for a sweet breakfast or dessert!
You can also freeze the leftover sweet potato casserole (without the pecan topping), but I find that it tastes better made fresh.


Vegan Sweet Potato Casserole
Ingredients
- 9 cups peeled and chopped sweet potatoes, about 4 large
- 1 cup full-fat coconut milk
- 1 cup lightly packed brown sugar
- 1 teaspoon pure vanilla extract
- 3/4 teaspoon salt
- 1 teaspoon cinnamon
- 1/2 teaspoon nutmeg
Butter Pecan Topping
- 2/3 cup brown sugar
- 5 tablespoons vegan butter, softened to room temperature
- 1/2 cup all-purpose flour or gluten-free all-purpose
- 1/4 teaspoon salt
- 1 cup chopped pecans
Instructions
- Add the sweet potatoes to a large pot, cover with water and bring to a boil. Cook for 10-15 minutes until the potatoes are fork tender. Drain, then add them back to the pot or a large bowl.
- Preheat oven to 350 degrees F and lightly grease a 9 x 13 casserole dish.
- To the large pot or bowl with the cooked sweet potatoes, add the coconut milk, brown sugar, vanilla, salt, cinnamon and nutmeg and mash with a potato masher. Continue to mash or stir with a spoon until well combined. You can also use a hand mixer.
- Spread the potato mixture in the prepared dish, and smooth it out evenly with a spatula.
- Make the topping: In a medium bowl, stir all the topping ingredients, except the pecans, together with a spoon. Use your hands if necessary until moist crumbs form. Now mix in the pecans.
- Evenly sprinkle the topping on the sweet potato filling and bake for 35-45 minutes, until bubbly on the edges and the topping is golden brown. Serve immediately!
Notes
- Make ahead: The casserole is best served right away, or the crunchy topping will soften. You could prep earlier by making the filling, spreading it in the pan, cover and chill until you are ready to bake it. Then simply make and add the topping, and bake until done.
- Less sweet: While I think this casserole is perfectly sweetened, feel free to cut the sugar in half in the sweet potato mixture, if desired. Or sub 1/2 cup pure maple syrup, and decrease the coconut milk by 1/2 cup.
- Gluten free: Easy! Just substitute gluten-free flour for the regular flour. Almond flour would work here as well.
- Nut free: If you have a pecan allergy, feel free to substitute walnuts or another nut/seed you can have. Or simply leave out the nuts entirely; it will still be good. I’d probably double the topping if leaving out the nuts altogether.
- May use coconut oil in place of the vegan butter. Use softened, but not melted coconut oil for best results.
- May substitute full-fat coconut milk for almond, cashew or soy milk for a lighter dish.




















Thank you, Nora.
I always go to your website first whenever I need a recipe.
I haven’t ever gone wrong when I do.
You are welcome, Jim! I appreciate your support for my recipes, and I’m thrilled that you are enjoying them! Thank you for taking time to share your glowing review with me! Wishing you happy cooking!
Could this be frozen prior to baking (with or without the topping), thawed, then baked? I need to prep one week before.
Yes, you can freeze it. Let it thaw overnight in the fridge, then bake. It may need a few extra minutes in the oven. You can freeze it with or without the topping.
I’ve been making the same sweet potato casserole for holiday gatherings for over 20 years…until now. I gave this a try for our Christmas dinner, and it’s my new favorite! Everyone loved it, and that pecan topping, oh my! Great recipe, Nora!
Made them again and baked potatoes and made exactly as written but my partner loves marshmallow. I made it with pecans and added some Trader Joe’s small marshmallows to half of it. I also made half of the portion D I didn’t have enough sweet potatoes. Perfection!
This recipe was great and I will be making it again in the future. The steps are very easy. I cut the sugar to 3/4 cup in the potato mixture. I was certain there were 4TBS of butter in one stick (oops) and ended up putting in double the amount of butter in the topping. When mixing it didn’t turn into a “crumbly mixture” like the recipe stated. Instead it turned into a dough. However, the dish still turned out delicious, even with my error.
“The best sweet potato casserole I’ve ever had” – were comments from several people! I cooked the potatoes in the instant pot and reduced the sugar, but otherwise followed the recipe as written. Brava!!
I made this today! It’s so good! I’m going to make it every Thanksgiving now!
How many cups do the potatoes make mashed?
I believe around 3-4 cups mashed.
Thank you!
Looks great! Do you use raw pecans? Thanks.
Thanks! Yes, I use raw pecans. They toast in the oven on top of the casserole.
Love this recipe! Super delicious!
can this be made with coconut cream instead of the full fat milk?
Sure, it will just be quite rich but that’s fine if it’s what your going for. 🙂
I’m 42 years old and have never commented on a recipe in my life, but this is seriously such a fantastic recipe. For those wondering about the “9 cups of potatoes” – I used a 4 pound bag and that was just about perfect for the 12 serving recipe. You could probably use 5 pounds and keep the rest of the measurements if you want it a little less sweet, but there’s definitely plenty of butter pecan topping.
Thank you very much for taking the time to leave a comment and review, I really appreciate it. I’m glad yo hear you enjoyed the sweet potato casserole. It’s essential to my family’s Thanksgiving every year.
I haven’t made this yet but wonder if roasting the potatoes would change the flavor at all?
I’ve done this before, and it’s a little bit different, but I actually prefer it with boiling the potatoes. Either way is fine though!
This recipe looked promising but we all found it way too sweet. I may make it again with half the sugar or less. It may then be excellent. It’s neither a dessert nor a side dish as it is.
I would like to make with pieces of sweet potatoes instead of mashed potatoes- prefer the texture. Thinking of roasting the potatoes part way then adding the the topping and baking to finish. Does that make sense or would you fully roast and just add the topping to toast ?
I’d probably fully roast the potatoes before adding the topping, then add the topping to toast for a few minutes, not too long. I hope you enjoy it this way, I’ve never tried it but I’m sure it will be delicious!
I just happened upon this vegan recipe, looking for the one I made for Thanksgiving.
Those instructions specified vegan brown sugar – what, I thought !? I did a little research,
a significant portion of sugar is filtered through “bone char” brown sugar begins with white sugar with molasses added, as you know.
However, “Yes, you can avoid bone-charred brown sugar by choosing sugars that are labeled as “USDA Certified Organic” or are made from beet sugar”
So this depends on where you live in the world. In the U.S. you can easily choose organic sugars to make sure they are vegan. Some folks may choose not to worry too much about sugar and are doing the best they can (obviously organic sugars can be expensive or difficult to find for some people). I’m not the vegan police, and I don’t want to make it even more difficult for people who are doing the best they can. 🙂 If that makes sense. But for you, just buy organic and you’re good to go! That’s what I do.
Delicious! It was my favorite dish this year at thanksgiving. I did half the amount of sweetener in the sweet potato filling using part brown sugar and part maple syrup. I used almond slices instead of pecans to accommodate for a severe allergy. The almond slices still have a little crunch even with reheating. I’ll definitely make this again! Thank you for the recipe!
You are welcome, Jessica! This is such a cozy and wonderful dish to have at the table! Thanks for sharing your ideas, and your wonderful review! I’m so glad you loved the casserole! Wishing you happy cooking!
This was delicious 😋. Both Non-vegans and vegans loved it. I made it exactly as written.
Hi Helen. I’m so glad everyone loved the casserole! I love this one as well! Thanks for your awesome review and feedback!
Wow!! This was such a hit for our family for Thanksgiving 2024! We made the recipe as indicated, but we did the pecan topping on only half of the casserole. In the other half, we added mini marshmallows halfway through the bake time. It was sweet, but not overly so— the perfect compliment to the savory dishes on the table. Everyone loved it! We will definitely be making this again.
Hi Liz. Good idea to half the marshmallows and pecans! I love it! I’m thrilled the casserole was a hit! Thanks for sharing your awesome review and feedback! Happy cooking!
I made a couple of alterations. I used oatmilk instead of coconut. I doubled the topping plus an additional 1/2 cup pecans. I omitted the nutmeg. Doubled the cinnamon.
This is by far the best sweet potato casserole I’ve ever made, eaten, smelled, looked at etc.
You don’t have to serve this immediately either. It reheats very well.
If you’re concerned about serving this to non vegans, don’t worry. I’m not vegan, not by a long shot. I’d choose this every day over non vegan. Marshmallows will never come close to the topping here.
This recipe is extremely easy to modify to what you have on hand and personal flavor profiles.
Can you use canned sweet potato?
You probably can yes, but I haven’t ever done that.
Yes, my first time making it i used canned. 1 to 1. So use 9 cups of drained, canned sweet potatos or yams.
I make something similar and add orange juice and grand marnier