Table of Contents
This easy sweet potato cake recipe makes two soft, warmly spiced layers from roasted sweet potato, stacked with tangy cream cheese frosting. It’s a gluten free sweet potato cake that stays moist for days, and the recipe card is at the bottom of the post!
The trick is how you treat the sweet potato. Roast it, cool it, weigh the mash, and you skip the dense, gummy middle. There’s a make-ahead plan for Thanksgiving week too.
My kid and I are both gluten intolerant, so every cake on our table has to work without wheat. This one is our Thanksgiving dessert, and I make it with my own homemade oat flour.
What does sweet potato cake taste like?
Sweet potato cake tastes a lot like a soft spice cake. The crumb is moist and tender, the color is a deep orange-gold, and the sweet potato adds a mellow, earthy sweetness that’s milder than pumpkin. You won’t get a big vegetable flavor. Cinnamon, ginger and nutmeg do most of the talking.
Southern sweet potato cakes are old-fashioned holiday cakes, the kind that sit next to sweet potato pie on the dessert table. It’s also a cousin of my gluten-free carrot cake. Carrot cake uses grated carrot, so you get flecks. Here the sweet potato is mashed and melts right into the batter.
Ingredients for this sweet potato cake recipe
Exact amounts are in the recipe card. These are the ones that matter most:
- Sweet potatoes: about 2 medium (1 1/2 pounds or 680 g raw) for the 1 1/2 cups (360 g) of mash the batter needs.
- Oat flour: 2 cups (about 180 g) homemade oat flour, made from certified gluten-free oats. More on that below.
- Oil: 3/4 cup (165 g) of a neutral oil like canola. Why not butter? Butter turns firm in the fridge, and a cake with cream cheese frosting lives there. Oil stays liquid, so a cold slice is still soft.
- Brown sugar: for moisture and a little caramel flavor, with some granulated sugar alongside.
- Spices: cinnamon, ginger and nutmeg. Add 1/4 teaspoon allspice or a pinch of cloves if you like it spicier.
- Eggs: room temperature, so they whisk smoothly into the oil and mash.
- Buttermilk: or stir 1 1/2 teaspoons lemon juice into 1/2 cup milk (dairy-free milk works) and wait 5 minutes.
- Baking soda and baking powder: check the dates.
Single spices, baking powder and pure vanilla are usually gluten-free, but some brands are made or packed alongside wheat, so look for a gluten-free label. The FDA gluten-free labeling rules explain what that claim means on a US package.

Roasted, boiled or canned: which sweet potatoes work best?
Roasted sweet potatoes work best. Roasting dries them out a little and makes them sweeter, so the mash is thick and full of flavor. Boiled sweet potatoes work if you drain and cool them well, but they’re wetter and blander. Canned works if it’s plain sweet potato with no syrup, drained and weighed.
To roast, prick the whole potatoes with a fork and put them on a lined baking sheet. Roast at 400°F (200°C) until a knife slides in with no push back, about 45 to 60 minutes depending on size. Sticky, caramel-colored juice on the tray is a good sign. Scoop out the flesh, mash it smooth, and let it cool completely.
Does cooking them longer make them sweeter? Yes. Natural enzymes in sweet potatoes turn some of the starch into sugar as they heat, and a slow roast gives them more time to work than a quick boil.
Boiling instead? Simmer peeled cubes for 15 to 20 minutes, until fork-tender, then let them steam dry in the colander for a few minutes. Either way, weigh the mash, because “2 potatoes” can mean very different amounts. (In US stores, canned “yams” are usually sweet potatoes. Skip the ones packed in syrup.)

Which gluten-free flour works in sweet potato cake?
I bake this cake with homemade oat flour, my everyday gluten-free flour. You just blend oats until fine, and here’s how to make oat flour step by step. For this cake I used plain oats, not toasted, and no xanthan gum or other binder. The eggs and the thick sweet potato mash hold the crumb together.
Buy oats labeled certified gluten-free. Regular oats are often cross-contaminated with wheat.
Weigh it, too: about 180 g for 2 cups. Homemade oat flour can be fluffy or packed depending on how long you blend it, and extra flour plus a moist mash means a heavy cake. My guide to gluten-free grains and flours covers other flours if you’re curious, but oat flour is the one this recipe is made for.
One upside: with no gluten, you can’t really overmix this into a tough cake. Too much moisture is the bigger risk.
How to make gluten-free sweet potato cake
If you want a sweet potato cake recipe easy enough for a first gluten-free bake, this is a good one: the batter is mixed by hand in two bowls. The short version:
- Set the oven to 350°F (175°C). If you just roasted the potatoes, lower it and let it come down while the mash cools. Line two 8-inch round pans with parchment and grease the sides.
- Whisk the oat flour, leaveners, spices and salt.
- In a big bowl, whisk the cooled mash, sugars, oil, eggs and vanilla until smooth and glossy, with no streaks of oil. Whisk in the buttermilk.
- Fold in the dry mix just until you can’t see dry flour.
- Divide the batter by weight, about 650 g per pan, so the layers bake evenly.
- Bake 30 to 35 minutes.
If you have time, let the batter sit about 10 minutes before it goes in. Gluten-free flours soak up liquid slowly, and a short rest makes the crumb less gritty.

How do you know it’s done? The top springs back when you press it lightly, the edges are just pulling away from the pan, and a toothpick in the center comes out with a few moist crumbs, not wet batter. An instant-read thermometer should show about 200 to 205°F (93 to 96°C) in the center. Start checking at 28 minutes, because ovens vary.
Cool the layers in the pans for 10 minutes, then on a rack until completely cool, about 1 1/2 hours. Frost them warm and the frosting slides right off.

Why is my sweet potato cake dense or gummy?
When a gluten free sweet potato cake turns out dense, it’s almost always moisture or baking time.
- Too much or watery mash. Undrained boiled potatoes, or mash packed loosely into a cup, add water the flour can’t handle. Roast, cool and weigh.
- Warm mash. It thins the batter, and very hot mash can start to cook the eggs.
- Underbaked center. A gummy stripe in the middle means it needed a few more minutes. Trust the spring-back and crumb test over the timer.
- Scooped flour. Weigh it.
- Old baking soda or powder. Past the date, they won’t lift the layers.
- Domed or sunken layers. A dome usually means the oven runs hot or the pans were overfilled. Opening the door in the first 20 minutes can make the middle sink.
If a layer sinks a little anyway, put it on the bottom and fill the dip with frosting. Nobody will know.
Frosting ideas for sweet potato cakes
Cream cheese frosting is the classic, and its tang is lovely against the spices. The recipe card uses 12 ounces (340 g) cream cheese and 3/4 cup (170 g) butter, both softened, plus 4 cups (480 g) powdered sugar. That should be enough to fill, top and cover the sides of both layers. Beat the cream cheese and butter smooth before the sugar goes in, or you’ll get little lumps.
Want to change it up? For maple cream cheese frosting, beat in 1/4 cup (60 ml) pure maple syrup plus about 1/2 cup (60 g) extra powdered sugar so it stays spreadable. For a brown butter version, brown the butter and chill it until it’s soft-solid again before you start. Toasted pecans go with either: about 1/2 cup (55 g), chopped, on top or between the layers.
For dairy-free, use dairy-free butter and a dairy-free cream cheese style spread. These spreads vary in softness, so add the sugar gradually and chill the frosting if it gets loose.

How to make it ahead and store it
For Thanksgiving, here’s how I’d split the work:
- Up to 3 days ahead: roast and mash the sweet potatoes. Keep the mash covered in the fridge and bring it to room temperature before using.
- 1 to 2 days ahead: bake the layers. Wrap each cooled layer well in plastic wrap. Keep them at room temperature for 1 day or in the fridge for 2.
- The day before or that morning: frost.
To freeze, wrap the unfrosted layers in plastic wrap and then foil, for 2 to 3 months. Thaw them still wrapped so condensation forms on the wrap, not the cake.
Frosted, the cake keeps covered in the fridge for about 4 to 5 days. Take it out 30 minutes before serving to soften the frosting.
Baking more than one dessert? My pumpkin gooey butter cake is another good make-ahead pick.
Sweet potato cake recipe FAQ
Can you make sweet potato cake without flour?
Flourless versions exist, usually built on eggs and nut meal, but they bake up dense and almost pudding-like. This recipe uses oat flour for a real layer cake crumb.
Can I use grated raw sweet potato instead of mashed?
Not here. Grated raw sweet potato makes a cake more like carrot cake, with flecks and a coarser crumb, and it needs different liquid amounts. A 1:1 swap would throw off the batter.
Can I bake this sweet potato cake in a 9×13 pan or as cupcakes?
The batter should fit a 9×13-inch pan. The cake comes out a little thinner than the 8-inch layers, so start checking at about 30 minutes. For cupcakes, fill the liners two-thirds full and start checking at about 18 minutes. Treat both times as a starting point and go by the spring-back and crumb test.
Does sweet potato cake need to be refrigerated?
Once it has cream cheese frosting, yes, because cream cheese shouldn’t sit out for long. Unfrosted layers can stay at room temperature for 1 day, wrapped well.
Is sweet potato cake the same as sweet potato pound cake?
No. Sweet potato pound cake is a denser loaf or bundt cake with more butter and eggs, usually finished with a glaze. This is a soft layer cake with frosting.
Can I make it dairy-free?
The batter already uses oil instead of butter, so it’s an easy switch. Swap the buttermilk for 1/2 cup dairy-free milk with 1 1/2 teaspoons lemon juice, and use the dairy-free frosting option above.
If you collect sweet potato cake recipes for the holidays, I hope this one makes it onto your Thanksgiving table. Leave a rating in the recipe card and tell me in the comments how yours turned out, especially if you tried the maple frosting!
