These carrot cake bars are soft, moist, and perfectly spiced with warm cinnamon flavor. Packed with freshly grated carrots and topped with creamy frosting, they deliver classic carrot cake taste in an easy-to-slice bar form—perfect for gatherings, holidays, or an everyday sweet treat.
Preheat your oven to 350°F (175°C) and line a 9×13-inch baking pan with parchment paper or lightly grease it.
In a medium bowl, whisk together the flour, baking powder, baking soda, cinnamon, and salt.
In a large bowl, beat together the granulated sugar, brown sugar, and oil until well combined. Add the eggs one at a time, mixing well after each addition. Stir in the vanilla extract.
Gradually add the dry ingredients into the wet mixture and mix just until combined. Fold in the grated carrots and chopped walnuts if using.
Pour the batter evenly into the prepared pan and smooth the top. Bake for 30–35 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 cream cheese and butter together until smooth and creamy. Add powdered sugar gradually and beat until fluffy. Mix in the vanilla extract.
Spread the frosting evenly over the cooled bars. Slice into squares and serve.