My grandmother used to make carrot cake every fall, and for years I had zero interest in trying it myself because I assumed it was one of those recipes with a long list of finicky steps, warm spices measured out just so, maybe even a food processor situation for the carrots. When I finally sat down to actually make one, I realized most of that assumption was wrong. It's a genuinely simple, forgiving cake once you know a couple of things that actually matter.
My first attempt was a little too wet in the middle, and it took me a batch or two to realize the issue wasn't my oven or my measuring, it was that I hadn't squeezed any of the extra moisture out of the shredded carrots first. Carrots hold more water than you'd think, and if you don't account for that, it shows up as a gummy center even when the edges look perfectly done.
Once I sorted that out, this became the cake I actually look forward to making every fall now, the same way my grandmother did, minus the assumption that it needed to be complicated to be good.
Why This Recipe Actually Works
Carrot cake gets its moisture and tenderness from a combination of oil, shredded carrots, and often crushed pineapple or applesauce, rather than relying heavily on butter the way a lot of other cakes do. Oil stays liquid at room temperature, which keeps the crumb soft even after the cake has cooled completely, something butter-based cakes don't always do as well.
The warm spices, cinnamon in particular, aren't just there for flavor, they also balance out the natural sweetness of the carrots so the cake doesn't taste one-note. This recipe keeps the spice blend simple rather than throwing in every warm spice in the cabinet, which keeps the carrot flavor from getting buried.
The other detail that matters here is texture. Finely grated carrots disappear into the batter and cook through evenly, while coarsely grated carrots hold their shape more and give the cake a bit of bite. Neither is wrong, but it's worth knowing which one you're aiming for before you start shredding.
Ingredients
Dry Ingredients:
- 2 cups all-purpose flour
- 2 teaspoons baking powder
- 1 teaspoon baking soda
- 2 teaspoons ground cinnamon
- ½ teaspoon salt
Wet Ingredients:
- 1 cup vegetable oil
- 1 cup granulated sugar
- ½ cup packed brown sugar
- 4 large eggs
- 2 teaspoons vanilla extract
Mix-Ins:
- 3 cups finely grated carrots (about 4-5 medium carrots)
- 1 cup crushed pineapple, drained well (optional, but recommended)
- ½ cup chopped walnuts or pecans (optional)
A few notes before you start:
On the carrots: Grate them yourself rather than buying pre-shredded bags from the store. Pre-shredded carrots are often drier and coarser, which affects both moisture and texture here.
On squeezing out moisture: After grating, press the carrots between paper towels or squeeze them gently in a clean kitchen towel to remove excess liquid. This is genuinely the step that makes or breaks this cake.
On the pineapple: It adds extra moisture and a subtle sweetness, but drain it very well first, or you'll end up with the same excess-moisture problem the carrots can cause.
Step-by-Step Instructions
Step 1: Preheat your oven and prep your pans.
Set your oven to 350°F (175°C). Grease two 9-inch round cake pans and line the bottoms with parchment paper.
Step 2: Whisk the dry ingredients together.
In a medium bowl, whisk together the flour, baking powder, baking soda, cinnamon, and salt.
Step 3: Whisk the wet ingredients together.
In a large bowl, whisk together the oil, granulated sugar, brown sugar, eggs, and vanilla extract until smooth and well combined.
Step 4: Combine wet and dry ingredients.
Add the dry ingredients to the wet ingredients and mix until just combined, with no dry streaks of flour remaining.
Step 5: Fold in the carrots and mix-ins.
Gently fold in the grated carrots, drained pineapple if using, and chopped nuts if using, until evenly distributed throughout the batter.
Step 6: Divide the batter between your pans.
Pour the batter evenly between your two prepared pans and smooth the tops gently.
Step 7: Bake.
Bake for 30-35 minutes, until a toothpick inserted into the center comes out clean or with just a few moist crumbs.
Step 8: Cool completely before frosting.
Let the cakes cool in their pans for about 10 minutes, then turn them out onto a cooling rack to cool completely before frosting or stacking. This cake especially needs to be fully cool, since a warm cake will melt cream cheese frosting right off.
Common Mistakes to Avoid
Not squeezing excess moisture from the carrots. This is the single biggest reason carrot cake turns out gummy or underbaked in the middle even when a toothpick from the edges comes out clean.
Using pre-shredded, store-bought carrots. They're often too dry and coarse, and won't give you the same texture as carrots you grate yourself.
Overmixing once the flour is added. This develops the gluten too much and can lead to a denser, tougher cake instead of a tender one.
Not draining the pineapple well enough. Extra liquid from undrained pineapple compounds the same moisture issue the carrots can cause.
Frosting a cake that isn't fully cooled. Even slightly warm cake layers will cause cream cheese frosting to slide and melt instead of holding its shape.
How to Store This Cake
Because this cake is typically paired with cream cheese frosting, which needs refrigeration, store it covered in the refrigerator for up to 5 days. Let slices sit at room temperature for about 15-20 minutes before serving, since the texture and flavor come through better than straight from the fridge.
If unfrosted, the plain cake layers keep well at room temperature, wrapped tightly, for about 2-3 days.
For longer storage, unfrosted cake layers freeze well for up to 2 months. Wrap each layer tightly in plastic wrap, then foil, before freezing. Thaw at room temperature before frosting.
Frequently Asked Questions
Can I make this into cupcakes instead of a layer cake? Yes, this batter works well as cupcakes. Fill liners about two-thirds full and bake for around 20-22 minutes, checking with a toothpick.
Why did my cake sink in the middle? This usually comes down to either excess moisture from the carrots or pineapple that wasn't drained well enough, or opening the oven door too early before the cake had fully set.
Do I have to use nuts or pineapple? No, both are optional. The cake works fine without either, though the pineapple does add helpful moisture, so if you skip it, make sure your carrots are grated finely and squeezed well.
Can I use a food processor to shred the carrots? Yes, a food processor with a grating attachment works well and saves time, just be mindful that it can shred more coarsely than a box grater depending on the blade, so check the texture before mixing it in.
Final Thoughts
What I appreciate about this recipe now is that it turned out to be far less complicated than I'd assumed for years, once I understood the one detail that actually mattered. My grandmother never mentioned squeezing the carrots, as far as I remember, but I suspect she just knew to do it without thinking twice, the way people do with recipes they've made a hundred times.
If carrot cake has always seemed like more trouble than it's worth, I'd genuinely encourage giving it a try with that one detail in mind. It's a much simpler cake than it gets credit for.
If you make this, I'd love to hear whether you go for the pineapple and nuts or keep it simple.


