Cookies & Cups > Recipes > Dessert > Cakes > Moist Carrot Cake with Cream Cheese Frosting

Moist Carrot Cake with Cream Cheese Frosting

This is my favorite moist carrot cake recipe, filled with freshly shredded carrots, warm spices, and all the fixings, including juicy pineapple, walnuts, coconut, and raisins! It’s topped with rich and tangy homemade cream cheese frosting. Below, you’ll find directions on how to make this easy carrot cake as a classic layer cake or as a single-layer sheet cake.

A slice of moist carrot cake with cream cheese frosting on a plate with a fork.

This is ultimate, hands-down, over-and-above my favorite homemade carrot cake of all time. I created this recipe many years ago, and it continues to be one of my most beloved (and highly rated) cake recipes from readers… and pretty much everyone who tastes a slice! This is a mega-moist, tender cake chock-full of shredded carrots, sweet flavor, and unbeatable texture. To top it all off is a thick layer of rich cream cheese frosting, truly the icing on the cake for any classic carrot cake recipe.

Along with carrots, my carrot cake recipe comes loaded with juicy pineapple, crunchy walnuts, raisins, AND shredded coconut. Each ingredient brings something special to the recipe, creating the most fluffy, juicy, delightful version of this iconic dessert I’ve ever had.

I include two ways to bake your carrot cake: As a show-stopping two- or three-layered carrot cake, perfect for Easter dessert or a special occasion. Or, you can make this in a 9×13 pan, which makes it quick to prep and transport. Both are very easy, and it’s what makes this the ONLY carrot cake recipe you’ll ever need. It’s even inspired spin-offs like my carrot bundt cake and hummingbird cake. Let’s get baking!

What to Expect From the Best Carrot Cake Ever

  • Freshly grated carrots. If there’s one takeaway from this carrot cake recipe, it’s that grating your own carrots is key to the freshest texture and flavor. Pre-grated carrots are often thicker, coated in preservatives, and can end up crunchy, even after baking.
  • The Fully Monty of mix-ins. Because life’s too short to choose just one. Of course, if you’d prefer less texture in your cake, you can omit the extras like walnuts, raisins, and coconut. Just don’t omit the pineapple. It doesn’t impact the flavor, but it imparts essential moisture to the cake.
  • All in the details. Small things, like including brown sugar, a pinch of cinnamon, and an extra-generous hint of vanilla, all come together with big impact for the perfect moist, fluffy, and flavor-packed carrot cake.
  • The perfect frosting. Ultra-creamy cream cheese frosting is one more detail I’ll never compromise on. This frosting is tangy, delicious, and easy to handle, whether you’re piping it onto a layer cake or spreading it over a sheet cake.
Lifting a piece of homemade carrot cake from a cake plate.

Carrot Cake Ingredients

Here are the ingredients you’ll need to make this moist carrot cake with cream cheese frosting from scratch. See the recipe card for the complete recipe, including exact measurements.

For the Cake

  • All-Purpose Flour – Measure your flour using a digital kitchen scale if you have one. If not, avoid overmeasuring by using the spoon-and-level method: Spoon the flour into your measuring cup, and level it off with the back of a knife. Don’t scoop directly from the bag of flour, or you may add too much.
  • Sugar – Using half granulated white sugar and half brown sugar brings extra moisture to the cake. You can use only granulated sugar, however, if that’s all you have.
  • Vegetable Oil – A moist yet light cake calls for vegetable oil. Canola oil can also be used.
  • Eggs – Bring the eggs to room temperature so they mix more smoothly with the other ingredients.
  • Vanilla – I use a whole tablespoon of pure vanilla extract in my carrot cake batter. Which sounds like a lot, but I find it lets the flavor stand out next to the other ingredients.
  • Cinnamon – Fresh or pre-ground cinnamon brings just enough cozy spice to the cake. You can use nutmeg, or even a blend, like pie spice, if preferred.
  • Grated Carrots – Freshly grated large carrots will bake to the perfect texture. Avoid pre-grated carrots, as they tend to be tough. See below for tips.
  • Pineapple – Fresh or canned crushed pineapple adds an extra dimension of sweetness and moisture to the cake. Make sure you drain the pineapple well to avoid the cake becoming too mushy. If buying canned, the pineapple should be in water and not syrup.
  • Walnuts – Finely chopped walnuts give the otherwise tender cake an unexpected and satisfying crunch. Pecans are a good alternative, or you can omit the nuts for a nut-free cake.
  • Coconut – Shredded coconut adds another layer of flavor and texture. It can be sweetened or unsweetened.
  • Raisins – Personally, raisins in carrot cake are non-negotiable. They’re absolutely magic scattered throughout the cake like little pockets of juicy sweetness! However, I’m also aware that raisins are a controversial ingredient. Leave them out, but only if you must.

For the Frosting

  • Cream Cheese – Use a block of cream cheese (not the spreadable tub kind) and bring it to room temperature.
  • Butter – Unsalted and also at room temperature.
  • Powdered Sugar – Also known as confectioner’s sugar, a nice-quality powdered sugar will give you a fluffy, smooth frosting.
  • Vanilla – Pure vanilla extract or almond extract for an extra punch of flavor.

Shredding the Carrots for Carrot Cake

Use the large holes on a standard box grater to shred the carrots by hand, or you can take a shortcut and use the food processor. Take care not to overprocess the carrots, though, or you’ll end up with mush!

  • Do I need to peel the carrots first? I usually do, as the outer part can occasionally be a bit tough. But it’s totally up to you. If you aren’t peeling your carrots, make sure to wash and scrub them thoroughly.
  • How many carrots will I need? You’ll need about 5 large carrots to make the required 2 ¾ cups when grated. You may need more or fewer depending on their size.
A slice of moist carrot cake being lifted from the rest of the cake with a spatula.

How to Make a Carrot Cake

This cake can be baked as a single-layer sheet cake or as a multi-layered cake in separate round pans. You don’t even need a mixer to make the easy carrot cake batter, though it does come in handy when whipping the cream cheese frosting. These are the steps to make this recipe as a spectacular two- or three-layer cake:

  1. Mix the cake batter. Start by creaming both sugars with oil, eggs, and vanilla until smooth. Next, mix in the cinnamon, baking powder, baking soda, and salt. Don’t forget to scrape the sides of the bowl as needed. Slowly mix in the flour, being careful not to overmix the cake batter.
  2. Add the extras. Finally, gently fold in the grated carrots, pineapple, walnuts, coconut, and raisins just until they’re evenly distributed.
  3. Fill your pans. Divide the batter between three 8-inch round cake pans, or two 9-inch pans. Grease the pans and line the bottoms with parchment paper for easy removal. Keep in mind that the baking time will vary by a few minutes depending on your pan size.
  4. Bake. Bake the cakes at 350ºF for 25-30 minutes, until a toothpick comes out clean.

Assembling and Frosting the Cake

When the cake has cooled completely, prepare a batch of cream cheese frosting. You’ll need to increase the amount of frosting by half for a three-layer cake as pictured.

  • Make the frosting. Beat cream cheese and butter together until they’re fully combined. Slowly add the powdered sugar (if you’re using a stand mixer, do this on the lowest setting). Then, up the speed to medium and beat the frosting until it’s smooth and creamy.
  • Trim the cake layers. As you can see in the images here, I level the cake layers after they’re baked. This is to allow for perfect stacking, like a bakery cake. I use a serrated knife and carefully remove the top of the domes, so the cakes are flat and even.
  • Stack the cake. Spread a thick layer of frosting over the first carrot cake layer, and place the second cake on top. Repeat with the remaining layers. If needed, check out my perfect chocolate layer cake for detailed steps to stack a cake. Finally, use the remaining frosting to frost the top and sides of the layer cake.

Make a Sheet Cake Instead

This classic carrot cake recipe turns out just as moist and delicious as a single-layer cake. It’s perfect for parties, potlucks, or any setting that calls for a more casual (but still supremely delicious) dessert. I also have a similar pineapple cake recipe that you can try. Here are the steps:

  • Prepare the cake batter. Follow the same steps as above to prepare your carrot cake batter. No adjustments needed! Meanwhile, coat a 9×13-inch pan with cooking spray.
  • Bake. Pour the batter into your prepared pan. Bake the sheet cake at 350ºF for 40 minutes, or until a toothpick inserted in the center comes out clean.
  • Frost the cake. Allow the carrot cake to cool completely before frosting. Prepare a fresh batch of cream cheese frosting, and spread it over the cooled cake.
Side view of a layered carrot cake with a large slice missing.

Tips and Variations

  • Use vegetable oil instead of butter. Oil yields a lighter, more tender cake than one made with butter.
  • Don’t overmix the batter. Too much mixing deflates the batter and overdevelops the gluten, and your carrot cake will turn out dense. This is true with just about all baked goods.
  • Line the pan. Lining the cake pan with parchment paper and giving it a light spray with cooking oil will ensure that cakes don’t stick.
  • Make the cake ahead of time: Allowing the freshly baked carrot cake to rest for a day gives the flavors time to develop, the frosting to mingle with the cake, and the overall texture to settle. Carrot cake is actually a wonderful make-ahead dessert for this reason.
  • Different frosting. If you are fully opposed to cream cheese frosting, there are alternatives! Classic buttercream frosting, heritage frosting, and brown sugar frosting are all wonderful frosting options for a homemade carrot cake.
A slice of moist carrot cake with cream cheese frosting on a plate.

How to Store

  • Store the cake airtight. For longer storage and fresher cream cheese frosting, keep your frosted carrot cake covered in the fridge for up to 5 days. This cake will also keep well on the counter at room temperature, albeit for a shorter time, due to the cream cheese frosting. Store the cake using a cake carrier or airtight container to keep everything protected.
  • Freeze. Carrot cake is surprisingly easy to freeze after baking, and even after frosting! For best results, let the cake chill in the refrigerator for a few hours to allow the icing to firm up. Afterwards, wrap the whole cake well in a double layer of plastic wrap, plus a layer of aluminum foil to help with freezer burn. Store the whole cake in an airtight, freezer-safe container to freeze for up to 2-3 months.
Print
clock clock iconcutlery cutlery iconflag flag iconfolder folder iconinstagram instagram iconpinterest pinterest iconfacebook facebook iconprint print iconsquares squares iconheart heart iconheart solid heart solid icon
Side view of a layered carrot cake with a large slice missing.

Carrot Cake with Cream Cheese Frosting

5 Stars 4 Stars 3 Stars 2 Stars 1 Star 4.9 from 168 reviews
  • Author: Cookies & Cups
  • Prep Time: 20 mins
  • Cook Time: 45 mins
  • Total Time: 1 hour 5 mins
  • Yield: serves 12 1x
  • Category: Cake
  • Method: Baking
  • Cuisine: Dessert

Description

This is my favorite moist carrot cake recipe filled with pineapple, walnuts, coconut, and raisins, topped with rich and tangy cream cheese frosting. Make this easy carrot cake as a classic layer cake or as a single-layer sheet cake.


Ingredients

Scale

For the Cake

  • 1 cup granulated sugar
  • 1 cup light brown sugar
  • 1 1/4 cup vegetable oil
  • 4 large eggs
  • 1 tablespoon vanilla
  • 1 tablespoon ground cinnamon
  • 2 teaspoons baking powder
  • 1 teaspoon baking soda
  • 1 teaspoon kosher salt
  • 2 cups all purpose flour
  • 2 3/4 cups grated carrots, approximately 5
  • 1 (8 ounce) can crushed pineapple, drained
  • 3/4 cup chopped walnuts
  • 1/2 cup raisins (regular or golden)
  • 1 cup sweetened flaked coconut

Cream Cheese Frosting

  • 1 (8 ounce) block cream cheese, room temperature
  • 1/2 cup butter, room temperature
  • 5 cups powdered sugar
  • Optional: 1 teaspoon vanilla extract or 1/2 teaspoon almond extract


Instructions

  1. Preheat oven to 350°F. Coat a 9×13 pan (or three 8-inch pans) with nonstick spray. *See note. Set aside.
  2. In the bowl of your stand mixer fitted with the paddle attachment mix both sugars, vegetable oil, eggs and vanilla together on medium speed until smooth, 1 minute.
  3. Add in the cinnamon, baking powder, baking soda, and salt and continue mixing for 30 seconds, scraping the sides of the bowl as necessary.
  4. Mix in the flour until just combined.
  5. Add in the carrots, pineapple, walnuts, coconut, and raisins and stir until evenly incorporated.
  6. Pour batter into the prepared pan.
  7. Bake for 40-45 minutes for 9×13 cake (or 25-30 minutes for a layered cake), until a toothpick inserted in the center comes out clean. Allow to cool completely.

Frosting

  1. In the bowl of your stand mixer fitted with the paddle attachment mix the cream cheese and butter together on medium speed until combined.
  2. With mixer on low, slowly add in the powdered sugar.
  3. Once incorporated, turn the speed up to medium and mix for 1-2 minutes until smooth and creamy, scraping the sides of the bowl as necessary.
  4. Spread the frosting on top of the cooled cake.

Notes

  • Store airtight for up to 3 days.
  • You can bake this as a sheet cake-style cake in a 9×13 pan, or as a layered cake in three 8-inch round pans or two 9-inch round pans. Coat the pans with baking spray and place a parchment round into the bottom of each pan and coat again with baking spray. 
  • Frosting a layered cake: For a three-layer 8-inch cake, you will need to increase the frosting ingredients by 50%. Especially if you plan on using the frosting for decorating. You don’t have to increase the frosting, however, if you choose to leave this as a “naked” cake and leave the outside unfrosted.

Nutrition

  • Serving Size: 1 slice
  • Calories: 595
  • Sugar: 58.1 g
  • Sodium: 409.3 mg
  • Fat: 28.1 g
  • Carbohydrates: 85.1 g
  • Protein: 4 g
  • Cholesterol: 76.2 mg

Want To Save This Recipe?

Find more recipes like this:

Rate this recipe and share a comment

Your email address will not be published. Required fields are marked *

Recipe rating 5 Stars 4 Stars 3 Stars 2 Stars 1 Star

I accept the Privacy Policy

405 comments on “Moist Carrot Cake with Cream Cheese Frosting”

  1. This cake is so perfect! My nephew has requested it for his birthday party, would doubling this recipe be enough for a whole sheet pan? It is a 12x18inch pan. Help!

  2. I made this with alterations suggested by another reviewer: Added the meat of 2 jalapeno peppers to the batter, used pecans instead of walnuts, skipped the raisins and picked the almond extract option for the icing. I went light on the icing (just the full recipe for two 9″ layers), since the cake is quite sweet already. The result was spectacular. The jalapeno peppers did not make it spicy, just added a nice flavour kick, somewhat similar to what you get when you add espresso to a chocolate cake recipe. I’ll be making this one again! So yummy.

  3. This really is the BEST carrot cake ever. I also added the meat of 2 large jalapeños (minced, no seeds) to the batter. It adds a very mild hint of jalapeño and with the cream cheese frosting it is fantastic! (And I don’t like spicy foods or eat anything else with jalapeños). We got the idea from a restaurant in San Antonio called, The Cove. We ordered their carrot cake that had jalapeños in it and it wowed us with how good it was!
    We didn’t add raisins and used pecans instead of walnuts since I had pecans on hand. Either nut is great to use.

  4. Try adding crushed pineapple and walnuts to the cream cheese frosting for an over the top presentation.

  5. I have been baking using this recipe as my base for 5 year’s! I substitute butter for oil because I prefer a dense rich finish. It is so delicious. I’ve substituted hazelnut extract for vanilla in the batter, whilst keeping thr vanilla extract for the cream cheese frosting. I use all of the scrumptious nom-nommy dried fruits and nuts, even adding the juice from the pineapple to the batter. This cake recipe is the bomb! And I can’t eat anyone else’s carrot cake, because I now make the BEST CAKE THERE IS! Thank you for the recipe!! Happy Baking Everyone!

  6. This really was the best carrot cake ever. Our family loves carrot cake so i’ve tried a number of different recipes throughout the years. This is the winner. Made the cake as directed using 3- 9″ layer pans (omitted the nuts-family preference). Cake layers were on the thin side, but family loves frosting!
    I did alter the frosting, cut the sugar to 1 1/4 cups so the cream cheese and butter flavors come through. ( I doubled the frosting recipe, as suggested, since it was a triple layer cake. )
    Moist and delicious!

  7. Nanajee Travels

    This moist carrot cake sounds absolutely indulgent and delicious! The combination of pineapple, coconut, and raisins must make it incredibly flavorful and rich. Topped with ultra-decadent cream cheese frosting, it’s bound to be a crowd-pleaser whether you bake it as a show-stopping layer cake or a convenient sheet cake. I’m excited to try it and enjoy the perfect results this recipe promises!

  8. I made this cake for my boss’ birthday. I did not put in the coconut, nuts or raisins (just personal preference). It turned put perfect and was very moist. Big hit at the office. Would make again.

  9. I followed this recipe and the cakes came out delicious. Took them to friends for Sunday lunch and received a lot of compliments. I only used pecans.

  10. This was a really good cake. I omitted the coconut. The addition of the pineapple makes the cake. This is a winner.

Scroll to Top