Preheat your oven to 350°F (175°C).
Grease and flour your cake pans.
In a large mixing bowl, sift together the flour, sugar, cocoa powder, baking powder, baking soda, and salt.
In another bowl, cream together the softened butter and sugar until light and fluffy.
Add the eggs one at a time, mixing well after each addition.
Stir in the Kahlua and mix until combined.
Gradually mix in the dry ingredients, alternating with hot water.
Pour the batter into the prepared cake pans and smooth the tops.
Bake for 25–30 minutes or until a toothpick inserted in the center comes out clean.
Let the cakes cool in the pans for about 10 minutes before transferring them to a wire rack.
Once cooled, frost with your favorite chocolate frosting or glaze as desired.