Desserts
This 5-inch chocolate cake recipe delivers the perfect balance of rich, moist layers and a crispy top that begs for a second slice. The secret lies in the fudge swirls—thick, velvety ribbons of chocolate that cut through the tender crumb for every bite. I developed this recipe after years of testing, ensuring the cake stays perfectly moist while achieving that coveted crackly crust. The result? A dessert that looks as impressive as it tastes, ideal for celebrations or satisfying cravings.
The foundation of this recipe is a simple yet foolproof method: combining melted butter with cocoa powder and espresso powder for deep chocolate flavor. A touch of sour cream keeps the crumb tender, while a sprinkle of cornstarch ensures that crispy top without drying out the cake. Baking in a 5-inch pan guarantees a taller, more dramatic presentation—perfect for impressing guests or treating yourself. The fudge swirls are made with just three ingredients, yet they transform the cake from ordinary to extraordinary.
Once baked, the cake develops a golden, crackly crust that contrasts beautifully with the soft, fudgy interior. The fudge swirls remain gooey and rich, adding pockets of decadence in every slice. This recipe yields a cake that’s sturdy enough to hold its shape but tender enough to melt in your mouth. Whether you serve it plain, dusted with powdered sugar, or topped with whipped cream, it’s a showstopper that never disappoints.
For an extra touch of elegance, consider brushing the top with a simple chocolate glaze or garnishing with fresh berries. The cake’s rich flavor pairs perfectly with a cup of coffee or a glass of milk, making it a versatile dessert for any occasion. Let’s get baking—your taste buds will thank you.
Ingredients for 5 inch chocolate cake
Rich chocolate flavor meets crispy perfection in this 5-inch cake's essential ingredients.
| Ingredient | Amount | Notes |
|---|---|---|
| Unsalted Butter 🧈 | 1 cup | Melted and cooled to room temperature |
| Granulated Sugar 🍚 | 1 ½ cups | White or light brown preferred |
| All-Purpose Flour 🌾 | 1 ¾ cups | Sifted for even texture |
| Cocoa Powder 🍫 | ¾ cup | Dutch-processed for smoothness |
| Espresso Powder ☕ | 1 tbsp | Enhances chocolate depth |
| Sour Cream 🥛 | ½ cup | Full-fat for moisture |
| Cornstarch 🌾 | 2 tbsp | For crispy top texture |
| Large Eggs 🥚 | 2 whole | Room temperature for even baking |
| Vanilla Extract 🌿 | 1 tbsp | Pure extract preferred |
| Salt 🧂 | ½ tsp | Fine sea salt |
| Hot Water 💧 | ½ cup | For fudge swirl mixture |
| Semisweet Chocolate Chips 🍫 | 1 ½ cups | High-quality for rich flavor |
| Powdered Sugar 🍚 | ¼ cup | For final dusting |
The butter and cocoa powder form the cake's soul—unsalted butter for pure flavor, Dutch-processed cocoa for smoothness. Costco or King Arthur Flour are my go-tos for these staples. For the espresso powder, Starbucks or local coffee shops often sell it in small jars. The sour cream keeps the crumb tender while the cornstarch creates that coveted crackly top. Sift all dry ingredients to prevent lumps, especially the cocoa and cornstarch. The chocolate chips should be high-quality brands like Ghirardelli—cheaper chips melt unevenly and affect texture.
No espresso powder? Instant coffee granules at half the amount work in a pinch. Running short on sour cream? Plain Greek yogurt thinned with milk mimics the texture. The vanilla extract can be swapped for vanilla bean paste if you prefer stronger flavor. For the fudge swirls, dark chocolate chips intensify the richness. If you're gluten-sensitive, King Arthur gluten-free flour blend replaces the all-purpose flour—just add an extra 0.25 cup for proper structure. The cake batter should be thick but pourable—if too stiff, add 1 tbsp milk at a time.
The cake keeps beautifully for 3 days at room temperature, wrapped tightly in plastic. For longer storage, refrigerate for up to 1 week or freeze for 3 months. Bring frozen cake to room temperature before slicing. The fudge swirls firm up when cold, so let the cake sit 10 minutes after baking before slicing. I always bake two cakes—one for immediate serving, one to freeze for later. Dust with powdered sugar right before serving to maintain that fresh-from-the-oven look.
Why You'll Love This Recipe
- I’ll be real: this cake costs me about $3 to make, but it tastes like a bakery’s $12 special. The butter and sugar are the splurges, but the cocoa and espresso powder stretch the flavor so far. Plus, leftovers? They last a week if you’re disciplined (I’m not).
- No Mixer Needed: I swear by this recipe when I’m too tired to cream butter and sugar by hand. Just melt the butter, whisk the eggs right into the warm sugar, and fold in the flour—no stand mixer, no fuss, just a bowl and a spatula. That espresso powder does the heavy lifting for depth.
- Rich Without Bitterness: Here’s what sold me—the cocoa and espresso powder team up to give you real chocolate flavor, not that chalky aftertaste. The butter keeps it moist, and the sugar caramelizes just enough to hit that perfect balance. Honestly, it’s the kind of cake that makes store-bought look sad.
- Party or Pudding: Between us, this cake is my go-to for anything: a last-minute dessert for dinner guests, a single slice for my 3pm crash, or even a stack of layers for a birthday. The 5-inch size means I can bake one and freeze half—no waste, no stress.
Step-by-step instructions for 5-Inch chocolate cake
Here's how to create a decadent chocolate cake with fudge swirls and a perfectly crispy top.
Prepare the Fudge Swirl Mixture
In a small saucepan, combine the 1 cup unsalted butter, 1.5 cups granulated sugar, and 0.5 cup hot water. Bring to a gentle boil over medium heat, stirring until the sugar completely dissolves. Remove from heat and whisk in the 0.75 cup cocoa powder and 1 tbsp espresso powder until smooth. Let the mixture cool for 5 minutes—it should thicken slightly but remain pourable.
This fudge mixture is the heart of your cake's rich flavor. The espresso powder enhances the chocolate depth, while the hot water helps create that signature fudge-like texture. If you notice any graininess, strain the mixture through a fine-mesh sieve before proceeding.
Mix the Cake Batter
In a separate large bowl, cream together the 2 whole large eggs, 1 tbsp vanilla extract, and 0.5 tsp salt until combined. Gradually add the 1.75 cups all-purpose flour and 2 tbsp cornstarch, mixing just until no dry spots remain. Fold in the 1.5 cups semisweet chocolate chips and 0.5 cup sour cream, reserving a small amount for later if needed.
The batter should be thick but still able to be spooned smoothly. If it appears too dry, add 1-2 tablespoons of the reserved sour cream to achieve the right consistency. This step ensures your cake will have that perfect moist yet firm texture without being dense.
Create the Swirl Pattern
Pour half of the cake batter into a 5-inch round cake pan lined with parchment paper. Using a spoon, gently drizzle the cooled fudge mixture in concentric circles, starting from the center and working outward. Pour the remaining batter over the fudge, then use a knife to swirl gently through the center to create marbled patterns.
This is where the magic happens—the contrast between the rich chocolate batter and the fudge swirls creates the signature look. Don't overmix; just a few gentle swirls will create beautiful marbling. Tap the pan lightly on the counter to release any air bubbles before proceeding.
Bake to Crispy Perfection
Preheat your oven to 350°F. Bake the cake for 35-40 minutes, or until a toothpick inserted into the center comes out clean with just a few moist crumbs. The edges should be deep golden brown and slightly crispy, while the top should have a crackly texture.
Real talk: your oven might run hot, so start checking at the 30-minute mark. If the top browns too quickly, tent loosely with aluminum foil. The cake is done when it springs back slightly when pressed in the center and has that irresistible crispy crust we're after.
Cool and Finish
Remove the cake from the oven and let it cool in the pan for 10 minutes, then transfer to a wire rack. Once completely cooled, dust the top generously with 0.25 cup powdered sugar using a fine-mesh sieve for that classic chocolate cake finish.
This final step not only adds visual appeal but helps create that signature contrast between the crispy top and moist interior. Serve slices at room temperature for the best texture—each bite should deliver that perfect balance of rich chocolate, fudge swirls, and crispy edges.
Pro Tips For Making 5 Inch Chocolate Cake
- Sift the Cocoa: Mixing cocoa powder straight from the bag leaves lumps that ruin the texture—sift it first, then whisk it with the flour. I learned this the hard way when my first 5-inch cake turned out dense and uneven.
- Melt Butter Slowly: Use a double boiler or microwave in 20-second bursts to melt the butter, not a screaming-hot pan. Overheating it turns the sugar into a gummy mess later, and nobody wants a cake that fights back.
- Skip the Extra Espresso: If your recipe calls for espresso powder, measure carefully—too much makes the cake bitter. I was skeptical until I tried it: the right amount deepens the chocolate flavor without overpowering.
- Don’t Overmix the Batter: Stop mixing as soon as the flour disappears—overworking it adds gluten and makes the cake tough. Give it a quick fold instead, like you’re tucking in a blanket, not kneading dough.
Troubleshooting this dish
Cake Too Dense
Overmixing the batter or using too much flour is the usual culprit. I’ve found that gently folding the dry ingredients into the wet mixture—just until combined—keeps the crumb light. If your cake turns out dense, try reducing the flour by 1-2 tablespoons next time. Also, ensure your butter and eggs are at room temperature; cold fats can make the texture heavy. 💡
Fudge Swirls Not Visible
If your fudge mixture sets too quickly, it won’t create those beautiful swirls. Cool the fudge to 100-110°F before pouring—it should be thick but still pourable. Pour half the batter, then drizzle the fudge in concentric circles, and finish with the remaining batter. Use a butter knife to gently swirl through the center before baking. If the swirls disappear, your fudge might have cooled too much—warm it slightly over a double boiler. 🍫
Crackly Top Missing
The cornstarch is key for that crispy crust, but if your top stays soft, it could be due to overmixing or insufficient baking. Whisk the batter just until combined, and bake until a toothpick comes out clean with a few moist crumbs. For extra crispiness, broil for 1-2 minutes at the end of baking—watch closely to avoid burning. A 350°F oven is ideal; higher temps can dry out the cake before the top crisps. ✨
Cake Sticks to Pan
Greasing the pan isn’t enough—line it with parchment paper for easy release. I swear by a 5-inch round pan lined with parchment, then lightly greased with butter. If your cake still sticks, try baking it in a dark metal pan (they conduct heat better) or reduce the oven temp by 25°F for the last 10 minutes of baking. Let the cake cool completely before removing it from the pan. 🧈
Uneven Baking
Hot spots in your oven can cause uneven baking. Rotate the pan halfway through baking if your oven runs hot on one side. For even browning, place a baking sheet on the lower rack during the first 20 minutes to reflect heat upward. If your cake bakes too fast on the edges, tent it loosely with foil after 25 minutes. The goal is a deep golden brown with a crackly top—don’t rush it! 🔥
Dry or Cracked Cake
Overbaking is the usual suspect here. Pull the cake out when a toothpick comes out with a few moist crumbs—it’ll continue cooking slightly as it cools. If your cake cracks, it’s often due to rapid cooling. Let it cool in the pan for 10 minutes, then transfer to a wire rack. For extra moisture, brush the cooled cake with a simple sugar syrup (equal parts sugar and water, heated until dissolved). Store in an airtight container with a slice of bread to keep it moist. 💫
Nutrition facts
Frequently asked questions
Can I make this cake in a different pan size?
The recipe is specifically designed for a 5-inch round pan to achieve that perfect height and crispy top. For a 6-inch pan, reduce baking time by 5-7 minutes (around 30-35 minutes total). If using an 8-inch pan, divide the batter between two pans and bake for 25-30 minutes each. Always check doneness with a toothpick—it should come out with moist crumbs, not wet batter.
How do I prevent the fudge swirls from sinking?
Keep the fudge mixture at 100-110°F before pouring—it should be thick but still pourable. Pour half the batter first, then drizzle the fudge in concentric circles, finishing with the remaining batter. Use a butter knife to gently swirl through the center once before baking. The key is speed: work quickly to prevent the fudge from cooling too much before the batter sets.
Can I substitute Dutch-processed cocoa?
Yes, but your cake will have a slightly different flavor profile. Natural cocoa (like Hershey's) has a more bitter, tangy taste, while Dutch-processed cocoa is smoother and richer. If substituting, reduce the amount by 1-2 tablespoons since natural cocoa is less processed. For best results, stick with Dutch-processed cocoa—it's worth the small investment for that velvety texture.
How should I serve this cake?
This cake is stunning served plain with a dusting of powdered sugar, but you can also add whipped cream, chocolate ganache, or fresh berries. For a rustic touch, serve slices on a wooden board with a side of vanilla ice cream. The crispy top pairs beautifully with a warm cup of coffee or a glass of milk. Store leftovers in an airtight container at room temperature for 3 days or refrigerate for up to 1 week.
Why does my cake have a tunnel?
A tunnel (or dome) forms when the center doesn't bake evenly, often due to overmixing or insufficient baking. To fix this, ensure your batter is smooth but not overmixed, and bake until a toothpick comes out clean with just a few moist crumbs. For next time, try tapping the pan gently on the counter before baking to release air bubbles. If you already have a tunnel, slice it horizontally—it's still delicious!
