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.

You can make this carrot cake as a two- or three-layer cake or bake it in a 9×13 pan. 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

  • 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 fluffiest, most flavorful version of this iconic dessert I’ve ever had.
  • I include two ways to bake your carrot cake: As a show-stopping layered carrot cake, perfect for Easter dessert or a special occasion. Or, you can make this as a sheet cake in a 9×13 pan, which makes it quick to prep and transport.
  • This carrot cake is oil-based, so it’s super moist and tender. It stays that way for days, and the flavors develop even more once the cake rests a bit. It’s a great dessert to make the day before holidays like Easter.
  • Homemade cream cheese frosting is a detail I’ll never compromise on. This frosting is delicious and easy to handle, whether you’re piping it onto a layer cake or spreading it over your 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 – 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 tough and crunchy, even after baking. 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

  • Don’t skip the pineapple. Of course, if you’d prefer less texture in your cake, you can omit the extras like walnuts, raisins, and coconut. However, don’t omit the pineapple. It doesn’t really impact the flavor in this recipe, but it imparts essential moisture to the cake.
  • 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 170 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

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

  1. This was the best carrots cake I have ever tasted. My family all said remember this recipe . . I will never buy a box cake again..

  2. This is almost my mother’s carrot cake. She did a few spices differently, but yours give similar flavor. Oil is deffinately the way to go, so easy to mix. I love that you say not to leave out the raisins, coconut, pineapple, and walnuts. They add awesome texture and flavor. This is great.

  3. Thanks, I have made it, I read this article thrice and rally whats come out I didn’t share that with my rabbit.

  4. Nova @ The High Strung

    Since making this Beautiful tasty & moist cake I have made 5 so far… It’s The Best ever Carrot cake recipe me & my family have tasted …

    1. Salted or u salted butter? Recipe and reviews sound amazing I can’t wait to make for Easter. Thank you!

      1. I use salted butter but that’s a personal preference. If you have a sensitivity to salt you can certainly use unsalted!

    2. The store only had unsweetened coconut flakes, can I do it with the unsweetened and compensate somehow? Or should I go to another store and get the sweetened?

        1. Christine Spiteri

          This cake can be kept for three days…..yeah right! As if it’s going to last that long! It’s so delicious! I’ve never baked a better carrot cake, and I like trying new recipes, especially sweet ones. I’ve made it for my niece’s 10th birthday, as she’s decided to go ‘healthy’, and I’ve received praises from everyone. It’s really moist, and has that crunch from the pecans (I used them instead of walnuts), and the hint of coconut…..oh I’m drooling ?. I like it spicy, so I added a teaspoon of mixed spice, a teaspoon of ground ginger, half a teaspoon of ground nutmeg, and a little more cinnamon (which is never enough for me). Oh! And also a tablespoon of orange zest. Thank you, thank you, thank you, for this awesome recipe.

  5. I love your site and your recipes. Anytime I’m looking for a new recipe in general or a specific recipe, I check to see if Cookies and Cups has it, first, and I start with that recipe. Every single recipe I’ve tried of yours is a hit—from cookies to cakes to main dishes (creamy beef pasta was actually a MAJOR hit!). But Girl. I hate raisins with every bit of my being. I HATE THEM. So I will try this recipe, but for the first time ever, I have to modify it. Because I would rather eat marginal carrot cake without raisins than “the best” carrot cake WITH raisins. 🙂 Keep up the amazing work. I love, love, love your site!

    1. hahaha! ok, I love the raisins in this recipe, but I don’t hate raisins, so I get it 🙂 Hope you love it!

  6. This is very close to the recipe I’ve been making for years, and it’s the best. I’ll eat carrot cake without pineapple and without nuts or coconut, but it isn’t nearly as good.

    Like Melanie said earlier, I use the fine shredding disk of my food processor to prep the carrots. After I’ve done them and because the FP needs to be washed anyway, I whir the coconut until it’s finer. I like the taste of coconut but not the chewy pieces and processing helps with that. I didn’t like raisins much until I started buying them at Trader Joe’s. They’re much moister and tastier, very good in carrot cake.

    One more thing is that I always toast walnuts to get rid of their slightly bitter taste.

    I make non-dairy cream cheese and use it to make the frosting. It’s nice those of us with dairy problems can enjoy good things like this again.

    Thanks for the recipe. I’ll be making it this week. Have a delicious Easter.

    1. Great idea at pulsing the coconut in the food processor. A great trick for those who aren’t fans of the texture!

  7. I LOVE that you’re a “no nuts” dessert gal! I can’t stand nuts in my desserts either. So much so, that my mom and grandma make a little fudge and brownies etc. JUST for me with no nuts when they make stuff (and I’m in my 40s ??).

  8. I’ve just baked it yesterday minus the coconut flakes. My neighbour says it is to die for. wish i could attach a photo. overloaded my topping with walnuts for more crunch

  9. I had been looking for a good recipe for Carrot cake for a while. I had heard that pineapple was one of the best things to add as well. Cooked this up on Sunday and we all really enjoyed it. Bake time ended up being a bit longer than the recipe stated, likely a combo of using a 13×9 glass dish and my oven running cooler. Nothing that can’t be overcome by a good ole toothpick test.

    Thank you!

Scroll to Top