From-Scratch Chocolate Cupcakes
These from-scratch chocolate cupcakes have a tender, moist crumb and deep cocoa flavor. The batter is intentionally thin, and boiling water helps bring the cocoa into the mixture for a soft, even bake.
Allow about 20 minutes for prep and 25 minutes for baking; the full recipe takes 75 minutes and makes 24 cupcakes. They’re easy to portion for birthdays, school gatherings, bake sales, and other celebrations.
The cupcakes need to cool completely before frosting, so plan for that resting time before decorating or serving.
Why you’ll love it
Why This From-Scratch Chocolate Cupcakes Recipe Works
A simple mixing method and a thin, hot-water batter give these cupcakes their soft texture and reliable chocolate flavor.
- Oil keeps the crumb tender. Vegetable oil stays fluid after cooling, helping the cupcakes remain soft instead of firming up like a butter-based cake.
- Boiling water loosens the batter. The batter will look much thinner than typical cupcake batter. That consistency is expected and contributes to a moist, delicate crumb.
- Cocoa supplies the chocolate flavor. Unsweetened cocoa adds a concentrated chocolate taste without making the batter depend on melted chocolate.
- Leaveners help the cupcakes rise. Baking powder and baking soda work with the other ingredients to lift the batter as it bakes, giving each cupcake a light texture.
- A short mixing time limits toughness. Once the wet ingredients go into the dry mixture, beating for the specified time combines everything without encouraging excessive gluten development.
What you need
Ingredients You’ll Need

Measure the ingredients before mixing, and use natural cocoa powder for the rise and texture specified in the notes.
- Granulated sugar: Two cups sweeten the cocoa-rich batter and help keep the finished cupcakes moist.
- All-purpose flour: One and three-quarter cups, spooned into the measuring cup and leveled rather than scooped, helps prevent dense cupcakes.
- Unsweetened cocoa powder: Three-quarter cup; natural cocoa powder is recommended for the expected rise and texture.
- Baking powder: One and one-half teaspoons provide lift as the cupcakes bake.
- Baking soda: One and one-half teaspoons work alongside the baking powder to help the batter rise.
- Salt: One teaspoon balances the sweetness and rounds out the chocolate flavor.
- Eggs: Two large eggs, ideally at room temperature, help the ingredients combine evenly.
- Milk: One cup, brought to room temperature, adds moisture and helps form the batter.
- Vegetable oil: One-half cup gives the cupcakes a soft, moist crumb.
- Vanilla extract: Two teaspoons add warmth and complement the cocoa.
- Boiling water: One cup, added carefully at the end, thins the batter; hot brewed coffee can replace it for a deeper chocolate note.
Tools
Equipment You’ll Need
- Two 12-cup muffin pans: The pans bake all 24 cupcakes in one batch and keep the paper liners upright.
- Paper cupcake liners: Use 24 liners to make removal easier and keep the pans clean.
- Large mixing bowl: A roomy bowl gives you space to whisk the dry ingredients and mix in the wet ingredients.
- Electric mixer: Use it on medium speed for the specified mixing time; a hand mixer or stand mixer works.
- Wire rack: Moving the cupcakes to a rack after their brief pan rest lets air circulate as they cool.
The method
How to Make From-Scratch Chocolate Cupcakes
1. Prepare the pans
Heat the oven to 350°F. Place paper liners in two 12-cup muffin pans.
Set the lined pans nearby so the thin batter can be portioned as soon as it is mixed.
2. Whisk the dry ingredients
In a large bowl, whisk the sugar, flour, cocoa powder, baking powder, baking soda, and salt until evenly blended.
Break up any visible cocoa or flour clumps so the leaveners are distributed throughout.
3. Mix in the wet ingredients
Add the eggs, milk, vegetable oil, and vanilla. Beat with an electric mixer on medium speed for 2 minutes.
Stop when the mixture looks evenly combined; avoid continuing to beat beyond the stated time.
4. Stir in boiling water
Carefully pour in the boiling water and stir until it is incorporated throughout the batter.
The mixture will be thin. That is normal, so don’t add extra flour to thicken it.
5. Fill the liners
Divide the batter among the cupcake liners, filling each one about two-thirds full.
A measuring scoop or ladle can help keep the portions even and prevent overfilling.
6. Bake the cupcakes
Bake for 22 to 25 minutes. Check the center of a cupcake with a toothpick; remove the pans when it comes out clean.
If the pick shows wet batter, return the cupcakes to the oven and check again before the end of the baking range.
7. Cool before frosting
Leave the cupcakes in their pans for 10 minutes, then transfer them to a wire rack and let them cool completely.
The bottoms should feel cool, not warm, before you add frosting so it does not soften or slide.
8. Frost and serve
Once fully cool, frost the cupcakes with your preferred frosting.
For a neat finish, pipe or spread the frosting only after the cupcakes have reached room temperature.
Doneness
How to Tell When It’s Done
The cupcakes should look set on top, with no wet-looking batter in the center. A toothpick inserted into the middle should come out clean rather than coated in raw batter.
If a toothpick shows wet batter, bake the cupcakes longer and check again. Follow the card’s 22 to 25 minutes of baking time, and use the toothpick test to judge when they are ready.
Let them rest in the pans for 10 minutes before moving them. Cool completely on a wire rack before frosting; a warm center can melt the topping even when the outside feels cool.
Tips & common mistakes
Tips and Common Mistakes
These details help preserve the cupcakes’ rise and soft texture.
- Spoon and level the flour. Scooping directly from the bag can pack too much flour into a cup and make the crumb heavier. Weigh it if you have a scale.
- Use room-temperature eggs and milk. They blend more smoothly into the dry ingredients than cold ingredients, helping the batter come together evenly.
- Keep the water boiling. Don’t skip this ingredient or substitute cool water; the hot liquid is part of the thin batter method.
- Trust the thin batter. It may look unusually loose after the water goes in, but that consistency is intended for a soft cupcake.
- Fill liners only two-thirds full. Extra batter can spill over as the cupcakes rise and make the tops uneven.
- Avoid overmixing. Beat on medium speed for 2 minutes, then stir in the water just until combined to help keep the crumb tender.
- Wait to frost until cool. Frosting warm cupcakes can make the topping melt and slide off; let them cool completely first.
Make it your way
Substitutions and Variations
A few simple changes can adjust the flavor or format while keeping the same basic batter.
- Hot brewed coffee: Use it in place of the boiling water for a richer chocolate flavor. The coffee deepens the cocoa without turning the cupcakes into coffee-flavored cake.
- Different frosting: Chocolate, vanilla, strawberry, peanut butter, or cream cheese frosting all pair well; choose based on how sweet or tangy you want the finish.
- Mini cupcakes: Bake in mini cupcake liners for 10 to 12 minutes. Begin checking with a toothpick near the shorter end because the smaller cakes bake faster.
- Two cake layers: The batter can be baked in two 9-inch round pans for approximately 30 to 35 minutes. Check the centers with a toothpick before removing them.
- A sheet cake: For a 9×13-inch cake, bake for approximately 35 to 40 minutes and check the center for a clean toothpick.
- Dairy-free milk: An unsweetened dairy-free milk can replace the milk cup for cup; flavor and browning may vary slightly by type.
Serving
What to Serve with From-Scratch Chocolate Cupcakes
Serve the cupcakes as they are for birthdays, classroom celebrations, or a dessert table. Chocolate frosting keeps the flavor classic, while vanilla or strawberry frosting adds contrast.
For a plated dessert, pair one with berries or a scoop of vanilla ice cream. Crumble leftovers over ice cream, layer them with whipped cream and berries, or cube them for a sundae topping.
Storage
Make-Ahead, Storage and Reheating
Make ahead: Bake the cupcakes a day ahead and keep them unfrosted in an airtight container. Frost them once completely cool, preferably closer to serving so the tops stay neat.
Storage: Keep unfrosted or buttercream-frosted cupcakes in an airtight container at room temperature for up to 3 days. Cupcakes with cream cheese frosting should be refrigerated for up to 5 days; let them sit out about 20 to 30 minutes before serving for a softer texture.
Freezing: Freeze unfrosted cupcakes in a freezer-safe container or bag for up to 3 months. Thaw overnight in the refrigerator or for several hours at room temperature before frosting; frosted cupcakes can also be frozen after the frosting firms on a baking sheet, then wrapped individually.
Reheating: These cupcakes do not need reheating. If they have been refrigerated, let them stand at room temperature for about 20 to 30 minutes before serving.
Questions
From-Scratch Chocolate Cupcakes FAQs
Why is the cupcake batter so thin?
That is expected. The boiling water loosens the batter and helps produce the soft, moist crumb, so don’t try to thicken it with extra flour.
Can I use Dutch-process cocoa powder?
Natural cocoa powder is recommended for the intended rise and texture. Dutch-process cocoa may behave differently with the leaveners, so the result can vary.
Can I make the cupcakes without an electric mixer?
Yes. A sturdy whisk and mixing bowl can combine the ingredients, though it may take more effort to beat the wet ingredients evenly for the stated 2 minutes.
How do I keep the cupcakes from sinking?
Avoid overfilling the liners, and don’t open the oven repeatedly while the cupcakes are setting. Check doneness with a toothpick before taking the pans out.
Can I frost these with cream cheese frosting?
Yes. Cream cheese frosting works well, but cupcakes with that topping need refrigeration; bring them out about 20 to 30 minutes before serving.
What can I do with leftover cupcakes?
Crumble them over vanilla ice cream, layer pieces with whipped cream and berries, or turn them into cake pops or a chocolate trifle.
Recipe Card

From-Scratch Chocolate Cupcakes
Ingredients
Method
- Preheat the oven to 350°F. Line two 12-cup muffin pans with paper cupcake liners.
- In a large bowl, whisk together the sugar, flour, cocoa powder, baking powder, baking soda, and salt.
- Add the eggs, milk, vegetable oil, and vanilla extract. Beat with an electric mixer on medium speed for 2 minutes.
- Carefully stir in the boiling water until fully combined. The batter will be thin.
- Fill each cupcake liner about two-thirds full.
- Bake for 22 to 25 minutes, or until a toothpick inserted into the center comes out clean.
- Let the cupcakes cool in the pans for 10 minutes, then transfer them to a wire rack to cool completely.
- Frost with your favorite frosting once the cupcakes have cooled completely.