Carrot Cake Recipe

Lila Bennett Freshrecipescorner

Last Updated : June 1, 2026 By Maya Collins

Disclaimer: This content is for educational purposes only, not medical advice. Always consult with a doctor before making significant changes to your diet, especially if you have pre-existing health conditions. Read our disclosure policy.

Carrot cake is a tender, naturally sweetened dessert that combines grated carrots, warming spices, and cream cheese frosting into one irresistible layer cake. This recipe produces a moist crumb that stays fresh for days, making it ideal for celebrations, potlucks, and everyday indulgence. The combination of crushed pineapple and oil keeps each bite incredibly soft while the spices create depth and warmth throughout.

Why I Bake Carrot Cake

I’m Lila Bennett, a 34-year-old home baker based in Portland, Oregon, and my kitchen is almost always filled with the smell of something sweet. I fell in love with baking as a kid, sneaking tastes of cookie dough and watching simple ingredients turn into something comforting and delicious. What started with slightly overbaked cookies turned into years of experimenting with cakes, pancakes, and all kinds of desserts—learning through trial, error, and a lot of taste-testing.

Carrot cake holds a special place in my baking repertoire because it was the first cake I successfully made from scratch. I remember my grandmother’s version was dense and dry, so I spent months testing ratios until I cracked the code. The secret turned out to be crushed pineapple, vegetable oil, and patience with the mixing method. Now, friends and family request my version for almost every milestone.

Recipe Overview

AttributeDetails
Prep Time20 minutes
Cook Time35-40 minutes
Total Time1 hour 15 minutes (plus cooling)
Servings12-14 slices
Difficulty LevelIntermediate
CuisineAmerican

Why This Recipe Works

This carrot cake recipe succeeds because it balances moisture and structure perfectly. I use vegetable oil instead of butter for the cake layers because oil creates a tender crumb that stays moist longer than butter-based cakes. The combination of crushed pineapple and its juice adds natural sweetness and keeps the cake impossibly soft even after three days.

The spice blend is crucial to the flavor profile. Cinnamon, nutmeg, and a touch of cloves create warmth without overpowering the carrots themselves. I’ve tested this cake with different spice amounts through countless baking sessions, and this ratio produces a well-balanced flavor that appeals to everyone. The cream cheese frosting provides a tangy counterpoint that prevents the cake from tasting one-dimensional.

I also use a two-layer baking method rather than the traditional three-layer approach because it’s more forgiving for home bakers and still creates an impressive presentation. The layers bake evenly, and the frosting-to-cake ratio remains visually stunning without requiring advanced decorating skills.

Ingredients

IngredientQuantityNotes & Alternatives
All-purpose flour2 cupsSpoon and level for accuracy. Whole wheat flour will make cake denser.
Baking soda2 teaspoonsMust be fresh; check expiration date for proper rise.
Baking powder1.5 teaspoonsDo not substitute baking soda alone; both are needed.
Ground cinnamon2 teaspoonsCeylon cinnamon is milder; cassia is stronger. Use cassia for bold flavor.
Ground nutmeg0.5 teaspoonAlways use freshly ground if possible; pre-ground loses potency quickly.
Ground cloves0.25 teaspoonReduce to 1/8 teaspoon if you prefer a more subtle spice profile.
Sea salt0.5 teaspoonEnhances sweetness and balances spice; do not omit.
Vegetable oil1 cupCanola or light olive oil works. Avoid extra-virgin olive oil.
Granulated sugar2 cupsDo not substitute with brown sugar as it changes texture significantly.
Large eggs4Room temperature eggs mix more evenly; cold eggs create lumps.
Crushed pineapple (canned)1 can (20 oz) with juiceMust include juice. Fresh pineapple won’t provide enough liquid.
Grated carrots (loosely packed)3 cupsUse medium box grater. Avoid pre-shredded carrots; they’re too dry.
Unsalted butter (for frosting)0.5 cup (1 stick)Must be room temperature for smooth frosting.
Cream cheese (for frosting)8 ozRoom temperature. Cold cream cheese creates lumpy frosting.
Powdered sugar (for frosting)3 cupsSift before mixing to eliminate lumps and ensure smooth texture.
Vanilla extract1 teaspoonPure vanilla, not imitation, creates superior flavor depth.

Step-by-Step Instructions

Preparing the Cake Layers

  1. Preheat your oven to 350°F and position racks in the center. Lightly coat two 9-inch round cake pans with non-stick cooking spray and line the bottoms with parchment paper for easy removal.
  2. Whisk together flour, baking soda, baking powder, cinnamon, nutmeg, cloves, and salt in a large bowl. Set aside the dry mixture and ensure no lumps remain.
  3. Pour vegetable oil and granulated sugar into another large bowl and stir until combined. Add one egg at a time, stirring gently after each addition until just incorporated.
  4. Fold the dry ingredients into the wet ingredients using a rubber spatula in just 15-20 strokes. Stop as soon as no white flour streaks remain; overmixing develops gluten and creates a tough cake.
  5. Stir in the crushed pineapple with its juice until evenly distributed throughout the batter. Fold in the grated carrots gently with no more than 8-10 strokes to maintain moisture.
  6. Divide the batter evenly between the prepared pans, using a kitchen scale if possible to ensure equal-sized layers. Smooth the tops with an offset spatula but avoid pressing down on the batter.

Baking the Cake

  1. Place both pans into the preheated 350°F oven on the center rack. Bake for 35-40 minutes until a toothpick inserted into the center comes out with just a few moist crumbs attached.
  2. Remove the pans from the oven and allow them to cool in the pans for exactly 15 minutes. This resting time allows the cake structure to set without drying out.
  3. Turn each cake out onto a wire cooling rack by running a thin knife around the edge, placing the rack on top, and inverting in one smooth motion. Remove the parchment paper gently.
  4. Cool the cake layers completely at room temperature for at least 1 hour, or refrigerate for 30 minutes to speed the process. The layers must be completely cool before frosting to prevent melting.

Making the Cream Cheese Frosting

  1. Place softened unsalted butter and room-temperature cream cheese in a stand mixer or large bowl. Beat on medium speed for 2-3 minutes until the mixture is light and fluffy with no visible streaks.
  2. Add the sifted powdered sugar in three additions, beating on low speed after each addition to prevent sugar from flying around the kitchen. Increase to medium speed once all sugar is incorporated.
  3. Add vanilla extract and beat on medium speed for exactly 1 more minute until the frosting reaches a smooth, spreadable consistency. Do not overbeat or the frosting will become grainy and lose its smooth texture.

Assembling the Cake

  1. Place one cooled carrot cake layer on a cake turntable or serving plate. Spread the top with a thin layer of cream cheese frosting using an offset spatula, leaving a 0.5-inch border around the edge.
  2. Place the second cake layer directly on top and press down very gently. Ensure the layers are aligned before applying frosting to avoid a lopsided cake.
  3. Frost the top and sides of the assembled carrot cake with the remaining frosting. Apply a crumb coat first by spreading a thin layer, then refrigerate for 15 minutes before applying the final frosting layer for a polished appearance.

Chef Tips for Perfect Results

  • Use fresh spices: Spices lose potency after 6 months. Purchase small containers and store in airtight containers away from heat and light. Freshly ground nutmeg makes a noticeable difference in flavor depth compared to pre-ground versions.
  • Don’t skip the pineapple juice: The juice is essential for moisture. Many bakers drain canned pineapple completely, creating a dry cake. Keep every drop of liquid to ensure the tender crumb this recipe is known for.
  • Grate carrots yourself: Pre-shredded carrots from the grocery store contain anti-caking agents and are often dried out. Use a box grater with fresh carrots for the best texture and sweetness in your finished cake.
  • Bring ingredients to room temperature: Cold eggs and cream cheese don’t incorporate smoothly into batters and frostings. Remove them from the refrigerator 30-45 minutes before baking to ensure even mixing and better texture.
  • Invest in an oven thermometer: Most home ovens run 15-25°F hotter or cooler than the dial indicates. A reliable oven thermometer ensures your cake bakes evenly and doesn’t cook too quickly on the outside while remaining raw inside.
  • Use a cake leveler or serrated knife: Level your cake layers if they dome during baking. Even layers stack more securely and create a more professional appearance. A gentle sawing motion works better than pressing down with a sharp knife.

Common Mistakes to Avoid

Overmixing the batter: This is the most frequent error in cake baking and results in a dense, tough crumb. When you overmix, you develop gluten strands that create structure more similar to bread. Mix only until the flour disappears and no white streaks remain. Use a rubber spatula and fold gently rather than stirring vigorously with a wooden spoon.

Using warm or melted cream cheese for frosting: Warm cream cheese creates frosting that’s too soft and won’t hold peaks or provide structure. The frosting will slide off the cake layers and look unprofessional. Always use cream cheese and butter that have been softened to exactly room temperature (about 65-70°F) by sitting out for 30-45 minutes. If your frosting is too soft, refrigerate it for 10 minutes and re-beat.

Skipping the cooling step: Frosting warm cake layers causes the frosting to melt and the cake to crumble. Patience is essential here. Cool the layers completely before frosting, or use the refrigerator method to speed things up. A fully cooled cake also has more structured crumb and won’t compress under the weight of frosting and the second layer.

Not draining crushed pineapple properly: While you need to keep the juice, some bakers accidentally add too much moisture to the batter. Use canned pineapple that comes with juice, not extra-heavy syrup. If your batter seems too thin after adding pineapple, you may have chosen the wrong variety of canned fruit.

Baking at the wrong temperature: If your carrot cake bakes too fast and the outside is dark while the inside remains underbaked, your oven runs hot. Lower the temperature to 325°F and bake for 45-50 minutes. If the cake bakes too slowly and never quite cooks through, your oven runs cool. Use an oven thermometer to verify and adjust accordingly.

Variations and Substitutions

IngredientSubstitutionImpact on Flavor & Texture
All-purpose flourCake flour (use 2.25 cups)Creates a more tender, delicate crumb but reduces structural support slightly. Better for those who prefer super-soft cakes.
Vegetable oilCoconut oil (refined only)Adds subtle coconut undertone. Refined coconut oil won’t overpower the spices. Unrefined coconut oil will dominate the flavor profile.
Crushed pineappleApplesauce (unsweetened)Reduces overall sweetness and creates apple undertones. Use only 1 cup (less liquid than pineapple). The cake will be slightly denser.
Grated carrotsGrated zucchini (drained well)Creates a more subtle vegetable flavor. Zucchini has less natural sweetness, so increase sugar by 2 tablespoons. Texture remains moist.
Ground cinnamonApple pie spice blendAdds cinnamon plus allspice and cloves. Use 1.5 teaspoons total and reduce the cloves in the recipe to 1/8 teaspoon.
Cream cheese frostingMascarpone frostingCreates a richer, more delicate frosting that’s less tangy. Mascarpone is softer, so reduce butter to 4 tablespoons and use 6 oz mascarpone.
Granulated sugarCoconut sugarAdds subtle caramel notes and reduces refined sugar content. Use the same amount. Cake may brown slightly faster, so watch baking time closely.
Crushed pineapple + juiceMandarin oranges (canned, drained, then pureed)Creates bright citrus notes that complement the spices beautifully. Drain well and measure 1.5 cups puree. The flavor will be lighter and more floral.

Serving Suggestions and Pairings

Serve carrot cake at room temperature with a glass of cold milk for a classic pairing that lets the spices and cream cheese shine. For formal occasions, present slices on dessert plates with a dollop of whipped cream and a few candied carrot ribbons on top. The cake pairs beautifully with afternoon tea, hot coffee, or unsweetened iced tea during warmer months.

For birthday celebrations, consider pairing slices with fresh fruit like pineapple or raspberries to add color and tartness that balances the sweetness. At potlucks and casual gatherings, this cake serves 12-14 people comfortably and travels well when properly wrapped. Carrot cake also works wonderfully for baby showers, Easter celebrations, and spring gatherings where lighter flavors feel appropriate.

Individual cake portions can be plated with a small scoop of vanilla ice cream melting into the warm cake layers. For coffee-and-cake gatherings, serve standard 1.5-inch slices with nothing more than the cake and frosting. Holiday variations work particularly well at Thanksgiving or Easter brunches alongside savory morning foods.

Storage and Reheating

Storage MethodDurationInstructions
Room temperature (airtight container)2 daysKeep the fully assembled cake in a cake carrier or covered cake plate. Avoid placing in direct sunlight or near heat sources.
Refrigerator (airtight container)5 daysStore the fully assembled, frosted cake in an airtight container on the center shelf. The frosting firms up when chilled, making slicing cleaner.
Freezer (airtight container)3 monthsWrap each unfrosted layer individually in plastic wrap, then place in a freezer-safe container. Thaw at room temperature for 2-3 hours before frosting and assembling.
Freezer (fully assembled)2 monthsFreeze the fully frosted cake uncovered for 2 hours first, then wrap in plastic wrap and place in a rigid container. Thaw at room temperature for 4-5 hours without unwrapping to prevent condensation.
Reheating (refrigerated cake)N/ARemove from refrigerator 15-20 minutes before serving. Chilled cake can be enjoyed cold or brought to room temperature. Do not microwave as it toughens the texture.

Nutritional Information

The following nutritional values are approximate and calculated per slice (1/12 of the whole cake including frosting).

NutrientAmount per Serving
Calories520
Protein6 g
Fat28 g
Saturated Fat8 g
Carbohydrates65 g
Dietary Fiber1.5 g
Total Sugar48 g
Sodium285 mg

Carrot cake provides natural vitamins and minerals from carrots, including beta-carotene and potassium. The pineapple juice contributes bromelain, an enzyme with digestive properties. This cake is moderate in fiber and higher in sugar and fat due to the frosting and baking method, making it best enjoyed as an occasional dessert.

Frequently Asked Questions

Can I make this carrot cake without crushed pineapple?

You can substitute crushed pineapple with unsweetened applesauce or pureed banana in equal quantity to maintain moisture. Applesauce creates a lighter, less sweet cake while banana adds richness. However, the original recipe relies on pineapple juice to create the signature tender crumb, so substitutes will produce a slightly denser, drier result. If you must avoid pineapple, use applesauce and add an extra 2 tablespoons of vegetable oil to compensate for lost moisture.

How do I know when carrot cake is fully baked?

Insert a toothpick into the center of the cake; it should come out with just a few moist crumbs attached, not wet batter. The cake should spring back when lightly pressed with a finger and the edges should pull away slightly from the pan sides. If the toothpick comes out completely clean, the cake is fully baked and safe to remove from the oven. Bake for 35-40 minutes depending on your oven, checking with a toothpick around the 33-minute mark.

Why is my carrot cake dry even though I followed the recipe exactly?

Dry carrot cake usually results from one of three issues: overmixing the batter, baking at too high a temperature, or draining away the pineapple juice. Overmixing develops gluten and creates a tough, dry crumb. Lower oven temperature to 325°F and add 5-10 minutes to baking time if your oven runs hot. Ensure you’re using canned crushed pineapple with its juice, not drained pineapple. The juice is essential for moisture.

Can I bake this carrot cake the day before serving?

Yes, you can bake the unfrosted layers up to 2 days ahead and store them in airtight containers at room temperature or refrigerate them for up to 5 days. Wrap each layer individually in plastic wrap for protection. Make the frosting the day you plan to assemble and serve the cake, as frosting made the day before may become grainy or separate. Assemble the cake no more than 8 hours before serving to maintain the best texture and prevent the layers from becoming soggy.

Is there a dairy-free version of this carrot cake recipe?

For a dairy-free carrot cake, use coconut oil or dairy-free butter in place of the vegetable oil for additional flavor. Substitute the cream cheese frosting with a dairy-free alternative using refined coconut oil, vegan cream cheese, and powdered sugar in the same proportions. Alternatively, make a simple coconut frosting using coconut cream, dairy-free butter, and powdered sugar. The cake layers themselves are already dairy-free as written, so only the frosting needs modification.

How many people does one carrot cake serve, and what’s the best way to portion it?

A 9-inch two-layer carrot cake serves 12-14 people when cut into standard 1.5-inch slices, or 8-10 people if serving larger 2-inch dessert portions. Use a long serrated knife or cake leveler dipped in hot water and wiped dry between cuts for clean, neat slices. A cake server or wide offset spatula makes removal easier without crumbling. For formal plating, cut slices just before serving; for casual gatherings, slice the entire cake at once and cover with plastic wrap until serving time.

Bring Carrot Cake to Your Table

This carrot cake recipe delivers moist, spiced layers that stay fresh for days and taste even better than bakery versions. The combination of crushed pineapple, warm spices, and silky cream cheese frosting creates a cake that’s perfect for celebrations or everyday enjoyment. Master this recipe once and you’ll return to it year after year, each time appreciating how simple ingredients transform into something truly special.

Carrot Cake

Carrot cake is a moist, warmly spiced layer cake made with grated carrots, crushed pineapple, and rich cream cheese frosting. This classic American dessert combines tender texture, balanced sweetness, and deep spice flavor that stays soft for days and works perfectly for celebrations, holidays, and everyday baking.
Print Pin Rate
Course: Dessert
Cuisine: American
Keyword: carrot cake, cream cheese frosting, moist carrot cake, spiced cake
Prep Time: 20 minutes
Cook Time: 40 minutes
Total Time: 1 hour 15 minutes
Servings: 12 slices
Calories: 520kcal
Author: Lila benett
Cost: 14

Equipment

  • two 9-inch round cake pans
  • mixing bowls
  • electric mixer
  • rubber spatula
  • wire cooling racks
  • offset spatula
  • parchment paper
  • box grater

Ingredients

  • 2 cups all-purpose flour
  • 2 tsp baking soda
  • 1 1/2 tsp baking powder
  • 2 tsp ground cinnamon
  • 1/2 tsp ground nutmeg
  • 1/4 tsp ground cloves
  • 1/2 tsp sea salt
  • 1 cup vegetable oil
  • 2 cups granulated sugar
  • 4 large eggs
  • 20 oz crushed pineapple with juice
  • 3 cups grated carrots
  • 1/2 cup unsalted butter, softened
  • 8 oz cream cheese, softened
  • 3 cups powdered sugar
  • 1 tsp pure vanilla extract

Instructions

  • Preheat the oven to 350°F and position the oven racks in the center.
  • Grease two 9-inch round cake pans and line the bottoms with parchment paper.
  • Whisk together the flour, baking soda, baking powder, cinnamon, nutmeg, cloves, and salt in a large bowl.
  • Combine the vegetable oil and granulated sugar in another large bowl and stir until blended.
  • Add the eggs one at a time, stirring gently after each addition until incorporated.
  • Fold the dry ingredients into the wet ingredients using a rubber spatula until no flour streaks remain.
  • Stir in the crushed pineapple with its juice until evenly distributed.
  • Fold the grated carrots gently into the batter until evenly combined.
  • Divide the batter evenly between the prepared cake pans and smooth the tops.
  • Bake for 35 to 40 minutes until a toothpick inserted into the center comes out with a few moist crumbs.
  • Cool the cakes in the pans for 15 minutes.
  • Turn the cakes out onto wire racks and cool completely.
  • Beat the softened butter and cream cheese together until smooth and fluffy.
  • Add the powdered sugar gradually while mixing on low speed.
  • Add the vanilla extract and beat until the frosting becomes smooth and spreadable.
  • Place one cooled cake layer onto a serving plate or cake stand.
  • Spread a layer of cream cheese frosting over the top of the first cake layer.
  • Place the second cake layer on top and press gently to level.
  • Apply a thin crumb coat of frosting over the cake and refrigerate for 15 minutes.
  • Spread the remaining frosting evenly over the top and sides of the carrot cake before serving.

Notes

Use freshly grated carrots instead of pre-shredded carrots for the best moisture and texture. Do not drain the crushed pineapple completely because the juice helps keep the cake tender and soft. Cool the cake layers completely before frosting to prevent the cream cheese frosting from melting.

Nutrition

Calories: 520kcal | Carbohydrates: 65g | Protein: 6g | Fat: 28g | Saturated Fat: 8g | Polyunsaturated Fat: 5g | Monounsaturated Fat: 11g | Trans Fat: 0.2g | Cholesterol: 78mg | Sodium: 285mg | Potassium: 240mg | Fiber: 1.5g | Sugar: 48g | Vitamin A: 6200IU | Vitamin C: 5mg | Calcium: 78mg | Iron: 1.8mg

Lila Bennett Freshrecipescorner

Hi my name is lila

I’m Lila Bennett, and my kitchen is almost always filled with the smell of something sweet. I fell in love with baking as a kid, sneaking tastes of cookie dough and watching simple ingredients turn into something comforting and delicious. What started with slightly overbaked cookies turned into years of experimenting with cakes, pancakes, and all kinds of desserts learning through trial and error and a lot of taste-testing.

Leave a Comment

Recipe Rating