Peel back the paper from a good chocolate cupcake and the cake should come away cleanly. Break it open and the crumb should feel soft and moist without turning pasty or falling into pieces. Add frosting and the cupcake should still be able to hold itself together.
These chocolate cupcakes are made from scratch with cocoa powder, neutral oil and buttermilk, followed by hot coffee or hot water. There is no butter to cream, no chocolate to melt and no mixer to drag out. They come together easily for a last-minute tray and still have the structure to take frosting, travel in a cupcake box or sit on a birthday table.
The batter may look a little alarming the first time you make it because it becomes much thinner than a butter-based cupcake batter. Leave it loose. That is how it should look. The two things worth watching closely are how much goes into each liner and when the cupcakes are actually ready to come out of the oven.
Chocolate Cupcakes Recipe
| Yield | About 12 standard cupcakes |
|---|---|
| Prep | 15 minutes |
| Bake | 17–20 minutes; start checking at 17 |
| Oven | 350°F / 175°C conventional / 160°C fan |
| Cooling | 5 minutes in the pan, then transfer to a rack |
| Mixer | Not required |
Kitchen note: Oven and pan differences can shift the exact bake time and portioning slightly, so use the physical cues below alongside the timings.
The quantities are for an ordinary 12-hole cupcake or muffin tin, not a jumbo or mini pan. A light-colored metal pan gives the easiest baseline; very dark pans tend to set the outside faster.
Ingredients

- 120 g all-purpose flour — 1 cup; plain flour in the UK
- 35 g natural unsweetened cocoa powder — about 6 tablespoons + 2 teaspoons
- 175 g granulated sugar — 3/4 cup + 2 tablespoons
- 4 g baking powder — 1 teaspoon
- 2.5 g baking soda — 1/2 teaspoon
- 3 g fine salt — 1/2 teaspoon
- 1 large egg — roughly 50 g without the shell
- 80 ml neutral oil — 1/3 cup; vegetable, canola, sunflower or another mild oil
- 120 ml buttermilk — 1/2 cup
- 10 ml vanilla extract — 2 teaspoons
- 120 ml hot brewed coffee or hot water — 1/2 cup
For metric measuring: use the gram setting on your scale for the flour, cocoa and sugar, and a measuring jug for the liquids. A scale’s “ml” setting assumes a particular density, so it is not interchangeable across ingredients.
No cultured buttermilk? Put 1 1/2 teaspoons lemon juice or white vinegar into a measuring jug, then add enough whole milk to reach 120 ml / 1/2 cup. Leave it for 5–10 minutes before using. It is a common stand-in for buttermilk, although it is not identical to cultured buttermilk.
Method
- Heat the oven. Preheat to 350°F / 175°C conventional / 160°C fan. Position a rack near the middle and line the cupcake pan.
- Mix the dry ingredients. Whisk the flour, cocoa, sugar, baking powder, baking soda and salt in a large bowl. Break up any obvious cocoa or leavener lumps while you are there.
- Mix the wet ingredients. In a jug or second bowl, whisk the egg, oil, buttermilk and vanilla until evenly combined.
- Bring them together. Pour the wet mixture into the dry ingredients and whisk gently until the visible pockets of flour and cocoa disappear. A few tiny lumps are fine.
- Add the hot coffee or water. Pour it in gradually and whisk just until combined. The batter should now be thin and easy to pour. That sudden looseness is expected.
- Fill the liners. Divide the batter between 12 standard liners, filling each roughly halfway to two-thirds full. See the liner-fill guide for a closer visual reference.
- Bake. Bake for 17–20 minutes, starting to check at 17. The surface should look set, a light press should spring back, and a toothpick inserted in the center should come out without liquid batter. A few soft crumbs are fine. See the doneness guide if you are unsure.
- Cool. Leave the cupcakes in the pan for 5 minutes, then transfer them to a wire rack. Cool completely before frosting.
What the Batter Should Look Like

Scaling the Batch
| Batch | What to Do |
|---|---|
| Half | Halve the ingredients. Beat the egg until uniform, weigh it and use half—roughly 25 g. Expect about 6 cupcakes. |
| Double | Double everything. If your oven holds only one pan, two freshly mixed batches are more predictable than leaving half the batter sitting for a long time. |
| Mini | Fill mini liners halfway to two-thirds full and start checking early. Around 9 minutes is a reasonable starting point; use the same physical doneness cues. |
| Full-size cake | Don’t simply pour this batter into a larger pan and guess the bake. Use the chocolate cake recipe, which is built for larger pans and a longer bake. |
More Help With Chocolate Cupcakes
If your tray is already in the oven, the recipe above is enough to keep going. The sections below explain what to watch for as the cupcakes bake, cool and get frosted.
- How Full Should Cupcake Liners Be?
- How to Tell When They’re Done
- Moist Is Good. Fragile Isn’t.
- Fix My Chocolate Cupcakes
- Cocoa, Coffee & Easy Swaps
- Choosing a Frosting
- Storage & Make-Ahead
How Full Should Cupcake Liners Be?
Aim for roughly halfway to two-thirds full. If you prefer to weigh the batter, somewhere around 55–60 g per liner is a sensible starting range. However, the height in your particular tin matters more than the exact number.
“Standard” cupcake tins are not all the same. One may have narrow, deep wells while another is wider and shallower, so the same weight of batter can sit at a different height.

The last spoonful in the bowl is where good intentions get cupcakes into trouble. Too much batter can climb over the paper before the middle has time to firm up, leaving broad mushroom tops or a dramatic rise that disappears as the cakes cool.
How to Tell When Chocolate Cupcakes Are Done
Start checking at 17 minutes. Because chocolate cake is already dark, color alone is not especially helpful, so watch the surface and feel the center instead.
The clock tells you when to start looking; the cupcake tells you when to stop baking.

A top that springs back after a light press is a better sign than one that keeps a fingertip dent. The surface should also look set rather than wet. A toothpick may carry a few soft crumbs, but it should not come out coated in liquid batter.
Don’t worry if the top is fairly level. A tall muffin dome is not the goal here.
If the cakes still seem raw well beyond the expected window, check the oven temperature before simply extending the bake. Home ovens can be surprisingly optimistic about how hot they really are.
Moist Is Good. Fragile Isn’t.
What we’re after is the middle ground: a soft crumb that still peels and frosts cleanly.
Oil and sugar help the crumb stay soft, while flour and egg give it enough body to hold together. Cocoa absorbs liquid too. As a result, adding extra powder by the spoonful can leave the cake drier instead of more intensely chocolatey.

Once a cupcake is cool, peel one before frosting the batch. The paper should come away without taking half the cake with it, and the crumb should look soft all the way through—not wet or gummy near the center.
Something still looks wrong? Diagnose your chocolate cupcakes →
Fix My Chocolate Cupcakes
To diagnose a chocolate cupcake problem, check three places first: the top, the crumb and the wrapper.
If yours did something odd, start with where the problem showed up instead of changing several things at once.
The Top
The surface is the quickest place to begin because it shows how the cupcake rose and whether that rise held as the cake set and cooled.

| What You See | What to Check |
|---|---|
| Deep crater | Underbaked middle, too much batter, excess leavener or a cool oven. |
| Rose high, then sank | The middle probably had not firmed up enough to hold the rise. |
| Overflow or mushroom top | Too much batter in the liner. |
| Barely rose | Old leavener, a cool oven or a measuring error. |
| Fairly flat | Often completely normal for this style of cupcake. |
Top looks normal? Check the crumb →
The Crumb
Cutting one open adds information that the surface cannot give you. Texture, tunnels and the condition of the center can point toward very different causes.

| What You See | What to Check |
|---|---|
| Dry or crumbly | Too much flour or cocoa, too much oven time, or an oven running hot. |
| Dense or rubbery | The batter may have been mixed too long after the flour was wet. |
| Wet, gummy or falling apart | Let the cupcakes cool first. If the crumb is still gummy or fragile, check doneness and whether the flour and liquids were measured accurately. |
| Long tunnels | Overmixing is a common cause. |
| Bitter spots | Look for clumps of cocoa, baking soda or undissolved instant coffee. |
Crumb looks right? Check the wrapper →
The Wrapper
If the cake itself looks sound, don’t ignore the paper around it. Wrapper behaviour can tell you about the liner, cooling and storage as well as the bake.

| What You See | What to Check |
|---|---|
| Cake sticks badly | Try a better parchment or greaseproof liner and judge release only after the cake has cooled. |
| Paper pulls away | Warm storage, condensation, a slightly underbaked cake or the liner itself. |
| Paper looks oily or turns dark | The liner may not be sufficiently greaseproof. Foil-backed or good greaseproof papers hold up better. |
A disappointing first tray is annoying, especially when the batter looked perfectly fine going into the oven. Fortunately, cupcakes usually leave clues about what happened. Change one thing at a time and the next tray becomes much easier to read.
A wet middle is not the shortcut to a molten cupcake. If a flowing chocolate center is what you want, use a recipe designed around it, such as this chocolate lava cake.
↑ Back to the Chocolate Cupcakes Recipe
Cocoa, Coffee and Easy Swaps
Use natural unsweetened cocoa here. Dutch-process cocoa has been alkalized, changing its acidity and how it can interact with a baking-soda formula, so it isn’t a straight swap in this recipe.
Don’t substitute drinking chocolate or hot-cocoa mix because they usually contain sugar, milk powder or other ingredients. For the chemistry behind natural and Dutch cocoa, see King Arthur’s natural-vs-Dutch cocoa guide.
Coffee is optional. Use it when you want a slightly deeper roasted note from the cocoa; otherwise, use the same amount of hot water. Decaf works too, and instant coffee is fine when completely dissolved first.
One mild neutral oil can replace another. If cultured buttermilk is unavailable, use the acidified-milk substitute above. Melted butter is a bigger change because it firms as it cools, so the cupcake will not stay quite as soft as an oil-based one.
Eggless, vegan and gluten-free versions need a formula developed around those changes rather than a one-for-one substitution here.
Choosing a Frosting
Now for the part that is mostly about what sounds good.
Vanilla buttercream is the classic choice when you want a sturdy piped swirl and some contrast against the dark cake. For chocolate on chocolate, use chocolate buttercream or ganache. Cream cheese frosting gives you a tangier finish.

For 12 cupcakes, plan on roughly 2 cups of frosting for moderate swirls. Very tall bakery-style piping may take 2 1/2–3 cups.
Making them ahead? See storage and next-day serving →
Bake Today, Serve Tomorrow
Unfrosted chocolate cupcakes keep best airtight at cool room temperature for 1–2 days. For longer storage, freeze them for up to 2 months for best quality.
If these are for tomorrow’s birthday, school event or party, tonight’s job is simple: bake them, let them cool completely and get them safely covered.

Whatever comes next—storing, frosting, transporting or freezing—let the cupcakes cool completely first. Closing up warm cupcakes traps steam, which can make the tops sticky and loosen the papers overnight.
Cupcakes with cream cheese frosting need refrigeration because the topping is perishable. Let them sit out briefly before serving so the cake and frosting can soften again.
If the cupcakes are going into a carrier or across town, moderate swirls are easier to manage than very tall, soft piping. Keep heat-sensitive frostings cool in warm weather.
For the freezer, wrap or contain the unfrosted cupcakes airtight and thaw them while still covered at room temperature. Frost after they have thawed.
The Final Cupcake

A towering dome or deliberately wet center isn’t required. If the cake is deeply chocolatey, soft when you bite into it and sturdy enough to peel cleanly from its paper, it has done its job.
Then eat one before the piping bag is washed.
