
I bake this Costco-style carrot cake when I want a big, moist cake with all the classic mix-ins: carrots, pineapple, walnuts, coconut, and raisins or dried cranberries. It is not a quiet little spice cake. It is chunky in the best way, sweet, fragrant, and sturdy enough to cut into 12 slices without collapsing under a creamy topping.
Carrot cake taught me patience. If I frost it while warm, the topping slides and the crumb tears. If I forget to drain the pineapple a little, the center can bake up heavy. The version I trust now keeps the batter thick, folds the carrots and fruit in gently, and waits until the cake is fully cool before the final layer goes on.
I like this cake because every bite has something happening. The carrots keep it moist, pineapple adds brightness, coconut gives chew, and walnuts bring a little crunch. I use cinnamon and vanilla to pull those pieces together rather than bury them under spice.
Why I keep coming back to this
- It makes 12 servings, so it is useful for a dinner table or a weekend dessert with leftovers.
- Crushed pineapple with juice keeps the cake moist without needing a complicated syrup.
- Carrots, walnuts, coconut, and raisins or cranberries give texture in every slice.
- Vegetable oil keeps the crumb soft even after refrigeration.
- The batter is mixed by hand, which means I do not need a stand mixer for the cake itself.
- The flavor improves after a night in the fridge, so I can bake it ahead.
What I use and why it matters
- All-purpose flour, 2 cups.This gives the cake structure. I whisk it well with the dry ingredients so the batter bakes evenly.
- White sugar, 1 1/2 cups.Carrot cake needs enough sweetness to balance the vegetables, pineapple, nuts, and spice.
- Baking soda, 2 teaspoons.This helps the cake rise and works well with the acidic buttermilk and pineapple.
- Ground cinnamon, 2 teaspoons.I keep the spice focused so the carrot and pineapple still come through.
- Salt, 1/4 teaspoon.A small amount makes the sweetness taste cleaner.
- Vegetable oil, 3/4 cup.Oil gives the cake its soft, moist crumb and keeps it from drying out.
- Eggs, 3 large, at room temperature.Room temperature eggs mix more evenly into the oil and sugar.
- Pure vanilla extract, 2 teaspoons.Vanilla softens the edges of the cinnamon and pineapple.
- Buttermilk or whole milk, 3/4 cup.I prefer buttermilk for tenderness, but whole milk works.
- Carrots, 2 cups shredded.Freshly shredded carrots are worth it. Bagged shreds are often dry and thick.
- Crushed pineapple with juice, 1 can.I drain off excess liquid if it looks very wet, but I keep enough juice for moisture.
- Walnuts, 1 cup chopped.They add crunch and a slightly bitter balance to the sweet cake.
- Flaked coconut, 1 cup.Coconut adds chew and a gentle toasted note around the edges.
- Raisins or dried cranberries, 1 cup.I use raisins for classic flavor and cranberries when I want a tart bite.
The cooling step I never skip
This cake needs to cool completely before frosting. I know it is tempting to rush because the smell is warm and cinnamon-heavy, but warm cake melts the topping and pulls crumbs into every swipe. I let the pan sit until the bottom no longer feels warm, then I frost.
The crumb should be moist but not wet. When I insert a toothpick, I look for a few soft crumbs, not raw batter. Because pineapple and carrots vary in moisture, I check near the center and near one edge before calling it done.
How I make it
Step 1 — Preheat and prepare the pan
I preheat the oven to 350°F (175°C) and prepare the baking pan with grease and parchment if I want easy lifting. Carrot cake sticks when the fruit sugars meet the pan, so I do not skip prep.
Step 2 — Combine the dry ingredients
In a large bowl, I whisk the flour, white sugar, baking soda, salt, and ground cinnamon. I make sure there are no little baking soda lumps because they taste sharp in the finished cake.
Step 3 — Mix the wet ingredients
In another bowl, I whisk the vegetable oil, eggs, and vanilla extract until the mixture looks smooth. I add the buttermilk or whole milk and whisk again so the batter has even moisture.
Step 4 — Bring the batter together
I pour the wet mixture into the dry mixture and fold with a spatula. Once the flour is mostly incorporated, I fold in the shredded carrots, crushed pineapple, coconut, walnuts, and raisins or dried cranberries.
Step 5 — Bake until set
I spread the batter evenly in the prepared pan and bake for 35-40 minutes. The cake is done when the top springs back lightly and a toothpick comes out clean or with a few moist crumbs.
Step 6 — Cool, frost, and slice
I cool the cake completely before adding cream cheese frosting. Once frosted, I slice into 12 pieces with a clean knife, wiping between cuts if I want neat squares.
Tips from my kitchen
- Grate the carrots fresh.I get a softer cake from fresh shreds than from dry bagged carrots.
- Watch the pineapple.If it is swimming in juice, I drain a little so the center does not bake heavy.
- Fold, do not beat.Once the flour is wet, I switch to gentle folding to keep the crumb tender.
- Cool fully before frosting.Warm cake turns frosting loose and messy.
- Chill before clean slicing.Thirty minutes in the fridge helps the topping set.
Variations I have actually tried
- Cranberry-walnut:I use dried cranberries instead of raisins for a tart edge.
- No coconut:I leave out the flaked coconut when I want a smoother crumb.
- Pecan swap:I use chopped pecans instead of walnuts for a sweeter nut flavor.
- Extra spice:I add a small pinch of nutmeg with the cinnamon when I want more warmth.
- Cupcake style:I portion the batter into lined muffin cups and start checking much earlier than the cake time.
Storing and reheating
Because carrot cake is moist and usually frosted, I store it covered in the refrigerator for up to 5 days. I like to let slices sit at room temperature for 15-20 minutes before eating so the crumb softens again.
Unfrosted cake freezes well. I wrap cooled slices tightly and freeze for up to 2 months. I thaw in the refrigerator, then frost or serve with a spoonful of cream cheese topping when ready.
What I serve with it
I serve thin slices after a rich meal and thicker slices with coffee in the afternoon. A cold glass of milk, hot coffee, or unsweetened tea all balance the sweet, spiced crumb.
Frequently asked questions
Can I use pre-shredded carrots?
I can, but I prefer freshly grated carrots because they are moister and finer. Bagged carrots can make the cake feel coarse.
How do I know the cake is done?
The top should spring back lightly and a toothpick should come out clean or with moist crumbs. Wet batter means it needs more time.
Do I have to use pineapple?
For this version, I keep the pineapple because it is part of the moisture and flavor. Leaving it out changes the batter balance.
Can I make it ahead?
Yes. I often bake it a day ahead, refrigerate it, and slice it after the frosting has set.
Why did my frosting slide?
The cake was probably still warm. I cool it completely before frosting and chill briefly before slicing.
If you bake it, I would like to know whether you chose raisins or dried cranberries.

Costco carrot cake
Description
A moist Costco-style carrot cake with shredded carrots, crushed pineapple, walnuts, coconut, cinnamon, and raisins or dried cranberries. I cool it fully before frosting for clean slices.
Ingredients You’ll Need
Instructions
- Preheat the oven to 350°F (175°C) and prepare the baking pan with grease and parchment if desired.
- In a large bowl, whisk the flour, white sugar, baking soda, salt, and ground cinnamon.
- In a separate bowl, whisk the vegetable oil, eggs, vanilla extract, and buttermilk or whole milk until combined.
- Pour the wet mixture into the dry mixture and fold until mostly combined.
- Fold in the shredded carrots, crushed pineapple with juice, flaked coconut, chopped walnuts, and raisins or dried cranberries.
- Spread the batter evenly in the prepared pan and bake for 35-40 minutes, until a toothpick comes out clean or with moist crumbs.
- Cool completely, then frost with cream cheese frosting if using and cut into 12 slices.
Nutrition Facts
Servings 12
- Amount Per Serving
- Calories 264kcal
- % Daily Value *
- Total Fat 20g31%
- Saturated Fat 3g15%
- Trans Fat 0.1g
- Sodium 265mg12%
- Potassium 70mg2%
- Total Carbohydrate 18g6%
- Dietary Fiber 2g8%
- Protein 4g8%
- Calcium 21 mg
- Iron 1.3 mg
* Percent Daily Values are based on a 2,000 calorie diet. Your daily value may be higher or lower depending on your calorie needs.
Note
Fresh carrots matter. I grate them myself for a softer crumb.
Manage the pineapple juice. If the can is very wet, I drain a little so the center bakes evenly.
Cool before frosting. Warm cake makes frosting slide.
Chill for neat cuts. A brief chill helps the topping set.
Frequently Asked Questions
Yes, but freshly grated carrots are moister and give a softer cake.
A toothpick should come out clean or with moist crumbs, and the top should spring back lightly.
Yes. The cake will have a smoother crumb, though it loses some chew.
Yes. Bake and frost a day ahead, then keep it covered in the refrigerator.
Too much pineapple liquid or underbaking can cause that. Drain excess juice and check the center carefully.