These Carrot Cake Bars are soft and moist, packed with yummy grated carrots and warm spices. Topped with creamy cream cheese frosting, they make a perfect treat any time of the day!
Honestly, who can resist that sweet frosting? I always sneak a little extra on top! 🥕💕 Plus, they’re super easy to make, so you can enjoy these delicious bars in no time!
Key Ingredients & Substitutions
All-purpose flour: This is your base ingredient for the bars. You can swap it with whole wheat flour for a healthier twist, but you might need a bit more liquid to keep the moisture.
Carrots: Freshly shredded carrots are key for moisture and texture. If you’re in a pinch, store-bought shredded carrots (often called “matchstick” carrots) work well too.
Spices: The combination of cinnamon, nutmeg, and ginger gives the bars their warm flavor. If you don’t have all spices on hand, you can use pumpkin pie spice instead—just use a bit less since it’s more concentrated.
Nuts: I love adding walnuts for a crunchy texture, but you can use pecans or leave them out completely if you prefer a nut-free version.
Cream cheese: For the frosting, if cream cheese isn’t available, Greek yogurt could work as a tangy alternative, but the texture won’t be as rich.
How Do I Ensure My Carrot Cake Bars Are Perfectly Moist?
The moisture in these bars comes from the combination of oil, shredded carrots, and optional pineapple. Here’s how to maximize it:
- Don’t skip the oil. It keeps the bars moist; alternatives like applesauce can be used for a lighter option, but you may need to adjust other wet ingredients.
- Shred the carrots finely. This helps them integrate better, providing great moisture and taste without chunks.
- Make sure to measure your flour correctly. Spoon it into your measuring cup and level it off to avoid dense bars.
- Check for doneness using a toothpick; it should come out clean but not dry.

How to Make Carrot Cake Bars with Cream Cheese Frosting
Ingredients You’ll Need:
For the Carrot Cake Bars:
- 2 cups all-purpose flour
- 1 1/2 teaspoons baking powder
- 1/2 teaspoon baking soda
- 1/2 teaspoon salt
- 1 1/2 teaspoons ground cinnamon
- 1/2 teaspoon ground nutmeg
- 1/2 teaspoon ground ginger
- 1 cup granulated sugar
- 1/2 cup brown sugar, packed
- 3 large eggs
- 1 cup vegetable oil (or canola oil)
- 2 teaspoons vanilla extract
- 2 1/2 cups finely shredded carrots
- 1 cup chopped walnuts or pecans (optional)
- 1/2 cup crushed pineapple, drained (optional)
- 1/2 cup raisins (optional)
For the Cream Cheese Frosting:
- 8 oz (225g) cream cheese, softened
- 1/2 cup (1 stick) unsalted butter, softened
- 3 to 4 cups powdered sugar, sifted
- 1 teaspoon vanilla extract
- Chopped walnuts or pecans for garnish
How Much Time Will You Need?
This delightful recipe will take you about 15 minutes for preparation and around 35 to 40 minutes for baking. After that, make sure to cool the cake completely before frosting—it’s best to allow it to chill for at least 30 minutes to an hour. In total, plan for around 1.5 to 2 hours from start to finish, including cooling time.
Step-by-Step Instructions:
1. Preheat the Oven:
First, get your oven ready by preheating it to 350°F (175°C). To make removing the bars easier later, grease and flour a 9×13-inch baking pan or line it with parchment paper.
2. Mix the Dry Ingredients:
In a medium bowl, whisk together the flour, baking powder, baking soda, salt, cinnamon, nutmeg, and ginger. This will be your dry mix, so set it aside for later!
3. Combine the Wet Ingredients:
In a large mixing bowl, combine the granulated sugar, brown sugar, eggs, oil, and vanilla extract. Use a whisk or a mixer to beat them together until everything is smooth and well combined—this will be your wet mixture.
4. Combine Wet and Dry Ingredients:
Now, gradually add your dry mix to the wet mixture. Gently mix them together just until they’re combined—be careful not to overmix; we want the bars to stay light and fluffy!
5. Add the Good Stuff:
Next, fold in the finely shredded carrots, and if you’re using them, add the chopped nuts, crushed pineapple, and raisins. Mix until evenly distributed throughout the batter.
6. Bake the Cake:
Pour the batter into the prepared pan and spread it evenly. Place it in the oven and bake for 35 to 40 minutes. To check if it’s done, insert a toothpick in the center; it should come out clean when the bars are ready.
7. Cool the Cake:
After baking, remove the pan from the oven and let the cake cool completely in the pan on a wire rack. This will take about an hour. Cooling is important so that the frosting doesn’t melt!
8. Make the Cream Cheese Frosting:
While the cake is cooling, prepare your frosting! In a medium bowl, beat the softened cream cheese and butter until smooth and creamy. Gradually add the powdered sugar, one cup at a time, mixing well after each addition until you reach your desired consistency and sweetness. Stir in the vanilla extract.
9. Frost the Bars:
Once the carrot cake bars are completely cooled, spread the cream cheese frosting evenly over the top. Don’t be shy—make it nice and thick!
10. Add Final Touches:
For a gorgeous finish, sprinkle some chopped walnuts or pecans over the frosting for garnish.
11. Serve and Enjoy:
Finally, cut the bars into squares or rectangles, serve, and enjoy! These delicious carrot cake bars are perfect for any occasion or just a sweet treat any day of the week!
Can I Use Different Types of Sugar in This Recipe?
Absolutely! You can use coconut sugar or brown sugar instead of granulated sugar for a more natural sweetness. Just keep in mind that using all brown sugar might give the cake a slightly denser texture.
What Can I Substitute for Eggs?
If you need a vegan option or can’t use eggs, you can substitute each egg with 1/4 cup of unsweetened applesauce, or use a flaxseed meal replacement by mixing 1 tablespoon of flaxseed meal with 2.5 tablespoons of water, letting it sit for a few minutes to thicken.
How Do I Store Leftover Carrot Cake Bars?
Store any leftover carrot cake bars in an airtight container in the refrigerator for up to 5 days. If you want to freeze them, wrap each bar tightly in plastic wrap and then in foil before placing them in a freezer bag. They can last up to 3 months in the freezer!
Can I Make These Bars Gluten-Free?
Yes, you can substitute all-purpose flour with a gluten-free 1:1 baking blend. Make sure it contains xanthan gum for proper structure. Check the rest of the ingredients, too, to ensure they’re gluten-free!
