I’ve been spending more time at home lately, which has led to more baking — and these air fryer chocolate cupcakes are a favorite. They’re quick to make, perfectly sized for small households, and topped with a smooth chocolate buttercream that complements the cake’s tender, moist crumb. The air fryer speeds up baking and keeps cleanup simple, so you can enjoy fresh cupcakes without heating the whole kitchen.
The air fryer is perfect for baking cake!
Why use an air fryer for cupcakes? It heats faster than a conventional oven and is ideal for small batches. Here are the practical benefits:
- Faster baking: The compact size and circulating hot air usually cut bake times compared to a full-size oven.
- Small batches: Make just a dozen cupcakes without committing to a whole sheet or a big cake.
- Great texture: Cupcakes baked in an air fryer come out moist and tender with a pleasant crumb.
- Easy cleanup: Less mess and fewer pans than an oven bake.

Ingredients to make the best chocolate cupcake
Most likely you already have these pantry staples. Quantities appear later in the recipe section for clarity.
- All-purpose flour
- Sugar
- Vegetable oil (or substitute)
- Milk
- Hot water
- Unsweetened cocoa powder
- Egg
- Vanilla extract
- Baking powder
- Baking soda
- Salt

How to make these cupcakes
For a moist, tender cupcake use oil in the batter; it helps keep the crumb light and airy. If you prefer a richer, denser texture and flavor, melted butter can replace the oil 1:1 — simply melt and cool slightly before adding. Below are helpful substitution ideas you can try based on what you have available.
| Ingredient | Substitutions | Ratio |
|---|---|---|
| Oil | Melted coconut oil, melted butter | 1:1 |
| Hot water | Hot coffee, hot soda | 1:1 |
| Milk | Greek yogurt, sour cream, non-dairy milk | 1:1 |
| Egg + oil | Mayonnaise | Use equal oil amount and omit egg |
These swaps change texture and flavor slightly, so experiment to find what you prefer. Using hot coffee instead of hot water will deepen chocolate flavor, while yogurt or sour cream adds richness and tenderness.
How to make cupcakes in the air fryer
Step 1
Preheat the air fryer to 310°F (about 155°C). Preheating helps the cupcakes bake evenly from the start. Lightly spray twelve silicone cupcake holders with non-stick spray; you can also use paper liners inside the silicone cups if you prefer standard-sized cupcakes.
Step 2
Whisk the cocoa powder with the hot water until fully dissolved for a smooth chocolate base. Add the sugar, oil, milk, egg, and vanilla extract, then whisk until combined.
Step 3
Sift the flour, baking powder, baking soda, and salt over the wet mixture and fold until no dry streaks remain. Avoid overmixing — stir just until the batter comes together.
Step 4
Divide the batter evenly among the prepared cupcake holders and arrange them in a single layer in the air fryer basket, leaving small gaps for air circulation.
Step 5
Bake for 10 to 12 minutes. Check doneness with a toothpick inserted into the center — it should come out clean or with a few moist crumbs. Let cupcakes cool completely before frosting to keep the buttercream smooth.

Chocolate buttercream
Beat softened butter until creamy, then gradually add powdered sugar and cocoa powder. Mix in a pinch of salt and the vanilla, and add milk or cream a tablespoon at a time until you reach a spreadable consistency. Pipe or spread onto cooled cupcakes.
Tips and troubleshooting
- Air fryer models vary. Start with the shorter bake time and add a minute or two if needed.
- If cupcakes dome unevenly, lower the temperature by 10–15°F and bake a bit longer for even rising.
- Silicone holders can vary in size. If yours are smaller than standard liners, reduce baking time slightly and check early.
- To store: keep cupcakes in an airtight container at room temperature for 1–2 days or refrigerate for longer storage. Bring to room temperature before serving for best texture.
What else is cooking?
If you enjoyed these cupcakes, try other small-batch air fryer desserts like banana bundt cake or chocolate chip oatmeal cookies made the same way — quick, easy, and perfect when you want a fresh treat without a full oven session.
Tell me what you think
If you make this recipe, leave a comment and share a photo on your preferred social platform. Tag the baker or note your tweaks so others can try your version — I’d love to hear which substitutions or tips worked best for you.
Air Fryer Chocolate Cupcakes
Author: Joshua Boquist
Summary: A small-batch chocolate cupcake recipe designed for an air fryer with a rich chocolate buttercream. Tender, moist cupcakes baked without turning on the oven.
Course: Desserts | Cuisine: American
Prep: 10 mins | Cook: 12 mins | Total: 22 mins | Servings: 12 cupcakes
Ingredients
For the cupcakes
- ½ cup unsweetened cocoa powder
- ½ cup hot water
- 1 cup sugar
- ¼ cup vegetable oil
- ½ cup milk
- 1 egg
- 1 tsp vanilla extract
- 1 cup all-purpose flour
- ¾ tsp baking powder
- ¾ tsp baking soda
- ½ tsp salt
For the chocolate buttercream
- 8 tbsp butter, softened
- 2 cups powdered sugar
- 3 tbsp cocoa powder
- Pinch of salt
- ¼ tsp vanilla extract
- 1–4 tbsp milk or cream, to adjust consistency
Instructions
Make the cupcakes
- Preheat air fryer to 310°F and prepare twelve silicone cupcake holders with non-stick spray or liners.
- Whisk cocoa and hot water until smooth. Stir in sugar, oil, milk, egg, and vanilla until combined.
- Sift flour, baking powder, baking soda, and salt over the wet mixture and fold until smooth.
- Portion batter into holders and arrange in the air fryer basket with space between each.
- Bake 10–12 minutes, or until a toothpick comes out clean. Cool completely before frosting.
Make the buttercream
- Beat butter until creamy. Gradually add powdered sugar and cocoa, then beat until combined.
- Add salt and vanilla, then add milk or cream a tablespoon at a time until you reach the desired consistency.
- Pipe or spread onto cooled cupcakes.
Notes
- Start with the lower bake time and increase if needed — air fryers bake differently by model.
- If using smaller silicone cups, watch closely and reduce baking time to avoid overbaking.
Nutrition (approx.)
Calories per cupcake: ~311 kcal. Nutrition values are approximate and will vary by ingredients and serving size.