I’ve been making this carrot cake for years when I want something comforting but not fussy. It’s a two-layer, moist cake studded with grated carrots, pecans, and raisins, finished with a tangy cream cheese frosting that whips up light and billowy. Perfect for birthdays, weekend baking, or when you want to bring something reliably crowd-pleasing to a potluck. If you enjoy inventive carrot desserts, you might also like this flourless oatmeal carrot cake for a gluten-free twist on the same cozy flavors.
Why you’ll love this dish
This carrot cake hits a sweet spot between homey and special. It uses pantry-friendly ingredients and simple techniques, yet yields layers that are tender, moist, and well spiced. The oil in the batter keeps it soft for days, while the powdered sugar and cornstarch in the frosting give a stable yet airy finish that holds up when you stack and slice the cake.
“A perfect balance of spice and sweetness with a frosting that is silky, not too sweet. Everyone asked for the recipe.”
When to make it
- Family gatherings and casual celebrations when you want something homemade and impressive.
- Weekends when you have time to bake and let the cake chill so slices hold cleanly.
- Anytime you want a dessert that’s easy to scale up or down.
Step-by-step overview
Before you begin: this recipe comes together in three main stages. First, whisk dry ingredients and combine wet ingredients separately. Second, fold the dry mix into the wet and gently add grated carrots, pecans, and raisins. Third, bake the two layers, cool fully, whip a light cream cheese frosting, assemble, and chill. Total hands-on time is about 30 to 40 minutes; baking and cooling add another 1.5 to 2 hours.
What to expect
- Two 9-inch round cakes, baked for about 35 to 45 minutes each.
- A frosting that should be airy enough to spread yet firm after refrigeration.
- A cake that improves if rested at least 30 minutes in the fridge before slicing.
What you’ll need
- 2 cups (260g) all-purpose flour
- 2 teaspoons baking soda
- ½ teaspoon fine sea salt
- 1 ½ teaspoons ground cinnamon
- 1 cup (200g) granulated sugar
- 1 cup (190g) lightly packed brown sugar
- 2 teaspoons cornstarch
- 1 ¼ cups (140g) powdered sugar
- 1 ¼ cups (295ml) vegetable oil
- 1 teaspoon vanilla extract
- 4 large eggs
- 8 ounces (225g) cream cheese, softened slightly for frosting
- ⅓ cup (80ml) cold heavy cream
- 3 cups (300g) grated peeled carrots (about 4 medium carrots)
- 1 cup (120g) coarsely chopped pecans
- ½ cup (70g) raisins
- ½ cup (50g) coarsely chopped pecans for topping
Notes on ingredients
- Swap-ins: For a lighter nut texture, substitute walnuts for pecans. If you prefer no raisins, increase chopped pecans or add toasted coconut.
- For a dairy-free frosting option, use a vegan cream cheese and a neutral plant-based cream, but chilling time may vary.
Step-by-step instructions
- Preheat the oven to 176°C (350°F). Grease two 9-inch round cake pans, line the bottoms with parchment, then lightly grease the parchment.
- In a medium bowl, whisk together the flour, baking soda, salt, and cinnamon until evenly combined.
- In a large bowl, whisk the vegetable oil, granulated sugar, brown sugar, and vanilla until smooth and slightly glossy.
- Add the eggs one at a time, whisking each egg in completely before adding the next. The mixture should look homogeneous and a bit loose.
- Fold the dry ingredients into the wet mixture with a rubber spatula. Do this gently but thoroughly, scraping the bowl so no streaks of flour remain.
- Fold in the grated carrots, chopped pecans, and raisins just until distributed. Avoid overmixing to keep the cake tender.
- Divide the batter evenly between the two prepared pans. Smooth the tops and tap the pans lightly on the counter to release any large air bubbles.
- Bake for 35 to 45 minutes, or until a toothpick inserted in the center comes out with a few moist crumbs. Rotate pans halfway through if your oven bakes unevenly.
- Let the cakes cool in the pans for 15 minutes. Run a knife around the edges, invert onto wire racks, peel off parchment, and cool completely before frosting.
- For the frosting: beat the cream cheese until smooth. Add the powdered sugar and cornstarch and mix on low until combined. Pour in the cold heavy cream and beat on medium-high until light and airy, about 1 to 2 minutes. Taste and adjust sweetness if needed.
- Assemble the cake by spreading a generous layer of frosting between the cooled layers. Frost the top and sides, and press the remaining chopped pecans onto the top for texture.
- Refrigerate the finished cake for at least 30 minutes before slicing so the frosting firms and slices stay neat.

Best ways to enjoy it
Serve this cake slightly chilled or at cool-room temperature. Thin slices pair wonderfully with a strong coffee or a milky tea. For a brunch spread, plate slices with fresh berries or a bowl of whipped cream on the side. For a party, place the cake on a simple cake stand and let guests help themselves; a light dusting of extra cinnamon looks lovely on each slice.
How to store & freeze
Short term
- Store in the refrigerator covered with a cake dome or airtight container for up to 4 days. The cream cheese frosting requires refrigeration for safety.
Freezing - To freeze assembled cake: flash-freeze on a tray until firm, then wrap tightly in plastic wrap and aluminum foil. Freeze for up to 2 months. Thaw overnight in the refrigerator before serving.
- To freeze layers: wrap cooled unfrosted layers in plastic and foil. Thaw in the fridge, then frost as directed.
Food safety - Keep the cake refrigerated if your kitchen is warm. Discard if left at room temperature for more than two hours.
Pro chef tips
- Grate carrots on the large holes of a box grater or use a food processor with the grating disc for even texture. Avoid shredding into very fine pieces; you want bits that add moisture and bite.
- Measure flour by spooning it into the measuring cup and leveling off; don’t scoop directly with the cup to avoid a dense cake.
- Room temperature eggs blend more easily into the batter and yield a smoother texture.
- When folding in mix-ins, use a few gentle strokes so you distribute nuts and raisins without overdeveloping the gluten.
- If the top browns too quickly but the center is not set, cover loosely with foil for the remaining bake time.
Creative twists
- Pineapple carrot cake: fold in ½ cup crushed pineapple drained well for a tropical note.
- Spiced upgrade: add ¼ teaspoon ground nutmeg and ⅛ teaspoon ground cloves along with the cinnamon.
- Lighter frosting: mix half cream cheese and half mascarpone for a silkier texture with slightly less tang.
- Nut free: leave out the pecans and substitute sunflower seeds for crunch.
- For a no-bake accompaniment, try making no-bake cake batter protein balls for snack-sized bites inspired by the cake’s flavors.
FAQ
How long does this carrot cake take from start to finish?
Hands-on time is about 30 to 40 minutes. Baking and cooling add roughly 1.5 to 2 hours, depending on how long you let the layers cool before frosting.
Can I make the cake a day ahead?
Yes. Bake and cool the layers, then wrap each layer tightly and refrigerate. Frost the next day. If already frosted, keep the cake refrigerated and bring to cool-room temperature for 20 minutes before serving.
Can I use whole wheat flour or a gluten-free blend?
You can substitute half the all-purpose flour with whole wheat for a nuttier flavor, but expect a denser crumb. For gluten-free, use a one-to-one gluten-free baking blend and follow any package instructions for xanthan gum; texture will vary.
Why add cornstarch to the frosting?
Cornstarch stabilizes the powdered sugar and helps keep the frosting silky and less runny, especially when the cream cheese and cream are combined.
Can I omit the raisins?
Yes. Omit raisins entirely or replace them with an equal amount of chopped dried cranberries, chopped dates, or extra pecans.
How do I prevent a soggy cake?
Make sure grated carrots are not overly wet. If carrots look very juicy after grating, pat them lightly with a paper towel. Also, allow cakes to cool enough so condensation does not form under the frosting.
Feel free to ask if you want a scaled version, a gluten-free conversion, or help converting to a sheet cake pan.

Moist Carrot Cake
Ingredients
Method
- Preheat the oven to 176°C (350°F). Grease two 9-inch round cake pans, line the bottoms with parchment, then lightly grease the parchment.
- In a medium bowl, whisk together the flour, baking soda, salt, and cinnamon until evenly combined.
- In a large bowl, whisk the vegetable oil, granulated sugar, brown sugar, and vanilla until smooth and slightly glossy.
- Add the eggs one at a time, whisking each egg in completely before adding the next.
- Fold the dry ingredients into the wet mixture with a rubber spatula until no streaks of flour remain.
- Fold in the grated carrots, chopped pecans, and raisins just until distributed. Avoid overmixing.
- Divide the batter evenly between the prepared pans. Smooth the tops and tap lightly on the counter.
- Bake for 35 to 45 minutes, or until a toothpick comes out with a few moist crumbs. Rotate pans halfway through.
- Let the cakes cool in the pans for 15 minutes, then invert onto wire racks to cool completely.
- For the frosting: beat the cream cheese until smooth. Add the powdered sugar and cornstarch; mix on low until combined.
- Pour in the cold heavy cream and beat on medium-high until light and airy, about 1 to 2 minutes.
- Spread frosting between the cooled layers, then frost the top and sides. Press remaining pecans onto the top.
- Refrigerate the finished cake for at least 30 minutes before slicing.


