Crude oil is almost useless as it comes out of the ground. You cannot put it in a car, a jet or a cooker. A refinery is a giant chemistry set that separates crude into fractions by boiling point, then breaks, reshapes and cleans the molecules until they meet fuel specifications. The world had a little over 100 million barrels per day of refining capacity in 2024, according to the Energy Institute Statistical Review, spread across roughly 600 to 700 sites. Here is what happens inside one, and what you get from a barrel.
What crude oil is made of
Crude is a mixture of thousands of hydrocarbons, from small molecules with four or five carbon atoms to waxy chains with 70 or more. Two properties set its value:
- API gravity, a measure of density. Light crudes (above about 31° API) contain more of the short molecules that become petrol and jet fuel. Heavy crudes (below about 22°) contain more residue.
- Sulphur content. Sweet crude has less than about 0.5% sulphur by weight, sour crude more. Sulphur has to be removed to meet modern fuel standards, and that costs money.
Brent and WTI are light and sweet. Many Middle Eastern grades are medium and sour, and Canadian oil sands bitumen or Venezuelan Merey are heavy and sour. A refinery is designed around the crudes it expects to buy, which is why the price gap between grades matters so much to refiners. The oil price guide explains how those benchmarks are set.
Step one: distillation
Every refinery starts with an atmospheric distillation column, a steel tower often 50 m tall. Crude is desalted, heated in a furnace to roughly 350 to 400 °C and fed into the bottom. Vapour rises through trays, cools, and condenses at different heights according to boiling point.
| Fraction | Approx. boiling range | Becomes |
|---|---|---|
| Refinery gas, LPG | below ~30 °C | Fuel gas, propane, butane |
| Light naphtha | ~30–90 °C | Petrol blending, petrochemical feed |
| Heavy naphtha | ~90–180 °C | Feed for the reformer (petrol) |
| Kerosene | ~150–270 °C | Jet fuel, paraffin |
| Gasoil | ~200–350 °C | Diesel, heating oil |
| Atmospheric residue | above ~350 °C | Sent to vacuum distillation |
Heating residue further at atmospheric pressure would start to crack it into coke, so it goes to a vacuum distillation unit. Lowering the pressure lets heavier fractions boil at lower temperatures. Out come vacuum gasoils (feed for cracking units) and a heavy vacuum residue used for bitumen, fuel oil or coking.
A simple refinery that only distils, a “topping” plant, ends up with a lot of low-value heavy oil. The money is in converting it.
Step two: conversion, breaking big molecules
Conversion units turn heavy fractions into light ones:
- Fluid catalytic cracking (FCC) is the workhorse of petrol-heavy refineries in the US. Vacuum gasoil meets a hot powdered catalyst at around 500 °C and breaks into petrol-range molecules, LPG and light cycle oil. The catalyst is burned clean and recycled continuously.
- Hydrocracking does a similar job under high hydrogen pressure. It makes very clean diesel and jet fuel, so it is popular in Europe and Asia where diesel demand is higher.
- Coking heats vacuum residue until it splits into lighter liquids and solid petroleum coke. Cokers let a refinery run cheap heavy crude.
Because cracked molecules are smaller and less dense, the volume of products ends up larger than the crude that went in. US refineries get about 45 gallons of products from a 42-gallon barrel. This is the processing gain.
Step three: upgrading and cleaning
Molecules from distillation and cracking still need work before they meet specifications:
- Catalytic reforming rearranges heavy naphtha into ring-shaped aromatic molecules with high octane. It also releases hydrogen, which the refinery uses elsewhere.
- Alkylation and isomerisation build high-octane, low-sulphur blending components from light gases and naphtha.
- Hydrotreating reacts fuels with hydrogen over a catalyst to strip out sulphur and nitrogen. Road diesel in the EU, the US and many Asian markets must contain no more than 10 to 15 ppm sulphur, against several thousand ppm in some crude fractions.
- Sulphur recovery units turn the hydrogen sulphide removed in hydrotreating into elemental sulphur, which is sold to fertiliser makers.
Finally, products are blended. A litre of petrol at the pump is a recipe of reformate, FCC gasoline, alkylate, isomerate and butane, plus ethanol in many countries, tuned to hit octane, vapour pressure and emissions rules for the season. See petrol vs diesel vs LPG for what those specifications mean for drivers.
What comes out of a barrel
The US Energy Information Administration publishes average yields for American refineries. Recent years look roughly like this:
| Product (US refineries, recent average) | Gallons per 42-gal barrel |
|---|---|
| Finished motor gasoline | ~19–20 |
| Distillate fuel oil (mostly diesel) | ~11–12 |
| Kerosene-type jet fuel | ~4 |
| Petroleum coke | ~2 |
| Still gas (used as refinery fuel) | ~1.5–2 |
| Hydrocarbon gas liquids (propane, butane) | ~1.5–2 |
| Asphalt, residual fuel oil, lubricants, other | ~4–5 |
| Total (including processing gain) | ~45 |
These are US numbers, and the US is unusual because it burns so much petrol. European and Indian refineries typically make more diesel than petrol, and Asian plants often run naphtha into petrochemicals. Refiners can shift yields by a few percentage points with catalyst choice and cut points, but large changes need new units.
Refinery complexity and margins
Engineers compare refineries with the Nelson Complexity Index, which scores each unit relative to crude distillation (which scores 1) and weights it by capacity. A topping plant scores 1 to 2. A typical US Gulf Coast refinery is around 10 to 13. Reliance’s Jamnagar complex in India, the largest refining site in the world at about 1.4 million barrels per day, is reported at around 21. High complexity lets a refinery buy cheap heavy, sour crude and still make premium fuels.
Refining margins are tracked with crack spreads, the gap between product and crude prices.
Illustrative example: Gasoline $2.40/gal = $100.80/bbl, diesel $2.70/gal = $113.40/bbl, crude $75/bbl (2 × 100.80 + 113.40 − 3 × 75) ÷ 3 = (201.60 + 113.40 − 225) ÷ 3 = $30/bbl
That $30 is a gross figure. Energy, catalysts, labour, maintenance and capital costs come out of it. Margins swing hard: diesel cracks spiked in 2022 after sanctions on Russian products, and fell back in 2023 to 2025 as new refineries started in the Middle East, India, China and Africa (Nigeria’s 650,000 b/d Dangote plant among them).
Refineries also use a lot of energy themselves. Furnaces, steam and hydrogen production typically consume the equivalent of several percent of the crude processed, which makes them some of the largest industrial emitters in many countries.
Malaysia’s refineries
Malaysia refines a mix of domestic and imported crude. PETRONAS runs refineries in Melaka and Kertih (Terengganu), and the Pengerang Integrated Complex in Johor hosts a 300,000 b/d refinery and petrochemical plant built under the RAPID project. It started operating in 2019 and is a joint venture between PETRONAS and Saudi Aramco. Pengerang was designed to make Euro 5 fuels and to feed petrochemical crackers on the same site. Malaysian pump prices for RON95, RON97 and diesel are tracked on the Malaysia fuel prices page, and the country’s energy mix is on the Malaysia country profile.
Where refining is heading
Oil demand for road fuel is flattening as electric cars spread, especially in China, while demand for petrochemical feedstocks and jet fuel keeps growing. The IEA’s Oil 2025 report expects global demand to plateau around the end of this decade. Refiners are responding in three ways:
- Integrating with petrochemicals, so more of each barrel becomes plastics and chemicals rather than fuel.
- Converting units to process vegetable oils and waste fats into renewable diesel and sustainable aviation fuel. See biofuels explained.
- Closing older, simpler plants, particularly in Europe, Australia and California.
The short version
A refinery separates crude by boiling point, cracks heavy molecules into lighter ones, upgrades them for octane and strips out sulphur. From a 42-gallon barrel, a US refinery makes about 45 gallons of products, almost half of it petrol. Complexity decides which crudes a plant can run profitably, and crack spreads tell you whether it is making money. To compare what those fuels contain in energy terms, try the fuel energy content calculator, and see how oil fits each country’s mix on the world energy map or the oil dashboard.
Calculators for this topic
Frequently asked questions
How much petrol comes from one barrel of crude oil?
Why does a barrel of crude make more than 42 gallons of products?
What is a crack spread?
What is the largest oil refinery in the world?
What is the difference between sweet and sour crude?
Does Malaysia refine its own oil?
Sources & references
Figures in this guide are typical ranges drawn from the sources above; your own numbers depend on location, prices and equipment. Use the linked calculators for site-specific estimates.