A barrel is one of several units of volume applied in various contexts; there are dry barrels, fluid barrels (such as the U.K. beer barrel and U.S. beer barrel), oil barrels, and so forth. For historical reasons the volumes of some barrel units are roughly double the volumes of others; volumes in common use range approximately from 100 to 200 litres (22 to 44 imp gal; 26 to 53 US gal).

In the oil industry, an oil barrel is defined as 42 US gallons, which is about 159 litres, or 35 imperial gallons.

The measurement of an "oil barrel" originated in the early Pennsylvania oil fields. The Drake Well, the first oil well in the US, was drilled in Pennsylvania in 1859, and an oil boom followed in the 1860s. When oil production began, there was no standard container for oil, so oil and petroleum products were stored and transported in barrels of different shapes and sizes. Some of these barrels would originally have been used for other products, such as beer, fish, molasses, or turpentine.

The 40 gallon whiskey barrel was the most common size used by early oil producers, since they were readily available at the time.

More Info: en.wikipedia.org