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.




I love that is so easy to make and so delicios. Even the pickiest eaters love it.
What kind of coconut did you use, sweetened or unsweetened?
Sweetened, but you can use unsweetened if you want. The brown sugar gives plenty of sweet. Thanks for asking!
Yum! Thank you so much, love all ur recipes!
This is really good. Just like my mom used to make, thank you for the recipe!
This is an easy sweet potato recipe. I love sweet potatoes and this is a great holiday recipe.
that is delicious! im gonna make it soon too
This recipe is the best I have ever tasted. My late mother made this recipe for many years while I was growing up and it was awesome. I occasionally make this recipe throughout the year, not just Thanksgiving or Christmas. It is very easy to prepare and I had a lot of fun doing this casserole. It simply cannot be beat!
This is my favorite. Sadly, I am the only one that likes sweet potatoes. More for ME
I never thought of using coconut with sweet potatoes, but this was delicious.
I am going to use this recipe this Thanksgiving. My husband loves homemade sweet potato casserole, and this is my go to recipe every time.
My family loves coconut. This was so delicious and easy to make. Thank you for the delicious recipe.
This is by far my favorite Thanksgiving side dish! I also like to switch up the toppings. I can’t wait to make and eat this next week!
I would give this recipe five star rating it was really delicious and I will make it again
Absolutely delicious, it was my first time tasting it and fell in love right away, will definitely be making this for Christmas dinner.
Thank you for the tips, very unique.
This casserole is delish! Something with a new twist to get the oooh and awww’s out of my guests.
This recipe is delicious!! I never thought to add eggs or coconut. I love coconut-this added another layer of flavor. This is the best recipe for sweet potatoes I have ever made & easy also! Make it, you won’t be sorry!!
This recipe is delicious and is easy to follow. I will for sure be keeping this one in my favorites.
This is the best sweet potato casserole ever.
Sweet potatoes is one of my favorite dishes, It is so delicious and easy to make.