A refinery is an industrial facility that takes a raw material and converts it into more useful, higher-value products. The most common type is an oil refinery, which transforms crude oil into gasoline, diesel, jet fuel, and dozens of other products. But refineries also process sugar, metals, and salt, all using the same core principle: separating or purifying a complex raw material into something people can actually use.
How an Oil Refinery Works
Crude oil straight from the ground is a thick, complex mixture of thousands of different hydrocarbon molecules. It’s not useful in that form. An oil refinery’s job is to sort those molecules by size and weight, then reshape some of them into the specific products the market needs.
The process starts with distillation. Crude oil is pumped through furnaces and heated to high temperatures, then fed into a tall distillation tower. Inside the tower, the oil separates naturally based on boiling points. The lightest components, like gasoline and propane, vaporize and rise to the top, where they cool and condense back into liquid. Medium-weight products like kerosene and diesel collect in the middle. Heavier materials like lubricating oils settle toward the bottom, and the very heaviest residue, used for asphalt and industrial fuel, sits at the base.
Every oil refinery has at least one atmospheric distillation unit. More complex refineries add vacuum distillation units that operate at lower pressure, allowing them to separate the heaviest fractions further without overheating them.
Beyond Distillation: Cracking and Reforming
Simple separation only gets you so far. Demand for gasoline and diesel is far higher than what distillation alone produces, so refineries use chemical conversion processes to rearrange molecules.
Catalytic cracking breaks large, heavy hydrocarbon molecules into smaller, lighter ones. This is how a refinery turns low-value heavy oils into high-demand products like gasoline. Catalytic reforming works differently: instead of breaking molecules apart, it reshapes them. Straight-chain molecules get rearranged into branched or ring-shaped structures that burn more efficiently in engines. The main goal of reforming is to boost the octane rating of gasoline, making it resistant to engine knock. Together, cracking and reforming give refineries the flexibility to adjust their output based on what’s selling.
What Comes Out of a Barrel of Crude Oil
A standard barrel of crude oil holds 42 gallons, but refineries actually produce slightly more than 42 gallons of finished products from it because some processes increase volume. The typical output is roughly 19 to 20 gallons of gasoline, 11 to 12 gallons of diesel and heating oil, and 4 gallons of jet fuel. The rest becomes a mix of petrochemical feedstocks (used to make plastics, synthetic fibers, and pharmaceuticals), lubricants, asphalt, and other specialty products. Almost nothing is wasted.
Refineries Beyond Oil
The word “refinery” applies to any facility that purifies raw materials. Sugar refineries take raw cane sugar, which is brown and full of plant-derived impurities, and remove those impurities through a process called carbonatation. Lime (calcium hydroxide) and carbon dioxide are added to the sugar syrup, triggering a chemical reaction that forms tiny particles of calcium carbonate. These particles attract and trap color-causing impurities, which are then filtered out. The result is the white, crystalline sugar you buy at the store.
Metal refineries work on a similar principle of purification. Copper refining, for instance, removes sulfur, iron, and other metals from raw ore to produce copper pure enough for electrical wiring. Salt refineries remove clay, sand, and other minerals from mined rock salt. In every case, the goal is the same: start with something impure or complex, end with something clean and useful.
The World’s Largest Oil Refineries
The biggest oil refinery on Earth is the Jamnagar refinery in Gujarat, India, operated by Reliance Industries. It processes 1.24 million barrels of crude oil per day. To put that in perspective, that’s over 52 million gallons daily from a single facility. The next largest include the Paraguana complex in Venezuela (940,000 barrels per day), SK Energy’s Ulsan refinery in South Korea (840,000 barrels per day), and the Ruwais refinery in the UAE (817,000 barrels per day). South Korea alone hosts three of the world’s top six refineries, reflecting the country’s role as a major fuel exporter despite producing almost no crude oil of its own.
In the United States, the largest refineries cluster along the Gulf Coast of Texas and Louisiana. Marathon Petroleum’s Galveston Bay facility in Texas City processes 631,000 barrels per day, and Saudi Aramco’s Port Arthur refinery handles 630,000.
How Refineries Make Money
Refinery profitability comes down to a metric called the crack spread: the difference between the price a refinery pays for crude oil and the price it gets for finished products like gasoline and diesel. When gasoline prices are high relative to crude oil, the crack spread widens and refineries are highly profitable. When product prices drop or crude prices spike, the spread can shrink to zero or even go negative, meaning the refinery loses money on every barrel it processes.
Crack spreads fluctuate with seasons and local supply conditions. Gasoline demand peaks in summer driving months, typically pushing spreads higher. A refinery shutdown due to a hurricane or maintenance can tighten local supply and widen spreads in that region. These spreads are a rough estimate of margins, though, because they don’t account for operating costs like energy, labor, and maintenance.
Environmental and Health Concerns
Oil refineries release a range of air pollutants, including volatile organic compounds (VOCs) and toxic chemicals like benzene, toluene, and xylene. Exposure to these pollutants can cause respiratory problems and increase cancer risk for people living nearby. An EPA analysis found that over 1.4 million people in the U.S. were exposed to cancer risks from refinery emissions above the 1-in-1-million threshold. Tighter federal regulations targeting flaring (the burning of excess gas) and emissions from storage tanks and processing equipment have reduced toxic air pollutant releases by thousands of tons per year.
Refineries are also among the most heavily regulated industrial facilities from a safety standpoint. OSHA requires petroleum refineries to follow Process Safety Management standards, which mandate detailed written documentation of every hazardous process, formal hazard analyses, strict operating procedures, and regular mechanical integrity checks on equipment. These requirements exist because the combination of extreme heat, high pressure, and flammable materials makes refineries inherently dangerous workplaces. Failures in any part of the safety chain can lead to explosions, fires, or toxic releases.
Why Refineries Are Located Where They Are
Refineries tend to cluster near coastlines, rivers, or major pipeline hubs. This is purely practical: crude oil arrives by tanker or pipeline, and finished products leave the same way. Building a refinery near water also helps with cooling, since many refining processes generate enormous amounts of heat. The U.S. Gulf Coast is the world’s densest refining corridor because it sits at the intersection of domestic oil production, deepwater ports for imported crude, and pipeline networks that distribute products across the country. Similarly, South Korea and Singapore became major refining centers because of their strategic port locations along global shipping routes, even though neither country produces significant crude oil.

