This gluten-free sweet potato casserole is the Thanksgiving side dish that fools everyone at the table. The filling is a smooth, spiced sweet potato mash topped with a buttery pecan crumble that bakes up golden and crisp in just 30 minutes. I've served this to guests who have no idea it's gluten-free, and not one person has ever noticed a difference.
The best part: you can make the sweet potato filling up to 3 days ahead. On Thanksgiving Day, you add the topping and bake. That's it. No last-minute mashing, no juggling stovetop and oven at the same time.
Why This Recipe Works
The filling uses two eggs, which is the key to avoiding that dreaded watery casserole. Eggs bind the sweet potato mixture into a custard-style filling that holds its shape when you serve it. Skip the eggs and you'll end up with a runny mess. Don't skip the eggs.
For the topping, brown sugar is non-negotiable. White sugar won't give you that caramel-like depth. And the topping goes on right before baking, which is exactly why the make-ahead method works so well.
Ingredients and Substitutions
For the sweet potato filling:
- Sweet potatoes: 3 to 4 large, about 2 lbs. Fresh sweet potatoes give you the best texture and flavor. Canned works in a pinch but the filling will be wetter.
- Eggs: 2 large eggs. These are not optional. They bind the filling so it doesn't run.
- Milk: Whole milk. You can substitute cream for an even richer filling.
- Sugar: White sugar for sweetness in the filling.
- Butter: Unsalted, melted. We add salt separately.
- Vanilla extract: Use a good quality one. It makes a noticeable difference here.
- Spices: Cinnamon and allspice carry the warm fall flavor. Nutmeg deepens it. The allspice is what separates a great casserole from a bland one.
For the pecan crumble topping:
- Brown sugar: Dark brown sugar gives the most caramel-like richness. Light brown works too.
- Gluten-free all-purpose flour blend: See the flour comparison below for which blend produces the crispiest topping.
- Butter: Softened, not melted. Softened butter creates a better crumble texture.
- Pecans: Roughly chopped. Bigger chunks give better crunch.
Which gluten-free flour works best for the topping?
Not all blends perform the same in a crumble. Here's what to expect:
- Bob's Red Mill 1-to-1 Baking Flour: My first choice. Produces a crisp, golden topping that holds together well.
- King Arthur Measure for Measure: Also excellent. Very similar results to Bob's Red Mill.
- Cup4Cup: Works, but the topping can be slightly softer due to the higher moisture content of this blend.
- Almond flour: Creates a different texture, denser and richer. Good if you prefer a nutty topping throughout.
How to make this dairy-free:
- Milk: Substitute with unsweetened almond milk, soy milk, or full-fat canned coconut milk. Coconut milk gives the creamiest result.
- Butter: Use Earth Balance butter sticks or Miyoko's. Use the stick versions, not the spread. Spread versions have too much water content and can make both the filling and the topping soggy.
Equipment You'll Need
- Baking dish: A 9x13-inch baking dish. Light-colored ceramic or glass pans work better than dark metal here. Dark pans can over-brown the topping before the filling is fully set.
- Large pot or steamer: To cook the potatoes until fork-tender.
- Mixing bowls: One large for the filling, one medium for the topping.
- Potato masher: Essential for the right filling texture. A hand mixer also works if you prefer a smoother result.
How to Make Gluten-Free Sweet Potato Casserole
- Boil the potatoes: Place cubed sweet potatoes in a large pot and cover with water by at least 2 to 3 inches. Boil until fork-tender, about 10 minutes. Drain and let cool for 10 minutes before mashing.
- Mash the filling: Transfer the cooked sweet potato flesh to a large bowl. Add eggs, milk, melted butter, sugar, vanilla, spices, and salt. Mash until smooth. Let the potatoes cool slightly before adding the eggs so they don't scramble.
- Make the topping: In a medium bowl, combine brown sugar, gluten-free flour, softened butter, and pecans. Stir until the pecans are coated and the mixture looks like a rough crumble.
- Preheat the oven to 375°F.
- Assemble: Spread the sweet potato filling into a 9x13-inch baking dish and smooth the top.
- Add the topping: Sprinkle the pecan crumble evenly over the filling.
- Bake: Bake for 25 to 30 minutes until the topping is crisp and golden brown.
- Cool slightly before serving. The filling sets up better after a 10-minute rest.
Alternate methods for cooking the sweet potatoes:
- Instant Pot: Peel and cube potatoes. Add to pot with 1 cup water. Cook on High Pressure for 12 to 15 minutes. Quick release.
- Roasting: Preheat oven to 400°F. Pierce whole potatoes with a fork. Bake on a sheet pan for 45 to 60 minutes. Cool, peel, and mash.
- Steaming: Steam cubed potatoes over boiling water for 12 to 15 minutes. This keeps the most moisture out of the flesh, which can help with filling texture.
How to Make This Ahead
Make the sweet potato filling and spread it in the baking dish. Cover tightly with plastic wrap and refrigerate for up to 3 days. Keep the topping ingredients separate and unassembled. On the day of serving, mix the topping, sprinkle it over the cold filling, and bake. You may need to add 5 extra minutes to the bake time if the filling is coming straight from the fridge.
Variations
Marshmallow topping
Add a layer of mini marshmallows on top of the pecan crumble during the last 5 minutes of baking. Watch it closely. Marshmallows go from perfect to burnt fast.
Vegan sweet potato casserole
Replace the eggs with 2 tablespoons of ground flaxseed mixed with 6 tablespoons of water (let it sit for 5 minutes to gel). Use dairy-free butter sticks and unsweetened almond or coconut milk. The texture will be slightly less firm but still holds up well.
Nut-free version
Skip the pecans entirely and substitute gluten-free rolled oats, crushed gluten-free pretzels, or just the brown sugar and flour crumble without any added crunch. The topping still bakes up nicely without nuts.
Lower sugar version
Reduce the sugar in the filling by half. The topping is sweet enough to carry the dish. This works well if you're serving guests who find the traditional version too sweet.
Tips for Success
- Use fresh sweet potatoes. Canned potatoes have more moisture, which can make the filling runny even with eggs.
- Don't skip the eggs. They're what turns the filling from mashed sweet potatoes into a custard-style base that holds together.
- Let the potatoes cool before adding eggs. Hot potatoes scramble eggs. Give them 10 minutes after draining.
- Use softened butter in the topping, not melted. Melted butter makes the crumble wet. Softened butter creates the right crumbly texture.
- Fully preheat the oven. The topping needs a fully hot oven to crisp properly. Don't rush it in.
Serving Suggestions
This casserole is the anchor of any gluten-free Thanksgiving spread. Round out the table with gluten-free stuffing, gluten-free cornbread stuffing, and our 5-minute gluten-free gravy. For dessert, try this gluten-free sweet potato pie or browse the full gluten-free Thanksgiving desserts roundup.

Gluten-Free Sweet Potato Casserole
You don't need to miss your all-time favorite Thanksgiving side with this gluten-free sweet potato casserole recipe.
Ingredients
For the filling:
- 3-4 large, sweet potatoes, peeled and cubed (roughly 2lbs)
- 2 large eggs, beaten
- ½ cup whole milk
- ½ cup sugar
- ¼ cup melted butter
- 1 teaspoon vanilla extract
- 1 teaspoon cinnamon
- ½ teaspoon allspice or ground nutmeg
- ½ teaspoon salt
For the topping:
- ½ cup packed brown sugar
- ½ cup all-purpose gluten-free flour
- 4 tablespoons butter, softened
- ¾ cup roughly chopped pecans
Instructions
- Place cubed sweet potatoes in a large pot and add enough water to cover by at least 2-3 inches.
- Boil until the sweet potatoes are fork tender for about 10 minutes. Drain and let them cool for 10 minutes.
- Transfer the sweet potatoes to a large bowl. Add eggs, milk, melted butter, sugar, vanilla, spices, and salt and mash until smooth. Add the mashed sweet potato to a 9x13 inches baking dish and smooth the surface with a spoon.
- Preheat the oven to 375º
- Combine brown sugar, flour, softened butter, and pecans in a medium bowl. Stir until the pecans are well coated and the ingredients are evenly distributed.
- Sprinkle the mixture over the sweet potato mash
- Bake for 25-30 minutes until the top is crispy.
Notes
- We used whole milk in this recipe but if you are dairy-free you can substitute it with any milk of choice like soy milk, almond milk, coconut milk, etc. Instead of butter use dairy-free butter or the same amount of coconut oil.
- If the sweet potato mash mixture is too thick you can add additional milk until desired consistency.
- You can assemble the ingredients ahead of time. You can make the sweet potato mash and put it in the baking dish, then mix up the pecan topping right before you bake it and want to serve it.
- You can also bake the sweet potatoes, but you might need to decrease the milk by half due to the water content while boiling the sweet potatoes. You can taste and adjust accordingly how thick or thin you want the mash to be.
Recommended Products
As an Amazon Associate and member of other affiliate programs, I earn from qualifying purchases. They never cost you extra.
Nutrition Information:
Yield:
8Serving Size:
1Amount Per Serving: Calories: 376Total Fat: 21gSaturated Fat: 9gTrans Fat: 0gUnsaturated Fat: 11gCholesterol: 79mgSodium: 284mgCarbohydrates: 45gFiber: 4gSugar: 31gProtein: 5g
This nutrition info is based on the exact ingredients and brands that I used a the time. It may not be 100% accurate. Please check your ingredients nutrition labels.
Frequently Asked Questions
Is sweet potato casserole gluten-free?
Sweet potatoes are naturally gluten-free. The traditional casserole recipe, however, typically uses all-purpose flour in the crumble topping, which contains gluten. This recipe is specifically designed to be 100% gluten-free by using a certified gluten-free flour blend in the topping. Always check that your flour blend, vanilla extract, and other packaged ingredients carry a certified GF label if you are cooking for someone with celiac disease.
How do I prevent a runny sweet potato casserole?
Two things cause a runny filling: skipping the eggs and using canned sweet potatoes. The eggs are the binding agent that turns the mash into a custard-style filling. Fresh sweet potatoes have less moisture than canned, which also helps. If you use canned potatoes, drain them thoroughly and pat them dry before mashing. You can also bake the casserole a few extra minutes if the center looks loose.
Can I make this sweet potato casserole ahead of time?
Yes. Make the sweet potato filling and spread it in the baking dish up to 3 days ahead. Cover and refrigerate. Keep the pecan topping ingredients separate and unassembled until the day you're baking. Mix the topping, add it to the cold filling, and bake. Add 5 extra minutes to the bake time if going straight from the refrigerator to the oven.
What gluten-free flour works best for the crumble topping?
Bob's Red Mill 1-to-1 Baking Flour and King Arthur Measure for Measure both produce a crisp, golden topping. Cup4Cup works but can produce a slightly softer topping. Avoid blends with a high bean flour content, which can leave an off flavor in an uncooked or lightly baked topping. Use softened butter, not melted, regardless of which blend you choose.
Can I use canned sweet potatoes instead of fresh?
You can, but the filling will be wetter. Drain the canned sweet potatoes thoroughly and pat them dry with paper towels before mashing. You may also want to reduce the milk slightly. Fresh sweet potatoes give a firmer, more flavorful result and are worth the extra effort for a holiday dish.
Can I make this dairy-free?
Yes. Use unsweetened almond milk, soy milk, or full-fat canned coconut milk in place of whole milk. For the butter, use Earth Balance butter sticks or Miyoko's. Use the stick versions, not the spread. Spread-style dairy-free butters have a higher water content and can make both the filling and the topping soggy.
Can I freeze sweet potato casserole?
Yes. Freeze the baked casserole for up to 3 months. Let it cool completely before covering tightly and freezing. Thaw overnight in the refrigerator, then reheat covered in a 350°F oven for 20 to 25 minutes. Remove the cover for the last 5 minutes to re-crisp the topping.
How do I reheat leftover sweet potato casserole?
Reheat covered in a 350°F oven for 15 to 20 minutes. The cover keeps the filling from drying out. Remove the foil for the last 5 minutes to bring the topping back to a crisp. The microwave works for individual portions but softens the topping.
Related: Gluten-Free Shepherd's Pie
DID YOU MAKE THIS RECIPE?
Tag @glutenfreepalate on Instagram and hashtag it #glutenfreepalatebaker so we can see all the deliciousness!





Shelby
Made this for a side at our family Christmas party and everyone loved it! I made the sweet potato mash ahead of time and then baked it two hours later so it was hot for dinner. I noticed my crumble never really browned up, but it still tasted delicious!
Wendy Stoltz
Lovely Shelby. Merry Christmas.
Pat
Would it be ok to use butternut squash instead of sweet potatoes?
Wendy Stoltz
Yes, Pat, you can try using butternut squash instead of sweet potatoes in a gluten-free sweet potato casserole. Butternut squash has a similar creamy texture and sweet flavor, so it can be a suitable substitute. I would suggest you swap the sweet potatoes for butternut squash in equal proportions. You may also need to adjust the cooking time slightly based on the size and texture of your squash, so keep an eye on it as it bakes to ensure it's cooked to your desired level of tenderness.