Preheat the oven to 350F/180C.
Grease and flour three 9" cake pans. You can also use 8" pans for a taller cake.
In a large saucepan heat stout, coffee and butter together until the mixture comes to a gentle simmer.
Add cocoa powder while whisking continuously to avoid lumps Beat until smooth. Put it in the fridge to cool.
Blend flour, sugar, baking soda, and salt in a different bowl.
In a third bowl, mix eggs, vanilla and sour cream with an electric mixer.
Once chocolate mixture is cool, add it to the egg and sour cream mixture. Mix them together.
Add flour mixture a little bit at a time and beat on low speed until combined.
Divide batter equally among the pans.
Bake cakes in the preheated oven for 30 minutes.
Remove the cakes from the oven and cool on a wire rack.