← All calculators
Beedy Academy · Calculators

Free oil, gas and refinery calculators

17 everyday calculations for production, terminals and refineries: properties, tank gauging, separation, gas and heaters. Formula and practice for each.

Properties and blending

API gravity, specific gravity and density

FormulaSG = 141.5 ÷ (°API + 131.5)  ·  ρ = SG × 999.016
°API
Specific gravity 60/60 °F (SG)—
Density at 60 °F (ρ)—kg/m³

The higher the API gravity, the lighter the product. Water = 10 °API; light crude > 31.1 °API; heavy crude < 22.3 °API. 60 °F = 15.56 °C.

Kinematic ↔ dynamic viscosity

Formulaμ = ν × ρ ÷ 1000
mm²/s (cSt)
kg/m³
Dynamic viscosity (μ)—mPa·s (cP)

Take ν and ρ at the same temperature: an oil's viscosity can double for 10 to 15 °C less.

Blend viscosity (Refutas method)

FormulaVBN = 14.534 × ln(ln(ν + 0.8)) + 10.975  ·  VBNm = x × VBN₁ + (1 − x) × VBN₂  ·  νm = ee(VBNm − 10.975) ÷ 14.534 − 0.8
mm²/s (cSt)
mm²/s (cSt)
%
mm²/s (cSt)
Blend VBN (VBNm)—
Blend viscosity (νm)—mm²/s (cSt)
Product 1 needed for the target viscosity—% mass

Both viscosities must be at the same temperature (often 50 °C for fuel oils). Empirical method: confirm the blend in the lab.

Two-product blend (density, sulfur)

Formulam = V × ρ ÷ 1000  ·  ρm = (m₁ + m₂) × 1000 ÷ (V₁ + V₂)  ·  Sm = (m₁S₁ + m₂S₂) ÷ (m₁ + m₂)
m³
kg/m³
% mass
m³
kg/m³
% mass
Blend density (ρm)—kg/m³
Blend sulfur (Sm)—% mass
Total mass—t

Sulfur blends by mass, density by volume (ideal mixing, no shrinkage). For a tight specification keep a margin and test the blend.

Tank gauging and measurement

Vertical tank: volume from level

FormulaV = π × D² ÷ 4 × h
m
m
Volume (V)—m³
Volume (V)—bbl
Capacity per centimetre—m³/cm

Ideal cylinder. For custody transfer use the tank's strapping table and subtract the dead bottom.

Horizontal tank: partial volume

FormulaA = R² × acos((R − h) ÷ R) − (R − h) × √(2Rh − h²)  ·  V = A × L
m
m
m
Liquid volume (V)—m³
Total capacity—m³
Fill—%

Cylindrical shell only (flat ends). Dished heads add volume: use the manufacturer's table for accounting.

Volume correction to 15 °C

Formulaα = K₀ ÷ ρ₁₅² + K₁ ÷ ρ₁₅  ·  VCF = e−α·ΔT·(1 + 0.8·α·ΔT)  ·  ΔT = T − 15  ·  V₁₅ = V × VCF
kg/m³
°C
m³
Expansion coefficient (α)—10⁻⁶/°C
Volume correction factor (VCF)—
Volume at 15 °C (V₁₅)—m³
Mass (V₁₅ × ρ₁₅)—t

Simplified method (ASTM D1250-80 Table 54A/B/D equation, no pressure correction): for training and checks, not for invoicing, which follows the full API MPMS 11.1.

BS&W and net oil volume

FormulaNSV = GSV × (1 − BS&W ÷ 100)  ·  water = GSV × BS&W ÷ 100
m³
% vol
Net standard volume (NSV)—m³
Sediment and water—m³
Net standard volume (NSV)—bbl

Common pipeline crude specification: 0.5 % (sometimes 1 %). BS&W is measured by centrifuge; water alone by Karl Fischer or distillation.

Flow conversion: bbl/d, m³/h, t/d

Formula1 bbl = 0.158987 m³  ·  m³/h = bbl/d × 0.158987 ÷ 24  ·  t/d = m³/d × ρ ÷ 1000
bbl/d
kg/m³
Volume flow—m³/d
Volume flow—m³/h
Mass flow—t/d

1 US barrel = 42 US gallons = 158.987 L. Use the density at the temperature the volume refers to (often 15 °C).

Production, separation and gas

Water cut and gas-oil ratio

FormulaWC = Qw ÷ (Qo + Qw) × 100  ·  GOR = Qg ÷ Qo
m³/d
m³/d
Sm³/d
Water cut (WC)—%
Liquid rate—m³/d
Gas-oil ratio (GOR)—Sm³/m³
Gas-oil ratio (GOR)—scf/bbl

Rates at stock-tank conditions (oil at 15 °C, gas in Sm³ at 15 °C and 101.325 kPa). 1 Sm³/m³ ≈ 5.615 scf/bbl. A rising GOR can mean an advancing gas cap.

Horizontal separator: liquid retention time

FormulaVL = L × [R² × acos((R − h) ÷ R) − (R − h) × √(2Rh − h²)]  ·  t = VL ÷ Q × 1440
m
m
m
m³/d
Liquid volume (VL)—m³
Retention time (t)—min

Common guide: 1 to 3 min for a two-phase separator on light crude, 3 to 10 min or more for three-phase service or heavy or foaming crude. Heads not counted.

Gas flow at standard conditions

FormulaQs = Q × (P + 101.325) ÷ 101.325 × 288.15 ÷ (T + 273.15) ÷ Z  ·  Qn = Qs × 273.15 ÷ 288.15
m³/h
kPa(g)
°C
Standard flow (15 °C, 101.325 kPa)—Sm³/h
Standard flow (15 °C, 101.325 kPa)—Sm³/d
Normal flow (0 °C, 101.325 kPa)—Nm³/h

Atmospheric pressure taken as 101.325 kPa. Z comes from a correlation or an AGA 8 calculation; Z = 1 for low-pressure gas.

Gas specific gravity from molar mass

FormulaSG = M ÷ 28.9647  ·  ρs = 101.325 × M ÷ (8.314462 × 288.15)
g/mol
Specific gravity, air = 1 (SG)—
Standard density (ρs, ideal gas)—kg/Sm³

Methane = 16.04 g/mol (SG 0.554); typical dry natural gas 17 to 20 g/mol. M comes from the gas chromatograph analysis (Σ yᵢ Mᵢ).

Pipeline: velocity, Reynolds number and throughput

Formulav = Q ÷ 3600 ÷ (π × d² ÷ 4)  ·  Re = v × d ÷ ν
m³/h
mm
mm²/s (cSt)
Velocity (v)—m/s
Reynolds number (Re)—
Daily throughput—bbl/d

Re < 2000: laminar flow; > 4000: turbulent. Usual velocities in liquid lines: 1 to 3 m/s.

Refining and re-refining

Fired heater: duty and efficiency

FormulaQabs = ṁ × cp × (Tout − Tin)  ·  Qf = ṁf × LHV  ·  η = Qabs ÷ Qf × 100
t/h
kJ/kg·K
°C
°C
kg/h
MJ/kg
Absorbed duty—MW
Fired duty (fuel)—MW
Heater efficiency (η)—%

Sensible heat only: if the charge partly vaporises (crude heater), use enthalpies instead. Typical efficiency on LHV: 80 to 92 %.

Distillation cut yields and mass balance

Formulayi = Pi ÷ F × 100  ·  Σ = (G + N + MD + R) ÷ F × 100
t/d
t/d
t/d
t/d
t/d
Gas and LPG yield—% mass
Naphtha yield—% mass
Middle distillate yield—% mass
Residue yield—% mass
Mass balance closure—%

Use mass flows over the same period. A closure outside 98 to 102 % points to a meter, a density or a tank level to check.

Used-oil re-refining: base-oil yield

Formuladry = F × (1 − W ÷ 100)  ·  y = B ÷ dry × 100
t
% mass
t
Dry used oil—t
Yield on dry feed—%
Yield on oil received—%
Other products and losses—t

Order of magnitude: 60 to 75 % base oil on dry used oil; the rest becomes light fuel, gas oil and an asphalt-like residue. Water is measured by distillation.

Learning and checking tools. The ranges shown are general guidance: always follow your plant's procedures, permits and set points. Nothing is sent anywhere: the calculations run in your browser.

Practise on a virtual plant ↗

The same maths, with a plant that reacts: the Beedy simulators.