Dinners

Lemon Cake in a Cupcake Pan: Easy Recipe

Updated · By Stir & Share

Total timeincludes chilling, rising or resting
45 min
Prep
15 min
hands-on
Cook
20 min
oven or stovetop
Serves
12
as written
USDA safe temp
160°F / 71°C
check the thickest part

Jump to recipe Save

Lemon Cake in a Cupcake Pan: Easy Recipe

Time: 45 min · Serves: 12 cupcakes · The key step: Don’t overmix the batter — stir just until the flour disappears. This lemon cake bakes as tender, bright cupcakes with a crisp golden edge and a soft, springy crumb. They’re perfect for a spring dessert, a bake sale, or a simple weeknight treat.

Ingredients

  • 1 1/2 cups (190 g) all-purpose flour
  • 1 1/2 teaspoons baking powder
  • 1/4 teaspoon salt
  • 1/2 cup (113 g) unsalted butter, softened
  • 1 cup (200 g) granulated sugar
  • 2 large eggs, at room temperature
  • 1 tablespoon lemon zest (from about 2 lemons)
  • 2 tablespoons fresh lemon juice (from about 1 lemon)
  • 1/2 cup (120 ml) whole milk, at room temperature
  • 1 teaspoon vanilla extract

Instructions

  1. Heat the oven to 350°F (175°C). Line a 12-cup cupcake pan with paper liners.
  2. In a medium bowl, whisk together the flour, baking powder, and salt. Set aside.
  3. In a large bowl, beat the butter and sugar with an electric mixer on medium speed until light and fluffy, about 2 minutes. Scrape down the sides.
  4. Add the eggs one at a time, beating well after each. Beat in the lemon zest, lemon juice, and vanilla.
  5. With the mixer on low, add half the flour mixture, then the milk, then the remaining flour. Mix just until no streaks of flour remain. Do not overmix — the batter will be slightly lumpy.
  6. Divide the batter evenly among the prepared cups, filling each about 2/3 full.
  7. Bake for 18–22 minutes, until the tops spring back when lightly pressed and a toothpick inserted in the center comes out clean. Cool in the pan for 5 minutes, then transfer to a wire rack to cool completely.

Baking Tips That Matter

Why room-temperature ingredients matter

Cold eggs and milk can make the butter seize, leaving you with a dense, uneven crumb. Set them out 30 minutes before starting. If you’re short on time, place the eggs in a bowl of warm water for 5 minutes and warm the milk in the microwave for 15 seconds.

How to get a more lemony flavor

Add 1/2 teaspoon of lemon extract along with the vanilla. Or brush the baked cupcakes with a simple syrup made from 2 tablespoons lemon juice and 2 tablespoons sugar, heated until dissolved. This adds moisture and a stronger lemon kick without changing the batter.

Swaps that work

Use buttermilk instead of whole milk for a slightly tangier, more tender crumb. Use olive oil (1/2 cup) instead of butter for a moister, denser cupcake — skip the creaming step and just whisk all wet ingredients together. For a gluten-free version, substitute a 1:1 gluten-free flour blend; the texture will be a bit more crumbly.

Storing and Serving

Store unfrosted cupcakes in an airtight container at room temperature for up to 3 days. Frosted cupcakes with cream cheese or buttercream keep in the fridge for up to 4 days — bring to room temperature before serving. You can freeze unfrosted cupcakes in a zip-top bag for up to 2 months; thaw overnight in the fridge.

Serve these plain with a dusting of powdered sugar, or top with a simple lemon buttercream (beat 1/2 cup softened butter with 2 cups powdered sugar and 2 tablespoons lemon juice). They pair well with fresh berries, a scoop of vanilla ice cream, or a cup of Earl Grey tea. For a dessert platter, arrange them next to fresh strawberries and a bowl of whipped cream.

Two common mistakes

Overmixing the batter develops gluten and makes the cupcakes tough and rubbery. Mix just until the flour disappears — a few small lumps are fine.

Filling the liners too full causes the batter to overflow and bake into flat, mushroom-shaped tops. Fill each cup only 2/3 full; you may have a little batter left over.

When to Check Doneness

Start checking at 18 minutes. The cupcakes are done when the tops are golden and spring back quickly when touched, and a toothpick inserted in the center comes out clean or with a few moist crumbs (not wet batter). If the tops are browning too fast, tent the pan loosely with foil for the last 5 minutes.

These cupcakes are safe to eat once fully baked — the eggs reach 160°F (71°C) during baking, which is the USDA FSIS safe minimum for egg dishes. If you eat the raw batter, heat-treat the flour to 160°F (71°C) and use pasteurized eggs, and note that pregnant people, young children, older adults, and anyone with a weakened immune system should avoid raw eggs and raw flour.

Related

Safe minimum internal temperatures follow USDA FSIS; raw-fish guidance follows the U.S. FDA. See our food safety notes.

Spotted an error? Tell us and we will correct it (corrections policy).