Here is a clear, step-by-step carrot cake recipe you can follow to bake a moist, rich cake at home.
introduction
This carrot cake recipe gives you a moist, tender cake with warm spices and a smooth cream cheese frosting. The cake uses grated carrots, crushed pineapple, and optional walnuts for texture. The frosting uses brown butter and cream cheese for a deep, nutty flavor. If you want a guide to a rich frosting that pairs well with carrot cake, check the best carrot cake cream cheese frosting for ideas and tips. This recipe is clear and simple so you can bake with confidence.
why make this recipe
Make this carrot cake because it balances sweet spice, carrot moisture, and creamy frosting. The spices — cinnamon, nutmeg, cloves, and allspice — give a warm, homey taste. Crushed pineapple adds juice and a hint of bright flavor that keeps the cake moist for days. The brown butter in the frosting gives a mild toffee note that lifts the cream cheese taste.
This cake works well for many events: birthdays, family dinners, potlucks, or a simple treat at home. The recipe makes three 9-inch layers. You can cut the layers to make a simple two-layer cake or a large sheet cake if you need fewer layers. If you want to see another take on a classic bakery-style carrot cake, read about the Einstein carrot cake for inspiration. This recipe uses simple steps and common tools so both new bakers and experienced ones can succeed.
Quick Look Inside This Recipe
Table of Contents
how to make Carrot Cake Recipe
Follow these steps in order and take small notes as you go. Read each step before starting.
Preheat oven and prepare dry mix. Preheat your oven to 350°F (175°C). Sift together 2 1/2 cups self-rising flour, 1 1/2 teaspoons ground cinnamon, 1/2 teaspoon ground nutmeg, 1/2 teaspoon ground cloves, 1/4 teaspoon ground allspice, and 1 teaspoon baking soda into a bowl. Sifting helps blend the spices and removes lumps. Set this bowl aside.
Prepare pans. Line the bottoms of three 9-inch round cake pans with parchment paper. Lightly grease the sides of the pans. If you do not have three pans, you can bake in two pans and split one layer later, but three pans let you bake layers in one go.
Mix the wet ingredients and sugar. In a stand mixer or a large bowl with a hand mixer, beat 2 cups granulated sugar or brown sugar, 1 1/4 cups vegetable oil, and 1 tablespoon pure vanilla extract at medium speed. Once mixed, add 4 large eggs (room temperature) one at a time. Beat each egg in fully before adding the next. This helps the batter emulsify and rise evenly.
Add the dry mix slowly. Lower the mixer speed to the lowest setting. Add the sifted flour and spice mix to the wet mix in parts. Add a small amount at a time and mix until just combined. Do not overmix the batter. Overmixing can make the cake tough.
Fold in carrots, pineapple, and nuts. Use a spatula to gently fold in 3 cups freshly grated carrots (finely grated), 1/2 cup crushed pineapple (with juice), and 1 cup roasted walnuts (chopped, optional). Stir only until the carrot and pineapple are evenly distributed. Keep the batter light and airy.
Bake the layers. Evenly pour the batter into the prepared cake pans. Smooth the top with a spatula. Bake in the preheated oven for 35 to 40 minutes. Test with a toothpick in the center: it should come out mostly clean with a few moist crumbs, not wet batter.
Cool the cake layers. Let the cake cool in the pans for 10 minutes. Then run a knife around the edges and turn the layers out onto cooling racks. Let them cool completely before you frost. If you frost warm layers, the frosting will melt.
Make the brown butter for the frosting. For the frosting, melt 3/4 cup unsalted butter over medium heat. Stir and watch carefully. The butter will foam, then the milk solids will turn golden and then amber brown. Remove from heat when it smells nutty and the solids are brown. Pour the brown butter into a heatproof bowl and let it cool in the refrigerator until it becomes solid again. Cooling makes the flavor set and helps the butter blend with cream cheese.
Beat brown butter and cream cheese. In a mixer, combine the cooled brown butter and 24 ounces cream cheese (somewhat softened). Beat on medium speed until the mix thickens and looks smooth. If it seems thin, chill briefly and beat again.
Add sugar, salt, and vanilla. Gradually add 5 1/2 cups confectioner’s sugar to the cream cheese mixture, adding a cup at a time and mixing on low until smooth. Add 1/4 teaspoon salt and 1 1/2 teaspoons pure vanilla extract. Taste and adjust for sweetness. If the frosting is too stiff, add a teaspoon of milk at a time to reach the right spreadable texture.
Frost the cake. Place one cooled cake layer on a cake turntable or plate. Spread a generous layer of frosting. Add the next cake layer and repeat. Use remaining frosting to cover the top and sides. Smooth the sides with an offset spatula or make a simple textured look. Garnish with extra chopped walnuts or carrot ribbons if you like. Chill the frosted cake for 20–30 minutes to set the frosting before slicing.
For a quicker, smaller cake, follow the same steps but bake in a 9×13 pan for about 30–35 minutes. If you like a simpler method, you can also try directions from the super simple carrot cake version and adapt the frosting here. That version helps when you need a fast cake with few pans.
Ingredients :
- 2 1/2 cups self-rising flour
- 1 1/2 tsp ground cinnamon
- 1/2 tsp ground nutmeg
- 1/2 tsp ground cloves
- 1/4 tsp ground allspice
- 1 tsp baking soda
- 2 cups granulated sugar or brown sugar
- 1 1/4 cups vegetable oil
- 1 tbsp pure vanilla extract
- 4 large eggs (room temperature)
- 3 cups freshly grated carrots (finely grated)
- 1/2 cup crushed pineapple (with juice)
- 1 cup roasted walnuts (chopped, optional)
- 3/4 cup unsalted butter
- 24 oz cream cheese (somewhat softened)
- 5 1/2 cups confectioner’s sugar
- 1/4 tsp salt
- 1 1/2 tsp pure vanilla extract
This list uses simple measurements and items you can find in most stores. If you do not have self-rising flour, see the tips section for an easy swap.
Directions :
- Preheat oven to 350 degrees. Sift together flour, cinnamon, nutmeg, cloves, allspice, and baking soda; set aside.
- Line the bottoms of 3 9-inch round cake pans with parchment paper and lightly grease.
- In a stand mixer, beat sugar, oil, and vanilla at medium speed; add eggs one at a time, blending after each.
- Slow down the mixer to the lowest speed and add the flour mixture in increments.
- Fold in the grated carrots, crushed pineapple, and walnuts (if using).
- Evenly pour batter into cake pans and bake for 35-40 minutes or until a toothpick inserted comes out mostly clean.
- Cool cake layers in pans for 10 minutes; then let them cool completely on racks.
- For the frosting, melt butter over medium heat until it turns amber brown; cool in the refrigerator until solid.
- In a mixer, combine cooled brown butter and cream cheese; beat until thickened.
- Gradually add confectioner’s sugar, then add salt and vanilla until smooth.
- Frost the cooled cake layers and serve.
Follow these directions step by step for a successful bake. Read each step before you start and prepare bowls and pans so you work smoothly.
how to serve Carrot Cake Recipe
Serve the cake at room temperature for the best flavor and texture. Cut clean slices with a sharp, hot knife. Wipe the knife between cuts for neat slices.
- For a party, place the cake on a large serving plate and add a small bowl of extra frosting on the side. Guests can add more if they like.
- Offer coffee, tea, or milk with the cake. A cup of strong coffee balances the sweetness.
- Add garnishes: sprinkle chopped walnuts on top, place thin carrot ribbons on the frosting, or dust light cinnamon over the top for a warm look.
- For a more formal presentation, pipe a simple border of frosting around the top edge and place a few candied nuts in the center.
If you serve the cake chilled, take it out 20–30 minutes before eating so the frosting softens. This step helps the flavor open up.
how to store Carrot Cake Recipe
Store the cake in an airtight cake carrier or cover it with plastic wrap. Keep it in the fridge because the frosting has cream cheese. The cake stays fresh for 4 to 5 days in the refrigerator.
- To freeze a whole frosted cake: freeze it uncovered for an hour to harden the frosting, then wrap the cake tightly in plastic wrap and foil. Freeze up to 2 months. Thaw overnight in the fridge, then bring to room temperature before serving.
- To freeze unfrosted layers: wrap each cooled layer in plastic wrap and foil. Freeze up to 3 months. Thaw in the fridge or at room temperature, then frost once fully thawed.
- For single slices: wrap tightly and refrigerate up to 3 days or freeze wrapped slices up to 1 month.
Always keep the cake cold if you leave it out for long periods, especially where it can get warm.
tips to make Carrot Cake Recipe
- Use room temperature eggs and cream cheese. They blend better and create a smoother batter and frosting.
- Grate carrots finely. Fine grate mixes into the batter and creates a soft, even crumb.
- Do not squeeze all the juice out of the crushed pineapple. The small amount of juice keeps the cake moist. Drain only the large chunks if you prefer less extra liquid.
- Toast the walnuts for better flavor. Toast them in a dry pan for a few minutes until fragrant. Cool before chopping.
- Measure flour correctly. Spoon flour into the measuring cup and level it off. Do not pack the flour into the cup.
- If you do not have self-rising flour, make your own: for every cup of all-purpose flour, add 1 1/2 teaspoons baking powder and 1/4 teaspoon salt. Use this in place of the self-rising flour in the recipe.
- Do not overmix the batter after adding flour. Mix only until combined to keep the cake light.
- Watch the brown butter closely. It can go from golden to burnt in seconds. Remove from heat when you see amber bits and smell a nutty aroma.
- Chill the frosting briefly if it seems too soft. A short chill and a quick re-beating helps firm it up.
- Use a hot knife to slice clean pieces. Run the knife under hot water, dry it, and cut. Wipe between cuts.
variation (if any)
You can vary this carrot cake to fit your taste or diet with simple swaps:
- Two-layer version: Bake in two 9-inch pans for taller layers or in a 9×13 pan for a single sheet cake.
- Raisins or dates: Add 1/2 cup raisins or chopped dates to the batter for a sweeter, chewy texture.
- Coconut: Fold in 1/3 cup shredded coconut for extra flavor and texture.
- No nuts: Omit walnuts to make the cake nut-free for those with allergies.
- Gluten-free: Use a 1:1 gluten-free flour blend and add 1/2 teaspoon xanthan gum if your blend does not include it.
- Lower sugar: Reduce sugar by 1/4 cup to 1/2 cup if you prefer a less sweet cake. The pineapple and carrots still keep the cake moist.
- Vegan: Use a vegan cream cheese and a butter substitute for the frosting. Replace eggs with flax eggs (1 tablespoon ground flax + 3 tablespoons water per egg) and use a neutral oil. Baking times may vary.
- Spiced twist: Add 1/2 teaspoon ground ginger or a pinch of cardamom for a different spice profile.
- Citrus touch: Add 1 teaspoon grated orange zest to the batter for a fresh note that pairs well with pineapple.
- Cupcakes: Fill cupcake liners two-thirds full and bake for 18–22 minutes.
Want more recipes? Follow me on Facebook and pinterest
FAQs
Q: Can I use all-purpose flour instead of self-rising flour?
A: Yes. For each cup of all-purpose flour, add 1 1/2 teaspoons baking powder and 1/4 teaspoon salt to match self-rising flour. Mix well before adding to the batter.
Q: How do I prevent the frosting from being too soft?
A: Chill the brown butter and cream cheese before whipping. If frosting stays soft, chill it for 20–30 minutes and beat again. Also, keep the frosted cake in the fridge until serving.
Q: Can I make the cake ahead of time?
A: Yes. You can bake the layers one or two days ahead and keep them wrapped in the fridge. Make the frosting on the day you plan to serve for the best texture. If you need longer storage, freeze unfrosted layers and frost after thawing.
Q: How do I get even cake layers?
A: Use a kitchen scale to divide batter equally between pans. Smooth the tops with a spatula and tap pans gently on the counter to remove air pockets. If tops rise unevenly, trim them with a serrated knife before frosting.
If you have more questions about baking this carrot cake, I can help with timing for different ovens, how to convert to loaf pans, or simple plating ideas.
Print
Classic Carrot Cake
- Total Time: 70 minutes
- Yield: 12 servings 1x
- Diet: Vegetarian
Description
Bake a moist, rich carrot cake with warm spices and cream cheese frosting. Perfect for any celebration!
Ingredients
- 2 1/2 cups self-rising flour
- 1 1/2 teaspoons ground cinnamon
- 1/2 teaspoon ground nutmeg
- 1/2 teaspoon ground cloves
- 1/4 teaspoon ground allspice
- 1 teaspoon baking soda
- 2 cups granulated sugar or brown sugar
- 1 1/4 cups vegetable oil
- 1 tablespoon pure vanilla extract
- 4 large eggs (room temperature)
- 3 cups freshly grated carrots (finely grated)
- 1/2 cup crushed pineapple (with juice)
- 1 cup roasted walnuts (chopped, optional)
- 3/4 cup unsalted butter
- 24 ounces cream cheese (somewhat softened)
- 5 1/2 cups confectioner’s sugar
- 1/4 teaspoon salt
- 1 1/2 teaspoons pure vanilla extract
Instructions
- Preheat oven to 350°F (175°C).
- Sift together flour, cinnamon, nutmeg, cloves, allspice, and baking soda in a bowl; set aside.
- Line the bottoms of three 9-inch round cake pans with parchment paper and lightly grease the sides.
- Beat sugar, oil, and vanilla in a stand mixer at medium speed; add eggs one at a time, blending after each.
- Slow down the mixer to the lowest speed and add the flour mixture in increments until just combined.
- Fold in grated carrots, crushed pineapple, and walnuts (if using) gently until evenly distributed.
- Pour batter evenly into the prepared pans and bake for 35-40 minutes until a toothpick comes out mostly clean.
- Cool layers in pans for 10 minutes, then turn out onto cooling racks to cool completely.
- Melt butter over medium heat until amber brown; then cool in the refrigerator until solid.
- Combine cooled brown butter and cream cheese in a mixer and beat until thickened.
- <strong Gradually add confectioner’s sugar, then salt and vanilla, mixing until smooth.
- Frost cooled cake layers with the cream cheese frosting and serve.
Notes
Store leftovers in the refrigerator as the frosting contains cream cheese. Best served at room temperature.
- Prep Time: 30 minutes
- Cook Time: 40 minutes
- Category: Dessert
- Method: Baking
- Cuisine: American
Nutrition
- Serving Size: 1 slice
- Calories: 400
- Sugar: 35g
- Sodium: 300mg
- Fat: 20g
- Saturated Fat: 8g
- Unsaturated Fat: 10g
- Trans Fat: 0g
- Carbohydrates: 45g
- Fiber: 2g
- Protein: 5g
- Cholesterol: 70mg




