It varies.
The typical American barrel is 31.5 gallons, but the typical beer barrel is 31 gallons. The UK beer barrel, on the other hand, is 43 gallons. The typical oil barrel is 42 gallons.
So, first thing you really need to do is figure out "barrel of what" before you figure out how much it...