# API gravity

The American Petroleum Institute gravity, or API gravity, is a measure of how heavy or light a petroleum liquid is compared to water: if its API gravity is greater than 10, it is lighter and floats on water; if less than 10, it is heavier and sinks.
API gravity is thus an inverse measure of a petroleum liquid's density relative to that of water (also known as specific gravity). It is used to compare densities of petroleum liquids. For example, if one petroleum liquid is less dense than another, it has a greater API gravity. Although API gravity is mathematically a dimensionless quantity (see the formula below), it is referred to as being in 'degrees'. API gravity is graduated in degrees on a hydrometer instrument. API gravity values of most petroleum liquids fall between 10 and 70 degrees.
In 1916, the U.S. National Bureau of Standards accepted the Baumé scale, which had been developed in France in 1768, as the U.S. standard for measuring the specific gravity of liquids less dense than water. Investigation by the U.S. National Academy of Sciences found major errors in salinity and temperature controls that had caused serious variations in published values. Hydrometers in the U.S. had been manufactured and distributed widely with a modulus of 141.5 instead of the Baumé scale modulus of 140. The scale was so firmly established that, by 1921, the remedy implemented by the American Petroleum Institute was to create the API gravity scale, recognizing the scale that was actually being used.

## API gravity formulas

The formula to calculate API gravity from specific gravity (SG) is:
    ${\text{API gravity}}={\frac {141.5}{\text{SG}}}-131.5$
Conversely, the specific gravity of petroleum liquids can be derived from their API gravity value as
    ${\text{SG}}={\frac {141.5}{{\text{API gravity}}+131.5}}$
Thus, a heavy oil with a specific gravity of 1.0 (i.e., with the same density as pure water at 60 °F) has an API gravity of:
    ${\frac {141.5}{1.0}}-131.5=10.0^{\circ }{\text{API}}$

## Using API gravity to calculate barrels of crude oil per metric ton

In the oil industry, quantities of crude oil are often measured in metric tons. One can calculate the approximate number of barrels per metric ton for a given crude oil based on its API gravity:
    ${\text{barrels of crude oil per metric ton}}={\frac {{\text{API gravity}}+131.5}{141.5\times 0.159}}$
For example, a metric ton of West Texas Intermediate (39.6° API) has a volume of about 7.6 barrels.

## Measurement of API gravity from its specific gravity

To derive the API gravity, the specific gravity (i.e., density relative to water) is first measured using either the hydrometer, detailed in ASTM D1298 or with the oscillating U-tube method detailed in ASTM D4052.
Density adjustments at different temperatures, corrections for soda-lime glass expansion and contraction and meniscus corrections for opaque oils are detailed in the Petroleum Measurement Tables, details of usage specified in ASTM D1250. The specific gravity is defined by the formula below.
    ${\mbox{SG oil}}={\frac {\rho _{\text{crudeoil}}}{\rho _{{\text{H}}_{2}{\text{O}}}}}$
With the formula presented in the previous section, the API gravity can be readily calculated. When converting oil density to specific gravity using the above definition, it is important to use the correct density of water, according to the standard conditions used when the measurement was made. The official density of water at 60 °F according to the 2008 edition of ASTM D1250 is 999.016 kg/m$^3$. The 1980 value is 999.012 kg/m$^3$. In some cases the standard conditions may be 15 °C (59 °F) and not 60 °F (15.56 °C), in which case a different value for the water density would be appropriate (see standard conditions for temperature and pressure).

## Direct measurement of API gravity (hydrometer method)

There are advantages to field testing and on-board conversion of measured volumes to volume correction. This method is detailed in ASTM D287.
The hydrometer method is a standard technique for directly measuring API gravity of petroleum and petroleum products. This method is based on the principle of buoyancy and utilizes a specially calibrated hydrometer to determine the API gravity of a liquid sample.
The procedure typically involves the following steps:
* Sample preparation: The petroleum sample is brought to a standard temperature, usually 60°F (15.6°C), to ensure consistency in measurements across different samples and conditions.
* Hydrometer selection: An appropriate API gravity hydrometer is chosen based on the expected range of the sample. These hydrometers are typically calibrated to read API gravity directly.
* Measurement: The hydrometer is gently lowered into the sample contained in a cylindrical vessel. It is allowed to float freely until it reaches equilibrium.
* Reading: The API gravity is read at the point where the surface of the liquid intersects the hydrometer scale. For maximum accuracy, the reading is taken at the bottom of the meniscus formed by the liquid on the hydrometer stem.
* Temperature correction: If the measurement is not performed at the standard temperature, a correction factor is applied to adjust the reading to the equivalent value at 60°F.
The hydrometer method is widely used due to its simplicity and low cost. However, it requires a relatively large sample volume and may not be suitable for highly viscous or opaque fluids. Proper cleaning and handling of the hydrometer are crucial to maintain accuracy, and for volatile liquids, special precautions may be necessary to prevent evaporation during measurement.

## Classifications or grades

Generally speaking, oil with an API gravity between 40 and 45° commands the highest prices. Above 45°, the molecular chains become shorter and less valuable to refineries.
Crude oil is classified as light, medium, or heavy according to its measured API gravity.
* Light crude oil has an API gravity higher than 31.1° (i.e., less than 870 kg/m$^3$)
* Medium oil has an API gravity between 22.3 and 31.1° (i.e., 870 to 920 kg/m$^3$)
* Heavy crude oil has an API gravity below 22.3° (i.e., 920 to 1000 kg/m$^3$)
* Extra heavy oil has an API gravity below 10.0° (i.e., greater than 1000 kg/m$^3$)
However, not all parties use the same grading. The United States Geological Survey uses slightly different ranges.
Crude oil with API gravity less than 10° is referred to as extra heavy oil or bitumen. Bitumen derived from oil sands deposits in Alberta, Canada, has an API gravity of around 8°. It can be diluted with lighter hydrocarbons to produce diluted bitumen, which has an API gravity of less than 22.3°, or further "upgraded" to an API gravity of 31 to 33° as synthetic crude.