Air Fryer Carrot Cake – Moist, Quick, and Perfectly Spiced

Carrot cake feels special no matter the occasion, and making it in the air fryer keeps things easy and fast. You still get that soft, tender crumb, warm spices, and a creamy frosting—without heating up the whole kitchen. This version is scaled for smaller pans, so it bakes evenly and stays moist.
Whether you’re new to air fryer baking or a seasoned pro, this recipe is approachable, reliable, and seriously delicious.
Air Fryer Carrot Cake - Moist, Quick, and Perfectly Spiced
Ingredients
- All-purpose flour (1 cup)
- Granulated sugar (1/2 cup)
- Light brown sugar (1/4 cup, packed)
- Baking powder (1 teaspoon)
- Baking soda (1/2 teaspoon)
- Fine salt (1/2 teaspoon)
- Ground cinnamon (1 teaspoon)
- Ground nutmeg (1/8 teaspoon)
- Neutral oil (1/3 cup; canola, vegetable, or grapeseed)
- Large eggs (2)
- Vanilla extract (1 teaspoon)
- Finely grated carrots (1 1/2 cups, lightly packed)
- Crushed pineapple, well-drained (1/4 cup)
- Chopped walnuts or pecans (optional, 1/3 cup)
- Raisins (optional, 1/4 cup)
- Cream cheese (4 ounces, softened)
- Unsalted butter (2 tablespoons, softened)
- Powdered sugar (3/4 to 1 cup)
- Lemon juice or milk (1–2 teaspoons, as needed)
- Nonstick spray or oil for the pan
Instructions
- Prep the pan and air fryer. Line a 6-inch round cake pan (or 7-inch if that fits) with parchment on the bottom. Grease the sides. Preheat the air fryer to 320°F (160°C) for 5 minutes. Preheating helps the cake rise evenly.
- Mix dry ingredients. In a medium bowl, whisk flour, granulated sugar, brown sugar, baking powder, baking soda, salt, cinnamon, and nutmeg until no lumps remain.
- Whisk the wet ingredients. In another bowl, whisk eggs, oil, and vanilla until smooth and slightly frothy, about 30 seconds. This builds a bit of structure for a better rise.
- Combine batter. Pour wet ingredients into dry and stir with a spatula until just combined. Fold in the grated carrots and drained pineapple. If using, fold in nuts and raisins. The batter should be thick but scoopable.
- Load the pan. Scrape the batter into the prepared pan and smooth the top. Tap the pan once on the counter to pop large air bubbles.
- Bake in the air fryer. Place the pan in the air fryer basket. Cook at 320°F (160°C) for 28–34 minutes, or until a toothpick comes out with a few moist crumbs but no wet batter. If the top browns too quickly, tent loosely with foil during the last 10 minutes.
- Cool completely. Let the cake cool in the pan for 10 minutes. Run a knife around the edge, then remove to a rack to cool fully before frosting. Warm cake will melt frosting.
- Make the frosting. Beat cream cheese and butter until creamy. Add powdered sugar gradually until smooth and spreadable. Mix in lemon juice or milk 1 teaspoon at a time to reach your desired texture. Taste and add a pinch of salt if you like a tangier finish.
- Frost and finish. Spread frosting over the cooled cake. Top with extra chopped nuts or a light dusting of cinnamon if you want a little flair.
- Serve. Slice with a sharp, warm knife for clean cuts. This cake is even better after resting 30 minutes once frosted.
Why This Recipe Works

This air fryer carrot cake bakes in a small pan, which means moisture stays locked in and the center cooks through without drying out the edges. The batter uses oil instead of butter for a tender crumb that stays soft for days. We add crushed pineapple and finely grated carrots for natural sweetness and moisture, so the cake tastes rich without being heavy.
Warm spices—cinnamon and nutmeg—bring classic flavor, while a simple cream cheese frosting adds tangy balance.
Shopping List
- All-purpose flour (1 cup)
- Granulated sugar (1/2 cup)
- Light brown sugar (1/4 cup, packed)
- Baking powder (1 teaspoon)
- Baking soda (1/2 teaspoon)
- Fine salt (1/2 teaspoon)
- Ground cinnamon (1 teaspoon)
- Ground nutmeg (1/8 teaspoon)
- Neutral oil (1/3 cup; canola, vegetable, or grapeseed)
- Large eggs (2)
- Vanilla extract (1 teaspoon)
- Finely grated carrots (1 1/2 cups, lightly packed)
- Crushed pineapple, well-drained (1/4 cup)
- Chopped walnuts or pecans (optional, 1/3 cup)
- Raisins (optional, 1/4 cup)
- Cream cheese (4 ounces, softened)
- Unsalted butter (2 tablespoons, softened)
- Powdered sugar (3/4 to 1 cup)
- Lemon juice or milk (1–2 teaspoons, as needed)
- Nonstick spray or oil for the pan
Step-by-Step Instructions

- Prep the pan and air fryer. Line a 6-inch round cake pan (or 7-inch if that fits) with parchment on the bottom. Grease the sides. Preheat the air fryer to 320°F (160°C) for 5 minutes.
Preheating helps the cake rise evenly.
- Mix dry ingredients. In a medium bowl, whisk flour, granulated sugar, brown sugar, baking powder, baking soda, salt, cinnamon, and nutmeg until no lumps remain.
- Whisk the wet ingredients. In another bowl, whisk eggs, oil, and vanilla until smooth and slightly frothy, about 30 seconds. This builds a bit of structure for a better rise.
- Combine batter. Pour wet ingredients into dry and stir with a spatula until just combined. Fold in the grated carrots and drained pineapple.
If using, fold in nuts and raisins. The batter should be thick but scoopable.
- Load the pan. Scrape the batter into the prepared pan and smooth the top. Tap the pan once on the counter to pop large air bubbles.
- Bake in the air fryer. Place the pan in the air fryer basket.
Cook at 320°F (160°C) for 28–34 minutes, or until a toothpick comes out with a few moist crumbs but no wet batter. If the top browns too quickly, tent loosely with foil during the last 10 minutes.
- Cool completely. Let the cake cool in the pan for 10 minutes. Run a knife around the edge, then remove to a rack to cool fully before frosting.
Warm cake will melt frosting.
- Make the frosting. Beat cream cheese and butter until creamy. Add powdered sugar gradually until smooth and spreadable. Mix in lemon juice or milk 1 teaspoon at a time to reach your desired texture.
Taste and add a pinch of salt if you like a tangier finish.
- Frost and finish. Spread frosting over the cooled cake. Top with extra chopped nuts or a light dusting of cinnamon if you want a little flair.
- Serve. Slice with a sharp, warm knife for clean cuts. This cake is even better after resting 30 minutes once frosted.
Storage Instructions
- Short-term: Keep the frosted cake covered in the fridge for up to 4 days.
The flavors meld and the crumb stays moist.
- Room temp: If unfrosted, the cake can sit covered at room temperature for 1–2 days.
- Freezing: Wrap unfrosted cake tightly in plastic and foil. Freeze up to 2 months. Thaw overnight in the fridge, then frost.
- Leftover frosting: Refrigerate in an airtight container up to 1 week, or freeze for 1 month.
Stir well after thawing.

Health Benefits
Carrots offer beta-carotene, which supports eye health and immune function. Walnuts or pecans add heart-healthy fats and a little protein. Using oil in the batter creates tenderness with less saturated fat than butter.
Pineapple brings natural sweetness and a small vitamin C boost.
It’s still dessert, but you can make simple tweaks for a lighter slice. Cut the sugar slightly, use raisins for extra sweetness, or opt for a thinner swipe of frosting. You’ll keep the flavor and texture while dialing back richness.
Pitfalls to Watch Out For
- Overfilling the pan: Air fryer baskets are compact.
If your pan is too full, the center won’t cook through. Aim for batter filling about two-thirds of the pan height.
- Skipping the preheat: Cold starts can cause a dense center. Preheating helps the cake rise properly.
- Coarse carrot shreds: Large shreds create wet pockets.
Grate carrots finely for even moisture and a smooth crumb.
- Not draining pineapple: Extra liquid can sink the middle. Press pineapple lightly in a sieve to remove excess juice.
- Frosting a warm cake: The frosting will slide off and become runny. Cool completely before spreading.
- Cutting too soon: Let the cake rest after frosting.
This helps set the crumb and gives cleaner slices.
Alternatives
- Gluten-free: Use a 1:1 gluten-free flour blend with xanthan gum. Let the batter rest 10 minutes before baking for better hydration.
- Dairy-free: Swap in a vegan cream cheese and plant-based butter for the frosting. The cake batter itself is already dairy-free.
- No pineapple: Replace with 2 tablespoons applesauce or crushed apple for moisture.
Keep the total liquid similar.
- No nuts or raisins: Leave them out or substitute shredded coconut or chopped dates.
- Spice it up: Add 1/2 teaspoon ground ginger or a pinch of cloves for extra warmth. Orange zest adds a bright note.
- Muffin option: Spoon batter into silicone muffin cups and air fry at 320°F for 14–18 minutes. Great for portion control.
FAQ
What size pan works best in the air fryer?
A 6-inch round cake pan is ideal for most air fryers.
A 7-inch pan also works in larger baskets. Make sure there’s space around the pan for air circulation.
How do I prevent the top from getting too dark?
Lower the temperature to 310–320°F and check early. If the top browns quickly, tent loosely with foil for the last 10 minutes of cooking.
Can I double the recipe?
Yes, but bake in two batches or use two pans if your air fryer fits them without crowding.
Overfilling one pan will lead to underbaked centers.
Do I need to peel the carrots?
Peeling gives a cleaner flavor and color, but it’s optional if you wash them well. Always grate them finely for the best texture.
Can I make this without frosting?
Absolutely. Dust with powdered sugar or serve with a dollop of Greek yogurt.
The cake is flavorful enough on its own.
Why is my cake sinking in the middle?
Common causes are too much moisture (undrained pineapple), underbaking, or opening the air fryer too often during cooking. Measure carefully and test doneness near the end of the cook time.
How long should I cool the cake before frosting?
At least 1 hour on a rack, until the cake feels cool to the touch. Rushing this step leads to sliding, melty frosting.
Can I use whole wheat flour?
Use half whole wheat and half all-purpose to keep the crumb tender.
If going 100% whole wheat, add 1–2 teaspoons extra milk or pineapple juice to prevent dryness.
Wrapping Up
This Air Fryer Carrot Cake is simple to make, bakes fast, and turns out moist every time. With a handful of pantry staples and a few fresh ingredients, you’ll have a cozy, bakery-style dessert on the table without much fuss. Keep the cream cheese frosting classic, or customize with nuts and spices.
However you spin it, this cake is a keeper—and your air fryer’s new party trick.







