Preheat oven to 350°F. Grease a 9×13-inch baking pan really well. We also like to add parchment paper so we can easily remove the cake from the pan, later.
In a small bowl, whisk together the flour, baking powder, baking soda, and salt. Set aside.
2 cups all-purpose flour, 1 tablespoon baking powder, ½ teaspoon baking soda, 1.5 teaspoons kosher salt
In a separate large bowl, or in a stand mixer with a paddle attachment, beat the butter and sugar together on high-speed for a few minutes until smooth. Make sure to scrape the sides of the bowl as needed to ensure everything is incorporated.
1 cup unsalted butter, 1 ½ cups white sugar
Add in the eggs and vanilla, and cream together until combined on medium speed. Then, mix in the sour cream until combined.
2 large eggs, 1.5 tablespoons vanilla extract, ½ cup sour cream
Add half of the dry ingredients and half of the milk and beat on low speed until combined. Add the rest of the dry ingredients and milk and beat on low speed until combined. Do not overmix, mix until just completely combined, ensuring that you scraped the sides. The batter will be thick. We commend switching to a whisk or rubber spatula to ensure everything is well incorporated without overmixing.
1 cup whole milk
Spread the cake batter into your prepared pan. Smooth it out into an even layer.
Bake the cake for 25-30 minutes, or until the top is golden brown and a toothpick inserted into the center comes out clean. Rotate the pan a couple of times during baking to ensure it cooks evenly. While the cake cools, make the frosting.