Chocolate Cupcakes From Scratch
These chocolate cupcakes from scratch bake up soft, tender and deeply cocoa-flavored, with a moist crumb from buttermilk and oil. Natural cocoa gives them their classic chocolate taste and helps create the rise and texture that make each cupcake light rather than dense.
The batter comes together in one bowl with a whisk or handheld mixer, and a cookie scoop makes portioning quick and even. Prep takes 20 minutes, baking takes 28 minutes in the recipe timing, and the batch makes 24 cupcakes. Frost them with chocolate or vanilla buttercream for birthdays, bake sales or a chocolate-friendly dessert table.
Why you’ll love it
Why This Chocolate Cupcakes From Scratch Recipe Works
A few straightforward choices give these cupcakes a plush crumb and reliable chocolate flavor.
- Natural cocoa keeps the crumb light. Natural cocoa powder has the acidity this batter needs to work with the baking soda. The recipe notes that Dutch-process cocoa can make the cupcakes denser, so use natural unsweetened cocoa for the intended texture.
- Buttermilk adds tenderness. Its acidity supports the baking soda, while its thickness adds moisture without making the batter heavy. Bringing it to room temperature also helps it blend smoothly with the eggs and oil.
- Oil keeps the cupcakes moist. Vegetable or canola oil stays fluid after baking, helping the cupcakes remain soft as they cool. It also mixes easily into the wet ingredients without requiring creaming.
- Hot water loosens the cocoa. Adding hot water to the dry ingredients helps disperse the cocoa through the batter and brings out its flavor. The batter will be quite fluid, which is normal for these cupcakes.
- A scoop evens out the batch. Dividing the batter consistently helps the cupcakes bake at a similar rate. A large cookie scoop also makes it easier to fill all 24 liners without drips and uneven portions.
What you need
Ingredients You’ll Need

Use natural cocoa powder for the intended rise, and let the buttermilk and eggs come to room temperature before mixing.
- All-purpose flour: Two cups, or 260 grams, form the structure. Spoon it into the measuring cup and level it for a consistent amount.
- Granulated sugar: Two cups, or 410 grams, sweeten the cocoa and help keep the crumb moist.
- Natural cocoa powder: Three-quarters cup, or 65 grams, gives the cupcakes their chocolate flavor. Choose unsweetened natural cocoa, not Dutch-process.
- Baking soda: Two teaspoons react with the buttermilk to help the batter rise.
- Baking powder: Half a teaspoon gives the cupcakes additional lift alongside the baking soda.
- Fine sea salt: One teaspoon balances the sweetness and brings the cocoa flavor into focus.
- Hot water: One cup, or 225 grams, helps disperse the cocoa. Have it hot when you begin mixing.
- Buttermilk: One cup, or 245 grams, at room temperature adds moisture and acidity. Shake it before measuring.
- Vegetable or canola oil: Half a cup, or 100 grams, keeps the crumb tender. Either neutral-flavored oil works.
- Large eggs: Two eggs at room temperature blend more easily into the batter than cold eggs.
- Vanilla extract: Two teaspoons round out the chocolate flavor without competing with the cocoa.
- Buttercream frosting: Use chocolate or vanilla buttercream, enough to frost the batch to your preference.
Tools
Equipment You’ll Need
- Two muffin pans: The recipe fills 24 cupcake liners, so two pans let you bake the batch together.
- Cupcake liners: Line every muffin well to make the cupcakes easy to lift out and serve.
- Large mixing bowl: A roomy bowl gives you space to sift the dry ingredients and mix in the liquids.
- Whisk or handheld mixer: Either tool can combine the batter; mix only until the ingredients are well blended.
- Large cookie scoop and cooling rack: The scoop portions the batter evenly, and the rack lets baked cupcakes cool before frosting.
The method
How to Make Chocolate Cupcakes From Scratch
1. Prepare the pans and oven
Heat the oven to 350°F and position a rack in the middle. Put liners into two muffin pans.
Have the pans ready before mixing; the batter can go straight into the oven once it is portioned.
2. Sift the dry ingredients
Sift the flour, sugar, cocoa powder, baking soda, baking powder and salt into a large bowl.
Sifting breaks up cocoa lumps and distributes the leaveners, so each cupcake rises more evenly.
3. Mix in the liquids
Add the hot water, room-temperature buttermilk, oil, eggs and vanilla. Whisk by hand or use a handheld mixer until the batter is well combined.
Expect a thin, pourable batter. Scrape around the bowl once to catch any dry cocoa or flour before portioning.
4. Fill the liners
Use a large cookie scoop to divide the batter evenly among the lined cups.
Aim for the same amount in every liner so the cupcakes finish baking at a similar time.
5. Bake the cupcakes
Bake for 18-22 minutes. Check for doneness by inserting a toothpick in the center and looking for a clean result; the tops should also bounce back when gently pressed.
Begin checking at 18 minutes. If the toothpick has wet batter on it or the tops do not spring back, continue baking and check again.
6. Cool and frost
Transfer the pans to a cooling rack and let the cupcakes cool. Prepare your chosen frosting while they cool, then frost only when the cupcakes are completely cooled.
Warm cupcakes can soften or melt buttercream. A piping bag fitted with a 1M tip gives a ridged swirl, but spreading frosting with a knife works too.
Doneness
How to Tell When It’s Done
The cupcakes are ready when a toothpick inserted into the center comes out clean and the tops spring back after a light touch. The tops should look set rather than wet or shiny.
If a toothpick comes out with liquid batter, return the pan to the oven and bake a little longer, checking again. A few moist crumbs are different from streaks of raw batter; avoid waiting until the cupcakes feel dry or firm.
Tips & common mistakes
Tips and Common Mistakes
Small details in the cocoa, mixing and cooling make a noticeable difference in the finished cupcakes.
- Choose natural cocoa. It provides the acidity this batter is designed around. Dutch-process cocoa may produce denser cupcakes rather than the intended light texture.
- Bring the cold ingredients to room temperature. Room-temperature buttermilk and eggs combine more evenly with the oil and hot water, leaving fewer streaks in the batter.
- Sift the cocoa thoroughly. Cocoa often forms small lumps in storage. Breaking them up before adding the liquids prevents pockets of dry cocoa in the baked cupcakes.
- Mix until combined. Once the batter looks even, stop mixing. Extra beating can make the crumb tougher instead of tender.
- Portion the batter evenly. A large cookie scoop keeps the cups close in fill level, which helps them bake at the same pace.
- Wait until fully cool to frost. Even a little residual warmth can loosen buttercream and make piped decorations slump.
- Measure the flour carefully. Too much flour can make the cupcakes dry and heavy. If measuring by volume, spoon flour into the cup and level the top rather than packing it down.
Make it your way
Substitutions and Variations
The cupcake base is simple, but a few flavor and topping changes work well.
- Canola or vegetable oil: Use either neutral oil listed in the ingredients. Olive oil is not an ideal swap because its stronger flavor can come through.
- Chocolate buttercream: Choose chocolate frosting for a fuller cocoa finish. Vanilla buttercream gives a sweeter contrast while keeping the cupcake itself unchanged.
- Vanilla buttercream: This is a direct frosting option and pairs well with the rich chocolate crumb. Add it only after the cupcakes have cooled completely.
- Espresso powder: For a stronger chocolate impression, add 1 to 2 teaspoons to the dry ingredients. It deepens the cocoa flavor without making the cupcakes taste like coffee.
- Coffee instead of water: Hot coffee can take the place of the hot water for a more pronounced roasted note. Keep the quantity the same so the batter consistency stays similar.
- Dairy-free frosting: A dairy-free chocolate or vanilla frosting can top the cupcakes, but the cake batter itself contains buttermilk and needs a suitable tested dairy-free recipe adaptation.
Serving
What to Serve with Chocolate Cupcakes From Scratch
Serve the cupcakes at room temperature so the crumb is soft and the buttercream is easy to bite through. They fit naturally on a birthday dessert table, at a bake sale or alongside a simple bowl of fresh berries.
For a mixed dessert spread, pair them with vanilla cookies or a fruit platter to give guests a break from chocolate. Keep the frosting style consistent if arranging them on a tiered stand.
Storage
Make-Ahead, Storage and Reheating
Make ahead: Bake the cupcakes a day ahead and keep them covered until ready to frost. Chocolate buttercream can be made 2 to 3 days ahead; cover and refrigerate it, then allow it to come to room temperature before using.
Storage: Keep leftover cupcakes covered at room temperature for up to 3 days, as noted for this recipe. If the frosting requires refrigeration, follow its food-safety needs and bring the cupcakes toward room temperature before serving.
Freezing: Wrap each cupcake individually in plastic wrap and freeze for up to 3 months. Thaw overnight in the refrigerator, then bring to room temperature to serve; frosting separately can help preserve its appearance.
Reheating: These cupcakes are best served at room temperature rather than reheated. If they have been chilled, let them sit out until the crumb softens and the frosting is no longer firm.
Questions
Chocolate Cupcakes From Scratch FAQs
Can I make these cupcakes without a mixer?
Yes. A whisk works well for combining the liquid ingredients with the sifted dry mixture. Mix until the batter looks even, then stop.
Why is the cupcake batter so thin?
That is normal for this batter. The hot water helps loosen and distribute the cocoa, and the liquid consistency bakes into a moist crumb.
Can I use Dutch-process cocoa powder?
It is not recommended for the intended result. The recipe relies on natural cocoa, and Dutch-process cocoa can make the cupcakes denser.
How do I know the cupcakes are not underbaked?
Check the center with a toothpick and gently press a top; the toothpick should come out clean and the top should spring back. Continue baking if you see wet batter or the center remains soft.
Can I frost the cupcakes with a piping bag?
Yes. A 1M piping tip makes a ridged swirl, though any frosting tip or a small spatula will work. Make sure the cupcakes are completely cool first.
How many cupcakes does this batch make?
It makes 24 cupcakes. Using a large cookie scoop to portion the batter helps keep the batch size and bake more consistent.
Recipe Card

Chocolate Cupcakes From Scratch
Ingredients
Method
- Preheat the oven to 350°F. Center an oven rack in the middle position. Line 2 muffin pans with cupcake liners
- In a large bowl, sift the flour, sugar, cocoa, baking soda, baking powder and salt.
- Using a handheld mixer or whisk, mix in the water, buttermilk, oil, eggs, and vanilla until well combined. Use a large cookie scoop to divide the batter evenly between the cups.
- Bake 18-22 minutes, or until a toothpick inserted in the center comes out clean and the tops bounce back. Let cool on a cooling rack.
- While the cupcakes are cooling prepare your desired frosting. Once completely cooled, frost the cupcakes as desired (I prefer to use a 1M frosting tip).