Supremely moist and perfectly spiced, this cake is brimming with rich sweet potato flavor, layered with caramel pecan filling, and frosted with a heavenly whipped brown sugar buttercream!

Although sweet potatoes are a common side dish at Thanksgiving dinners, my family didn’t really include them in our usual feast when I was growing up. It wasn’t until later on in life that I discovered just how tasty sweet potatoes could be when baked with butter, brown sugar, and crispy streusel topping. Cue my Salted Caramel Sweet Potato Casserole.
Ever since then, I’ve been absolutely hooked on sweet potatoes, and I don’t think that obsession will ever die down. So with Thanksgiving just around the corner, I’ve baked up a beautiful cake that showcases sweet potatoes in the most delicious way possible…

Why You’ll Love This Sweet Potato Layer Cake
Soft and Perfectly Spiced Sweet Potato Cake: Sweet potatoes are roasted, mashed, and incorporated into the cake batter, which results in a perfectly moist crumb and flavorful cake. The warm spices enhance the natural flavor of the sweet potatoes, allowing them to really shine through.
Silky Smooth Whipped Brown Sugar Buttercream: This buttercream is NOT your typical cloyingly sweet frosting. It’s light, airy, and buttery smooth. Thanks to the brown sugar, it has the most delicate maple flavor, which pairs so well with the cake.
Toasted Caramel Pecan Filling: Made with toasted crispy pecans and homemade caramel, this filling is absolutely to-die-for. It’s richness and satisfyingly crunchy texture blend perfectly with the cake and buttercream.

Whipped Brown Sugar Buttercream Tips
Whisk Flour and Milk Thoroughly: Technically, this buttercream is called Ermine frosting, or boiled milk frosting. The first step is to whisk the flour and milk together. To avoid stubborn lumps, I recommend placing the flour into the saucepan, then GRADUALLY whisking the milk in, a few tablespoons at a time. If you pour all the milk in at once, the flour won’t be able to fully absorb it, resulting in little lumps of flour that never break up.
Cook to a Pudding Consistency: Once the flour and milk mixture are on the stove over medium heat, whisk it constantly until it reaches a thick pudding consistency. This should take anywhere from 3-7 minutes. Whatever you do, NEVER leave the mixture while it’s cooking, or it’ll scorch on the bottom.

Strain Pudding Mixture: No matter how smooth the pudding mixture looks, it’s always best to strain it through a fine mesh sieve to remove any pesky lumps that never broke down during the cooking process.
Cool To Room Temperature: The pudding mixture needs to cool to room temperature before it’s whipped into the butter and sugar. If it’s too warm, it’ll melt the butter, creating a runny, greasy mess. You can speed up the cooling process by sticking the pudding mixture into the refrigerator. Just make sure not to chill it for too long since adding the cold pudding mixture to the butter and sugar will cause everything to separate. If this happens though, I’ve got a simple fix for it. Keep reading!

Cream Butter and Sugar Well: Since this frosting uses brown sugar which doesn’t dissolve as well as powdered sugar, the creaming step is absolutely crucial. Creaming helps to dissolve the sugar granules, so you don’t end up with gritty frosting. You’ll need to cream the softened butter and brown sugar for a good 5 minutes until it’s light, pale, and fluffy. I also recommend stopping the mixer a few times to scrape down the sides and bottom of the bowl.
TRUST the Process: Once the pudding mixture is added to the butter-sugar mixture, the buttercream will look rather greasy and curdled in the first few minutes. This is completely normal, and the buttercream will eventually come together after 5 full minutes of beating on high speed.

Toasted Caramel Pecan Filling Tips
Cook Caramel in a Stainless Steel Pan: To prevent crystallization, AKA grainy caramel, I highly recommend using a heavy-bottomed stainless steel pan. I’ve made A LOT of caramel over the years, and whenever I’ve used nonstick or lighter pans, it almost always resulted in gritty caramel. The nonstick coating doesn’t allow the sugar crystals to bond with the pan, which causes them to crystalize. Stainless steel conducts heat better and will ensure even cooking.
Don’t Touch it: Once the sugar and corn syrup are added to the water, leave the pan alone as it cooks. There’s no need to touch it until the color starts to turn yellowish around the edges of the pan. You also don’t want to risk any sugar crystals splashing up against the sides of the pan. Once you see some color forming around the edges, you can lift the pan by the handle and gently swirl the hot liquid sugar around. There’s no need to use a spoon to stir since swirling achieves even browning and prevents crystallization.
Toast the Pecans: What makes this filling so gosh darn addictive and tasty is the toasted pecans. When you roast pecans in the oven, they become more fragrant, flavorful, and delicately crisp. So please do NOT skip this vital step. To toast whole pecans, simply scatter them evenly onto a rimmed baking sheet, then place them into a preheated 350ºF oven for 8-10 minutes, or until nice and fragrant.

Cake Assembly Tips
Level the Cakes: For those picture perfect layers and better overall stability, I like to level the cakes by cutting off the rounded dome on top. I use a cake leveler, but a long and sharp serrated knife will also work. Make sure to use a back-and-forth sawing motion when cutting.
Make a Wall of Buttercream: To prevent the filling from spilling out of the sides, pipe a thick border of buttercream along the edges of each cake layer. Not only does this keep the filling inside the cake, but it creates a cake with straighter sides.
Stabilize with Skewers: As you can see, this is a SKY-HIGH cake, so bamboo skewers are an absolute must to keep this cake stable. I ended up inserting three skewers about an inch apart in the center. I recommend measuring the skewer along the side of your cake, to gauge how much of the skewer you need to cut off for it to be flush with the cake.

Why does my buttercream look greasy or curdled?
If your buttercream has been beating for several minutes, and it STILL looks curdled, don’t panic! This is most likely because your butter or pudding mixture were too cold. Simply remove a couple of tablespoons of the curdled buttercream and place it into a small microwaveable bowl. Heat it in the microwave until it’s completely melted, then add it back into the mixing bowl. Turn the mixer on, and beat everything until it’s smooth. If it still looks curdled, just keep repeating this reheating technique a tablespoon at a time until the mixture comes together. Trust me, it eventually will!
Why does my buttercream look soupy or runny?
This is usually because the pudding mixture wasn’t completely cooled when it was added to the butter and sugar. It’s VERY fixable though, so don’t worry. All you have to do is place the bowl of buttercream into the refrigerator for 15-20 minutes to firm it up. Take it out, and continue beating the buttercream on high until it’s light and fluffy.
Can I make this into an 8-inch cake?
This cake is rather tall, so if you feel more comfortable making it into an 8-inch layered cake, you most certainly can. If you take this route, you’ll only need to bake three layers (rather than four), and the cakes will take less time in the oven–about 23-28 minutes.


Sweet Potato Cake
Ingredients
Sweet Potato Cake:
- 2 ½ Tablespoons lemon juice, divided
- 1 ½ cups whole milk
- 3 cups all-purpose flour
- 1 ½ teaspoons baking soda
- 1 teaspoon cinnamon
- 1 teaspoon pumpkin pie spice
- ½ teaspoon salt
- ½ cup unsalted butter, softened
- ¾ cup granulated sugar
- ¾ cup brown sugar
- 2 whole eggs
- 2 egg yolks
- 1 teaspoon vanilla
- 1 ⅓ cups mashed sweet potato (about one large)
- 2 Tablespoons vegetable oil
Caramel Pecan Filling:
- ¼ cup water
- ¾ cups granulated sugar
- ½ Tablespoon corn syrup
- ½ cup heavy cream
- ½ teaspoon salt
- 1 cup pecans, toasted and chopped
Whipped Brown Sugar Buttercream:
- 7 Tablespoons all-purpose flour
- 1 ⅓ cups whole milk
- 1 ¼ cups unsalted butter, softened
- 1 ½ cups brown sugar
- 2 teaspoons vanilla
- ¼ teaspoon salt
Instructions
Make the Cake:
- Preheat the oven to 350°F. Line four 6-inch round cake pans* with parchment paper.
- Place 1 and 1/2 tablespoons lemon juice in a measuring cup. Add enough milk to the measuring cup to equal 1 and 1/2 cups; let sit for a few minutes.
- In a medium-sized mixing bowl, whisk together the flour, baking soda, spices, and salt; set aside.
- In a stand mixer fitted with the paddle attachment, beat the butter and both sugars together until combined. Stir in the eggs and egg yolks, one at a time, followed by the vanilla. Stir in the mashed sweet potato, vegetable oil, and remaining tablespoon lemon juice.
- With mixer on low, alternate adding the dry ingredients with the milk mixture until just combined. Do not overmix. Divide batter evenly among the lined cake pans, then bake for 30-35 minutes, or until a toothpick inserted in the center comes out clean. Allow cakes to cool for 15 minutes before transferring to a wire rack to cool completely.
Make the Filling:
- Pour the water into a medium saucepan. Pour the sugar into the center of the pan, making sure none of the sugar crystals hit the sides. Add the corn syrup.
- Place pan over medium heat, leaving it alone for the first 5 minutes or until it the color begins to turn yellowish. Once you see some color, gently swirl the pan around occasionally as it boils. Continue boiling until the caramel reaches a golden amber color.
- Remove pan from the heat and carefully whisk in the heavy cream. Caramel will sizzle and bubble up. Stir in the salt, and continue whisking until caramel is smooth. If needed, return pan over medium-low heat, stirring until caramel is smooth.
- Transfer caramel to a shallow bowl (for quicker cooling), and cool completely. Once cooled, stir in the pecans.
Make the Buttercream:
- Place the flour into a small saucepan, then gradually whisk in the milk, a few tablespoons at a time. Cook over medium heat, whisking constantly, until it thickens. Once the mixture has reached a thick pudding consistency, remove it from the heat and immediately pour it through a fine mesh sieve into a bowl. Cool completely.**
- In a stand mixer fitted with the paddle attachment (or a hand beater), cream the butter, sugar, vanilla, and salt together on medium high speed until light and fluffy, about 3 minutes.
- Replace the paddle attachment with a whisk attachment, then add the completely cooled pudding mixture, and beat for about 5-7 minutes on high until it looks like whipped cream.***
Assemble the Cake:
- Place a cake layer on a cake plate or pedestal. Spread a thin layer of buttercream on top. Pipe a border of buttercream along the perimeter of the cake to prevent filling from peeking out of the sides. Spread a fourth of the pecan filling on top and inside the buttercream border. Top with another cake layer. Repeat steps with the remaining cake layers and pecan filling.
- Insert 3-4 bamboo skewers into the cake to stabilize it. Frost the cake with the rest of the buttercream, and pipe a border along the top of the cake.
Notes
