This gluten-free mocha cake recipe creates a cake that is rich, chocolatey, and incredibly moist thanks to the sour cream and brewed coffee in the batter. Paired with a smooth mocha Swiss meringue buttercream, it’s a decadent dessert that stays moist for days.
Preheat the oven to 350°F. Butter two 8-inch round cake pans with 2-inch-high sides. Line the pans with parchment paper, then butter the paper and sides of the pans.
Add the coffee and butter to a large saucepan. Over medium heat, melt the butter and bring the mixture to a simmer. Remove from the heat, add the cocoa powder, and whisk until smooth. Let cool while you prepare the other ingredients.
In a large bowl, add the flour, sugar, baking soda, and salt. Whisk to combine. Set aside.
Add the eggs and sour cream to a large bowl. Beat with an electric mixer or a stand mixer fitted with the paddle attachment until blended. Add the cooled coffee and chocolate mixture, and beat on low speed just until combined.
Gradually add the flour mixture, beating on low. Use a rubber spatula to fold the batter until fully combined. Divide the batter evenly between the prepared pans. Let the cakes rest for 10 minutes before baking.
Bake the cakes until a toothpick inserted into the center comes out clean, about 35 minutes. Transfer the cakes to a wire rack and let cool for 10 minutes. Turn the cakes out onto the rack and let cool completely before frosting.
Mocha Frosting
Chop the chocolate. Heat in the microwave in 30-second increments, stirring after each, until completely melted. Set aside.
In the bowl of a stand mixer, whisk together the egg whites and sugar. Set the bowl over a saucepan with 2 inches of simmering water. Whisk constantly until the mixture is hot, no longer grainy, or reaches 160°F on a candy thermometer (about 3 minutes).
Return the bowl to the stand mixer. Whip on medium-high speed until stiff peaks form and the bowl feels cool to the touch (about 5–10 minutes).
Switch to the paddle attachment. Gradually add the cubed, room-temperature butter and mix until smooth.
Add the melted chocolate and espresso powder. Mix until fully combined and silky smooth.