Preheat the oven to 350°F. Grease a 9x13-inch baking pan or line it with parchment paper and set aside.
In a medium bowl, whisk together the cake flour, baking powder, baking soda, and salt. Set aside.
In the bowl of a stand mixer, cream together the butter and sugar until light and fluffy, about 5 minutes
Add the eggs one at a time, beating well after each addition. Then, mix in the vanilla extract, sour cream, and coconut oil. Don't worry if the batter looks a bit curdled at this stage—it's totally fine.
Scrape down the bottom and sides of the bowl as needed.
Gradually add the flour mixture in three parts, alternating with milk (start with flour, then milk, then flour, milk, and finish with flour). Mix until the batter is smooth and well-combined.
Transfer the batter to the prepared pan and spread it out evenly. Bake for 30 to 35 minutes at 350°F, or until a toothpick inserted into the center comes out clean with little to no crumbs
Allow the cake to cool completely on a wire rack (about 2 hours) before frosting.