This is a two-layer spiced carrot cake with cream cheese frosting — moist from grated carrots, crushed pineapple, and oil, and warmly spiced with cinnamon and nutmeg. It takes about 70 minutes start to finish and feeds 12. If you want a reliable, unfussy layer cake that works for a birthday, a holiday table, or just a weekend bake, this is a good one to have in your back pocket.
What makes this version work
Two things matter most here. First, the fat is all oil — no butter — which keeps the crumb genuinely moist even after a day in the fridge. Butter cakes firm up when cold; this one stays tender. Second, the batter uses both brown sugar and granulated sugar together. The brown sugar adds a faint caramel depth that plain white sugar can’t replicate, and it works with the cinnamon and nutmeg rather than competing with them. Get those two things right and the rest of the recipe is straightforward.
Mistakes to avoid
- Skipping the pineapple drain. The recipe calls for drained crushed pineapple — take that seriously. Pour it into a fine mesh strainer and press it with a spoon. Excess liquid throws off the batter’s balance and can leave the center gummy after baking.
- Grating the carrots too thick. A box grater’s large holes produce shreds that don’t soften fully in 40 minutes. Use the fine or medium holes, or the fine shredding disc on a food processor. The carrots should almost disappear into the crumb.
- Frosting a warm cake. Even slightly warm layers will melt cream cheese frosting on contact. Let the layers cool completely on a rack — at least 45 minutes — before you touch the frosting. When in doubt, wait longer.
- Overpacking the flour. The recipe specifies sifted flour for a reason. Scooping directly from the bag compresses the flour and adds more than intended, which makes the cake dense and dry. Spoon flour into your measuring cup and level it off, or weigh it if you have a scale.
- Beating the frosting before the cream cheese is fully soft. Cold cream cheese lumps and those lumps don’t smooth out later. Leave it at room temperature for at least 30 minutes — same for the butter — before you start mixing. Skip the garnish of extra walnuts on top — not worth the extra dish.
Storage and reheating
Because of the cream cheese frosting, this cake needs to be refrigerated. Cover it loosely with plastic wrap or store it in a cake container and it will keep well for up to 5 days in the fridge. The flavor actually improves on day two once the spices have had time to settle. For longer storage, freeze unfrosted cake layers individually — wrap each tightly in plastic wrap, then foil, and freeze for up to 3 months. Thaw overnight in the fridge before frosting. Frosted slices can also be frozen on a baking sheet until firm, then wrapped and stored for up to 6 weeks. Pull a slice from the fridge about 20 minutes before serving so the frosting softens back up.
Classic Spiced Carrot Cake
Equipment
- 9-inch round cake pans (2)
- Mixing bowls
- Whisk
- electric mixer or stand mixer
- Rubber spatula
- Box grater or food processor
- cooling rack
Ingredients
For the Cake Batter:
- 2 cups all-purpose flour sifted for accurate measurement
- 2 teaspoons baking powder fresh, aluminum-free
- 1 ½ teaspoons baking soda
- 2 teaspoons ground cinnamon
- ¼ teaspoon ground nutmeg
- ½ teaspoon salt fine sea salt preferred
- 1 cup light brown sugar packed
- 1 cup granulated sugar
- 1 cup vegetable oil can substitute with canola oil
- 4 large eggs room temperature
- 2 cups carrots freshly grated
- 1 cup crushed pineapple drained
- ½ cup chopped walnuts optional
- ½ cup shredded coconut unsweetened
For the Cream Cheese Frosting:
- 8 oz cream cheese softened
- ½ cup unsalted butter at room temperature
- 3 cups powdered sugar sifted
- 1 teaspoon vanilla extract pure
Instructions
- Preheat your oven to 350°F (175°C). Grease two 9-inch round cake pans and line the bottoms with parchment paper for easy removal.
- In a large mixing bowl, whisk together flour, baking powder, baking soda, cinnamon, nutmeg, and salt.
- In a second large bowl, combine both sugars and the vegetable oil. Beat until well mixed, then add the eggs one at a time, beating well after each addition.
- Slowly mix the dry ingredients into the wet, stirring just until the flour disappears (do not overmix).
- Fold in the grated carrots, pineapple, walnuts (if using), and coconut. Ensure the mix is evenly distributed without overworking the batter.
- Divide the batter equally between the two pans and smooth the tops. Bake for 35-40 minutes or until a toothpick inserted in the center comes out clean.
- Let the cakes rest in the pans for 10 minutes, then remove and cool completely on wire racks before frosting.
- To make the frosting, beat the cream cheese and butter together until smooth and fluffy (about 2-3 minutes).
- Add powdered sugar gradually, beating until incorporated. Stir in vanilla extract.
- Once cakes are cooled, place one cake layer on a serving plate. Spread a layer of frosting, then top with the second cake and frost the top and sides evenly.
Notes
- For a moister crumb, you can soak the grated carrots in warm water for 5 minutes, then drain before folding in.
- Want to make it gluten-free? Substitute the all-purpose flour with a 1-to-1 gluten-free baking mix. Ensure your baking powder is gluten-free as well.
- You may add a dash of orange zest to the frosting for a citrusy lift.
Nutrition
Your questions, answered
Can I make this as a 9×13 sheet cake instead of two round layers?
Yes, a 9×13 pan works well with this batter. Start checking for doneness at 40 minutes, but it may need up to 50 — use the toothpick test rather than the clock since oven temperatures vary.
Do I have to use both walnuts and coconut, or can I leave them out?
Both are optional and the cake holds together fine without either. Leaving out the walnuts makes it nut-free; leaving out the coconut gives you a slightly less textured crumb — neither change affects the bake time or structure.
My frosting turned out runny. What went wrong?
The most common cause is cream cheese or butter that was too warm when you started mixing — soft is right, but if either has gone greasy or shiny, it’s too warm. Put the frosting in the fridge for 20 to 30 minutes, then beat it again briefly and it should firm up.
If you liked this one
- Heavenly Strawberry Cake with Fresh Berries and Whipped Cream
- Zesty French Lemon Cake
- Classic Soft Sugar Cookies
- Ultimate Banana Bread

















































