Homemade carrot cake with cream cheese frosting and walnuts on a rustic table

This homemade carrot cake is moist, warmly spiced, and dotted with sweet pineapple and crunchy nuts. The cake smells of cinnamon as it bakes and makes a tender, carrot-filled crumb. Top it with tangy cream cheese frosting for a classic finish. It’s easy to make and great for family gatherings or a cozy weekend bake.

Recipe Information

  • Prep Time: 20 minutes
  • Cook Time: 30 minutes
  • Total Time: 50 minutes
  • Servings: 12 slices
  • Difficulty Level: Medium

Nutrition Information

(Approximate per serving, cake only — without cream cheese frosting)

  • Calories per serving: 440 kcal
  • Protein: 5 g
  • Carbohydrates: 51 g
  • Fat: 23 g
  • Fiber: 2 g
  • Sugar: 37 g
  • Sodium: 130 mg

Why Make This Homemade Carrot Cake

This carrot cake balances sweet, tangy, and nutty flavors. The grated carrots add natural sweetness and moisture. Pineapple keeps the cake tender and gives a fresh fruit note. The cinnamon brings warmth. The texture is soft and slightly dense, with little crunchy bites from the nuts if you use them. It smells amazing while baking and looks beautiful when frosted.

How to Make Homemade Carrot Cake

Follow a few simple steps: mix dry ingredients, whisk the wet ones, combine gently, fold in carrots and pineapple, then bake. The steps are quick and forgiving, so this recipe works well for both new and experienced bakers.

Ingredients:

  • 2 cups all-purpose flour
  • 2 cups granulated sugar
  • 1 teaspoon baking powder
  • 1 teaspoon baking soda
  • 1/2 teaspoon salt
  • 1 teaspoon ground cinnamon
  • 4 large eggs
  • 1 cup vegetable oil
  • 2 cups grated carrots
  • 1 cup crushed pineapple (drained)
  • 1/2 cup chopped nuts (optional)
  • 1 teaspoon vanilla extract

Directions:

Step 1: Preparation

Preheat the oven to 350°F (175°C). Grease and flour two 9-inch round cake pans. Peel and grate the carrots if you haven’t already. Drain the crushed pineapple well to avoid excess moisture.

Step 2: Mixing

In a large bowl, whisk together the flour, sugar, baking powder, baking soda, salt, and cinnamon until evenly combined. In another bowl, beat the eggs lightly, then stir in the vegetable oil and vanilla extract. Pour the wet ingredients into the dry ingredients and stir until just combined. Avoid overmixing to keep the cake tender.

Step 3: Cooking

Fold in the grated carrots, drained crushed pineapple, and chopped nuts (if using) with a spatula. Divide the batter evenly between the prepared pans. Bake in the preheated oven for 25–30 minutes, or until a toothpick inserted in the center comes out clean or with a few moist crumbs. The cake top should be set and lightly golden.

Step 4: Finishing

Allow the cake layers to cool in the pans for 10–15 minutes. Run a knife around the edges, then turn the layers out onto a wire rack to cool completely. Once fully cool, spread cream cheese frosting between the layers and over the top and sides. Garnish with extra chopped nuts or grated carrot if desired.

How to Serve Homemade Carrot Cake

Serve slices at room temperature for the best texture. The cake pairs well with a cup of coffee or tea. For a celebration, add a dusting of cinnamon or orange zest on top of the frosting. For a lighter dessert, serve small slices with a dollop of whipped cream or a scoop of vanilla ice cream.

How to Store Homemade Carrot Cake

  • At room temperature: Store covered on the counter for up to 2 days (unfrosted or lightly frosted with a stable frosting).
  • In the refrigerator: Keep in an airtight container or wrapped tightly for up to 5 days. Refrigerate if you use cream cheese frosting.
  • In the freezer: Wrap individual unfrosted layers tightly in plastic and foil, or freeze finished slices in airtight containers for up to 2 months. Thaw in the fridge overnight before serving.

Expert Tips for Perfect Homemade Carrot Cake

  • Grate carrots by hand for a tender texture; a box grater yields thin, moist strands. Large chunks make the cake uneven.
  • Drain pineapple well. Excess moisture can make the cake dense or gummy.
  • Measure flour by spooning it into the cup and leveling it. Too much flour makes the cake dry.
  • Do not overmix once you combine wet and dry ingredients. Mix until just combined.
  • Use room-temperature eggs for more even mixing and better rise.
  • If you want less fat, replace half the oil with unsweetened applesauce, but expect a slightly different texture.
  • Rotate pans halfway through baking if your oven has hot spots.
  • Let the cake cool completely before frosting to prevent the frosting from melting.

Delicious Variations

  • Pineapple-free carrot cake: Omit pineapple and add 1/2 cup raisins or shredded apple for a different sweet note.
  • Spiced carrot cake: Add 1/2 teaspoon ground nutmeg and 1/4 teaspoon ground cloves for deeper spice.
  • Lower-fat option: Replace half the oil with unsweetened applesauce.
  • Whole-wheat version: Substitute half the all-purpose flour with whole-wheat flour; expect a denser crumb.
  • Tropical twist: Add 1/2 cup shredded coconut and swap nuts for macadamias.
  • Cupcake version: Bake batter in a lined muffin tin at 350°F (175°C) for 18–22 minutes.

Frequently Asked Questions

  • Can I make this as a single-layer cake or cupcakes?
    Yes. For a single 9×13 pan, pour all batter into a greased 9×13-inch pan and bake 30–35 minutes. For cupcakes, bake in lined muffin tins for 18–22 minutes.

  • Do I have to use pineapple?
    No. Pineapple adds moisture and a light tang. If you omit it, add 1/2 cup raisins or an extra 1/2 cup grated carrot to maintain moisture.

  • How do I know when the cake is done?
    Insert a toothpick into the center. If it comes out clean or with a few moist crumbs, the cake is done. The top should spring back when lightly touched.

  • Why did my cake turn out dense?
    Common causes: overmixing the batter, too much flour, not enough leavening, or excess moisture from un-drained pineapple. Measure carefully and mix gently.

  • Can I make the batter ahead of time?
    You can prepare batter and refrigerate it for up to 24 hours before baking. Bring it to room temperature and give it a gentle stir before baking.

  • How long does cream cheese frosting last on the cake?
    Cream cheese frosting requires refrigeration. With frosting, store the cake in the fridge and consume within 5 days.

  • Can I use different nuts or omit them entirely?
    Yes. Pecans, walnuts, or almonds all work well. Omit them for a nut-free cake.

Conclusion

This homemade carrot cake is a comforting, crowd-pleasing dessert with moist texture and warm spice. It’s easy to adapt with simple swaps and stores well for make-ahead occasions. For another tested take and extra tips, see the Easy Carrot Cake Recipe – Inspired Taste. Enjoy baking — the kitchen will smell wonderful, and the result will be worth sharing.

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

Homemade Carrot Cake


5 Stars 4 Stars 3 Stars 2 Stars 1 Star

No reviews

  • Author: alicia
  • Total Time: 50 minutes
  • Yield: 12 servings 1x
  • Diet: Vegetarian

Description

This homemade carrot cake is moist, warmly spiced, and dotted with sweet pineapple and crunchy nuts, topped with tangy cream cheese frosting.


Ingredients

Scale
  • 2 cups all-purpose flour
  • 2 cups granulated sugar
  • 1 teaspoon baking powder
  • 1 teaspoon baking soda
  • 1/2 teaspoon salt
  • 1 teaspoon ground cinnamon
  • 4 large eggs
  • 1 cup vegetable oil
  • 2 cups grated carrots
  • 1 cup crushed pineapple (drained)
  • 1/2 cup chopped nuts (optional)
  • 1 teaspoon vanilla extract

Instructions

  1. Preheat the oven to 350°F (175°C). Grease and flour two 9-inch round cake pans. Peel and grate the carrots if you haven’t already. Drain the crushed pineapple well.
  2. In a large bowl, whisk together the flour, sugar, baking powder, baking soda, salt, and cinnamon until evenly combined. In another bowl, beat the eggs lightly, then stir in the vegetable oil and vanilla extract. Pour the wet ingredients into the dry ingredients and stir until just combined.
  3. Fold in the grated carrots, drained crushed pineapple, and chopped nuts (if using). Divide the batter evenly between the prepared pans. Bake for 25–30 minutes, or until a toothpick inserted in the center comes out clean.
  4. Allow the cake layers to cool in the pans for 10–15 minutes, then turn the layers out onto a wire rack to cool completely. Once fully cool, spread cream cheese frosting between the layers and over the top and sides.

Notes

For best texture, serve at room temperature. The cake pairs well with coffee or tea.

  • Prep Time: 20 minutes
  • Cook Time: 30 minutes
  • Category: Dessert
  • Method: Baking
  • Cuisine: American

Nutrition

  • Serving Size: 1 slice
  • Calories: 440
  • Sugar: 37g
  • Sodium: 130mg
  • Fat: 23g
  • Saturated Fat: 2g
  • Unsaturated Fat: 10g
  • Trans Fat: 0g
  • Carbohydrates: 51g
  • Fiber: 2g
  • Protein: 5g
  • Cholesterol: 100mg

More Recipes

Hi, I’m Sofia, the enthusiastic home chef behind ProDelish! I’m convinced that incredible food can be both simple and quick to prepare. At ProDelish, I share my beloved recipes that unite families at mealtime – from speedy dinner fixes to festive holiday delights. 

Scroll to Top