These carrot cake bars are a simplified take on a layered carrot cake, with the cream cheese frosting baked right in. Soft, moist, and full of warm spice, they make an effortless homemade dessert any time of year.

Carrot cake season is here—though these bars are so delicious I make them year-round. This recipe converts the beloved layered carrot cake into a portable, easy-to-slice bar with a swirled cream cheese topping baked into each piece. No elaborate frosting, no layer assembly; just simple steps and reliably delicious results.
Why you’ll love these carrot cake bars
- Quick and straightforward to prepare.
- No stand mixer required—an electric hand mixer works perfectly.
- Uses common pantry ingredients and fresh carrots; you likely have everything on hand.
How to make carrot cake bars
Start by preparing the carrot cake layer.

- Beat together granulated sugar, large eggs, vegetable oil, and vanilla until smooth.
- Whisk the dry ingredients—flour, cinnamon, baking soda, baking powder, and salt—then gradually add them to the wet ingredients until just combined.
- Fold in the grated carrots using a rubber spatula. If desired, stir in raisins or chopped walnuts for extra texture and flavor.
- Scrape the batter into a prepared 9-inch square baking pan and smooth the top.
Next, prepare the cream cheese topping and create the swirl.

- Beat room-temperature cream cheese until very smooth.
- Add granulated sugar, vanilla, and a pinch of salt and beat until well combined.
- Dollop the cream cheese mixture over the cake batter and use a butter knife to swirl it gently through the batter.
- Bake until set—about 32 to 42 minutes depending on your oven and pan. A toothpick inserted near the center should come out clean or with just a few moist crumbs.
Allow the bars to cool completely on a wire rack before slicing for clean edges and the best texture.
Storage and make-ahead tips
Because the bars include a cream cheese swirl, store them refrigerated once fully cooled. Keep them covered with plastic wrap, foil, or in an airtight container for up to 3 to 4 days.
These bars also freeze well. Slice them before freezing and wrap each piece tightly; they will keep for about 2 months. Thaw in the refrigerator or at room temperature when ready to serve.
Variations and additions
Classic add-ins for carrot cake work beautifully in these bars. Stir in up to 1 cup of chopped walnuts or pecans, or add raisins after folding in the grated carrot. For a slightly spicier profile, add a pinch of ground cloves or nutmeg along with the cinnamon.
Scaling the recipe
You can double this recipe and bake it in a 13- by 9-inch pan for larger gatherings. Baking time will increase; begin checking for doneness at around 40 minutes, but be prepared to bake longer until the center is set.
A few recipe photos

Recipe
Ingredients
Cake layer
- 1 cup all-purpose flour
- 1 1/2 teaspoons ground cinnamon
- 1 teaspoon baking soda
- 1/2 teaspoon baking powder
- 3/4 teaspoon salt
- 1 cup granulated sugar
- 2 large eggs
- 1/2 cup vegetable oil
- 1 teaspoon vanilla extract
- 1 1/2 cups grated carrot (about 2–3 carrots)
- 1 cup raisins or chopped walnuts, optional
Cream cheese topping
- 8 ounces full-fat cream cheese, at room temperature
- 1/3 cup granulated sugar
- 1/2 teaspoon vanilla extract
- 1/8 teaspoon salt
Instructions
- Preheat the oven to 350°F (175°C). Spray a 9-inch square baking pan with cooking spray and set aside.
- Whisk the flour, cinnamon, baking soda, baking powder, and salt in a medium bowl.
- In a large bowl, combine the sugar, eggs, oil, and vanilla. Beat with an electric mixer until smooth.
- With the mixer on low, gradually mix in the dry ingredients until just combined. Fold in the grated carrots and any optional add-ins.
- Scrape the batter into the prepared pan and smooth the top. Set aside.
- Beat the cream cheese until smooth, then add the sugar, vanilla, and salt and beat until combined. Dollop over the cake layer and use a knife to create a gentle swirl.
- Bake for 32 to 42 minutes, or until a tester inserted near the center comes out clean. Allow to cool completely on a wire rack before slicing.
- Store covered in the refrigerator for up to 3–4 days, or freeze tightly wrapped for up to 2 months.
If you try this recipe, enjoy—these bars are a reliable, crowd-pleasing dessert that captures all the best qualities of carrot cake with far less effort.