Desserts
This sweet potato butter cake recipe from scratch delivers the perfect balance of spiced moistness and rich nutty swirl—no box mix required. The secret lies in roasting the sweet potato to concentrate its natural sweetness and using brown sugar for deep caramel notes. I developed this recipe after years of experimenting with natural cake bases that stay tender without drying out.
The cake itself is a study in texture contrast: a velvety, spiced crumb infused with cinnamon and nutmeg, topped with a swirl of buttery peanut butter that adds both richness and crunch.
What makes this recipe work is the technique of mixing dry ingredients separately to avoid overmixing, which keeps the crumb light and airy. The roasted sweet potato adds moisture and subtle earthiness, while the peanut butter swirl ties everything together with its familiar, comforting flavor.
By the time it emerges from the oven, you'll have a cake that's perfectly moist in the center with just a hint of crispness at the edges. The nutty swirl adds visual appeal and a satisfying contrast to the soft cake beneath.
This recipe is designed to impress—whether you're serving it at a holiday gathering or simply treating yourself to a homemade dessert that tastes like it came from a bakery.
The best part? It's foolproof for home bakers, with clear instructions and a baking time that ensures consistent results every time. Let's get started on creating this showstopping dessert that's as delicious as it is beautiful.
Ingredients for sweet potato butter cake recipe from scratch
Roasted sweet potatoes and rich peanut butter create this moist, spiced cake with nutty swirl topping.
| Ingredient | Amount | Notes |
|---|---|---|
| Sweet Potatoes 🍠 | 2 medium | Peeled, roasted until tender |
| All-Purpose Flour 🌾 | 2 ½ cups | Sifted for light texture |
| Granulated Sugar 🍚 | 1 ½ cups | White sugar preferred |
| Packed Brown Sugar 🍚 | 1 cup | Light or dark variety |
| Unsalted Butter 🧈 | 1 cup | Room temperature, full-fat |
| Large Eggs 🥚 | 2 whole | Room temperature, beaten |
| Vanilla Extract 🌿 | 2 tsp | Pure vanilla preferred |
| Baking Soda 🧂 | 1 tsp | Pure baking soda |
| Ground Cinnamon 🌶️ | 2 tsp | Freshly ground preferred |
| Ground Nutmeg 🌶️ | ½ tsp | Freshly grated for warmth |
| Salt 🧂 | ½ tsp | Fine sea salt preferred |
| Creamy Peanut Butter 🥜 | 1 cup | Natural, no added sugar |
| Powdered Sugar 🍚 | 1 cup | For swirl topping |
| Milk 🥛 | ½ cup | Whole milk preferred |
The sweet potatoes are the star here—roasting them until tender concentrates their natural sweetness and adds moisture. Organic sweet potatoes from the produce section at Whole Foods or your local farmers market have the best flavor, but any firm, unblemished potatoes work. Look for vibrant orange flesh—avoid any with green spots or soft areas. If you can't find organic, regular sweet potatoes are fine, just scrub them well before peeling. Roast them at 400°F until fork-tender (about 45 minutes), then mash them smooth—this step is non-negotiable for the perfect texture.
No peanut butter? Almond butter or sunflower seed butter works in a pinch, though the flavor will differ slightly. The peanut butter should be creamy, not chunky—Jif Natural or Smucker's Creamy are reliable brands. For the spices, fresh nutmeg makes all the difference. Penzeys or Trader Joe's sell pre-ground nutmeg that's more potent than the grocery store stuff. If you're out of powdered sugar, blend granulated sugar in a food processor for 30 seconds—it'll be slightly grainier but still work. The milk can be any kind, but whole milk gives the best moist crumb.
Store the cake in an airtight container at room temperature for up to 3 days, or refrigerate for 5 days if you're not eating it quickly. The peanut butter swirl keeps best when the cake is fully cooled—don't slice into it warm. For make-ahead convenience, bake the cake and let it cool completely, then wrap tightly in plastic wrap. The flavors actually improve overnight as everything melds together. If you're serving at a gathering, assemble the cake the day before and refrigerate—it'll be even more moist and delicious.
Why You'll Love This Recipe
- No-Fuss Mixing: I swear by this recipe—no food processor, no weird ratios, just blend the roasted sweet potatoes right into the batter. That creamy, naturally sweet base means no extra steps, and the cake still turns out moist without being gummy.
- Butter-Sweet Magic: The combo of brown sugar and butter in this cake? It’s like a hug for your taste buds. The sweet potatoes add depth (think caramelized notes), while the butter keeps it rich—no artificial flavors, just pure, satisfying sweetness that’s weirdly addictive.
- Weeknight Wonder: Between us, this is my go-to for when I need dessert but don’t want to bake from scratch. The batter’s stable enough to mix ahead, and it bakes fast enough that I can still watch my show while it’s in the oven. (Yes, even on a Tuesday night.)
- Budget Baking: Sweet potatoes stretch farther than you’d think, and this recipe uses them as the star—no fancy ingredients, just pantry basics. A single batch feeds four, and leftovers? They reheat beautifully for breakfast toast or a quick snack. My wallet and my taste buds thank me.
Step-by-step instructions for sweet potato butter cake
Here's how to create a perfectly moist, spiced cake with a nutty swirl topping using simple techniques.
👨🍳 Step 1: Roast and Mash the Sweet Potatoes
Preheat your oven to 400°F. Pierce the 2 medium sweet potatoes with a fork and place them on a baking sheet. Roast for 45-50 minutes until completely tender when pierced with a knife. Let them cool slightly before handling.
Once cool enough to handle, peel off the skins and transfer the flesh to a mixing bowl. Mash until completely smooth—no lumps should remain. This sweet potato purée will be the secret to your cake's signature moistness. You should have about 1 cup of purée after mashing. Let it cool completely to room temperature before using in the batter.
👨🍳 Step 2: Cream Butter and Sugars Together
In a large mixing bowl, combine the 1 cup unsalted butter (at room temperature), 1.5 cups granulated sugar, and 1 cup packed brown sugar. Beat with an electric mixer on medium speed for 3-4 minutes until light and fluffy, with a pale ribbon-like consistency forming when the beaters are lifted.
This creaming process is crucial—it incorporates air that will create a tender crumb. If your butter isn't soft enough, it won't blend properly and you'll end up with a dense cake. You'll know it's ready when the mixture nearly doubles in volume and leaves clean ribbons on the bowl's sides.
👨🍳 Step 3: Mix in Wet Ingredients
Add the 2 whole large eggs one at a time, mixing well after each addition. Then stir in the 2 medium sweet potatoes (cooled and mashed), 2 teaspoons vanilla extract, and 0.5 cup milk. Mix until just combined—don't overmix at this stage or your cake will develop a tough texture.
Next, sift in the 2.5 cups all-purpose flour, 1 teaspoon baking soda, 2 teaspoons ground cinnamon, 0.5 teaspoon ground nutmeg, and 0.5 teaspoon salt. Gently fold these dry ingredients into the wet mixture using a spatula, mixing just until no flour streaks remain. The batter should be thick but pourable.
🥘 Step 4: Prepare the Peanut Butter Swirl
In a separate small bowl, combine the 1 cup creamy peanut butter and 1 cup powdered sugar. Mix until smooth and well blended. This will form your cake's signature nutty swirl topping. The peanut butter should be at room temperature for easiest mixing—if it's too thick, warm it slightly in the microwave for 10-15 seconds.
Divide the cake batter evenly between two 8-inch round cake pans (greased and lined with parchment). Spread each layer smoothly. Drop spoonfuls of the peanut butter mixture onto each cake layer, then use a knife to swirl it gently through the batter. This creates those beautiful marbled patterns while ensuring every bite has peanut butter flavor.
🔥 Step 5: Bake to Perfect Moisture
Place the prepared cake pans in a preheated 350°F oven and bake for 25-30 minutes, or until a toothpick inserted into the center comes out clean. The cakes should be golden on top but still slightly springy to the touch when pressed gently in the center.
For even baking, rotate the pans halfway through the baking time. As soon as they're done, remove from the oven and let cool in the pans for 10 minutes. Then transfer to a wire rack to cool completely before frosting. This gradual cooling prevents cracking and helps maintain the cake's moisture. The internal temperature should be below 100°F before frosting for best results.
Pro Tips For Making Sweet Potato Butter Cake Recipe From Scratch
- Boil Sweet Potatoes Until Fork-Tender: I learned this the hard way—undercooked sweet potatoes turn your cake dense and gummy. Boil them until a fork slides in like butter (about 20-25 minutes for medium potatoes), then mash them smooth while still warm. Cold, lumpy mash = uneven texture in your cake.
- Use Room-Temp Butter: Cold butter creates pockets in the batter that won’t blend right. Take your unsalted butter out 1-2 hours before mixing—it should be soft enough to press a thumbprint into but not greasy. This guarantees a tender crumb, not a greasy one.
- Don’t Overmix the Batter: Once you fold in the flour mixture, stop after 10-12 strokes. I used to beat this like I was kneading dough, and the cake turned tough. Sweet potato batter is delicate—just combine until just combined. Overmixing = dense cake.
- Bake at 325°F, Not Higher: Sweet potato cake needs slow, even heat to develop its moisture without burning. Cranking the oven to 350°F or higher risks a dry top while the center stays underdone. 325°F is the sweet spot—check doneness at 45 minutes, then tent with foil if the top browns too fast.
Troubleshooting great sweet potato butter cake recipe from scratch
Dense Cake Texture
Overmixing the batter is the #1 culprit for a dense cake. Once you add the flour, mix just until no dry streaks remain—about 10-15 strokes with a spatula. I've found using a hand mixer on low speed for the dry ingredients helps prevent overworking.
Also, ensure your sweet potato purée is completely cool before mixing—warm purée can activate the baking soda too early, causing a dense crumb. 💡
Cracked Top
Rapid temperature changes cause cracks in the cake's surface. Always preheat your oven for 15-20 minutes before baking. Place the cake pans on the middle rack where heat circulates evenly. For extra insurance, I recommend baking the cakes one at a time if your oven has hot spots.
Let the cakes cool gradually in their pans for 10 minutes before transferring to a wire rack.
Dry or Crumbly Cake
The roasted sweet potatoes are key for moisture, so never skip this step. If your cake turns out dry, check that you used room-temperature butter—cold butter creates pockets that prevent even moisture distribution. Also, don't overbake!
The cake is done when a toothpick comes out with a few moist crumbs, not completely clean. For extra moisture, brush the cooled cake layers with 2 tbsp simple syrup before assembling.
Peanut Butter Swirl Issues
Lumpy peanut butter swirls happen when the peanut butter isn't smooth enough. Warm it for 10-15 seconds in the microwave first, then mix with powdered sugar until completely homogenous. For even distribution, use a piping bag with a star tip to create clean swirls.
If your peanut butter mixture is too thick, add 1 tsp milk to thin it out. The swirl should be thick enough to hold its shape but still blend easily with the batter.
Uneven Baking
Hot spots in your oven can cause one side to bake faster. Rotate your cake pans halfway through baking for even results. If your oven runs hot, reduce the temperature by 25°F and add 5 minutes to the baking time.
For extra insurance, place a baking sheet on the rack below your cake pans to reflect heat upward. I've also found that using dark-colored aluminum pans helps distribute heat more evenly than glass pans.
Soggy Bottom
This happens when steam gets trapped under the cake. Always grease your pans thoroughly with butter and line them with parchment paper. For extra insurance, I recommend using 8-inch round cake pans with a 2-inch depth—shallower pans can cause uneven baking.
After baking, invert the cakes onto a wire rack immediately to allow steam to escape. If you notice a slightly soggy bottom, slice it off before serving—it won't affect the rest of the cake.
Nutrition facts
Frequently asked questions
Can I substitute regular potatoes for sweet potatoes in this recipe?
No, sweet potatoes are essential for this recipe. Their natural sweetness and moisture content create the signature tender crumb. Regular potatoes have a starchy, dry texture that won't work well in this moist cake. If you must use a substitute, try yam purée (cooked and mashed) for similar moisture, but the flavor will differ slightly.
How do I make this cake gluten-free?
Replace the 2.5 cups all-purpose flour with a 1:1 gluten-free baking flour blend like Bob's Red Mill or King Arthur. You may need to add 1/4 cup extra gluten-free flour as these blends absorb more liquid. Also, use 1/2 teaspoon xanthan gum to improve texture. Test the cake immediately after mixing to adjust liquid as needed.
Can I make this cake in a single 9-inch pan instead of two 8-inch pans?
Yes, but you'll need to reduce the baking time by about 5-7 minutes (check at 20-22 minutes). Use a 9x2-inch pan for even baking. The cake will be thicker but still moist. For best results, bake at 325°F instead of 350°F to prevent overbrowning. The peanut butter swirl will spread more, so use a piping bag for clean lines.
What's the best way to store leftover cake?
Wrap the cake tightly in plastic wrap and store at room temperature for up to 3 days in an airtight container. For longer storage, refrigerate for up to 5 days or freeze for 2 months. To reheat, slice and warm in the microwave for 10-15 seconds to restore moisture. The peanut butter swirl stays freshest when the cake is fully cooled before wrapping.
Can I add chocolate chips to this recipe?
Fold in 1 cup chocolate chips (semi-sweet or dark) when combining the wet ingredients. For a marbled effect, divide the batter, add chips to half, then alternate spoonfuls in the pan. Use milk chocolate for a sweeter contrast or dark chocolate for deeper flavor. Bake as directed—chocolate chips may take 1-2 extra minutes to melt completely.
