This is the carrot cake you make when you want the warm spice, tender crumb, and cream cheese frosting of a classic layer cake, but you don’t want the fuss of stacking and frosting two or three round layers. Baked in a single 9×13 pan, this recipe delivers a thick, moist sheet cake with a slightly crisp top edge and a soft center, all topped with a generous blanket of tangy cream cheese frosting. It works because the larger surface area means more frosting per bite, and the single pan bakes evenly without the risk of a lopsided tower. Whether it is for a birthday, a potluck, or just a Tuesday treat, this is the carrot cake you will turn to again and again.
Ingredients
- 2 cups (260 g) all-purpose flour
- 2 teaspoons baking powder
- 1 ½ teaspoons baking soda
- 1 ½ teaspoons ground cinnamon
- ½ teaspoon ground nutmeg
- ½ teaspoon ground ginger
- ½ teaspoon fine salt
- 1 cup (200 g) granulated sugar
- 1 cup (200 g) packed light brown sugar
- 1 cup (240 ml) neutral oil (canola, vegetable, or sunflower)
- 4 large eggs, at room temperature
- 2 teaspoons vanilla extract
- 3 cups (about 340 g) finely grated carrots (from about 4-5 medium carrots)
- 1 cup (120 g) chopped walnuts or pecans (optional, plus extra for topping)
- ½ cup (75 g) raisins (optional)
For the cream cheese frosting:
- 8 oz (226 g) cream cheese, softened
- ½ cup (1 stick, 113 g) unsalted butter, softened
- 3 cups (360 g) powdered sugar, sifted
- 1 teaspoon vanilla extract
- Pinch of salt
Instructions
- Prep the pan and oven. Preheat your oven to 350°F (175°C). Grease a 9×13-inch metal or glass baking pan thoroughly with butter or nonstick spray. For extra insurance, line the bottom with a sheet of parchment paper cut to fit, then grease the parchment as well. This makes lifting the cake out (if you want to cut it into neat squares) much easier.
- Whisk the dry ingredients. In a medium bowl, whisk together the flour, baking powder, baking soda, cinnamon, nutmeg, ginger, and salt. Set aside. Make sure there are no lumps, especially from the baking soda.
- Mix the wet ingredients. In a large bowl, whisk together the granulated sugar, brown sugar, oil, eggs, and vanilla extract. Whisk vigorously for about 1 minute until the mixture is smooth, thick, and slightly lighter in color. The sugars should be mostly dissolved.
- Combine wet and dry. Pour the dry ingredients into the wet mixture. Use a rubber spatula or a wooden spoon to fold everything together just until no streaks of flour remain. Do not overmix; a few small lumps are fine. The batter will be thick and slightly shiny.
- Add carrots and mix-ins. Fold in the grated carrots, nuts, and raisins if using. Make sure the carrots are evenly distributed throughout the batter. The batter will look very chunky and moist; that is exactly right.
- Bake the cake. Pour the batter into the prepared pan and spread it into an even layer with a spatula. Tap the pan on the counter a few times to release any large air bubbles. Bake for 30 to 38 minutes, or until a toothpick inserted into the center comes out clean or with just a few moist crumbs attached. The top should be golden brown and spring back lightly when touched. Start checking at 30 minutes; ovens vary.
- Cool completely. Place the pan on a wire rack and let the cake cool in the pan for at least 1 hour. Then, if you want to remove it from the pan, run a knife around the edges, invert onto a rack, peel off the parchment, and flip it right side up onto a serving plate. If you are keeping it in the pan, just let it cool completely in the pan on the rack. Do not frost a warm cake; the frosting will melt and slide off.
- Make the frosting. While the cake cools, beat the softened cream cheese and butter together in a large bowl with an electric mixer on medium speed until smooth, about 2 minutes. Scrape down the sides. Add the sifted powdered sugar, vanilla, and salt. Start on low speed to avoid a sugar cloud, then increase to medium-high and beat for 2-3 minutes until the frosting is light, fluffy, and spreadable. If it is too thick, add a teaspoon of milk; if too thin, add a little more powdered sugar.
- Frost and serve. Spread the frosting evenly over the completely cooled cake. If you like, sprinkle extra chopped nuts over the top. For clean squares, chill the frosted cake in the refrigerator for 30 minutes before slicing. Use a sharp knife, wiping it clean between cuts.
As an Amazon Associate we earn from qualifying purchases.
What you’ll need
Links open an Amazon search.
Tips
- Grate your own carrots. Pre-shredded bagged carrots are often dry and thick, which leads to a drier cake and uneven texture. Grating whole carrots on the large holes of a box grater gives you moist, fine shreds that melt into the batter. If you have a food processor, use the grating disc; it takes 20 seconds.
- Do not overmix the batter. Once you add the flour, mix only until it disappears. Overmixing develops gluten, which makes the cake tough and dense instead of tender. The same goes for the frosting; beating cream cheese frosting too long can make it runny.
- Watch the bake time. A 9×13 pan bakes faster than round layers because the batter is spread thinner. Check at 30 minutes. If the top is browning too quickly but the center is still wet, tent the pan loosely with aluminum foil for the last 10 minutes of baking.
- Use room-temperature ingredients. Eggs and cream cheese blend much more smoothly when they are not cold. Take them out of the fridge 30-45 minutes before you start. If you forget, place the eggs in a bowl of warm water for 5 minutes, and microwave the cream cheese in 10-second bursts until it is soft but not melted.
Serving Suggestions
This carrot cake is excellent on its own, but a few extras take it over the top. Serve it slightly chilled for a firmer, cheesecake-like frosting texture, or at room temperature for a softer, creamier bite. A scoop of vanilla bean ice cream or a dollop of lightly sweetened whipped cream balances the spice nicely. For a brunch spread, cut it into small squares and serve alongside fresh fruit and coffee. If you are bringing it to a party, cut it into 12 large squares or 24 smaller bites for a dessert table. A drizzle of caramel sauce over the top just before serving is a decadent touch that pairs beautifully with the cinnamon and nutmeg.
Variations
- Pineapple-carrot cake. Fold in ½ cup (120 g) of well-drained crushed pineapple with the carrots. It adds extra moisture and a subtle tropical sweetness. Make sure to press the pineapple firmly to remove excess liquid so the cake does not become soggy.
- Spice-forward version. Increase the cinnamon to 2 teaspoons and add ¼ teaspoon of ground cloves and ¼ teaspoon of allspice. This gives a deeper, more aromatic flavor reminiscent of gingerbread.
- Gluten-free swap. Replace the all-purpose flour with a 1:1 gluten-free baking flour blend that contains xanthan gum. The texture will be slightly more crumbly, but the flavor stays intact. Do not use a single-type flour like almond or coconut without adjusting the liquid.
- No-frosting option. Skip the cream cheese frosting and instead dust the cooled cake with powdered sugar or brush it with a simple syrup made of equal parts sugar and water heated until dissolved. This makes it a lighter, more breakfast-friendly coffee cake.
- Add coconut. Fold ½ cup (40 g) of unsweetened shredded coconut into the batter along with the carrots. It adds chewiness and a subtle nuttiness that pairs well with the raisins.
Storage and Reheating
Store the frosted cake in an airtight container in the refrigerator for up to 5 days. The cream cheese frosting must stay chilled, but the cake itself actually tastes better at room temperature. To serve, let individual slices sit out for 15-20 minutes before eating. If you have unfrosted cake, you can keep it at room temperature in an airtight container for up to 3 days. For longer storage, freeze unfrosted cake slices wrapped tightly in plastic wrap and then in foil for up to 3 months. Thaw overnight in the refrigerator before frosting. To reheat a single slice, microwave it for 15-20 seconds on a plate; this warms the cake and softens the frosting slightly, making it taste freshly baked. For a whole cake, reheat in a 300°F (150°C) oven for 10 minutes, but only if it is unfrosted; a frosted cake should be served cold or at room temperature.
Frequently Asked Questions
Can I use a glass or metal pan? Yes, either works. Metal pans conduct heat faster, so the cake may bake a few minutes sooner. Glass pans hold heat longer, so check at 30 minutes and expect the full 38-minute bake time. If using glass, reduce the oven temperature to 325°F (165°C) to prevent the edges from over-browning.
Why did my cake sink in the middle? This usually happens if the batter was overmixed, which develops too much gluten, or if the cake was underbaked. Another common cause is opening the oven door too early, which lets out heat and causes the center to collapse. Always wait until the 30-minute mark before peeking, and test with a toothpick in the center.
Can I reduce the sugar? You can cut the granulated sugar down to ¾ cup, but the brown sugar should stay at 1 cup because it adds moisture and depth. Reducing sugar too much can make the cake less tender and more bread-like. The frosting needs the full amount of powdered sugar to hold its structure, so do not reduce that.
Do I really need to sift the powdered sugar? Yes, sifting is important. Lumpy powdered sugar creates tiny lumps in the frosting that are hard to beat out. If you are in a rush, you can skip sifting and instead beat the frosting for an extra minute, but sifting gives the smoothest, most professional result.
Can I make this cake ahead of time? Absolutely. The unfrosted cake can be baked a day ahead, cooled, wrapped tightly in plastic wrap, and kept at room temperature. Frost it the next day. The frosted cake can be made a day ahead and refrigerated; just let it sit at room temperature for 30 minutes before serving to soften the frosting.
What if I do not have cream cheese for the frosting? You can make a simple buttercream instead: beat 1 cup (2 sticks) of softened butter with 4 cups of powdered sugar, 2 tablespoons of milk, and 1 teaspoon of vanilla. It will be sweeter and less tangy, but still delicious. Alternatively, a whipped cream frosting (1 cup heavy cream, 2 tablespoons powdered sugar, 1 teaspoon vanilla) works if you serve the cake the same day, but it will not hold up as long in the fridge.
How do I get clean, neat squares? Chill the frosted cake in the refrigerator for at least 1 hour. Then use a long, sharp chef’s knife, and wipe the blade with a damp paper towel between each cut. Dip the knife in hot water, dry it, and slice; the heat helps glide through the frosting without dragging it.
Can I add more carrots? You can go up to 3 ½ cups of grated carrots without changing the liquid balance much, since carrots release moisture during baking. More than that and the cake may become too wet and dense. If you add extra carrots, increase the baking time by about 5 minutes and check with a toothpick.