Preheat the oven to 350°F (175°C). Grease a 9×13-inch pan (or line with parchment for easy lifting).
In a large bowl, combine the flour, sugars, spices, leavening, and salt.
In another bowl, whisk together the eggs, melted butter, oil, buttermilk, and vanilla until smooth.
Add the wet ingredients to the dry ingredients, and mix just until combined.
Over-mixing can make the cake dense. Stop as soon as no streaks of flour remain.
Fold in the finely shredded carrots and nuts (and any variations).
Spread into the pan and bake 30–36 minutes, or until the center springs back and a tester comes out clean.
Cool completely before frosting.
To make the frosting:
Melt the butter in a saucepan over medium heat. Cook, stirring often, until the butter foams, the milk solids turn deep golden, and it smells toasty (usually 5–7 minutes).
Transfer to a heatproof bowl and chill it until it’s opaque and just starting to firm up (about 30–40 minutes in the refrigerator).
{You don’t want it fully solid; you just want it soft but scoopable.}
In a mixing bowl, beat the cream cheese until smooth. Add the cooled browned butter and mix until fully incorporated.
Add 3 cups (330g) of confectioners’ sugar, vanilla, and salt. Beat until light and creamy. If you want it thicker, add the remaining sugar ¼ cup at a time.
Frost the cooled cake.
Even slight warmth can cause cream cheese frosting to loosen and slide.
Video
Notes
Serving size: This 9×13 cake is listed as 16 servings, but you can cut larger slices for 12 or smaller pieces for up to 20, depending on how you’re serving it.
Use the small holes of a box grater to finely shred the carrots for the best texture.
Be sure the browned butter is opaque and just starting to firm up before mixing with the cream cheese. If it’s too warm, the frosting may be loose.
Store the frosted cake covered in the refrigerator for up to 4 days. Let slices sit at room temperature for 20–30 minutes before serving.
The unfrosted cake can be wrapped well and frozen for up to 2 months. Thaw overnight in the refrigerator before frosting.