API Calculation Formula Calculator
Use this premium calculator to convert between API gravity, specific gravity, and density. The tool applies the standard petroleum industry relationship used to classify crude oils and compare fluid lightness relative to water.
Interactive API Gravity Calculator
Enter specific gravity directly, or leave blank and use density below.
If specific gravity is blank, the calculator will estimate specific gravity from density.
Enter the API gravity value to convert it back to specific gravity and density.
Expert Guide to the API Calculation Formula
The API calculation formula is one of the most widely used petroleum property equations in refining, trading, storage, and reservoir engineering. API gravity tells you how heavy or light a petroleum liquid is compared with water. It is expressed in degrees API, and while it behaves like a simple number, it carries substantial commercial and operational meaning. A higher API gravity means the fluid is lighter than water and generally easier to refine into lighter-value products. A lower API gravity indicates a heavier oil, usually associated with greater viscosity, more complex handling, and often more intensive upgrading requirements.
The standard formula is straightforward: API gravity = (141.5 / specific gravity at 60/60°F) – 131.5. If you know API gravity and want to work backward, the reverse formula is specific gravity = 141.5 / (API gravity + 131.5). These equations are simple enough to perform by hand, but in practice engineers must be careful about the reference temperature, units, and the distinction between density and specific gravity. That is why a structured calculator is useful. It removes conversion mistakes and instantly translates a lab or field value into an actionable gravity classification.
What API gravity actually measures
API gravity does not directly measure chemical composition. Instead, it is a transformed density indicator. The petroleum industry adopted API gravity because it offers a convenient scale for ranking oils by relative lightness. Since crude oil value is strongly influenced by the share of gasoline, naphtha, kerosene, jet fuel, and diesel that can be produced, a compact index like API gravity became commercially important. On its own, API gravity does not fully determine product yields, sulfur content, or refinery margin, but it remains one of the first numbers traders and engineers look at when describing a crude stream.
Specific gravity is the ratio of a fluid density to the density of water at the reference temperature. API gravity simply converts that ratio to a scale that becomes easier to compare across oils. Because the scale is inverted, lighter oils have higher API values. For example, a fluid with a specific gravity of 0.85 has a higher API gravity than a fluid with a specific gravity of 0.95.
The core API gravity formula
The standard petroleum relationship is:
- API gravity = (141.5 / SG at 60/60°F) – 131.5
- Specific gravity = 141.5 / (API + 131.5)
Where SG means specific gravity relative to water at the reference temperature. These formulas are based on an older but still widely used conventional petroleum density framework. The key practical issue is to ensure you are using values adjusted to the proper reference temperature. If you use density measured at another temperature without correction, the resulting API gravity can be misleading because petroleum liquids expand and contract noticeably with temperature changes.
How to calculate API gravity step by step
- Measure the fluid density or specific gravity under the correct reference condition.
- If you have density, convert it to specific gravity by dividing the fluid density by the density of water at the same reference condition.
- Insert the specific gravity into the formula: 141.5 divided by SG, then subtract 131.5.
- Round the result according to your reporting convention, often to one or two decimal places.
- Use the API value to classify the crude as heavy, medium, light, or condensate-like.
For example, assume a crude has a specific gravity of 0.8500. Then API gravity = (141.5 / 0.8500) – 131.5 = 34.97. That places the crude in the light oil range by many market conventions. If another sample has a specific gravity of 0.9500, the API gravity becomes about 17.45, which is clearly much heavier.
Common API gravity categories
There is no single universal set of market cutoffs for every contract, but common industry bands are widely used. The table below shows practical category ranges together with approximate specific gravity and density boundaries. These values are derived from the API formula and are useful for quick classification.
| Crude Category | API Gravity Range | Approx. Specific Gravity Range | Approx. Density Range at 60°F | Operational Meaning |
|---|---|---|---|---|
| Extra heavy | Below 10.0 | Above 1.000 | Above 999 kg/m³ | Heavier than water, often high viscosity, usually difficult to transport and refine without upgrading. |
| Heavy | 10.0 to 22.3 | 1.000 to 0.920 | 999 to 919 kg/m³ | Requires more thermal conversion and often produces a larger residual fraction. |
| Medium | 22.3 to 31.1 | 0.920 to 0.870 | 919 to 869 kg/m³ | Balanced refinery feedstock with moderate processing complexity. |
| Light | 31.1 to 45.0 | 0.870 to 0.802 | 869 to 801 kg/m³ | Higher proportion of lighter fractions, generally attractive for many refinery configurations. |
| Very light or condensate | Above 45.0 | Below 0.802 | Below 801 kg/m³ | Very light stream, often rich in naphtha-range material and highly volatile components. |
Why API gravity matters commercially
Refineries are not all built the same. A simple refinery generally benefits from lighter, sweeter crude streams because they naturally contain a larger share of material that can become transportation fuels with less severe processing. Complex refineries, by contrast, can often handle heavier crudes and upgrade more low-value fractions using cokers, hydrocrackers, and desulfurization units. Because of this, API gravity directly influences crude pricing, logistics strategy, and refinery economics.
API gravity is also important in storage and blending. When multiple streams are mixed, the resulting density and API gravity affect custody transfer calculations, tank gauging, and line scheduling. A small shift in API gravity can change the marketability of a blend, especially when contractual specifications or refinery operating windows are tight. That is why routine testing and quick conversion tools remain essential for terminals, laboratories, and upstream production sites.
Real refining context: what a barrel of crude can become
The connection between API gravity and refinery value is easier to understand when you look at product output. According to the U.S. Energy Information Administration, a 42-gallon barrel of crude oil yields more than 42 gallons of finished products because of refinery processing gain. The exact results depend on crude quality and refinery configuration, but the official U.S. averages below show why lighter fractions matter economically.
| Average U.S. Product Yield from One 42-Gallon Barrel | Approximate Gallons | Why API Gravity Matters |
|---|---|---|
| Motor gasoline | 19.4 | Lighter crudes often support strong gasoline blendstock production with less conversion severity. |
| Distillate fuel oil | 12.5 | Middle distillates remain a major value driver, especially in diesel-focused markets. |
| Jet fuel | 4.0 | Jet-range material benefits from crude assays with favorable kerosene fractions. |
| Hydrocarbon gas liquids | 2.3 | Very light streams can increase recoverable LPG and related products. |
| Petroleum coke | 2.2 | Heavier crudes often produce more residuum and coker feed. |
| Still gas | 1.9 | Refinery fuel gas reflects conversion intensity and plant balance. |
| Heavy fuel oil | 1.7 | Heavier feedstocks can elevate lower-value heavy fractions if conversion capacity is limited. |
| Asphalt and road oil | 1.3 | Residual fractions become more important as crude gets heavier. |
These official output figures help explain why the API calculation formula is more than an academic conversion. It is a fast screening tool for predicting how a crude might behave in the market and in the refinery. While sulfur, metals, acid number, and true boiling point distribution are also critical, API gravity is often the first density-based signal used to estimate processing complexity and value.
API gravity versus density: what is the difference?
Density is a direct physical property, typically reported in kg/m³ or lb/ft³. Specific gravity is a ratio, so it has no units. API gravity is a transformed density scale. Engineers often move between all three, and conversion mistakes occur when people forget which reference basis they are using. If a lab reports density but your contract requires API gravity, you must first establish the proper reference density and then calculate specific gravity before applying the API equation. A calculator like the one above handles those steps more consistently than manual math in a spreadsheet cell.
What affects measurement accuracy
- Temperature: petroleum density changes with temperature, so uncorrected field readings can produce the wrong API gravity.
- Sampling quality: nonrepresentative samples from tanks or flowing streams may distort the result.
- Entrained gas or water: contamination can bias density and specific gravity measurements.
- Instrument calibration: hydrometers, oscillating U-tube density meters, and laboratory balances must be maintained properly.
- Reporting basis: always confirm whether the value is at 60°F, 15°C, or another stated basis.
How engineers use API gravity in practice
In upstream operations, API gravity helps describe produced fluids from a reservoir and supports flow assurance decisions. In pipeline and terminal systems, it influences segregation strategy and blend control. In trading, it appears in crude assays, cargo specifications, and pricing formulas. In refining, it is used alongside sulfur and distillation data to evaluate unit loading, hydrogen consumption, and expected product slate. In environmental and spill response contexts, density and API gravity help indicate whether an oil is likely to float or sink and how it may weather over time.
API gravity can also be a valuable teaching tool. Because water has an API gravity of 10, the scale creates an intuitive benchmark. Values above 10 float relative to water. Values below 10 are denser than water. That simple relationship helps explain why some extra heavy oils and bitumen-like materials behave very differently from light sweet crudes in transport and spill scenarios.
Using this calculator effectively
- If you have specific gravity, choose the mode that calculates API gravity from specific gravity or density.
- Enter the specific gravity directly for the most precise result.
- If you only have density, enter the density and select the proper unit.
- Click Calculate to view API gravity, estimated density, and crude classification.
- If you already know API gravity, switch modes and let the tool calculate specific gravity and density for you.
Authoritative references for deeper study
For readers who want official background on petroleum refining, product yields, and measurement standards, start with these sources:
- U.S. Energy Information Administration on refining crude oil
- U.S. Energy Information Administration barrel yield data
- National Institute of Standards and Technology measurement resources
Final takeaway
The API calculation formula is simple, but its impact is broad. It connects laboratory measurements to the commercial language of crude quality. By converting specific gravity into a practical industry scale, API gravity helps engineers, traders, and refinery planners make faster decisions about handling, blending, pricing, and processing. If you use the formula correctly, especially with the proper temperature basis and unit conversions, it becomes one of the most useful quick-reference tools in petroleum work.