This yellow cake with chocolate frosting is soft, buttery, and perfectly moist, baked in an easy single-layer sheet pan. Topped with a rich, smooth chocolate frosting that spreads effortlessly and sets beautifully, it’s a simple, from-scratch dessert that never goes out of style.
Preheat the oven to 350°F and spray a 9x13 pan with non-stick spray. Set aside.
To a measuring cup, add the whole milk and vinegar. Stir and let set for at least 5 minutes.
1 cup whole milk, 1 Tablespoon white vinegar
To a large mixing bowl, whisk together the flour, sugar, baking powder, baking soda, and salt.
3 cups all purpose flour, 1½ cups granulated white sugar, 2 teaspoons baking powder, ½ teaspoon baking soda, ½ teaspoon kosher salt
Make a well in the center of the dry ingredients and pour in the milk mixture, melted butter, eggs & yolks, and vanilla. Stir until combined and no traces of flour remain.
¾ cup unsalted butter, 2 large eggs, 2 large egg yolks, 1 teaspoon vanilla extract
Pour the cake batter into the prepared baking dish and bake for 20 minutes. Check for doneness - a toothpick inserted into the center should come out clean or with a moist crumb. You make need 5-10 additional minutes depending on your oven and pan used.
Allow the cake to cool while you make the frosting.
To make the chocolate frosting
To a large mixing bowl, add the softened butter, powdered sugar, cocoa powder, salt, milk, and vanilla. Use a hand mixer to beat on low to medium until fully mixed. Drizzle in more milk if needed.
½ cup unsalted butter, 3 cups powdered sugar, ½ cup unsweetened cocoa powder, ¼ teaspoon kosher salt, ¼ cup whole milk, 1 teaspoon vanilla extract
Once fully cooled, frost the cake with an offset spatula and top with sprinkles.
rainbow sprinkles
Notes
Because I don't keep buttermilk on hand, the whole milk + vinegar hack "makes" buttermilk. If you have buttermilk, 1 cup can be used in place of the milk + vinegar mixture.
Make sure you butter is cooled before adding to the mixture or your eggs will scramble.
A metal baking pan heats more evenly (I prefer this aluminum pan). A glass baking dish can be used but will heat slower. Because of this, bake times can vary. I recommend checking for doneness starting at 20 minutes and baking for additional time, if needed.
Store leftovers covered at room temperature, or in the fridge, for up to 4 days.