We may earn a commission when you click on the affiliate links in this post.
This Sweet Potato Casserole with Pecan Topping is one of those holiday side dishes my family looks forward to every Thanksgiving and Christmas. The sweet potato filling is smooth, buttery, and lightly sweet, while the brown sugar pecan topping gets golden and crisp with a little coconut mixed in. I also love that you can make it with canned or fresh sweet potatoes and prep most of it ahead of time.

5 Star Reviews ⭐️⭐️⭐️⭐️⭐️
“Best sweet potato casserole ever!!! This will be the only way I’m going to make sweet potato casserole from now on!!!” – Anke
“Most sweet potato dishes seem boringly similar. This one provides a few interesting surprises with coconut and pecans. Delicious!” – Christine
“I have made this casserole for the last couple of years & each time I’m asked to double the recipe. It’s the only way I make sweet potatoes for Thanksgiving and Christmas. Yes, it’s THAT yummy!” – Cherie
The Perfect Holiday Side Dish
I’ve tried a lot of sweet potato casseroles over the years, and this is the one my family asks me to double. It reminds me of the sweet potato casserole at Ruth’s Chris Steak House, but our version has shredded coconut mixed into the pecan topping, which gives it a little something extra.
What I really love is the contrast between the fluffy sweet potato layer and that crunchy brown sugar pecan topping. The egg helps the filling set, while milk and butter keep it creamy. Then the pecans, coconut, and brown sugar bake into a crisp topping that keeps the whole thing from feeling like plain mashed sweet potatoes.
I also usually make this with canned sweet potatoes because Thanksgiving dinner already gives me plenty to peel, chop, and cook. Fresh sweet potatoes work beautifully too, so you can use whichever is easiest for you.
🩷 Erica
Table of Contents
- 5 Star Reviews ⭐️⭐️⭐️⭐️⭐️
- The Perfect Holiday Side Dish
- Ingredients You’ll Need
- Ingredient Additions and Substitutions
- How to Make Sweet Potato Casserole with Pecan Topping
- Recipe Tips
- Frequently Asked Questions
- Make Ahead and Storage
- Pairing Ideas
- More Sweet Potato Recipes
- Sweet Potato Casserole with Pecan Topping Recipe
Ingredients You’ll Need

- Sweet potatoes: I usually use canned sweet potatoes because they make this recipe so quick, but cooked and mashed fresh sweet potatoes work too. Be sure to drain canned potatoes very well.
- Milk: Adds moisture and helps make the sweet potato filling smooth and creamy.
- Brown sugar: Used in both the sweet potato filling and pecan topping for a warm caramel flavor.
- Butter: Melted butter adds richness to the filling and helps the pecan topping bake up crisp and crumbly.
- Egg: Helps bind the sweet potato mixture so the casserole sets as it bakes instead of staying loose.
- Vanilla and salt: Vanilla brings out the sweetness of the potatoes while salt keeps the casserole from tasting overly sweet.
- Pecan coconut topping: Chopped pecans, shredded coconut, flour, brown sugar, and melted butter make the crunchy topping that sets this recipe apart.
Ingredient Additions and Substitutions
- Fresh sweet potatoes: Use 3 to 4 medium sweet potatoes, about 1 ½ to 2 pounds raw, or enough to give you about 3 ½ cups cooked and mashed sweet potato. Peel and cube them, then boil until very tender. Drain well and let excess steam escape before mashing.
- Warm spices: Add cinnamon, nutmeg, or a little pumpkin pie spice to the sweet potato mixture if you like more spice in your casserole.
- Marshmallows: You can add mini marshmallows during the last 10 minutes of baking. I like to keep the pecan topping too, or do pecans on one half and marshmallows on the other.
- Gluten-free: Replace the all-purpose flour in the topping with a cup-for-cup gluten-free flour blend.
- Dairy-free: Use an unsweetened nondairy milk, such as coconut milk, and plant-based butter. One of our readers uses coconut milk for dairy-free family members and says it turns out great.
- Less sugar: The brown sugar in the sweet potato layer can be reduced if you prefer a less sweet casserole. You can also cut back slightly on the topping sugar, although the topping may not get quite as crisp.
How to Make Sweet Potato Casserole with Pecan Topping

- Preheat the oven to 350°F and grease a 9×9-inch baking dish. Combine the sweet potatoes, milk, brown sugar, melted butter, egg, vanilla, and salt. Beat with a hand mixer for 1 to 2 minutes, or until the potatoes are smooth and fluffy.

- Spread the sweet potato mixture evenly into the prepared baking dish, smoothing the top with a spatula.

- Stir together the brown sugar, chopped pecans, shredded coconut, flour, and melted butter until the mixture is crumbly and slightly clumpy. Sprinkle it evenly over the sweet potatoes. For even more toasted coconut flavor, you can lightly toast the coconut in a dry skillet before adding it to the topping.

- Bake uncovered for 35 minutes, or until the pecan topping is golden and the sweet potato layer looks set. You may see a little bubbling around the edges. Let the casserole cool slightly before serving.
Recipe Tips
- Drain canned sweet potatoes really well. Too much liquid is one of the easiest ways to end up with a watery casserole.
- Let fresh sweet potatoes dry out a little after cooking. Once drained, give them a few minutes to release steam before mashing.
- Beat the filling until fluffy. A hand mixer works especially well. I usually beat it for 1 to 2 minutes.
- Use melted butter in the topping. Stir until the topping is crumbly and a little clumpy, then scatter it evenly over the potatoes.
- Watch the coconut if you toast it first. It can go from lightly toasted to burned very quickly.
- Look at the casserole, not just the timer. The topping should be golden and the center should look set rather than loose or watery.
- Double it for a crowd. Double all the ingredients and use a 9×13-inch pan. Bake for about 40 to 45 minutes.
- Add extra time if the casserole is cold. A casserole going straight from the refrigerator may need another 5 to 10 minutes.
- Reheat it in the oven when possible. The microwave works for individual portions, but the pecan topping will soften.

Frequently Asked Questions
Yes. You will need about 3 ½ cups cooked and mashed sweet potatoes, which is roughly 3 to 4 medium sweet potatoes. Peel and cube them, boil until very tender, then drain well before mashing. You can also roast the sweet potatoes if you prefer.
True yams and sweet potatoes are different vegetables, but the orange “yams” commonly sold in U.S. grocery stores are usually sweet potatoes. Canned sweet potatoes or canned yams can work in this recipe. Drain them very well before using.
The egg acts as a binder. It helps the sweet potato mixture set as it bakes while keeping the filling soft and creamy instead of loose or watery.
The pecan topping should be golden brown, and the sweet potato layer underneath should look set. It should not look watery or have a lot of movement in the center. A little bubbling around the edges is normal.
Yes. Double the entire recipe for a 9×13-inch baking dish and bake for about 40 to 45 minutes. Start checking it around the 40-minute mark.
Absolutely. Add mini marshmallows during the last 10 minutes of baking so they have time to puff and brown without burning. You can use marshmallows along with the pecan topping or do half pecan topping and half marshmallows.
Yes. The flour in the topping is the only ingredient you need to replace. Use your favorite cup-for-cup gluten-free flour blend in the same amount.
Yes. You can reduce the brown sugar in the sweet potato filling without changing the basic texture of the casserole. I would keep at least some brown sugar in the pecan topping because it helps create that crisp, crumbly finish.

Make Ahead and Storage
Make ahead: This is one of my favorite Thanksgiving recipes to prep early. Make the sweet potato filling and spread it in the baking dish up to 48 hours ahead. I recommend mixing the pecan topping separately and keeping it refrigerated in an airtight container. Sprinkle it over the casserole just before baking so it stays as crisp as possible. If baking straight from the refrigerator, plan on adding about 5 to 10 minutes to the baking time.
Store leftovers: Once cooled, cover the casserole or transfer leftovers to an airtight container. Refrigerate for 3 to 4 days.
Reheat: Reheat the casserole uncovered at 350°F for about 15 to 20 minutes, or until heated through. If the topping starts getting too dark, cover it loosely with foil. Individual servings can also be microwaved, but the topping will be softer.
Freeze: Prepare the sweet potato filling and freeze it without the topping for up to 2 months. Thaw overnight in the refrigerator, add the fresh pecan topping, and bake as directed.
Pairing Ideas
This Sweet Potato Casserole with Pecan Topping fits right into a classic Thanksgiving or Christmas dinner. I love serving it with Roasted Turkey or prime rib, Honey Baked Ham or Cranberry Chicken, Homemade Mashed Potatoes, Green Bean Casserole, Creamed Spinach, fresh Orange Cranberry Sauce, classic Sausage Stuffing, and warm Dinner Rolls. And you have to finish it off with a slice of Pumpkin Pie.
More Sweet Potato Recipes
This Sweet Potato Casserole with Pecan Topping has been a favorite at our holiday dinners for years. It has a creamy sweet potato filling and a crunchy pecan coconut topping, and it can easily be made ahead when you have a busy holiday meal to prepare.
If you make it for Thanksgiving, Christmas, or Sunday dinner, I’d love to hear what you think. Please leave a comment and star rating below and let me know if your family loved it too! Happy holidays! 🍂🍁
Sweet Potato Casserole with Pecan Topping

Video
Ingredients
Sweet Potato Filling
- 29 ounces sweet potatoes, drained (or 3 ½ cups cooked and mashed sweet potatoes)
- ¼ cup milk
- ¼ cup brown sugar
- 3 tablespoons butter, melted
- 1 egg
- 1 teaspoon vanilla
- 1/2 teaspoon salt
Pecan Topping
- ½ cup brown sugar
- ½ cup pecans, chopped
- 1/2 cup shredded coconut, sweetened
- 3 tablespoons flour
- 3 tablespoons butter, melted
Instructions
- Preheat the oven to 350°F. Grease a 9×9-inch baking dish. In a large bowl or mixer, combine the sweet potatoes, milk, brown sugar, melted butter, egg, vanilla, and salt. Beat with a hand mixer or stand mixer for 1 to 2 minutes, or until the sweet potatoes are smooth and fluffy.

- Spread the sweet potato mixture evenly into the prepared baking dish.

- In a small bowl, stir together the brown sugar, chopped pecans, shredded coconut, flour, and melted butter until crumbly.

- Sprinkle the topping evenly over the sweet potato mixture.

- Bake uncovered for 35 minutes, or until the topping is golden and the sweet potato filling is set. Cool slightly before serving.

Notes
- Drain canned sweet potatoes very well so the filling doesn’t become watery.
- If using fresh sweet potatoes, use about 3 ½ cups cooked and mashed potatoes and let excess moisture steam off before mixing.
- Beat the sweet potato mixture for 1 to 2 minutes for a lighter, fluffier texture.
- Use melted butter in the pecan topping and stir until the mixture is crumbly and slightly clumpy.
- To make a 9×13-inch casserole, double all ingredients and bake for about 40 to 45 minutes.
- For a gluten-free casserole, replace the flour in the topping with the same amount of cup-for-cup gluten-free flour.
- Add cinnamon, nutmeg, or pumpkin pie spice to the sweet potato filling if desired.
- Mini marshmallows can be added during the last 10 minutes of baking.
- For make-ahead preparation, refrigerate the sweet potato filling and topping separately for up to 48 hours. Add the topping just before baking and allow another 5 to 10 minutes if baking cold.
- Reheat leftovers at 350°F for 15 to 20 minutes for the best topping texture.
Nutrition
Nutrition information is automatically calculated, so should only be used as an approximation.
Love this recipe?
We want to hear from you! Please leave a review.




Love love love this recipe. I use less sugar, a little less than half a cup, and for the dairy-free family members, I use coconut milk. Amazing every time and has become a staple at our Thanksgiving dinner.
So glad to hear you love this recipe as much as we do! I’m getting ready to make it in a few days myself 🙂 Love the idea of coconut milk! Thanks for sharing!
If time is not an issue, are fresh sweet potatoes better? I’ve not used the canned before.
Totally! Fresh is never a bad idea. You can make the sweet potato base by cooking the sweet potatoes until they’re very soft, either by boiling peeled chunks for 15-20 min until VERY soft or baking them whole. Once tender, mash them until smooth. That’s really all you need for the casserole filling. From there you can proceed with the recipe. Hope this helps!
Best sweet potato casserole ever!!! This will ne the only way I’m going to make sweet potato casserole from now on!!!
I agree! I’m so happy you enjoyed it! 🙂
We cook this every Christmas, Easter and Thanksgiving. Never have any leftovers. I would like to know if it can be prepared and frozen? Thawed and warmed a week or so later? Sometimes we travel by car at Christmas and would like to take this dish with us.
This can be made ahead and frozen. For the best results, freeze the filling and topping separately. Prepare the sweet potato mixture according to the recipe directions up to the point of baking. Transfer to a freezer-safe casserole dish. Wrap it tightly in plastic wrap and then cover it with foil. Prepare the topping according to the recipe and place it in a freezer Ziplock bag. Thaw both for 24 hours in the refrigerator. Add the topping to the casserole just before baking. Thank you for asking, Rick. Happy Holidays!
Can this be prepared and then frozen. Thaw then cook? Or is it better to prepare, cook and then freeze, thaw and warm up?
Thank you for asking, Tricia. The answer to your question is prepare, freeze, thaw, then bake. IMPORTANT: Freeze the filling and the topping separately for best results. Prepare the sweet potato mixture, transfer to a freezer safe casserole dish, wrap tightly in plastic wrap and then foil to freeze. Prepare the topping and transfer to a freezer safe plastic bag (Ziplock). Thaw both in the fridge 24 hours. Add the topping to the casserole dish just before baking.
Most sweet potato dishes seem boringly similar. This one provides a few interesting surprises with coconut and pecans. Delicious!
Love this casserole. Goes well with everything.
I have made this casserole for the last couple of years & each time I’m asked to double the recipe. It’s the only way I make sweet potatoes for Thanksgiving and Christmas. Yes, it’s THAT yummy!
I love sweet potatoes. These are delicious. I am making them again for Thanksgiving.
So yummy! I made it last year for Thanksgiving and am already excited to make it again this year.
I love this recipe, the only thing I do different is I use orange juice instead of milk. It is so good!
Thank you for sharing this recipe, it is delicious!! Every time I make it I get requests for the recipe.
Love the nutritional value of super foods like sweet potatoes! I want to make this recipe more often! It is so good!
This by far my favorite Thanksgiving side dish! I have never tried it with the coconut before and it was incredible!
This recipe is easy to follow, make and it is delicious. All things sweet potato always, way to go.
We love this recipe, it tantalizes the tasetbuds and almost makes dessert unnecessary.