Decadent Gluten-Free Chocolate Cupcakes Recipe

Photo of a gluten-free chocolate cupcake with chocolate frosting in a white cupcake liner.

These gluten-free chocolate cupcakes are rich, moist, and full of deep chocolate flavor. The batter comes together in one bowl with a handful of simple ingredients. A cup of hot brewed coffee amplifies the chocolate taste without making the cupcakes taste like coffee. Finish them with a thick chocolate buttercream — the result is a dessert that even people who aren’t gluten-free will love.

This has been my reliable chocolate cupcake recipe for years. I’ve made it for birthdays, showers, and other celebrations because it consistently yields tender, chocolatey cupcakes. The recipe makes 24 cupcakes and can easily be adapted to be dairy-free when needed.

Why You’ll Love This Recipe

  • One-bowl batter. Everything mixes in a single bowl — no creaming or separating required, which makes cleanup easy.
  • Coffee is the secret. Hot brewed coffee deepens the chocolate flavor without adding a mocha taste; decaf works too.
  • Dairy-free friendly. Swap almond milk plus vinegar for buttermilk and use vegan butter (with a bit of shortening if needed) for a stable frosting.
A tray of gluten-free chocolate cupcakes with rich, swirled chocolate frosting on top, arranged in neat rows on a metal baking sheet.

Ingredient Notes

  • Gluten-Free Flour Blend – This recipe was tested with Bob’s Red Mill 1-to-1 Gluten-Free Baking Flour (blue bag), which contains xanthan gum. Results may vary with other blends.
  • Cocoa powder – Use unsweetened cocoa powder for the best chocolate flavor.
  • Hot Coffee – Brewed coffee (not espresso) intensifies the chocolate without adding coffee flavor. Decaf is fine. If you prefer not to use coffee, boiling water works as a substitute.
  • Buttermilk – Keeps the cupcakes tender and moist. For a dairy-free version, stir 1 tablespoon apple cider vinegar into 1 cup almond milk and let it sit for 5 minutes before using.
  • Vegetable Oil – Oil keeps the crumb soft and eliminates a creaming step. Any neutral oil is suitable.
  • Eggs – Use large eggs at room temperature so they blend smoothly into the batter.
  • Butter – For the buttercream, use softened (not melted) butter. For a dairy-free frosting that pipes well, a 50/50 mix of vegan butter and palm shortening works best.

Don’t Worry About the Thin Batter

The batter will be thinner than typical cupcake batter after you add the hot coffee. That’s expected — let it sit 2–3 minutes and it will thicken slightly. Fill each liner about halfway; these cupcakes rise a lot during baking.

A gluten-free chocolate cupcake with swirled chocolate frosting sits in an open paper liner in the foreground, with more similarly decorated gluten-free chocolate cupcakes on a white tray in the background.

Recipe FAQs

Why did my cupcakes sink in the middle?

Mostly this happens when cupcakes are underbaked. Because the batter is thin, they need the full 23–25 minutes. Test with a toothpick — it should come out clean. Also avoid opening the oven door before 20 minutes.

Can I make these dairy-free?

Yes. Replace the buttermilk with 1 cup almond milk mixed with 1 tablespoon apple cider vinegar (let it sit 5 minutes). For the frosting, use a 50/50 blend of vegan butter and palm shortening so it pipes and holds shape.

Can I make this as a layer cake instead of cupcakes?

This recipe is formulated for cupcakes. If you want a layered cake, use a cake recipe that’s adjusted for pans and bake time.

Expert Tips

  • Fill liners halfway. The batter rises significantly; overfilling leads to overflow and flat tops.
  • Use a Wilton 1M tip for the swirl. Start at the outer edge and pipe in a circular motion toward the center, releasing pressure as you finish.
  • Cool completely before frosting. Frost cupcakes only after they are fully cooled to prevent the buttercream from melting and sliding off.
Photo of a hand holding a gluten-free chocolate cupcake with chocolate frosting with the cupcake liner peeled off.

Storage Instructions

Room temperature: Store frosted cupcakes in an airtight container for up to 2 days.

Refrigerator: If your frosting contains cream or dairy, refrigerate in an airtight container for up to 5 days. Bring to room temperature for 20–30 minutes before serving so the frosting softens.

Freezer: Freeze unfrosted cupcakes in a single layer until firm, then transfer to a freezer-safe bag or container for up to 3 months. Thaw at room temperature and frost before serving.

Frosting: Chocolate buttercream can be made up to a week ahead and stored in an airtight container in the fridge. Bring it to room temperature and re-whip before piping.

Serving Suggestions

These cupcakes are a satisfying dessert on their own and work well on a dessert table. Pair them with lighter options for variety, such as fruit-based bites or a non-chocolate cupcake, to give guests choices. They also pair nicely with simple cookies or bars if you want a broader selection.

A close-up of several gluten-free chocolate cupcakes in white paper liners, topped with swirls of chocolate frosting, arranged on a white tray against a light background.
5 from 1 vote

Gluten-Free Chocolate Cupcakes

One-bowl gluten-free chocolate cupcakes with chocolate buttercream. Hot coffee deepens the chocolate flavor without a coffee taste. Oil keeps them moist. Easily made dairy-free by swapping the buttermilk and using vegan butter for the frosting.
Prep Time 25 minutes
Cook Time 25 minutes
Total Time 50 minutes
Servings 24 cupcakes
Metric – US Customary

Ingredients

For the Cupcakes:

  • 2 cups (280 g) gluten-free all purpose flour blendBob’s Red Mill 1-to-1 Gluten-Free Flour Blend (contains xanthan gum)
  • ¾ cup (60 g) unsweetened cocoa powder
  • 2 teaspoons baking powder
  • 2 teaspoons baking soda
  • 1 teaspoon salt
  • 2 cups (400 g) granulated sugar
  • ½ cup (113 g) vegetable oilor melted butter if you prefer
  • 2 teaspoons vanilla extract
  • 2 (100 g) large eggsat room temperature
  • 1 cup (240 g) buttermilkat room temperature
  • 1 cup (240 g) hot brewed coffeeor use boiling water instead

For the Chocolate Frosting:

  • ½ cup (113 g) unsalted buttersoftened to room temperature
  • teaspoon salt
  • ¾ cup (60 g) unsweetened cocoa powdersifted
  • cups (300 g) powdered sugarsifted
  • 1 teaspoon vanilla extract
  • ¼ cup (60 g) whole milkadd one tablespoon at a time to reach desired consistency

**Use the toggle button above to turn the instruction photos on and off!

Instructions

To Make the Cupcakes:

  • Preheat the oven to 350°F (175°C). Line two 12-cup muffin tins with paper liners.
  • In a large bowl, whisk together 2 cups (280 g) gluten-free all-purpose flour blend, ¾ cup (60 g) unsweetened cocoa powder, 2 teaspoons baking powder, 2 teaspoons baking soda, 1 teaspoon salt, and 2 cups (400 g) granulated sugar until evenly combined.
  • Add ½ cup (113 g) vegetable oil, 2 teaspoons vanilla extract, 2 large eggs (100 g total), and 1 cup (240 g) buttermilk. Mix 1–2 minutes until smooth, scraping the bowl as needed.
  • Pour in 1 cup (240 g) hot brewed coffee and stir until smooth. The batter will be thin; let it rest 2–3 minutes to thicken slightly.
  • Divide the batter evenly among the 24 lined cups, filling each about halfway.
  • Bake at 350°F (175°C) for 23–25 minutes, until tops spring back and a toothpick comes out clean. Avoid opening the oven before 20 minutes.
  • Cool the cupcakes completely in the pans before frosting.

To Make the Chocolate Buttercream:

  • In a large bowl, beat ½ cup (113 g) softened unsalted butter with ⅛ teaspoon salt until creamy, about 1 minute.
  • Add ¾ cup (60 g) sifted unsweetened cocoa powder and 2½ cups (300 g) sifted powdered sugar. Mix on low until combined, then beat on medium 1–2 minutes until fluffy.
  • Mix in 1 teaspoon vanilla. Add ¼ cup (60 g) whole milk one tablespoon at a time, mixing until the frosting holds its shape when piped. Adjust with more powdered sugar if too thin, or more milk if too thick.
  • Pipe or spread buttercream onto completely cooled cupcakes.

Notes

  • Flour: This recipe was tested with Bob’s Red Mill 1-to-1 Gluten-Free Baking Flour (blue bag) which contains xanthan gum; other blends may behave differently.
  • Coffee: Coffee intensifies chocolate flavor without a coffee taste. Decaf is fine. Boiling water can replace coffee if preferred.
  • Dairy-free cupcakes: Replace buttermilk with 1 cup almond milk + 1 tablespoon apple cider vinegar (let sit 5 minutes). For stable vegan frosting, use a 50/50 blend of vegan butter and palm shortening and almond milk instead of whole milk.

Nutrition

Calories: 247kcal | Carbohydrates: 40g | Protein: 2g | Fat: 10g | Saturated Fat: 6g | Cholesterol: 25mg | Sodium: 270mg | Potassium: 150mg | Fiber: 2g | Sugar: 29g | Vitamin A: 160IU | Calcium: 49mg | Iron: 1.2mg