Gluten-Free Sweet Potato Cake Recipe (Moist, Spiced, From Scratch)

Prep Time 30 mins
Cook Time 1 hr 35 mins
Total Time 4 hrs 15 mins
Calories 684 kcal

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.

Ingredients for a gluten-free sweet potato cake recipe: roasted sweet potatoes, homemade oat flour, cinnamon, ginger, nutmeg, eggs, oil, brown sugar and buttermilk.

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.)

Roasted sweet potatoes split open on a parchment-lined baking sheet next to a bowl of smooth mash for gluten-free sweet potato cake.

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:

  1. 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.
  2. Whisk the oat flour, leaveners, spices and salt.
  3. 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.
  4. Fold in the dry mix just until you can’t see dry flour.
  5. Divide the batter by weight, about 650 g per pan, so the layers bake evenly.
  6. 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.

Orange gluten-free sweet potato cake batter being folded with a spatula in a large glass bowl, with streaks of flour still visible.

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.

Two baked gluten-free sweet potato cake layers cooling on a wire rack with golden brown tops and parchment circles peeled back.

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.

Cream cheese frosting being spread over a gluten-free sweet potato cake with an offset spatula, with a small bowl of toasted chopped pecans beside it.

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!

Gluten-Free Sweet Potato Cake Recipe (Moist, Spiced, From Scratch)

Two tender layers of roasted sweet potato spice cake made with homemade oat flour and oil, filled and covered with cream cheese frosting.

  • Prep Time 30 mins
  • Cook Time 1 hr 35 mins
  • Total Time 4 hrs 15 mins
  • Servings 12 slices
  • Calories 684 kcal

Ingredients

For the sweet potato mash

For the cake

For the cream cheese frosting

Optional topping

Instructions

Roast the sweet potatoes

  1. Heat the oven to 400°F (200°C). Prick the whole sweet potatoes a few times with a fork and set them on a lined baking sheet.
  2. Roast until a knife slides in with no resistance and sticky juice bubbles on the tray, about 45 to 60 minutes depending on size.
  3. Scoop out the flesh and mash until smooth. Weigh out 1 1/2 cups (360 g) and let it cool completely to room temperature, about 30 minutes spread in a shallow bowl.

Make the batter

  1. Lower the oven to 350°F (175°C) and let it come down to temperature while the mash cools. Line two 8-inch (20 cm) round cake pans with parchment circles and grease the sides.
  2. Whisk the oat flour, baking soda, baking powder, cinnamon, ginger, nutmeg and salt in a bowl.
  3. In a large bowl, whisk the cooled mash, brown sugar, granulated sugar, oil, eggs and vanilla until smooth and glossy, with no streaks of oil. Whisk in the buttermilk.
  4. Fold in the dry mix just until no dry flour is visible. If you have time, let the batter rest about 10 minutes.

Bake

  1. Divide the batter between the pans, about 650 g each, and smooth the tops.
  2. Bake 30 to 35 minutes, checking at 28 minutes, until the tops spring back when pressed, the edges just pull away from the pans and a toothpick in the center comes out with a few moist crumbs (about 200 to 205°F / 93 to 96°C in the center).
  3. Cool in the pans for 10 minutes, then turn out onto a wire rack and cool completely, about 1 1/2 hours.

Frost

  1. Beat the cream cheese and butter until smooth, about 2 minutes. Add the powdered sugar, vanilla and salt and beat until fluffy.
  2. Set one layer on a plate, spread with frosting, top with the second layer and cover the top and sides with the rest. Sprinkle with the toasted pecans, if using.

Notes

Total time includes about 30 minutes cooling the mash and about 1 hr 40 mins cooling the layers (10 minutes in the pans, then about 1 1/2 hours on a rack). Cook time is roasting the sweet potatoes (up to 60 minutes) plus baking (up to 35 minutes). The optional 10-minute batter rest is extra.
Calories are an estimate per slice (1/12 of the frosted cake, without pecans), calculated from standard USDA values for each ingredient. Pecans add about 30 calories per slice.
Weigh the mash and the oat flour. Sweet potatoes vary in size and water, and homemade oat flour packs differently in a cup.
Oat flour: blend plain (untoasted) certified gluten-free oats until fine. No xanthan gum or other binder is needed. See the post for the how-to link.
Spicier cake: add 1/4 teaspoon ground allspice or a pinch of ground cloves with the other spices.
Buttermilk swap: stir 1 1/2 teaspoons lemon juice into 1/2 cup milk or dairy-free milk and let it sit 5 minutes.
Canned sweet potato: use plain sweet potato without syrup, drained well and weighed (360 g).
Maple frosting: beat in 1/4 cup (60 ml) pure maple syrup plus about 1/2 cup (60 g) extra powdered sugar.
Dairy-free: the batter already uses oil. Use dairy-free milk with lemon juice instead of buttermilk, and dairy-free butter with a dairy-free cream cheese style spread in the frosting.
Make ahead: roast and mash the sweet potatoes up to 3 days ahead (covered, in the fridge). Bake the layers 1 to 2 days ahead, wrap well, and frost the day before or the morning of.
Storage: frosted cake keeps covered in the fridge for about 4 to 5 days. Take it out 30 minutes before serving. Unfrosted layers keep 1 day at room temperature or 2 days in the fridge, wrapped, or freeze wrapped in plastic and foil for 2 to 3 months.
Gluten-free check: use oats labeled certified gluten-free, and read the labels on the baking powder, spices, vanilla, pecans and canned sweet potato (if using).
See the post for doneness cues, why a sweet potato cake turns dense or gummy, and more frosting ideas.

SliceOfSweet-dessert-cake-cookies-pie-recipes

SliceOfSweet

Every recipe on SliceOfSweet is tested in a real kitchen before it goes live nothing gets posted unless it’s good enough to make again. When we’re not baking, we’re experimenting with the next flavor combination to try.