Sweet potato cake is a wonderfully moist and flavorful dessert that transforms a humble vegetable into a rich, comforting treat. Shredded sweet potatoes add natural sweetness and tenderness to the batter, creating a soft cake with a subtle texture similar to carrot cake. Finished with a creamy, smooth frosting, this cake is perfect for family gatherings, celebrations, or simply enjoying a cozy homemade dessert.
Why You’ll Love This Recipe
This sweet potato cake stands out because it balances natural sweetness, warm spices, and a creamy frosting in every bite. The shredded sweet potatoes release moisture as they bake, giving the cake a soft and tender crumb without making it heavy.
Another reason to love this recipe is how simple it is to prepare. Instead of roasting and pureeing sweet potatoes, this version uses raw grated sweet potatoes, saving time while still delivering amazing flavor and texture.
The warm spices like cinnamon, ginger, and allspice add depth and comfort to the cake, making it perfect for cooler seasons but delicious year-round. The rich cream cheese frosting complements the cake beautifully, adding a tangy sweetness that balances the spices.
It’s also a great dessert to make for a crowd since it bakes in a large pan and slices easily into neat squares.
Ingredients
(Tip: You’ll find the full list of ingredients and measurements in the recipe card below.)
Cake
4 large eggs, room temperature
2 cups granulated sugar
2 cups canola oil
2 teaspoons vanilla extract
2 cups all-purpose flour
2 teaspoons baking soda
2 teaspoons ground cinnamon
1/2 teaspoon ground ginger
1/2 teaspoon ground allspice
1/2 teaspoon salt
3 cups shredded peeled sweet potatoes (about 2 medium sweet potatoes)
1 cup finely chopped walnuts
Preheat the oven to 350°F (175°C). Lightly grease a 13×9-inch baking pan to prevent the cake from sticking.
In a large mixing bowl, whisk together the eggs, granulated sugar, canola oil, and vanilla extract until the mixture becomes smooth and well blended.
In a separate bowl, whisk together the all-purpose flour, baking soda, ground cinnamon, ground ginger, ground allspice, and salt. Mixing the dry ingredients separately helps distribute the spices and leavening evenly throughout the batter.
Gradually add the dry mixture into the egg mixture, stirring gently until combined. Avoid overmixing, as this can make the cake dense.
Fold in the shredded sweet potatoes and chopped walnuts, stirring just until evenly incorporated.
Pour the batter into the prepared baking pan and spread it evenly with a spatula.
Bake for 40 to 45 minutes, or until a toothpick inserted into the center of the cake comes out clean. Once baked, place the pan on a wire rack and allow the cake to cool completely.
To prepare the frosting, beat the softened cream cheese, butter, and vanilla extract in a bowl until smooth and creamy. Gradually add the confectioners’ sugar while beating until the frosting becomes thick and smooth.
Spread the frosting evenly over the cooled cake. Slice into squares and serve.
If you enjoy citrus flavors, add one tablespoon of finely grated orange zest to the frosting for a bright and fresh taste.
For a richer topping, replace the cream cheese frosting with caramel frosting. The deep sweetness pairs beautifully with the warm spices in the cake.
You can also swap the walnuts with pecans for a slightly sweeter nutty flavor.
If you prefer a nut-free version, simply omit the walnuts or replace them with 1 cup of chopped dried fruit such as raisins or chopped dried apricots.
To create cupcakes instead of a sheet cake, divide the batter into lined muffin tins and bake for about 18 to 23 minutes.
Storage/Reheating
Store the cake in an airtight container in the refrigerator for up to 4 days. Because the frosting contains cream cheese, refrigeration helps maintain freshness.
If serving chilled cake, let it sit at room temperature for about 20 minutes before eating to allow the frosting to soften slightly.
For longer storage, the cake can be frozen for up to 3 months. Wrap slices or the whole cake tightly in plastic wrap and place them in a freezer-safe container.
Thaw overnight in the refrigerator before serving.
FAQs
Can I use sweet potato puree instead of shredded sweet potatoes?
Yes, but the cake will be denser. If using puree, reduce the amount to about 1 to 1½ cups and expect a heavier texture.
What type of sweet potatoes work best for this cake?
Orange-fleshed sweet potatoes are ideal because they are naturally sweeter and moister than white varieties.
Can I make this cake ahead of time?
Yes. The cake can be baked a day in advance and stored in the refrigerator. Frost it before serving or store it already frosted.
Can I make this recipe into cupcakes?
Yes. Divide the batter into cupcake liners filled about two-thirds full and bake at the same temperature for 18 to 23 minutes.
How do I know when the cake is done?
Insert a toothpick into the center of the cake. If it comes out clean or with a few crumbs, the cake is fully baked.
Why is my cake too moist in the center?
Sweet potatoes release moisture while baking. If the center remains wet, cover the pan loosely with foil and bake for a few more minutes.
Can I omit the nuts?
Yes. The walnuts can be omitted entirely or replaced with dried fruit for added texture.
Can this cake be frozen?
Yes. The cake can be frozen either frosted or unfrosted for up to three months.
What frosting alternatives work well with this cake?
Caramel frosting, cinnamon frosting, or a simple vanilla buttercream all pair well with the flavors of the cake.
Can I reduce the sugar in the recipe?
You can slightly reduce the sugar, but keep in mind that sugar contributes to both sweetness and moisture in cakes.
Conclusion
Sweet potato cake is a comforting homemade dessert that brings together warm spices, natural sweetness, and a soft, moist texture. The shredded sweet potatoes add flavor and tenderness while the creamy frosting provides a smooth, sweet finish. Whether served for a special occasion or a simple family treat, this cake is a delightful way to turn everyday ingredients into something truly memorable.
Sweet Potato Cake is a moist, warmly spiced dessert made with shredded sweet potatoes that add natural sweetness and tenderness. Topped with a creamy cream cheese frosting, this cake delivers a soft texture and rich flavor perfect for gatherings or cozy homemade desserts.