This sweet potato casserole recipe has a creamy sweet potato filling and crisp brown sugar and pecan topping. Make it ahead for a crowd-pleasing Thanksgiving or holiday side dish!

This sweet potato casserole recipe has a crunchy, flavorful pecan topping with a creamy layer of sweet potatoes underneath. It’s easy to make with 8 simple ingredients, and you can prep it ahead—the ultimate mark of a great Thanksgiving or holiday side dish, if you ask me!
My family always has sweet potato casserole at Thanksgiving. When I was growing up, we had sweet potato casserole with marshmallows on top, but since I started making this pecan version a few years ago, we haven’t looked back. The contrast between the creamy filling and crunchy topping is absolutely delicious, and the toasty pecans add an extra layer of rich, nutty flavor. It’s become one of our favorite Thanksgiving recipes. I hope you love it as much as we do!

Sweet Potato Casserole Ingredients
Here’s what you’ll need to make this sweet potato casserole recipe:
- Sweet potatoes, of course! 4 pounds, or about 6 medium-large sweet potatoes, will create a nice thick layer at the bottom of your casserole dish.
- Eggs – They act as a binder in the sweet potato filling, helping it set up with a light, creamy texture.
- Pecans – They add delicious nutty flavor and crunch to the casserole topping.
- All-purpose flour and unsalted butter – They help the topping clump together. Make sure to use cold butter, not melted or room temperature. It will give the topping the best crumbly texture.
- Light brown sugar – It sweetens the topping and perfects its crunchy texture.
- Minced fresh rosemary – It’s optional, but delicious! I love its earthy, piney flavor with the sweet potatoes and pecans.
- And sea salt – To make all the flavors pop!
Find the complete recipe with measurements below.

How to Make Sweet Potato Casserole
This easy sweet potato casserole recipe has 5 main steps:
1. First, bake the sweet potatoes. I tested this filling two ways: with boiled sweet potatoes and with baked ones. I loved the baked sweet potatoes so much more! They have a creamier texture and a sweeter, more concentrated flavor after caramelizing in the hot oven, so you don’t need any extra sugar, butter, or milk in the filling mixture. (I even tested a version with butter and found it too rich alongside the buttery topping! The sweet potatoes just need 2 eggs to help them set up.)
I prepare the baked sweet potatoes using the method from my baked sweet potato recipe. Simply scrub the potatoes, pierce them several times with a fork, and bake at 425°F for 40 to 60 minutes, or until soft. You want them to be super tender so they get nice and smooth when you mash them.

2. While the sweet potatoes are baking, make the pecan topping. Combine the topping ingredients in a medium bowl. Using your hands or two forks, work the butter into the dry ingredients until the mixture is crumbly and holds together when pinched.
3. Then, mash the filling. Peel off and discard the sweet potato skins, then transfer the flesh to a large bowl. Add the salt and use a potato masher to mash until smooth. Add the eggs and mix until well combined.
4. Assemble the casserole. Spread the sweet potatoes in a large baking dish and sprinkle the pecan crumble on top.
5. Bake the casserole at 350°F for 40 to 50 minutes, or until the topping is golden brown and crisp. Let stand for 15 minutes before digging in!

How to Make Ahead, Store, and Freeze
To make ahead: Prepare the sweet potato filling and topping up to 2 days in advance. Spread the sweet potato mixture in the baking dish and cover tightly with a lid, plastic wrap, or aluminum foil. Store in the fridge. Store the topping in a separate container in the fridge. When ready to bake, sprinkle the topping over the filling and bake according to the recipe.
To store: Store leftover sweet potato casserole in the covered baking dish or an airtight container in the fridge for up to 4 days.
To freeze: You can freeze leftover sweet potato casserole for up to 3 months. Transfer it to freezer-safe containers, or cover and freeze it directly in the baking dish. Let thaw overnight in the fridge before reheating.
To reheat: Cover and heat in a 325°F oven for 15 to 25 minutes, or until warmed through. Reheat smaller portions in the microwave.
Recipe Tip
If you don’t want to prep the full casserole ahead of time, you can simply bake the sweet potatoes up to 4 days in advance. Store them wrapped in foil or in an airtight container in the fridge until you’re ready to make the casserole.

More Thanksgiving Side Dishes
If you love this sweet potato casserole, check out one of these classic Thanksgiving side dishes next:

Sweet Potato Casserole
Ingredients
Pecan Topping
Instructions
-
Preheat the oven to 425°F and line a baking sheet with foil.
-
Use a fork to poke a few holes in each of the sweet potatoes. Set them on the baking sheet and bake for 40 to 60 minutes, or until soft when pierced with a fork. Set aside to cool. Reduce the oven temperature to 350°F.
-
Meanwhile, make the pecan topping: In a medium bowl, combine the pecans, flour, brown sugar, butter, salt, and rosemary, if using. Using your hands or two forks, work the butter into the dry ingredients until the mixture is crumbly and holds together when pinched.
-
When the sweet potatoes are cool enough to handle, peel off the skins and transfer the soft flesh to a large bowl. Add the salt and mash until smooth, then add the beaten eggs and mix until well combined.
-
Transfer the sweet potatoes to a 9×13-inch baking dish and spread evenly at the bottom. Sprinkle with the pecan topping.
-
Bake at 350°F for 40 to 50 minutes, or until the topping is golden brown and crisp. Let stand for 15 minutes before serving.
Notes