Go Back
Carrot cupcakes with cream cheese frosting swirls and colorful sprinkles on a white plate in a kitchen setting.

Moist Carrot Cupcakes With Cream Cheese Frosting - Soft, Spiced, and Crowd-Pleasing

Prep Time 20 minutes
Cook Time 20 minutes
Total Time 40 minutes
Course Dessert
Cuisine American
Servings 12 Cupcakes

Ingredients
  

  • All-purpose flour – 1 3/4 cups (220 g)
  • Granulated sugar – 3/4 cup (150 g)
  • Light brown sugar – 1/2 cup (100 g), packed
  • Baking powder – 1 1/2 teaspoons
  • Baking soda – 1/2 teaspoon
  • Kosher salt – 1/2 teaspoon
  • Ground cinnamon – 1 1/2 teaspoons
  • Ground nutmeg – 1/4 teaspoon
  • Neutral oil (canola, vegetable, or light olive) – 3/4 cup (180 ml)
  • Large eggs – 3, at room temperature
  • Vanilla extract – 2 teaspoons
  • Applesauce or crushed pineapple (drained) – 1/3 cup, for extra moisture (optional but recommended)
  • Freshly grated carrots – 2 1/2 cups, lightly packed (about 3–4 medium carrots)
  • Chopped walnuts or pecans – 1/2 cup (optional)
  • Raisins – 1/2 cup (optional)
  • Cream cheese – 8 oz (225 g), full-fat, brick style, softened
  • Unsalted butter – 1/2 cup (113 g), softened
  • Powdered sugar – 2 3/4 to 3 1/2 cups (330–420 g), to taste
  • Vanilla extract – 1 teaspoon
  • Pinch of salt – to balance sweetness

Instructions
 

  • Prep your pan and oven. Line a 12-cup muffin pan with paper liners. Heat the oven to 350°F (175°C). Lightly mist the liners if you want extra insurance against sticking.
  • Whisk the dry ingredients. In a large bowl, whisk flour, granulated sugar, brown sugar, baking powder, baking soda, salt, cinnamon, and nutmeg until no lumps remain.
  • Mix the wet ingredients. In a separate bowl, whisk oil, eggs, and vanilla until smooth. Stir in applesauce or drained pineapple if using.
  • Combine gently. Pour the wet mixture into the dry. Stir with a spatula just until you no longer see dry flour. Do not overmix.
  • Fold in carrots and mix-ins. Add grated carrots and any optional nuts or raisins. Fold until evenly distributed. The batter will be thick—this is good for a tender crumb.
  • Fill the liners. Divide batter evenly among the cups, about 3/4 full. Use a scoop for cleaner portions and even baking.
  • Bake. Bake 18–22 minutes, until the tops spring back when lightly pressed and a toothpick comes out with a few moist crumbs.
  • Cool completely. Let cupcakes sit in the pan 5 minutes, then transfer to a rack to cool. Frosting melts on warm cupcakes, so wait until they’re fully cool.
  • Make the frosting. Beat cream cheese and butter together until very smooth and fluffy, 2–3 minutes. Add vanilla and salt. Gradually beat in powdered sugar until creamy and pipeable. Adjust sweetness to taste.
  • Frost and finish. Swirl or pipe frosting onto cooled cupcakes. Top with a sprinkle of chopped nuts or a dusting of cinnamon if you like.