Soft and warmly spiced carrot cake bars made with grated carrots and crushed pineapple, topped with a thick layer of homemade cream cheese frosting and ready in just 50 minutes
Preheat your oven to 350°F. Line a 9x13-inch baking pan with parchment paper or lightly grease it. In a medium bowl, whisk together the flour, baking powder, baking soda, salt, cinnamon, and nutmeg until combined.
In a large bowl, whisk the oil, granulated sugar, brown sugar, eggs, and vanilla together until smooth and well blended.
Stir in the grated carrots and drained crushed pineapple until evenly distributed through the wet mixture.
Add the dry ingredients to the wet mixture and stir just until incorporated — don't overmix. Fold in the chopped nuts if using.
Spread the batter evenly into your prepared pan. Bake for 30 to 35 minutes, until a toothpick inserted in the center comes out clean. Allow the bars to cool completely in the pan before adding any frosting. This step is non-negotiable — frosting warm bars will result in a melted, sliding mess.
To make the frosting, beat the softened cream cheese and butter together until completely smooth. Add the powdered sugar, vanilla, and salt, then beat until light and creamy.
Spread the frosting evenly over the fully cooled bars, then slice and serve.
Notes
Grate your carrots finely. A box grater or food processor works great. Finely grated carrots blend into the batter seamlessly, while coarser grating can leave big chunks.
Drain the pineapple really well. Press it in a sieve or squeeze it in a paper towel to remove as much liquid as possible. Too much moisture from the pineapple can make the bars too dense or wet in the center.
Don't overmix the batter once the dry ingredients go in. Mix just until no streaks of flour remain for the most tender bars.
Use room temperature ingredients for the frosting. Both the cream cheese and butter need to be fully softened or you'll end up with lumpy frosting. Pull them from the fridge at least an hour before you start.
Cool completely before frosting — even if the bars feel only slightly warm, the frosting will slide. Pop them in the fridge to speed up the cooling process if needed.
Chill before slicing for the cleanest, most defined cuts. A sharp knife wiped clean between cuts works perfectly.