API to Density Calculator
Convert API gravity into specific gravity, density in kg/m³, and density in lb/gal using standard petroleum industry relationships. Built for engineers, lab analysts, refinery teams, traders, and students who need fast and reliable conversions.
Results
Enter an API gravity value and click Calculate Density to see the conversion.
Expert Guide to Using an API to Density Calculator
An API to density calculator helps convert a petroleum liquid’s API gravity into a more intuitive measure of mass per unit volume. In oil and fuel operations, API gravity is widely used because it quickly indicates whether a liquid is light or heavy compared with water. Density, however, is often required for mass balance, custody transfer, blending, laboratory reporting, tank inventory, shipping documents, and process design. When these two properties need to be linked fast and accurately, a good calculator becomes an essential tool.
API gravity is an inverse expression of specific gravity developed by the American Petroleum Institute. The higher the API number, the lighter the petroleum liquid. A lower API number indicates a heavier liquid with a higher density. This relationship is not linear, which means a simple subtraction or rough estimate can cause errors. Instead, standard conversion formulas are used. The standard equation is Specific Gravity at 60°F = 141.5 / (API + 131.5). Once specific gravity is known, density can be estimated by multiplying by the density of water at the relevant reference condition.
Why API gravity matters in petroleum operations
API gravity appears everywhere across the hydrocarbon value chain. Upstream teams use it to classify crude oil quality. Midstream operators use it when estimating line fill, tank stocks, and blending behavior. Refiners consider API gravity when predicting product yields because lighter crudes generally produce more high value fractions such as gasoline, kerosene, and diesel after processing. Commercial teams also use API gravity to compare benchmark crudes and assess pricing differentials.
Density, on the other hand, is often the operational quantity needed in calculations. If you are converting volume to mass, designing pumps, calculating hydrostatic head, sizing storage, or checking compliance paperwork, density is typically the property you need. That is why the API to density conversion is one of the most common petroleum property calculations performed in labs, terminals, and engineering offices.
How the calculation works
The conversion follows a two step process. First, API gravity is converted to specific gravity. Second, specific gravity is converted to density.
- Start with API gravity.
- Calculate specific gravity at the standard reference point using SG = 141.5 / (API + 131.5).
- Convert specific gravity to density.
- If using SI units, density is approximately SG × 999.016 kg/m³ at 15°C for practical calculator use.
- If using US customary units, density in lb/gal can be estimated as SG × 8.337.
For example, a fluid with an API gravity of 35 has a specific gravity of about 0.8498. That corresponds to a density of roughly 849 kg/m³. This puts the liquid in the range of a medium to light crude oil. If the API value rises to 45, the density drops significantly. If the API value falls to 20, the density increases and the crude becomes substantially heavier.
| API Gravity | Specific Gravity | Approx. Density kg/m³ | Approx. Density lb/gal | Typical Interpretation |
|---|---|---|---|---|
| 10 | 1.0000 | 999 | 8.34 | Very heavy, near water density |
| 20 | 0.9340 | 933 | 7.79 | Heavy crude range |
| 30 | 0.8762 | 875 | 7.31 | Medium crude range |
| 35 | 0.8498 | 849 | 7.09 | Common light crude range |
| 40 | 0.8251 | 824 | 6.88 | Light crude range |
| 50 | 0.7796 | 779 | 6.50 | Very light hydrocarbon liquid |
Common crude oil classification ranges
There is no single global legal classification that every company uses identically, but these broad categories are common in industry discussion and commercial reporting:
- Heavy crude: below about 22.3 API
- Medium crude: about 22.3 to 31.1 API
- Light crude: above about 31.1 API
- Extra heavy crude: near or below 10 API, where the liquid approaches or exceeds water density behavior
These categories matter because gravity strongly influences transportation, refining complexity, and product slate. Heavy crudes often require more upgrading, dilution, or thermal support for handling. Lighter crudes typically flow more easily and can produce larger shares of lighter fractions in conventional refining units.
Reference temperatures and why they matter
One source of confusion is that density changes with temperature. As liquid temperature rises, density usually decreases because the liquid expands. API gravity is standardized at 60°F. In many SI based laboratories and technical documents, density may be reported at 15°C, which is very close to 59°F. In practical calculator work, the difference is small enough that many tools provide an approximate conversion without a full temperature correction model. However, for custody transfer, formal certification, and regulatory reporting, users should follow the appropriate ASTM petroleum measurement standards and apply the required correction methods.
This calculator is designed for fast engineering and educational use. It gives an accurate standard conversion from API gravity to specific gravity and then to density at standard reference conditions. If you need high precision temperature compensated values for contracts or tax relevant reporting, use the relevant ASTM petroleum tables or certified software systems.
Where API to density conversion is used
- Tank farm inventory calculations
- Mass and volume reconciliation
- Pipeline operations and line fill estimates
- Blending design and blend verification
- Laboratory sample reporting
- Marine cargo documentation
- Refinery crude scheduling and feed planning
- Academic exercises in petroleum engineering and chemical engineering
Example calculation
Assume you have a sample measured at 28 API. To estimate density, first calculate specific gravity:
SG = 141.5 / (28 + 131.5) = 141.5 / 159.5 = 0.8871
Now convert to density in SI form:
Density = 0.8871 × 999.016 = about 886.2 kg/m³
To convert to lb/gal:
Density = 0.8871 × 8.337 = about 7.40 lb/gal
This result is consistent with a medium crude oil. If you compare it to a 40 API crude, you will find the 40 API sample has a much lower density and is correspondingly lighter.
| Property | Lower API Example | Higher API Example | Operational Effect |
|---|---|---|---|
| API Gravity | 20 API | 40 API | Higher API means lighter fluid |
| Approx. Density kg/m³ | 933 kg/m³ | 824 kg/m³ | Lower density reduces mass per unit volume |
| Flow Behavior | Typically more resistant to flow | Typically easier to pump | Can affect heating and transport requirements |
| Refining Tendency | Often more heavy fractions | Often more light fractions | Influences refinery yield economics |
Important limitations of any API to density calculator
Even an excellent calculator has limitations. API gravity alone does not fully describe a petroleum liquid. Two samples with similar API values may behave differently because of sulfur content, viscosity, composition, dissolved gases, pour point, or contaminant levels. Also, density conversions based only on API gravity assume a standard reference condition and a simplified water density basis. That is enough for rapid conversion, but not always enough for legal metrology or advanced process simulation.
Another point to remember is that petroleum products span a wide range. Gasoline blending components, condensates, jet fuel, diesel, lubricants, and heavy fuel oils all occupy different density ranges. The API to density formula itself remains valid as a gravity conversion, but the broader interpretation depends on the product family. Users should not infer every performance characteristic from density alone.
Best practices for accurate use
- Verify the measured API gravity and reference temperature.
- Use standardized lab methods where possible.
- Do not mix observed field temperature data with standard reference calculations without correction.
- For trade, custody transfer, or regulated reports, use recognized standards and certified workflows.
- Record unit systems clearly to avoid kg/m³ and lb/gal mixups.
Who benefits from this calculator
This tool is useful for petroleum engineers, process engineers, terminal supervisors, inspectors, marine cargo teams, quality laboratories, university researchers, and energy finance professionals. Students also benefit because the calculator provides an immediate visual connection between API gravity and density. Seeing the trend on a chart makes it easier to understand why a higher API number means a lighter product and a lower density.
Authoritative references and further reading
For formal property data, technical standards, and educational support, review these reputable sources:
- U.S. Energy Information Administration (EIA)
- U.S. Department of Energy, National Energy Technology Laboratory
- Cornell University engineering resources
In summary, an API to density calculator turns a petroleum specific gravity index into a practical engineering number. It is simple, fast, and highly useful when you need to estimate density for crude oils and related hydrocarbon liquids. Used correctly, it improves decision making in storage, transport, process design, and commercial analysis. For the best results, always pair the calculation with proper unit handling, clear reference temperature awareness, and recognized standards when precision is critical.