Spiced Carrot Cake Cupcakes with Cream Cheese Frosting
These spiced carrot cake cupcakes bring all the cozy flavor of the classic cake into a handheld dessert. Fresh carrots and a little crushed pineapple keep them incredibly moist for days.

The tangy cream cheese frosting on top is what makes them feel special. It’s smooth, not too sweet, and balances the warm cinnamon and nutmeg in every bite.
Why These Cupcakes Stay So Moist
Oil instead of butter is the first trick. It coats the flour more thoroughly, so the crumb stays soft even after a few days in the fridge.
The real secret is a small amount of crushed pineapple. It adds moisture without turning the cupcakes gummy, and you won’t taste pineapple at all — just a tender, rich texture that holds up under a thick layer of frosting.
Ingredients

- 1 1/2 cups all-purpose flour: spooned and leveled, not scooped
- 1 tsp baking powder
- 1/2 tsp baking soda
- 1/2 tsp fine sea salt
- 1 1/2 tsp ground cinnamon
- 1/4 tsp ground nutmeg
- 1/4 tsp ground ginger: optional, but adds a gentle warmth
- 2 large eggs: at room temperature
- 1 cup granulated sugar
- 3/4 cup vegetable oil: or any neutral oil
- 1 tsp vanilla extract
- 1 1/2 cups finely grated carrots: about 3 medium carrots
- 1/2 cup crushed pineapple, well drained: squeeze out all excess juice
- 1/2 cup chopped walnuts or pecans: optional, plus extra for topping
For the cream cheese frosting:
- 8 oz full-fat cream cheese, softened: brick style, not spreadable tub
- 1/4 cup unsalted butter, softened
- 2 cups powdered sugar: sifted if lumpy
- 1 tsp vanilla extract
Variations and Substitutions
- Nuts: swap walnuts for pecans, or leave them out entirely for a nut-free cupcake.
- Raisins: add 1/3 cup of raisins along with the carrots for an old-fashioned touch.
- Dairy-free: use a vegan cream cheese and butter alternative; the frosting will be a little softer but still delicious.
- Extra spice: double the ginger or add a pinch of cloves for a deeper holiday feel.
- If you want a larger version, the same batter works beautifully as a layer cake in the classic carrot cake format.
How to Make Spiced Carrot Cake Cupcakes
Step 1: Mix the Dry Ingredients

Preheat your oven to 350°F (175°C) and line a standard 12-cup muffin tin with paper liners. In a medium bowl, whisk together the 1 1/2 cups flour, 1 tsp baking powder, 1/2 tsp baking soda, 1/2 tsp salt, 1 1/2 tsp cinnamon, 1/4 tsp nutmeg, and the ginger if you’re using it.
The spices should be evenly distributed so you don’t get a bite that’s all nutmeg. A quick whisk is all it takes.
Step 2: Whisk the Wet Ingredients

In a large bowl, whisk the 2 eggs and 1 cup sugar together for about 1 minute, until the mixture looks pale and a little frothy. Pour in the 3/4 cup oil and 1 tsp vanilla, then whisk again until smooth.
The batter base will look glossy and slightly thick. Don’t worry if a few streaks of oil float on top; they’ll disappear once the flour goes in.
Step 3: Fold in the Carrots and Pineapple

Add the dry mixture to the wet ingredients in two additions, folding gently with a rubber spatula until just a few streaks of flour remain. Scrape in the 1 1/2 cups of finely grated carrots and the drained crushed pineapple, then fold until they’re mixed through. If you’re adding nuts, fold in the 1/2 cup now.
The batter will be looser than a typical cupcake batter. That’s normal — the moisture from the carrot and pineapple is what keeps these so soft.
Step 4: Bake the Cupcakes

Divide the batter evenly among the lined muffin cups, filling each about two-thirds full. Bake for 18 to 22 minutes at 350°F, until the tops spring back when lightly pressed and a toothpick inserted in the center comes out clean or with a few moist crumbs.
The edges will turn a light golden brown and the kitchen will smell like cinnamon. Let the cupcakes cool in the pan for 5 minutes, then transfer them to a wire rack to cool completely before you frost them.
Step 5: Frost the Cupcakes

While the cupcakes cool, beat the 8 oz of softened cream cheese and 1/4 cup of softened butter together until smooth and creamy. Add the 2 cups of powdered sugar and 1 tsp vanilla, then beat on low until combined, scraping the bowl once. Increase the speed and whip for about 1 minute until the frosting is fluffy.
Frosting that’s too cold can tear the cupcake tops, so let it sit at room temperature for a few minutes before you spread or pipe it. Once the cupcakes are fully cooled, frost them generously. A sprinkle of chopped nuts or a few fine carrot shreds on top makes them look bakery-worthy, then serve them right away or chill until ready.
Tips for the Best Carrot Cake Cupcakes
- Grate the carrots on the fine side of a box grater. Large shreds won’t soften as much during baking and can leave chewy bits in the crumb.
- Squeeze every last drop of liquid from the crushed pineapple. A clump of pineapple juice at the bottom of the bowl can make the cupcakes sink or turn gummy.
- Room-temperature eggs and cream cheese are not a fussy detail. Cold eggs won’t emulsify into the oil as well, and cold cream cheese makes lumpy frosting.
- If you have time, bake the cupcakes a day ahead and frost them the next day. The spice flavor deepens overnight and the crumb gets even more tender.
Bake times change depending on pan size. Use this quick reference if you go smaller or bigger:
| Pan size | Quantity | Bake time at 350°F |
|---|---|---|
| Mini muffin tin | About 36 | 10 to 12 minutes |
| Standard muffin tin | 12 | 18 to 22 minutes |
| Jumbo muffin tin | 6 | 25 to 28 minutes |
Keeping Cupcakes Fresh
- Refrigerate: store frosted cupcakes in an airtight container in the fridge for up to 4 days. The frosting will set firm, so let them sit at room temperature for about 15 minutes before serving.
- Freeze: unfrosted cupcakes freeze beautifully. Wrap each one in plastic and then foil, and freeze for up to 3 months. Thaw overnight in the fridge, then frost fresh.
Frequently Asked Questions
Can I make these gluten-free?
Yes. Use a 1-to-1 gluten-free flour blend that contains xanthan gum. The cupcakes will be just as moist and hold together well.
Do I have to use pineapple?
No, you can leave it out. The cupcakes will still taste great but might be slightly less moist after a couple of days.
Can I substitute pre-shredded carrots from a bag?
Avoid them. Pre-shredded carrots are too thick and dry, and they won’t soften enough in the short bake time. Freshly grated carrots make a big difference.
How far ahead can I frost the cupcakes?
Frost them up to a day in advance. The frosting will stay creamy in the fridge, and the cupcakes won’t dry out. Just keep them covered.

Carrot Cake Cupcakes Recipe
Ingredients
Method
- Preheat oven to 350°F (175°C) and line a 12-cup muffin tin with paper liners. Whisk flour, baking powder, baking soda, salt, cinnamon, nutmeg, and ginger in a bowl.
- In a separate bowl, whisk eggs and sugar until pale. Add oil and vanilla, whisking until smooth.
- Fold the dry mixture into the wet in two additions, then fold in grated carrots and drained pineapple. Stir in nuts if using.
- Divide batter among liners, filling two-thirds full. Bake 18 to 22 minutes until a toothpick comes out clean. Cool in pan 5 minutes, then transfer to a wire rack.
- Beat cream cheese and butter until smooth. Add powdered sugar and vanilla; beat until fluffy. Frost completely cooled cupcakes and top with nuts or carrot shreds.
