Preheat oven to 350°F and prepare 2, 8-inch round cake pans with nonstick cooking spray.
In the bowl of a stand mixer with a whisk attachment, sift the flour, sugar, cocoa, baking soda, baking powder, and salt. Mix until combined.
In another bowl, combine the buttermilk, oil, eggs, and vanilla.
With the mixer on low speed, slowly add the wet ingredients to the dry. With the mixer still on low, add the coffee and stir just to combine, scraping the bottom of the bowl with a rubber spatula.
Pour the batter into two 8-inch round prepared pans and bake for 30 to 40 minutes, or until a cake tester or toothpick comes out mostly clean (not wet).
Cool in the pans for 30 minutes, then turn them out onto a cooling rack and cool completely before cutting and adding frosting.