Skip to content

How an oil refinery works

A refinery takes in crude oil and sends out gasoline, jet fuel, diesel, asphalt and petrochemical feedstocks. Along the way it separates, converts, treats and blends. This guide walks through each step and explains why no two refineries are alike.

The four jobs of a refinery

  • Separate crude oil into fractions by boiling point.
  • Convert heavy, low-value fractions into lighter, more valuable ones.
  • Treat products to remove sulfur and other impurities.
  • Blend components into finished fuels that meet specification.

Refinery capacity is quoted in barrels per day of crude processed. What a refinery can make from those barrels depends on which units it has, and that is what sets its complexity.

Crude receipt and desalting

Crude arrives by pipeline or tanker and is stored in tanks, often blended from several grades to suit the refinery's units. Before processing it is desalted: mixed with wash water and passed through an electrostatic field so that salts, water and sediment separate out. Left in, the salts would corrode equipment and foul catalysts downstream.

Distillation

The heart of every refinery is the atmospheric distillation unit, or crude unit. Crude is heated in a furnace and fed into a tall column. Lighter components rise as vapour and condense on trays near the top, while heavier ones condense lower down, so each fraction is drawn off at a different height.

FractionApproximate boiling rangeWhere it goes next
Gases and LPGBelow about 30 °CRefinery fuel gas, propane and butane sales
Light naphthaAbout 30–90 °CGasoline blending and isomerization
Heavy naphthaAbout 90–180 °CCatalytic reforming
KeroseneAbout 150–250 °CJet fuel, after treating
Diesel and gas oilAbout 250–350 °CDiesel, after hydrotreating
Atmospheric residueAbove about 350 °CVacuum distillation

The residue cannot be heated much further without breaking down, so a vacuum distillation unit separates it at low pressure, where it boils at lower temperatures. This produces vacuum gas oil for the conversion units and a heavy vacuum residue for the coker or for asphalt.

Conversion: cracking heavy oil into light products

Distillation alone leaves too much heavy oil and too little gasoline and diesel. Conversion units break large molecules into smaller ones:

  • Fluid catalytic cracking (FCC). Vacuum gas oil meets a hot, powdered catalyst that behaves like a fluid. The cracked products are mostly gasoline components and light olefins such as propylene. The coke left on the catalyst is burned off in a regenerator, and the hot catalyst is reused.
  • Hydrocracking. Cracking under high hydrogen pressure over a catalyst yields high-quality, low-sulfur diesel and jet fuel.
  • Coking. A delayed coker heats vacuum residue until it cracks into lighter liquids and gases, leaving solid petroleum coke behind. Cokers are what let a refinery run heavy crudes such as oil sands blends.

Making better gasoline

  • Catalytic reforming reshapes heavy naphtha molecules into high-octane reformate. It also produces hydrogen, which the refinery's hydrotreaters need.
  • Isomerization rearranges light naphtha into higher-octane branched molecules.
  • Alkylation combines isobutane with light olefins from the FCC to make alkylate, a clean, high-octane blending component.

Treating and sulfur recovery

Hydrotreaters react fuels with hydrogen over a catalyst to remove sulfur and nitrogen. Specifications are strict: ultra-low sulfur diesel is limited to 15 parts per million of sulfur in the United States and 10 ppm in the European Union.

The sulfur removed ends up as hydrogen sulfide, which amine units capture. A Claus sulfur recovery unit then converts it into elemental sulfur, which is sold, largely to make fertiliser.

Blending and dispatch

Finished gasoline is a blend of many components (reformate, FCC gasoline, alkylate, isomerate and butane) mixed to meet octane, vapour pressure and seasonal specifications. Diesel and jet fuel are blended and tested in the same way. Products leave by pipeline, ship, rail and truck to terminals, where additives and, in many markets, biofuels such as ethanol are added.

Refinery complexity and margins

A simple hydroskimming refinery has little more than distillation, reforming and treating, so it produces a lot of low-value fuel oil. A complex coking refinery can turn almost every barrel into light products, and can run cheaper heavy, sour crudes. The Nelson Complexity Index scores refineries by the relative cost of their units compared with distillation alone.

Profitability is tracked through the crack spread, the gap between product prices and crude cost. A complex refinery earns extra margin by buying discounted crudes and converting more of each barrel.

Every few years each major unit shuts down for a planned turnaround to be inspected, cleaned and repaired. Turnarounds involve thousands of workers and tightly sequenced work packages, and they are among the largest and most time-critical projects a refinery undertakes.

Where data and software fit

Refineries run on inspections, operator rounds, permits to work and turnaround checklists, alongside the process data from their control systems. Moving that field work from paper to mobile devices makes it faster to complete, easier to audit and quicker to act on.