An oil refinery is essentially a large chemical factory that turns crude oil into usable fuels and industrial materials. The process is not simply a matter of “heating oil until petrol comes out.” Modern refineries first separate crude into different hydrocarbon fractions, then chemically convert some of those fractions into more useful molecules, remove unwanted compounds such as sulfur, and finally blend the resulting streams into fuels that meet precise specifications. The three broad stages are separation, conversion and treatment.
Petrol, diesel and jet fuel therefore come from different parts of the same crude-oil feedstock and often require different combinations of refinery processes. A refinery’s design determines how much of each product it can make and how effectively it can turn heavier, lower-value fractions into higher-value fuels. This is why two refineries processing similar amounts of crude can have very different product mixes, costs and economic performance.
What is crude oil?
Crude oil is a naturally occurring mixture of hydrocarbons formed over geological time. It contains molecules of different sizes, structures and chemical properties, along with smaller quantities of compounds containing sulfur, nitrogen and other elements.
Not all crude oil is the same.
Two crude oils can require very different refinery processes because of differences in density and sulfur content. Lighter crude generally contains a greater proportion of molecules that can become high-value fuels with relatively less processing. Heavier crude contains more large molecules and usually requires additional conversion equipment. High-sulfur crude also requires more treatment to meet fuel-quality requirements.
This matters when a refinery is designed.
A sophisticated refinery can be built to process heavier or higher-sulfur crude and still produce large quantities of petrol, diesel and jet fuel. A simpler refinery has fewer options for upgrading those heavy fractions.
The refinery process at a glance
The easiest way to understand refining is to follow the crude through four stages:
Crude oil → separation → conversion → treatment and blending → finished fuels
The first stage determines what is in the crude. The second changes some of those molecules. The third removes impurities and improves fuel quality. The final stage combines different refinery streams into products that meet specifications.
| Refinery stage | What happens | Main purpose |
|---|---|---|
| Separation | Heated crude is separated into fractions according to boiling range | Sort hydrocarbons into useful streams |
| Conversion | Heavy molecules are cracked, rearranged or otherwise upgraded | Produce more valuable lighter products |
| Treatment | Sulfur and other unwanted compounds are removed | Meet fuel-quality and environmental requirements |
| Blending | Different refinery streams are combined | Produce finished petrol, diesel, jet fuel and other products |
| Storage and distribution | Finished products are stored and transported | Deliver fuels to airports, filling stations, industries and other customers |
Step 1: Crude oil is heated
The refining process begins when crude oil is transported into storage tanks and then pumped toward the refinery’s crude-distillation unit.
The crude is heated in furnaces until much of it becomes vapor.
It is then sent into a large distillation column.
This is one of the most recognizable structures in an oil refinery: a tall tower containing a series of trays or other internal equipment that allows vapours to rise and liquids to condense at different temperatures.
The principle is relatively simple.
Different hydrocarbons have different boiling points.
As the vapours move through the column, heavier components condense lower down while lighter components travel farther upward before condensing.
Step 2: The crude is separated into fractions
The distillation column does not immediately produce perfectly finished petrol, diesel and jet fuel.
Instead, it produces fractions—groups of hydrocarbons with similar boiling ranges.
The lightest materials rise toward the top.
Middle-range fractions are collected farther down.
The heaviest material remains near the bottom.
A simplified refinery therefore begins to look like this:
Top: refinery gases and light hydrocarbons
Upper-middle: naphtha and gasoline-range material
Middle: kerosene and jet-fuel-range material
Lower-middle: diesel and gas oils
Bottom: heavy oils and residue
The exact boundaries vary according to the crude, refinery design and desired products.
This first separation is important, but it is only the beginning.
Why distillation alone is not enough
If a refinery simply separated crude and sold the resulting fractions, it would leave substantial amounts of heavy material with relatively limited value as modern transportation fuel.
There is also a mismatch between what naturally comes out of crude oil and what consumers want.
For example, a market may demand large quantities of petrol and diesel even when the crude naturally produces more heavy fractions than the refinery wants.
Modern refineries solve this problem through conversion.
Instead of accepting the molecular composition of the crude, they change it.
Step 3: Cracking turns heavy molecules into lighter ones
One of the most important refinery processes is cracking.
Heavy hydrocarbon molecules are broken into smaller molecules that can be used to make lighter, more valuable products.
Think of it as taking a long molecular chain and cutting it into shorter chains.
There are several forms of cracking, including:
- Fluid catalytic cracking
- Hydrocracking
- Thermal cracking
Fluid catalytic cracking uses heat and a catalyst to break larger hydrocarbons into smaller molecules.
Hydrocracking combines catalysts and hydrogen under high pressure to convert heavy oils into lighter products. It can produce high-quality components for diesel, jet fuel and petrol.
This conversion capability is one reason sophisticated refineries can extract more economic value from a barrel of crude.
Step 4: Reforming improves petrol components
Another important process is catalytic reforming.
Some relatively light refinery streams, particularly naphtha, are not ideal petrol components in their original form.
Reforming rearranges their molecules to create higher-octane components suitable for gasoline blending.
This matters because modern petrol engines require fuel with particular combustion characteristics.
Octane is not simply a measure of how much energy petrol contains. It indicates a fuel’s resistance to knocking, an undesirable form of premature combustion in spark-ignition engines.
A refinery therefore needs to produce petrol components with the appropriate octane characteristics rather than simply producing the largest possible volume of liquid fuel.
Step 5: Hydrotreating removes unwanted compounds
Refineries also have to clean their intermediate products.
One of the most important processes is hydrotreating.
Hydrogen is used with catalysts to remove sulfur and other contaminants from petroleum streams.
This is important because sulfur in fuels contributes to sulfur-oxide emissions and can interfere with emissions-control equipment.
Hydrotreating can also remove nitrogen compounds and improve other properties of refinery streams.
This is why refinery complexity matters.
Producing a fuel that meets modern specifications can require substantially more equipment than simply separating crude into fractions.
How petrol is made
Petrol, also called gasoline in some markets, is not normally one single refinery stream.
It is a blend of components produced by different refinery units.
Potential components can come from:
- Straight-run naphtha
- Catalytic reforming
- Fluid catalytic cracking
- Alkylation
- Other conversion processes
Refinery operators combine these components in carefully controlled proportions.
The final blend must meet specifications such as octane rating and vapour-pressure requirements, among other characteristics.
This explains why petrol production is more complicated than simply taking the lightest fraction from a distillation tower.
How diesel is made
Diesel generally comes from the middle-distillate portion of crude oil, but modern diesel production often involves additional processing.
Refineries can use gas oils and other intermediate streams to produce diesel-range material.
Hydrotreating removes sulfur and other impurities, while hydrocracking can convert heavier molecules into high-quality middle-distillate products.
The resulting fuel must satisfy specifications governing properties such as sulfur content and combustion behaviour.
Diesel is particularly important because it powers heavy trucks, buses, agricultural machinery, construction equipment, generators and many other engines.
How jet fuel is made
Jet fuel is generally produced from the kerosene-range portion of crude oil.
The refinery separates the appropriate boiling-range material and then processes it to meet the demanding requirements of aviation fuel.
Jet fuel needs carefully controlled physical and chemical properties because aircraft operate across a wide range of temperatures and conditions.
Hydrocracking can also be an important source of high-quality jet-fuel components.
The key point is that jet fuel is not simply “petrol for airplanes.” It is a distinct fuel with its own specifications and production requirements.
What happens to the heaviest oil?
A sophisticated refinery tries to extract value from heavy fractions rather than simply leaving them as low-value residue.
Depending on its design, it may use:
- Vacuum distillation
- Fluid catalytic cracking
- Hydrocracking
- Coking
- Other conversion processes
These technologies allow heavy hydrocarbons to be converted into lighter products.
Some refineries also produce petroleum coke, asphalt, heavy fuel oils and other materials.
So a barrel of crude does not become only petrol, diesel and jet fuel.
It becomes a portfolio of products.
A barrel of crude produces many things
The exact output varies according to crude quality, refinery configuration and market demand.
As an illustration rather than a universal rule, the U.S. Energy Information Administration reports that U.S. refineries produced an average of about 19.6 gallons of motor gasoline, 12.5 gallons of distillate fuel and 4.4 gallons of kerosene-type jet fuel from a 42-gallon barrel in 2023, alongside numerous other products.
The numbers should not be applied directly to every refinery.
A refinery processing a different crude with a different configuration could produce a substantially different mix.
This is one reason refinery comparisons based solely on headline capacity can be misleading.
Why refinery complexity matters
A refinery’s capacity usually refers to how much crude its crude-distillation unit is designed to process.
But two refineries with identical crude-processing capacity can have very different capabilities.
A simple refinery might mainly separate crude into fractions.
A complex refinery might include:
- Catalytic crackers
- Hydrocrackers
- Reformers
- Alkylation units
- Cokers
- Hydrotreaters
- Extensive sulfur-recovery systems
The additional equipment costs more to build and operate, but it gives the refinery greater flexibility.
A more complex plant can often process heavier crude and convert more of it into valuable transportation fuels. The Nelson Complexity Index is one measure used to compare refinery complexity.
Why the type of crude matters
Consider two barrels of crude oil.
One is relatively light and low in sulfur.
The other is heavy and high in sulfur.
The first may yield relatively more light products through straightforward distillation.
The second requires more conversion and treatment to achieve a similar mix of high-value fuels.
That affects both capital investment and operating costs.
For a refinery operator, the ideal crude is therefore not necessarily the crude with the lowest price per barrel.
The relevant question is closer to:
How much valuable product can this refinery make from this particular crude, and what will it cost to process it?
Refineries constantly balance supply and demand
A refinery is also an economic optimisation system.
Operators monitor market demand and adjust production within the capabilities of the plant.
If diesel demand is strong, a refinery may seek to maximise middle-distillate production.
If petrol margins are more attractive, it may adjust its operations to increase gasoline components where possible.
But refinery flexibility has limits.
A refinery cannot instantly transform every barrel of crude into whichever product has the highest price. Its equipment, crude characteristics and operating constraints determine what is technically possible.
What happens after refining?
The finished products are stored in large tanks, often called tank farms.
From there, they can be moved by:
- Pipeline
- Ship
- Rail
- Truck
depending on the refinery and destination.
The products then enter separate supply chains.
Petrol can move toward filling stations.
Diesel can supply road transport, agriculture and industry.
Jet fuel can be transported to airports.
Petrochemical feedstocks can move to chemical and manufacturing plants.
The refinery is therefore the centre of a much larger energy and industrial network.
Why this matters for Kenya
Understanding the refining process helps explain why Kenya’s proposed Lamu refinery is strategically significant.
The planned Dangote East Africa refinery is designed for 700,000 barrels of crude per day, a scale intended to serve a regional market rather than Kenya alone.
A facility of that size would need to do much more than distil crude. Its economic value would depend on the conversion and treatment equipment that allows it to produce competitive quantities of petrol, diesel, jet fuel and petrochemical products.
The project therefore illustrates a broader principle: refinery capacity is not just about how much crude enters a plant. It is about what the plant can economically turn that crude into.
That distinction will matter when assessing whether Lamu can reduce East Africa’s dependence on imported refined products.
Why refinery disruptions can affect fuel prices
The refining process also explains why fuel prices can rise even when crude-oil prices are relatively stable.
If a major refinery experiences a fire, mechanical failure, power problem or planned maintenance shutdown, the supply of particular refined products can fall.
If demand remains high, the market price of those products can rise.
The U.S. Energy Information Administration notes that refinery production disruptions can increase petroleum-product prices because available supply falls relative to demand.
This is why crude oil and petrol prices should not be treated as identical markets.
A barrel of crude must first be converted into products, and the capacity available to perform that conversion matters.
The simplest way to understand an oil refinery
The entire process can be reduced to four questions:
1. What is in the crude?
Distillation separates it into different fractions.
2. What products does the market need?
Refinery operators determine which streams need further processing.
3. How can the molecules be improved?
Cracking, reforming, hydrocracking and other processes convert or rearrange hydrocarbons.
4. Does the finished fuel meet the required specification?
Treatment and blending produce the final petrol, diesel, jet fuel and other products.
The refinery is therefore not merely a machine that “makes petrol.” It is a sophisticated chemical-processing system that separates, transforms, cleans and blends hydrocarbons into products designed for specific uses.
That is also why the economics of a refinery depend on far more than its headline capacity. The quality of its crude feedstock, sophistication of its equipment, energy consumption, maintenance requirements, product mix and access to customers all determine whether the facility can turn crude oil into fuels profitably and reliably.