Chewy Carrot Cake Bars with Cream Cheese Frosting

Carrot cake bars have a moist, spiced carrot cake base loaded with grated carrots, crushed pineapple, and chopped nuts, finished with a tangy cream cheese frosting. They’re easy to make and ideal for feeding a crowd.

Plated carrot cake bars next to a glass of milk.

If you enjoyed the carrot cake bread I shared earlier, you’ll love these carrot cake bars too. They offer the same classic flavors in a simpler, easier-to-serve format.

Bar desserts are perfect for gatherings: they’re essentially sheet cakes that are quick to slice and hand out. These carrot cake bars are a great choice for parties, potlucks, holidays, or whenever you want a cozy, spiced dessert without fussing over layers or decorating.

Sliced carrot cake bars on a wooden board.

Why you’ll love these carrot cake bars

The texture is tender and moist thanks to oil in the batter, grated carrots, and crushed pineapple. A warm blend of cinnamon and a touch of nutmeg gives the cake its comforting spice. Chopped nuts add a pleasant crunch, and the cream cheese frosting balances sweetness with a bright, tangy finish.

Baked in a half sheet pan, these bars are easy to cut to any size, so the same batch can feed a small family or a large crowd. They work well for Easter, Mother’s Day, Thanksgiving, or just a sweet weekday treat.

Two carrot cake bars stacked on a plate.

How to make carrot cake bars

This is an oil-based batter, so you can whisk it by hand—no stand mixer required. The method is straightforward: combine wet ingredients, whisk dry ingredients, fold in carrots, pineapple, and nuts, then bake and frost once cooled.

Ingredients you’ll need

For the bars:

  • 4 large eggs
  • 1 cup granulated sugar
  • ⅔ cup lightly packed light brown sugar
  • 1 cup vegetable oil (or another neutral oil)
  • 2 teaspoons pure vanilla extract
  • 2 cups all-purpose flour
  • 2 teaspoons baking powder
  • 1 teaspoon baking soda
  • 1 tablespoon ground cinnamon
  • ¼ teaspoon ground nutmeg
  • 1 teaspoon salt
  • 2 cups peeled and grated carrots
  • 8 ounces crushed pineapple, drained
  • ⅔ cup chopped pecans or walnuts (optional)
Carrot cake bar ingredients arranged on a countertop.

For the cream cheese frosting:

  • 12 ounces cream cheese, room temperature
  • 6 tablespoons unsalted butter, softened
  • 1 1/2 teaspoons pure vanilla extract
  • 3 cups confectioners’ sugar, sifted

Tip: peel and grate whole carrots rather than using pre-shredded bagged carrots—freshly grated carrots give a better texture. If you omit nuts for allergies or preference, the bars are still excellent.

Wet ingredients for carrot cake bars whisked in a white bowl.

Prepare a half sheet pan (13×18 inches) by spraying it with nonstick spray and lining it with parchment paper. Preheat the oven to 350°F.

In a large bowl, whisk the eggs with both sugars until smooth, then whisk in the oil and vanilla. In a separate bowl, whisk together the flour, baking powder, baking soda, cinnamon, nutmeg, and salt. Stir the dry ingredients into the wet ingredients until just combined.

Carrot cake bar batter mixed in a white bowl.

Fold in the grated carrots, drained pineapple, and chopped nuts if using. Spread the batter evenly into the prepared pan and bake at 350°F for 15–18 minutes, or until a toothpick inserted in the center comes out clean. Allow the bars to cool completely before frosting.

To make the frosting, beat the room-temperature cream cheese, softened butter, and vanilla on medium-high speed for about 3 minutes. Reduce speed to low and gradually add the sifted confectioners’ sugar until incorporated. Increase speed again and beat 2–3 minutes more until light and fluffy. Spread evenly over the cooled bars.

Frosted carrot cake bars in a half sheet pan.

Storage

Store frosted carrot cake bars in an airtight container in the refrigerator for up to 3 days. Bring them to room temperature before serving for the best flavor and texture.

To freeze, slice bars first and place them on a parchment-lined tray to freeze for 1–2 hours until firm. Wrap individually or in layers with plastic wrap and store in a zip-top freezer bag for up to one month. Thaw overnight in the refrigerator or for a few hours at room temperature. If frosting was frozen separately, let it soften in the fridge and re-whip briefly before spreading.

Overhead view of sliced carrot cake bars topped with cream cheese frosting.

Make-ahead tip

You can bake and cool the bars ahead of time, then wrap the entire pan tightly with plastic wrap and foil and freeze for up to 2 months. Make the frosting and freeze it in an airtight container. When ready to serve, thaw the cake at room temperature and thaw the frosting in the refrigerator overnight. Bring the frosting to room temperature and whip it briefly before spreading.

Bite from a carrot cake bar on a plate.

Frequently asked questions

I can’t have pineapple—can I leave it out?

The crushed pineapple helps keep the bars moist and tender, so it’s best not to omit it. If you need a pineapple-free carrot cake, consider another carrot cake recipe that doesn’t include pineapple.

What’s the best way to grate the carrots?

A box grater works well—peel the carrots first. If you prefer, use the grater attachment on a food processor for faster prep.

I don’t like vegetable oil. What can I use instead?

Use any neutral-flavored oil you prefer, such as avocado oil, or another mild-tasting vegetable oil.

Carrot Cake Bars

By: Jamie

Carrot cake bars feature a moist, flavorful carrot cake base packed with carrots, pineapple, and chopped nuts topped with tangy cream cheese frosting. These bars are simple to make and are perfect for feeding a crowd.

Equipment

  • Half sheet pan (13×18 inches)
  • Mixing bowls
  • Whisk and spatula

Ingredients

For the bars:

  • 4 large eggs
  • 1 cup granulated sugar
  • ⅔ cup light brown sugar, lightly packed
  • 1 cup vegetable oil (or neutral oil)
  • 2 teaspoons pure vanilla extract
  • 2 cups all-purpose flour
  • 2 teaspoons baking powder
  • 1 teaspoon baking soda
  • 1 tablespoon cinnamon
  • ¼ teaspoon ground nutmeg
  • 1 teaspoon salt
  • 2 cups peeled and grated carrots
  • 8 ounces crushed pineapple, drained
  • ⅔ cup chopped pecans or walnuts (optional)

For the cream cheese frosting:

  • 12 ounces cream cheese, room temperature
  • 6 tablespoons unsalted butter, softened
  • 1 1/2 teaspoons pure vanilla extract
  • 3 cups confectioners’ sugar, sifted

Instructions

  1. Preheat oven to 350°F. Grease a half sheet pan and line with parchment paper.
  2. In a large bowl, whisk eggs with both sugars until smooth. Whisk in oil and vanilla.
  3. In another bowl, whisk together flour, baking powder, baking soda, cinnamon, nutmeg, and salt. Stir the dry ingredients into the wet ingredients until just combined.
  4. Fold in grated carrots, drained pineapple, and nuts if using. Spread batter into prepared pan.
  5. Bake 15–18 minutes, or until a toothpick in the center comes out clean. Cool completely.
  6. For the frosting, beat cream cheese, softened butter, and vanilla on medium-high for 3 minutes. Reduce speed and gradually add confectioners’ sugar until incorporated, then beat 2–3 minutes until fluffy. Spread over cooled bars.

Notes

  • Measure flour correctly for consistent results.
  • If you don’t have brown sugar, a substitute can be used; softened brown sugar improves texture.
  • Freshly peeled and grated carrots are preferable to pre-shredded bagged carrots for best texture.
  • Nuts are optional—leave them out for allergies or preference.

Storage & Nutrition

Store in an airtight container in the fridge up to 3 days. Freeze slices for up to 1 month. Nutrition per serving (approx): 390 kcal.