Preheat the oven to 350ºF. Grease and line three 8-inch cake pans.
In a large bowl, whisk together flour, sugar, cocoa powder, baking powder, baking soda, salt, and espresso powder (if using).
In another bowl, whisk together eggs, vegetable oil, buttermilk, sour cream, and vanilla extract.
Combine wet and dry ingredients, then add hot coffee and mix until smooth.
Divide batter into pans and bake for 30-35 minutes.
Let cakes cool before frosting.