Calculation methods
VCFAPI returns the Volume Correction Factor (VCF) using the density-based correction tables of ASTM D1250-04 / API MPMS Chapter 11.1-2004 — the same methodology used for custody transfer worldwide. Tables 6/24/54/60 return the VCF directly; tables 5/23/53/59 return the base density or gravity.
How VCF is calculated
1 · Input
Send the observed density and temperature in the table's native units — °API at °F for tables 5/6, relative density at °F for 23/24, and kg/m³ at °C for 53/54/59/60. C tables take the thermal expansion coefficient (α60, α15, or α20) instead of a density.
2 · Correct
The density is corrected to standard conditions using the ASTM table for the product type. Tables 6/24/54/60 yield the Volume Correction Factor directly; tables 5/23/53/59 yield the density or gravity at base conditions.
3 · Apply
Multiply your observed volume by the returned VCF to get the standard volume that enters custody transfer and inventory records. This step runs in your system.
VCF = ρobserved / ρbase
The API returns VCF directly for tables 6/24/54/60. Multiply it by your observed volume to get the standard volume. For tables 5/23/53/59 the API returns the base density/gravity. You can compute VCF from it directly (VCF = ρobserved / ρbase), or pass it into a 6/24/54/60 call if you need the VCF at a different temperature.
Supported product types
Each product type maps to the ASTM D1250-04 product group, which determines the table family and the applicable density ranges. The °API ranges shown below are the standard's commodity classification ranges; the exact input limits accepted per table are listed in the reference tables section below.
Crude Oil
Crude petroleum between -10 and 100 °API. Density is typically measured in the field at tank or pipeline temperature and corrected to base conditions.
- Examples
- Brent, WTI, and other crude grades
- API range
- -10 to 100 °API
- Tables
- 5A6A23A24A53A54A59A60A
Refined Products
Finished petroleum products split into three commodity groups: gasoline, jet fuels, and fuel oils. Density-based correction applies across the full range.
- Examples
- Gasoline, diesel, kerosene, fuel oil
- API range
- Gasoline 50–85 · Jet 37–50 · Fuel oil -10–37 °API
- Tables
- 5B6B23B24B53B54B59B60B
Lube Oil
Lubricating oils between -10 and 45 °API. Corrected using the lube-oil density tables for custody transfer and blending accounting.
- Examples
- Base oils, finished lubricants
- API range
- -10 to 45 °API
- Tables
- 5D6D23D24D53D54D59D60D
Special Applications
Liquids with an experimentally derived thermal expansion coefficient (α60, α15, or α20), used when the generalized commodity groups do not represent the liquid's thermal expansion. Requires a tested α for the specific fluid.
- Examples
- Pure products or homogeneous mixtures with a measured α
- API range
- α60: 0.00023–0.00093 /°F · α15/α20: 0.000414–0.001674 /°C
- Tables
- 6C24C54C60C
Reference tables
Tables 5–24 use temperatures in °F; tables 53–60 use °C. The API takes the table identifier and the temperature in the table's native unit — °F for 5/6/23/24, °C for 53/54/59/60. Temperatures outside −58 to 302 °F (−50 to 150 °C) are rejected, as are densities outside each table's published range.
Fahrenheit tables (5–24)
| Table | Product group | Input | Input range | Output | Precision |
|---|---|---|---|---|---|
| 5A | Crude | Observed API gravity | -13.4 to 168.9 °API | API gravity at 60 °F | 0.1 °API |
| 5B | Refined | Observed API gravity | -14.2 to 168.9 °API | API gravity at 60 °F | 0.1 °API |
| 5D | Lube oil | Observed API gravity | -14.1 to 66.3 °API | API gravity at 60 °F | 0.1 °API |
| 6A | Crude | API gravity at 60 °F | -10 to 100 °API | VCF | 0.00001 |
| 6B | Refined | API gravity at 60 °F | -10 to 100 °API | VCF | 0.00001 |
| 6C | Special | Thermal expansion coefficient α₆₀ | 0.0002300–0.0009300 /°F | VCF | 0.00001 |
| 6D | Lube oil | API gravity at 60 °F | -10 to 45 °API | VCF | 0.00001 |
| 23A | Crude | Observed relative density | 0.4710–1.1989 | Relative density at 60 °F | 0.0001 |
| 23B | Refined | Observed relative density | 0.4709–1.2065 | Relative density at 60 °F | 0.0001 |
| 23D | Lube oil | Observed relative density | 0.7151–1.2053 | Relative density at 60 °F | 0.0001 |
| 24A | Crude | Relative density at 60 °F | 0.6113–1.1646 | VCF | 0.00001 |
| 24B | Refined | Relative density at 60 °F | 0.6113–1.1646 | VCF | 0.00001 |
| 24C | Special | Thermal expansion coefficient α₆₀ | 0.0002300–0.0009300 /°F | VCF | 0.00001 |
| 24D | Lube oil | Relative density at 60 °F | 0.8017–1.1646 | VCF | 0.00001 |
Celsius tables (53–60)
| Table | Product group | Input | Input range | Output | Precision |
|---|---|---|---|---|---|
| 53A | Crude | Observed density | 470.6–1197.7 kg/m³ | Density at 15 °C | 0.1 kg/m³ |
| 53B | Refined | Observed density | 470.5–1205.4 kg/m³ | Density at 15 °C | 0.1 kg/m³ |
| 53D | Lube oil | Observed density | 714.5–1204.1 kg/m³ | Density at 15 °C | 0.1 kg/m³ |
| 54A | Crude | Density at 15 °C | 611.2–1163.7 kg/m³ | VCF | 0.00001 |
| 54B | Refined | Density at 15 °C | 611.2–1163.8 kg/m³ | VCF | 0.00001 |
| 54C | Special | Thermal expansion coefficient α₁₅ | 0.0004140–0.0016740 /°C | VCF | 0.00001 |
| 54D | Lube oil | Density at 15 °C | 801.3–1163.8 kg/m³ | VCF | 0.00001 |
| 59A | Crude | Observed density | 470.6–1197.7 kg/m³ | Density at 20 °C | 0.1 kg/m³ |
| 59B | Refined | Observed density | 470.5–1205.4 kg/m³ | Density at 20 °C | 0.1 kg/m³ |
| 59D | Lube oil | Observed density | 714.5–1204.1 kg/m³ | Density at 20 °C | 0.1 kg/m³ |
| 60A | Crude | Density at 20 °C | 606.2–1161.1 kg/m³ | VCF | 0.00001 |
| 60B | Refined | Density at 20 °C | 606.2–1160.6 kg/m³ | VCF | 0.00001 |
| 60C | Special | Thermal expansion coefficient α₂₀ | 0.0004140–0.0016740 /°C | VCF | 0.00001 |
| 60D | Lube oil | Density at 20 °C | 798.2–1160.7 kg/m³ | VCF | 0.00001 |
Group C tables apply to special applications with an experimentally derived thermal expansion coefficient (α60, α15, or α20) and are available through the API.
API request
A single request returns the result for the requested table — the VCF for tables 6/24/54/60, or the base density/gravity for tables 5/23/53/59. One credit is deducted per successful calculation.
If the input values fall outside the valid range for the requested table, the API returns422with an invalid_input error. Out-of-range requests are not charged — no credit is deducted.
# Table 6A, 86 °F, 35 °API — returns the VCF for custody transfer
POST /v1/vcf
{
"table": "6A",
"temp": 86,
"density": 35
}# 200 OK — one credit consumed:
{
"request_id": "…",
"table": "6A",
"result": 0.98765,
"credits_used": 1,
"remaining_credits": 12,
"metered_via": "credits",
"remaining_quota": null
}metered_via indicates how the call was billed:quota(subscription quota consumed),credits(credit balance debited), oroverage(metered billing via Polar).
remaining_quota is the number of calls left in your current billing period (rollover + remaining monthly quota). It isnullwhen the call was billed via credits (no active subscription quota).
| Field | Type | Required | Description |
|---|---|---|---|
| table | string | yes | Table identifier — e.g. 6A, 54B, 60C. Selects the ASTM D1250-04 table and product group. |
| temp | number | yes | Observed temperature. °F for tables 5/6 and 23/24, °C for tables 53/54/59/60. |
| density | number | yes | Observed density. °API for tables 5/6, relative density for 23/24, kg/m³ for 53/54/59/60. For C tables, the thermal expansion coefficient (α60, α15, or α20). |
Glossary
- API gravity
- A density scale where lower API values mean denser liquid. Calculated from specific gravity: the higher the API gravity, the lighter the product.
- VCF
- Volume Correction Factor — the multiplier that converts a volume measured at observed conditions to the equivalent volume at standard (base) conditions.
- Observed conditions
- The temperature at which the liquid density or volume was measured. VCFAPI corrects for temperature only (API MPMS Chapter 11.1-2004); pressure correction (Chapter 11.2) is not applied.
- Standard / base conditions
- The reference temperature to which volumes are corrected for custody transfer — typically 60 °F, 15 °C, or 20 °C depending on the table family.
- Relative density
- The ratio of the density of the liquid to the density of water at a reference temperature (60 °F).
- Standard volume
- The corrected volume at base conditions, computed as observed volume × VCF. This is the value used for transactions and inventory.
- Thermal expansion coefficient (α)
- A measured property of a specific liquid (α60, α15, or α20) used by Group C tables instead of a density input. VCFAPI accepts the coefficient directly in the density field for tables 6C/24C/54C/60C.
Start calculating
Create an account and get 20 free credits to try the calculation API.