I know, I know… Carrot cake is controversial. For a long time, I couldn’t wrap my head around vegetables in cake. But this homemade carrot cake recipe changed my mind, and I think it’ll change yours too! This moist 3-layered cake is covered with the most delicious cream cheese frosting and I promise you, everyone will be asking for the recipe!
This post may include affiliate links that earn us a small commission from your purchases at no extra cost to you.
What’s in This Carrot Cake Recipe?
I’m so excited to share this delicious homemade carrot cake recipe with you, it will easily rival any bakery-bought cake! Three fabulous layers of the most moist and flavorful cake are covered in my favorite cream cheese frosting for a really indulgent and delicious treat!
- Self-Rising Flour: A premade mixture of all-purpose flour, baking powder, and salt. It makes this recipe super simple.
- Spices: A combination of ground cinnamon, nutmeg, cloves, ginger, and allspice richly flavors this cake and enhances the natural sweetness of the carrots.
- Baking Soda: Gives this cake an extra bit of lift!
- Sugar: I like to use both granulated white and dark brown sugar to sweeten the cake, add depth of flavor, and increase the moisture content.
- Vegetable Oil: Makes this cake moist, rich, and tender. Other options that work well include canola oil and melted coconut oil.
- Vanilla Extract: Enhances the sweetness of the cake and the warm spices.
- Eggs: Give the cake structure and help bind everything together.
- Carrots: I ended up using 9 medium-sized carrots, but you may need more or less depending on the size of the carrots you get.
- Pineapple: This is my secret ingredient for a super moist, super flavorful carrot cake. It adds just a touch of balancing acidity and extra moisture so this cake is never dry!
- Pecans: I love adding nuts to my cake, but you can of course leave them out if you’re not a fan. Or sub walnuts if you prefer.
Frosting Variations
I absolutely adore the contrast of the rich and sweet carrot cake with the tangy cream cheese frosting, but I know it’s not everyone’s cup of tea. If you’d prefer a different frosting, I have quite a few I think you’ll love. Classic vanilla frosting works super well here, or try stabilized whipped cream for a lighter take. To really play up the spiced flavor, my pumpkin spice whipped cream is a treat!
Email This Recipe
Enter your email and we’ll send the recipe directly to you!
How to Store
Once the cake is fully frosted, I have found that it keeps well in the fridge for 4-5 days, but I do like to serve it on the day that it’s frosted so that it’s perfectly fresh and moist. Because it’s frosted with cream cheese, I never leave carrot cake out of the refrigerator for more than 2 hours.
How to Freeze
This carrot cake is easy to freeze whole or cut into individual slices. I like to freeze it for an hour or two to set the frosting, then tightly wrap the cake or slices in 2 layers of plastic wrap and 1 layer of aluminum foil to store for up to 1 month. Let thaw overnight in the refrigerator before enjoying.
Serving Suggestions
For me, there’s nothing better with a slice of moist carrot cake than a chai latte. The spices play so well together, and I really find no need for any ice cream or extra fluff. I do sometimes like to sprinkle some sweetened shredded coconut on top for a pretty garnish and a nice sweet flavor, though!
Notes from the Test Kitchen
If you don’t have any self-raising flour on hand, don’t fret! You can make your own by using 2½ cups of all-purpose flour whisked together with 3¾ teaspoons of baking powder and ⅝ teaspoon of kosher salt in this carrot cake recipe. This tip has saved me on more than one occasion!
How to Make Carrot Cake Step by Step
Mix the Dry Ingredients: Preheat your oven to 350°F and line the bottoms of three 8-inch round cake pans or one 9×13-inch baking pan. Spray the pan(s) with cooking spray and, if desired, lightly cover the insides with coarse raw sugar. In a large bowl, whisk 2½ cups of self-rising flour, 1½ teaspoons of ground cinnamon, ½ teaspoon of ground nutmeg, ½ teaspoon of ground cloves, ½ teaspoon of ground ginger, ¼ teaspoon of ground allspice, 1 teaspoon of kosher salt, and 1 teaspoon of baking soda together; set aside.
Whisk the Wet Ingredients: In the bowl of a stand mixer fitted with the paddle attachment, mix 1½ cups of granulated sugar and ½ cup of dark brown sugar together on low speed. Add 1 cup of vegetable oil and 1 tablespoon of pure vanilla extract and beat on medium speed until well incorporated, about 1 minute. Add 4 large eggs, one at a time, mixing well after each addition.
Mix the Batter Together: Set the mixer to low and add the flour mixture to the wet ingredients in ½ cup increments.
Fold in the Carrots: Fold in 3 cups of grated carrots, ½ cup of crushed pineapple and, if using, 1 cup of chopped toasted pecans.
Bake the Cake Layers: Divide the batter evenly between the 3 cake pans or spread in the 9×13. Bake, on the middle rack, for 30-40 minutes or until a toothpick inserted in the center comes out clean. The internal temperature in the middle of each cake layer should register 200°F-205°F on an instant-read thermometer. Transfer the cake(s) to a wire rack and cool in the pans for 10 minutes. Remove cakes from pans and return to cooling racks to cool completely.
Frost the Cake: While the cakes cool, make a double batch of the Best Cream Cheese Frosting (click for recipe). Stack the cake layers with about ½-inch of frosting between each layer. Cover the cake with a Crumb Coating (click for instructions) and refrigerate the cake at least 1-2 hours.
Decorate the Cake: When the crumb coating feels dry, finish icing and decorating the cake as you wish.