What Does a Refinery Do? From Crude Oil to Gasoline

A refinery transforms crude oil, which is essentially useless on its own, into the fuels and materials people use every day: gasoline, diesel, jet fuel, asphalt, lubricants, and the building blocks for plastics. It does this through a combination of heating, chemical reactions, and blending that separates crude oil into its component parts and then reshapes those parts into higher-value products. The entire operation follows three core stages: separation, conversion, and treatment.

What Goes In: Crude Oil Basics

Crude oil is a mix of thousands of different hydrocarbon molecules, ranging from very light gases to thick, tar-like substances. Not all crude oil is the same. The industry classifies it by two main qualities: weight (light or heavy) and sulfur content (sweet or sour). Light, sweet crude has lower density and less sulfur, making it easier and cheaper to refine into premium products like gasoline and diesel. Heavy, sour crude requires more complex equipment and energy-intensive processing to yield the same products, which is why it typically sells at a lower price.

A refinery’s design determines what types of crude it can handle. Simpler refineries work best with light, sweet grades. More complex facilities invest in additional processing units that let them buy cheaper heavy crude and still produce high-value fuels.

Stage One: Separation by Boiling Point

The first thing a refinery does with crude oil is heat it. The oil passes through furnaces reaching extremely high temperatures, then enters a tall structure called a distillation tower (or distillation column). Inside the tower, the crude naturally separates into layers based on boiling point, a process that works on the same principle as boiling water: lighter substances vaporize at lower temperatures and rise, while heavier ones stay lower or settle at the bottom.

The lightest components, including gasoline-range hydrocarbons and refinery gases, vaporize and rise to the top of the tower, where they cool and condense back into liquid. Medium-weight liquids like kerosene and diesel-range products (called distillates) collect in the middle. Heavier liquids known as gas oils separate further down, and the heaviest material, with the highest boiling points, pools at the very bottom.

Every refinery has at least one atmospheric distillation unit. More sophisticated facilities add vacuum distillation units, which operate at reduced pressure to further separate the heaviest fractions without overheating them to the point where they break down.

Stage Two: Conversion Into Valuable Products

Distillation alone doesn’t produce enough gasoline or diesel to meet demand. The heavy fractions sitting at the bottom of the tower are low-value products, so refineries use conversion processes to break them into lighter, more profitable ones.

The most common conversion method is cracking. Cracking uses heat, pressure, and chemical catalysts (and sometimes hydrogen) to literally crack apart large, heavy hydrocarbon molecules into smaller, lighter ones that can become gasoline or diesel. Without cracking, a refinery would produce far more heavy residual oil and far less of the fuels consumers actually buy.

Not every conversion process involves splitting molecules. Some rearrange them instead:

  • Alkylation combines small gaseous byproducts of cracking into larger molecules that become high-quality gasoline components.
  • Reforming uses heat, moderate pressure, and catalysts to restructure naphtha (a light but relatively low-value fraction) into high-octane gasoline blending stock.

These processes let refineries squeeze the maximum amount of valuable fuel out of every barrel of crude.

Stage Three: Treatment and Blending

The final stage is where raw streams become finished products. Refinery technicians blend multiple intermediate streams together, adjusting for specific performance standards. For gasoline, that means hitting a target octane rating and vapor pressure. For diesel, it means meeting cetane number and cold-weather performance requirements. Jet fuel must meet strict specifications for energy content and freezing point.

Treatment also includes removing impurities, particularly sulfur. Sulfur occurs naturally in crude oil, and regulations limit how much can remain in finished fuels. Hydrotreating, a process that uses hydrogen to strip sulfur from hydrocarbon streams, is one of the most common cleanup steps in a modern refinery.

What Comes Out of a Barrel

A standard 42-gallon barrel of crude oil yields more than 42 gallons of finished products because some refining processes actually increase the volume of the output (a phenomenon called processing gain). Here’s roughly what U.S. refineries produce from each barrel of crude:

  • Gasoline: about 46% of output, making it by far the largest product
  • Diesel and heating oil (distillate fuel oil): about 30%
  • Jet fuel: about 11%
  • Petroleum coke: about 5%, used in industrial processes and power generation
  • Hydrocarbon gas liquids: about 3.5%, including propane and butane
  • Asphalt and road oil: about 2%
  • Residual fuel oil: about 2%, used in shipping and industrial boilers
  • Lubricants, waxes, and specialty products: the remaining few percent

Refineries can’t simply “turn up” gasoline production and ignore everything else. The chemistry of crude oil dictates a range of outputs, and adjusting the product mix requires different equipment configurations and crude oil selections.

How Refineries Handle Emissions

Processing crude oil generates pollutants, and refineries operate extensive environmental control systems to manage them. Sulfur removal is one of the biggest challenges. The sulfur stripped from fuels and intermediate streams doesn’t disappear. It gets captured as hydrogen sulfide gas, which refineries then convert into solid, elemental sulfur using the Claus process (responsible for roughly 90 to 95 percent of all industrially recovered sulfur).

The Claus process works in stages: hydrogen sulfide is partially burned, then passed through catalyst chambers that convert it into molten sulfur, which is condensed and collected. Any remaining sulfur compounds in the exhaust (called tailgas) go through additional scrubbing or are sent to a thermal oxidizer, which must operate at 1,200°F or higher to fully combust leftover hydrogen sulfide before gases reach the atmosphere.

Beyond sulfur, refineries manage nitrogen oxides, carbon monoxide, and hydrocarbon emissions from their various heating and processing units. Wastewater from scrubbing systems requires its own treatment to remove dissolved solids before it can be discharged or disposed of safely.

Why Refineries Matter in Daily Life

Nearly every petroleum product you encounter has passed through a refinery. The gasoline in your car, the diesel powering freight trucks, the jet fuel on commercial flights, the asphalt on roads, the propane in a backyard grill, and the petrochemical feedstocks that become plastics, synthetic fabrics, and pharmaceuticals all start as crude oil that a refinery separated, converted, and blended into something usable. Without refining, crude oil would just be a thick, smelly liquid with no practical application.