Dinners

Carrot Cake in a Half Sheet Pan

Updated · By Stir & Share

Total timeincludes chilling, rising or resting
1 hr 55 min
Prep
25 min
hands-on
Cook
30 min
oven or stovetop
Serves
24
as written

Jump to recipe Save

Carrot Cake in a Half Sheet Pan

A half-sheet-pan carrot cake bakes into a tender, moist slab with crisp edges and a soft crumb—ideal for feeding a crowd or cutting into neat squares. This method spreads the batter thin, so it bakes faster and more evenly than a tall layer cake, and the cream cheese frosting stays thick enough to hold its shape on top.

Ingredients

  • 2 cups (250 g) all-purpose flour
  • 2 tsp baking powder
  • 1 tsp baking soda
  • 1 tsp ground cinnamon
  • 1/2 tsp ground nutmeg
  • 1/2 tsp salt
  • 1 cup (200 g) granulated sugar
  • 1 cup (200 g) packed light brown sugar
  • 1 cup (240 ml) vegetable oil
  • 4 large eggs, at room temperature
  • 2 tsp vanilla extract
  • 3 cups (300 g) finely grated carrots (about 4–5 medium carrots)
  • 1 cup (120 g) chopped walnuts or pecans (optional)
  • 1/2 cup (60 g) raisins (optional)

For the cream cheese frosting

  • 8 oz (225 g) cream cheese, softened
  • 1/2 cup (115 g) unsalted butter, softened
  • 2 cups (240 g) powdered sugar, sifted
  • 1 tsp vanilla extract
  • 1–2 tbsp milk, if needed to thin

Instructions

  1. Preheat the oven to 350°F (175°C). Grease a 13×18-inch (33×46 cm) half sheet pan with butter or cooking spray, then line the bottom with parchment paper.
  2. In a medium bowl, whisk together the flour, baking powder, baking soda, cinnamon, nutmeg, and salt.
  3. In a large bowl, whisk the granulated sugar, brown sugar, oil, eggs, and vanilla until smooth and slightly thickened, about 1 minute.
  4. Add the dry ingredients to the wet mixture and stir until just combined—do not overmix.
  5. Fold in the grated carrots and the nuts and raisins if using.
  6. Pour the batter into the prepared pan and spread it evenly to the edges. The batter will be thin; that is correct.
  7. Bake for 25–30 minutes, until the top is golden and a toothpick inserted in the center comes out with a few moist crumbs. The cake should spring back when lightly pressed.
  8. Cool the cake completely in the pan on a wire rack, about 1 hour. Do not frost while warm.
  9. Make the frosting: beat the cream cheese and butter together until smooth, about 2 minutes. Add the powdered sugar and vanilla, and beat until fluffy. If too thick, add milk 1 tablespoon at a time.
  10. Spread the frosting evenly over the cooled cake. Cut into squares to serve.

Pick the Pan Before You Mix the Batter

A half sheet pan is exactly 13×18 inches (33×46 cm) with a 1-inch (2.5 cm) rim. If you use a slightly smaller pan, the cake will be thicker and need more time—check at 30 minutes and add 5-minute increments. A larger pan will make a thinner, drier cake, so stick to the size specified. If you only have a 9×13-inch pan, halve the recipe and bake for 35–40 minutes.

Substitutions That Work

  • Oil: Replace vegetable oil with an equal amount of melted coconut oil or applesauce. Applesauce makes the cake denser and less tender; use it only if you want a lower-fat version.
  • Sugars: Use all granulated sugar (2 cups total) if you don’t have brown sugar—the cake will be slightly less moist and less caramel-flavored.
  • Flour: Swap up to 1 cup (125 g) of all-purpose flour with whole wheat flour. The cake will be denser and nuttier.
  • Nuts and raisins: Omit either or both; the cake holds together fine without them. Add 1/2 cup (60 g) shredded coconut or 1/2 cup (60 g) chopped pineapple for extra moisture, but reduce the carrots to 2 1/2 cups (250 g) to keep the batter balanced.
  • Cream cheese: Use full-fat block cream cheese for the frosting; low-fat spreads contain more water and can make the frosting runny.

Why It Can Come Out Dry, Runny, or Dense

Too dry

Overbaking is the main cause. The cake is done when a toothpick comes out with a few moist crumbs—not completely clean. Also, grating carrots finely releases more moisture; coarse shreds can leave dry pockets. Use the fine holes of a box grater. If the cake still seems dry, brush the top with a little warm milk or simple syrup before frosting.

Too runny

A runny cake usually means too much oil or undrained pineapple if you added it. Measure the oil precisely—1 cup (240 ml) is correct. If the batter looks greasy after mixing, you added too much. For the frosting, runny usually means the cream cheese was too soft or you added too much milk. Beat the frosting until stiff peaks form; if it’s still loose, refrigerate it for 15 minutes before spreading.

Too dense

Dense cake comes from overmixing the flour, which develops gluten. Stir only until no streaks of flour remain. Also, make sure your baking powder and baking soda are fresh—test by dropping a spoonful in hot water; it should bubble vigorously. If not, replace them.

Store and Freeze to Keep the Crumb Tender

Frosted carrot cake keeps in the refrigerator for up to 4 days. Cover the pan tightly with plastic wrap or transfer squares to an airtight container. The cake is safe at room temperature for up to 2 hours, but because the frosting contains cream cheese, refrigerate it within that time. To freeze, wrap unfrosted squares individually in plastic wrap, then foil, for up to 3 months. Thaw overnight in the fridge. Frosted cake can also be frozen for up to 1 month; freeze it unwrapped until the frosting is firm, then wrap. For best texture, bring refrigerated cake to room temperature for 30 minutes before serving.

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).