You know that carrot cake that makes people go back for thirds? This is it.
I’m talking about the kind that’s so moist you can’t believe it’s been sitting on your counter for two days.
The kind where the cream cheese frosting is perfectly tangy and not overwhelmingly sweet.
And the kind that converts people who swear they don’t like carrot cake.
This recipe has been my go-to for years, and I’ve made it for everything from random Tuesday dinners to birthday parties. It’s never failed me once.
And here’s the thing: carrot cake gets a bad reputation for being dry or too heavy.
But when you make it right, it’s honestly one of the best desserts you can put on a table.
Plus, it has vegetables in it, so you can basically eat it for breakfast. (I’m kidding. Sort of.)
What You’ll Need

For the Cake
| Ingredient | Amount | Notes |
|---|---|---|
| All-purpose flour | 2 cups | Spoon and level for accuracy |
| Baking powder | 2 tsp | Fresh! Check expiration date |
| Baking soda | 1½ tsp | Makes it rise beautifully |
| Ground cinnamon | 1½ tsp | The star spice |
| Ground nutmeg | ½ tsp | Adds warmth |
| Salt | ½ tsp | Balances sweetness |
| Large eggs | 4 | Room temp is key |
| Granulated sugar | 1½ cups | Can reduce to 1¼ cups |
| Vegetable oil | 1 cup | Or melted coconut oil |
| Buttermilk | ½ cup | Room temp |
| Vanilla extract | 2 tsp | Pure, not imitation |
| Finely grated carrots | 3 cups | About 4-5 medium carrots |
| Crushed pineapple | 1 cup | Drain well! |
| Chopped walnuts/pecans | 1 cup | Optional but recommended |
| Shredded coconut | ½ cup | Optional |
For the Cream Cheese Frosting
| Ingredient | Amount | Notes |
|---|---|---|
| Cream cheese | 16 oz | Two 8 oz blocks, softened |
| Unsalted butter | ½ cup | Softened |
| Powdered sugar | 4 cups | Sifted for smoothness |
| Vanilla extract | 2 tsp | Pure is best |
| Salt | Pinch | Enhances flavor |
Tools You’ll Need
🍰 Two 9-inch round cake pans (or one 9×13 inch)
📄 Parchment paper
🥕 Box grater or food processor
🥣 Large mixing bowls (at least 2)
🔌 Electric mixer (hand or stand)
🥄 Rubber spatula
📏 Measuring cups and spoons
🌡️ Cooling rack
🔪 Offset spatula (or regular knife)
Pro Tips
💡 Tip #1: Drain That Pineapple Like Your Cake Depends On It
Because it does! Press the crushed pineapple between paper towels or squeeze it in a clean kitchen towel until most of the juice is out. Soggy cake is nobody’s friend.
💡 Tip #2: Room Temperature = Game Changer
When your eggs, buttermilk, cream cheese, and butter are at room temperature, they mix together way more smoothly. You’ll get a better texture and the frosting won’t be lumpy. Just set them out on your counter about an hour before you start baking.
💡 Tip #3: Grate Finely (Trust Me)
Use the smallest holes on your box grater. Chunky carrot pieces won’t distribute evenly and you’ll end up with weird pockets in your cake. Yes, it takes longer. Yes, it’s worth it.
💡 Tip #4: Don’t Overmix the Batter
Once you add the flour mixture to the wet ingredients, mix just until you don’t see any more dry flour. Overmixing = tough cake instead of tender perfection.
💡 Tip #5: Patience with Frosting
Let the cake cool completely before frosting. I know it’s tempting, but warm cake + cream cheese frosting = melted mess. Give it at least an hour on a cooling rack. Go watch an episode of something. You’ll thank me later.
How to Make the Best Carrot Cake

Step 1: Prep Your Pans
Preheat your oven to 350°F (175°C).
Grease two 9-inch round cake pans really well with butter or cooking spray.
Then line the bottoms with parchment paper.
This double insurance means your cakes will come out clean every single time.
Step 2: Mix Your Dry Ingredients
In a large bowl, whisk together:
- Flour
- Baking powder
- Baking soda
- Cinnamon
- Nutmeg
- Salt
Set this aside. Easy, right?
Step 3: Combine the Wet Ingredients
In another large bowl, beat the eggs with an electric mixer until they’re light and frothy (about 2 minutes).
Gradually add the sugar while still beating.
Then pour in the oil in a steady stream.
Add the buttermilk and vanilla extract and mix until everything is well combined.
The mixture should look smooth and slightly glossy.
Step 4: Bring It All Together
Add the dry ingredients to the wet ingredients in two or three additions.
Mix on low speed just until combined after each addition. Don’t overdo it here.
Fold in the grated carrots, drained pineapple, nuts (if using), and coconut (if using) with a rubber spatula.
The batter will be thick and chunky, and that’s exactly what you want.
Step 5: Bake
Divide the batter evenly between your prepared pans.
I like to use a kitchen scale to make sure they’re exactly the same, but eyeballing it works too.
Bake for 28-32 minutes, or until a toothpick inserted into the center comes out with just a few moist crumbs.
Don’t overbake or your cake will be dry.
Let the cakes cool in the pans for 10 minutes, then turn them out onto a cooling rack.
Let them cool completely (at least an hour) before you even think about frosting.
Step 6: Make the Cream Cheese Frosting
While the cakes are cooling, make your frosting.
Beat the softened cream cheese and butter together with an electric mixer until they’re completely smooth and fluffy (about 3 minutes).
Add the powdered sugar one cup at a time, beating well after each addition.
Mix in the vanilla extract and a pinch of salt.
Beat everything on medium-high speed for another 2-3 minutes until the frosting is light and fluffy.
If it seems too thick, you can add a tablespoon of milk or cream.
Step 7: Assemble and Frost
Place one cake layer on a serving plate or cake stand.
Spread about 1 cup of frosting on top, going all the way to the edges.
Place the second cake layer on top and press down gently.
Use the remaining frosting to cover the top and sides of the cake.
You can make it as neat or as rustic as you want.
If you want to get fancy, save some extra frosting to pipe decorations on top.
Or keep it simple and just add some chopped walnuts around the edges.
Substitutions and Variations
Common Swaps
| Instead of… | Use this… | What changes? |
|---|---|---|
| Buttermilk | ½ cup milk + 1½ tsp lemon juice | Let sit 5 min before using |
| Vegetable oil | Melted coconut oil or butter | Slightly different flavor |
| All-purpose flour | 1:1 gluten-free blend | Texture slightly different |
| Walnuts | Pecans, raisins, or omit | Just texture changes |
| Two round pans | One 9×13 pan | Bake 35-40 min, frost in pan |
Flavor Variations
Spiced Up Version:
Add ½ tsp ground ginger + pinch of cardamom for more complex flavors
Tropical Twist:
Use all coconut and skip the nuts. Add ½ tsp coconut extract to frosting
Chocolate Lover’s:
Add ½ cup mini chocolate chips to the batter
Less Sweet:
Cut sugar to 1¼ cups. The carrots and pineapple add natural sweetness
Make Ahead Tips
Timeline for Success
| When | What to Do | Storage Method |
|---|---|---|
| 2 days ahead | Bake cake layers | Wrap tightly in plastic, room temp |
| 1 day ahead | Make frosting | Refrigerate in airtight container |
| Day of | Assemble & frost | Room temp 1 hour, then serve |
Freezing the layers: Wrap cooled layers individually in plastic wrap, then foil. Freeze up to 3 months. Thaw completely at room temp before frosting.
The secret: The fully frosted cake actually gets better after sitting in the fridge overnight. The flavors meld together and the texture becomes even more moist.
Nutritional Breakdown
Per Slice (12 servings)
| Nutrient | Amount | % Daily Value* |
|---|---|---|
| Calories | 620 | – |
| Total Fat | 35g | 45% |
| Saturated Fat | 12g | 60% |
| Carbohydrates | 72g | 24% |
| Fiber | 2g | 8% |
| Sugar | 55g | – |
| Protein | 7g | 14% |
| Sodium | 420mg | 18% |
*Based on a 2,000 calorie diet
Real talk: This is a dessert, so it’s meant to be enjoyed in moderation. But at least it has carrots in it, right? 😉
Perfect Pairings
What to Serve With This Cake
Hot Beverages:
- ☕ Strong black coffee or espresso (the bitterness cuts the sweetness perfectly)
- 🍵 Chai tea (those spices just get each other)
- 🥛 Hot chocolate for the kids
Cold Options:
- 🥛 Glass of cold milk (classic for a reason)
- 🍦 Vanilla ice cream on the side (extra indulgent)
- 🧊 Iced coffee with cream
For Brunch: Serve alongside fresh fruit salad, savory quiches, or scrambled eggs. The sweetness balances out savory breakfast foods really nicely.
Leftovers and Storage
Keeping It Fresh
| Storage Method | Duration | Best For |
|---|---|---|
| Refrigerator (covered) | Up to 5 days | Whole cake or slices |
| Freezer (wrapped slices) | Up to 3 months | Individual portions |
| Room temp | 2 hours max | Serving time only |
Pro move: This cake is even better on day two or three. The moisture from the carrots and pineapple keeps soaking into the cake and it just gets more and more tender.
Freezing slices: Wrap individual slices in plastic wrap, then place in a freezer bag. Thaw in the fridge overnight.
FAQ
Q: Can I use pre-shredded carrots from the store?
You can, but freshly grated carrots have more moisture and better flavor. The pre-shredded ones are usually pretty dry. If you do use them, you might need to add a tablespoon or two of extra liquid to the batter.
Q: Why did my cake sink in the middle?
This usually happens if you open the oven door too early or if you undermix the batter. Make sure your oven temperature is accurate (an oven thermometer is worth the $10 investment) and don’t peek until the cake has been baking for at least 25 minutes.
Q: Can I make this as cupcakes?
Absolutely! Line a muffin tin with paper liners and fill each about ⅔ full. Bake at 350°F for 18-22 minutes. This recipe makes about 24 cupcakes.
Q: Do I have to use oil? Can I use butter instead?
You can use melted butter, but oil makes a moister cake because it stays liquid at room temperature. Butter solidifies when it cools, which can make the texture a bit denser.
Q: My frosting is too soft/runny. What do I do?
Pop it in the fridge for 15-20 minutes, then whip it again. If it’s still too soft, add more powdered sugar ¼ cup at a time until it firms up.
Q: Can I reduce the sugar in the frosting?
You can cut it down to 3 cups of powdered sugar if you want it less sweet. Any less than that and the frosting won’t hold its shape very well.
Q: How do I know when the cake is done?
Insert a toothpick or cake tester into the center. It should come out with a few moist crumbs clinging to it, but no wet batter. The top should also spring back when you touch it lightly.
Q: Can I add raisins?
Sure! Add ½ to 1 cup of raisins along with the carrots and pineapple. Just know that raisins are a polarizing ingredient in carrot cake, so check with your audience first.
Time Breakdown
At a Glance
| Task | Time Needed |
|---|---|
| Prep ingredients | 15 minutes |
| Mix batter | 10 minutes |
| Bake | 28-32 minutes |
| Cool completely | 60 minutes |
| Make frosting | 10 minutes |
| Assemble & frost | 15 minutes |
| Total Active Time | 40 minutes |
| Total Time | 2.5 hours |
Wrapping Up
This carrot cake is the kind of recipe you’ll come back to again and again.
It’s easy enough for a weeknight dessert but impressive enough for special occasions.
The combination of warm spices, sweet carrots, tangy pineapple, and that perfectly balanced cream cheese frosting is just ridiculously good.
And the texture? Moist, tender, and exactly what carrot cake should be.
I’ve made this cake at least 50 times over the years and it’s never let me down.
It’s been to birthday parties, potlucks, Easter dinners, and plenty of random Tuesday nights when I just wanted something sweet.
Give it a try this week.
And when you do, come back and let me know how it turned out. Did you add the nuts? Skip the pineapple? Make any fun variations?
I’d love to hear about it in the comments below!