Skip to content
Beaconby Winda
FactOil, Gas and Chemicals Basics · Facilities and processes

What is an oil refinery and how does it work?

·12 sources

Short answer

An oil refinery is a plant that turns crude oil into fuels and other products by separating, converting, treating and blending hydrocarbon streams. Distillation splits crude by boiling range, conversion units reshape molecules and treating units remove sulfur. In the United States, the Occupational Safety and Health Administration checks refineries against its Process Safety Management standard (29 CFR 1910.119).

By , Editor·Researched and drafted by ·Checked by , Editor·Last checked ·Next review

What does an oil refinery do?

Crude oil is a mix of many hydrocarbons (paraffins, naphthenes and aromatics) plus small amounts of sulfur, nitrogen, oxygen and metals, as the US Environmental Protection Agency (EPA) describes it 7. A refinery splits that mix, rebuilds part of it and cleans it until the streams can be blended into finished fuels that meet their specifications. The US Energy Information Administration (EIA) groups this work into separation, conversion and treatment 1.

Products include gasoline, diesel and heating oil, jet fuel, liquefied petroleum gas (LPG), fuel oil, asphalt, petroleum coke, lubricant base oils and feedstocks for the chemical industry. EPA counts more than 2,500 refined products 7, and the International Energy Agency (IEA) put petrochemical feedstock at 12% of global oil demand in 2018 12. As of 1 January 2026, the United States had 130 operable refineries with 18.2 million barrels per calendar day of atmospheric distillation capacity 3.

What are the main steps in refining crude oil?

EIA describes three basic steps that all refineries follow: separation, conversion and treatment; the units a plant adds on top decide which products it can make 1,6.

StepWhat happens to the oilTypical units
1. SeparateCrude is washed free of salt, heated and split by boiling rangeDesalter, atmospheric column, vacuum column
2. ConvertHeavy, low-value fractions are broken into lighter ones; small molecules are joined or reshapedFluid catalytic cracker, hydrocracker, coker, catalytic reformer, alkylation unit
3. TreatSulfur, nitrogen and other contaminants are removedHydrotreaters, sweetening units, amine treating
4. Blend and shipStreams are mixed to product specifications and storedBlending systems, tank farm, loading
SupportHydrogen, steam, sulfur handling and water treatment keep the units runningHydrogen plant, sulfur recovery unit, boilers, cooling towers

Oil starts to crack on its own above about 750 °F (about 400 °C), so the heaviest part of the crude is distilled again under vacuum instead of being heated harder; about 80% of US refineries had a vacuum unit in 2012 4.

Which process units does a refinery have?

  • Crude distillation unit: the first unit, which splits desalted crude by boiling range into gases, gasoline-range naphtha, kerosene, heating and lubricating oil fractions and a heavy residue 5,7. See What is a crude distillation unit?
  • Hydroprocessing units: hydrotreaters and hydrocrackers react oil with hydrogen over a catalyst to remove sulfur and nitrogen or to crack heavy oil into diesel and jet fuel 5,6. See What is hydroprocessing?
  • Fluid catalytic cracker (FCC): cracks gas oil into gasoline and lighter products over a finely divided catalyst that circulates between reactor and regenerator 5,6. See What is fluid catalytic cracking (FCC)?
  • Catalytic reformer: converts low-octane naphtha into high-octane reformate on a platinum-based (noble metal) catalyst, releasing hydrogen that the hydrotreaters use 7.
  • Coker: thermally cracks vacuum residue into gas oils and solid petroleum coke; in delayed coking the heater outlet runs at about 900 to 1,100 °F (480 to 590 °C) 7.
  • Amine treating and sulfur recovery: hydrogen sulfide removed from refinery gases is converted to elemental sulfur for sale 6,7. See What is an amine gas treating unit?

What comes out of a barrel of crude?

A refinery gives back more volume than it takes in, because most products are less dense than crude. In 2023, US refineries produced about 45 gallons of products from each 42-gallon barrel of crude, a processing gain of about 6.3% 2.

Product, US refineries in 2023Gallons from each 42-gallon barrel (rounded)
Gasoline19.6
Diesel and other distillates12.5
Jet fuel4.4
Coke2.1
Naphtha sold as chemical feedstock0.3

Source: EIA, Refining crude oil: inputs and outputs, updated June 2024 2.

How do refineries differ from one another?

The flow scheme depends on the crude a refinery buys and the products it sells, and few plants run every process 7. A simple refinery may stop at distillation and treating; a complex one adds vacuum distillation and cracking units to turn more of the barrel into light products 1.

Refineries also choose how to upgrade heavy oil. Carbon rejection units (coking, FCC, deasphalting, visbreaking) take carbon out as coke or residue, while hydrogen addition units (hydrocracking) put hydrogen in, which costs more but yields more light product 6. US plants are mostly set up to maximize gasoline; many refineries elsewhere lean toward diesel 6.

Where integrity problems show up

Unit / equipmentTypical integrity issueIn the Library
Crude unit overhead condensers and pipingHydrochloric acid from hydrolyzed chloride salts; ammonium chloride deposits where wash water is shortHydrochloric acid corrosion, Ammonium chloride corrosion
Hot crude and vacuum unit piping, heater tubes and towersSulfidation between about 450 and 1,000 °F; organic (naphthenic) acid attackSulfidation, Naphthenic acid corrosion, Richmond refinery fire (2012)
Hydrotreater feed/effluent heat exchangersHigh temperature hydrogen attack in carbon steelHigh temperature hydrogen attack, Anacortes refinery explosion (2010)
FCC slide valves and catalyst linesErosion by circulating catalystCorrosion vs erosion
FCC overhead and gas recovery equipmentWet sour corrosion, cracking and hydrogen blistering when feed nitrogen forms cyanidesWet hydrogen sulfide damage, Hydrogen blistering
Amine regenerator and reboilerAmine corrosion, controlled partly through temperatureAmine corrosion

Sources: US Chemical Safety and Hazard Investigation Board (CSB) reports on Richmond (2012 fire, report 2015), Anacortes (2010 explosion, report 2014), Torrance (2015 explosion, report 2017) and Superior (2018 explosion, report 2022); Occupational Safety and Health Administration (OSHA) Technical Manual, Section IV, Chapter 2 (undated) 8,9,10,11,5.

The Richmond rupture was in a carbon steel light gas oil line leaving the crude column, and the CSB found that low-silicon carbon steel can thin up to 16 times faster from sulfidation than higher-silicon steel 8. At Anacortes, a carbon steel heat exchanger in the naphtha hydrotreater cracked from high temperature hydrogen attack and ruptured, killing seven workers 9.

Common questions

Is a refinery the same as a petrochemical plant?
No. A refinery makes mostly fuels from crude oil, while a petrochemical plant turns feeds such as naphtha, ethane and propane into chemicals like ethylene and propylene. The two are often built in the same industrial hub and trade streams (International Energy Agency, 2018); see [Refining vs petrochemicals](/library/refining-vs-petrochemicals/) and [What is a petrochemical plant?](/library/petrochemical-plant/).
How many refineries are there in the United States?
EIA counted 130 operable refineries as of 1 January 2026, two fewer than a year earlier (EIA, 2026).

Beacon explains these concepts in its own words for education. It does not reproduce or replace the standards cited, and Winda is not affiliated with or endorsed by the organizations that publish them. Engineering decisions need the current edition of the standard and a qualified engineer.

Sources

  1. 1.Refining crude oil: the refining process · U.S. Energy Information Administration
  2. 2.Refining crude oil: inputs and outputs · U.S. Energy Information Administration ·
  3. 3.U.S. refining capacity decreased during 2025 · U.S. Energy Information Administration, Today in Energy ·
  4. 4.Vacuum distillation is a key part of the petroleum refining process · U.S. Energy Information Administration, Today in Energy ·
  5. 5.OSHA Technical Manual, Section IV, Chapter 2: Petroleum Refining Processes · Occupational Safety and Health Administration
  6. 6.FSC 432 Petroleum Refining, Lesson 3: Overall Refinery Flow · Penn State College of Earth and Mineral Sciences (S. Eser)
  7. 7.AP-42, Section 5.1: Petroleum Refining · U.S. Environmental Protection Agency
  8. 8.Final Investigation Report: Chevron Richmond Refinery Pipe Rupture and Fire, Report No. 2012-03-I-CA · U.S. Chemical Safety and Hazard Investigation Board
  9. 9.Investigation Report: Catastrophic Rupture of Heat Exchanger, Tesoro Anacortes Refinery, Report No. 2010-08-I-WA · U.S. Chemical Safety and Hazard Investigation Board
  10. 10.Investigation Report: ExxonMobil Torrance Refinery Electrostatic Precipitator Explosion, Report No. 2015-02-I-CA · U.S. Chemical Safety and Hazard Investigation Board
  11. 11.Investigation Report: FCC Unit Explosion and Asphalt Fire at Husky Superior Refinery, Report No. 2018-02-I-WI · U.S. Chemical Safety and Hazard Investigation Board ·
  12. 12.The Future of Petrochemicals: Towards more sustainable plastics and fertilisers · International Energy Agency ·