Oil is made almost entirely of hydrocarbons, molecules built from just two elements: carbon and hydrogen. That’s true whether you’re talking about crude oil pumped from underground or the vegetable oil in your kitchen, though the specific molecules in each are very different. Crude oil is a complex mixture of hundreds of hydrocarbon compounds formed from ancient marine organisms, while cooking oils are built from fatty acids linked to a glycerol backbone.
What Crude Oil Is Made Of
Crude oil contains three main families of hydrocarbons, and the ratio between them varies depending on where in the world the oil comes from.
- Paraffins (alkanes) are straight or branched chains of carbon atoms with hydrogen attached. They’re the simplest hydrocarbons in oil and make up anywhere from 27% to 63% of a given crude by volume. Lighter paraffins become gasoline and propane; heavier ones become wax and lubricants.
- Naphthenes (cycloalkanes) are carbon atoms arranged in rings rather than chains. They typically account for 18% to 54% of crude oil. Nigerian light crude, for example, is over half naphthenes, while Saudi light crude contains only about 18%.
- Aromatics are ring-shaped molecules with a particular bond structure that makes them chemically stable. They range from about 9% to 28% of crude oil. Benzene, toluene, and xylene are common aromatics, and they’re key raw materials for plastics, synthetic rubber, and pharmaceuticals.
Beyond hydrocarbons, crude oil contains small but important amounts of other elements. Sulfur is the most significant, ranging from 0.1% to over 2% by weight depending on the source. Crude with less than about 0.42% sulfur is called “sweet” crude, while anything above 0.5% sulfur is “sour” crude. Sweet crude is more valuable because it requires less processing to remove sulfur before it can be turned into fuel. Trace metals like nickel and vanadium also show up, typically in the range of a few to over 100 parts per million. These metals matter because they can poison the catalysts used in refining and release pollutants when burned.
How Crude Oil Forms
Crude oil started as microscopic marine organisms, primarily microalgae and phytoplankton, that lived in ancient oceans hundreds of millions of years ago. When these organisms died, they sank to the ocean floor and were buried under layers of sediment. Cut off from oxygen, the organic material didn’t fully decompose. Instead, it was slowly compressed and heated as more sediment piled on top over millions of years.
The key transformation happens in what geologists call the “oil window,” a range of depth and temperature where heat and pressure cook the organic matter into liquid hydrocarbons. Laboratory experiments that simulate this process show that peak oil generation occurs around 350°C under high pressure. In nature, this process unfolds over tens of millions of years at lower temperatures, typically between 60°C and 160°C, because the longer timescale compensates for the gentler heat. The resulting oil migrates through porous rock until it hits an impermeable layer and pools in underground reservoirs.
The type of original organic matter determines what kind of oil forms. Marine algae and plankton tend to produce light, liquid-rich crude. Land plant material is more likely to generate natural gas. This is why the composition of crude oil varies so much from one region to another: different ancient seas had different organisms, different burial depths, and different thermal histories.
Why Crude Oil Varies by Region
Not all crude oil looks or behaves the same. Saudi light crude is about 63% paraffins, making it relatively easy to refine into gasoline. Nigerian light crude, by contrast, is 54% naphthenes with only 37% paraffins, giving it a different chemical profile that yields different products during refining. Prudhoe Bay heavy crude from Alaska has the highest aromatic content of common benchmarks at 28%, along with a heavier, thicker consistency.
The industry uses a measurement called API gravity to describe how light or heavy a crude is. Higher numbers mean lighter oil. North Sea Brent crude has an API gravity of 37, while Venezuelan heavy crude sits at 24. Lighter crudes generally produce more gasoline and diesel per barrel, which is why they command higher prices. Heavier crudes yield more residual products like asphalt and heavy fuel oil unless refineries invest in additional processing equipment to crack those larger molecules into lighter ones.
What Cooking Oil Is Made Of
Vegetable and cooking oils have a completely different molecular structure from crude oil, even though they share the word “oil.” Cooking oils are made of triglycerides: three fatty acid chains attached to a small glycerol molecule. The specific fatty acids determine the oil’s flavor, smoke point, and nutritional profile.
Canola oil, for instance, is roughly 58% oleic acid (a monounsaturated fat), 23% linoleic acid (a polyunsaturated fat), and 10% alpha-linolenic acid (an omega-3 fat), with small amounts of palmitic and stearic acids. Olive oil is similarly dominated by oleic acid, which is why both are considered heart-healthy options. Coconut oil, on the other hand, is mostly saturated fat, which is why it’s solid at room temperature.
The distinction between saturated and unsaturated fats comes down to chemistry. Saturated fatty acids have no double bonds between their carbon atoms, so the chains pack tightly together and form a solid. Unsaturated fats have one or more double bonds that create kinks in the chain, preventing tight packing and keeping the oil liquid. These fatty acids also serve as building blocks in every cell membrane in your body and act as carriers for fat-soluble vitamins like A, D, E, and K.
What Connects All Types of Oil
The common thread across all oils, whether petroleum or plant-based, is that they’re made primarily of carbon and hydrogen atoms arranged in chains or rings. They’re all hydrophobic, meaning they don’t mix with water. And they all store a large amount of energy in their chemical bonds, which is why both crude oil and cooking oil burn readily and why fats are such a calorie-dense part of the diet.
The difference is origin and structure. Crude oil is a fossil fuel formed from ancient marine life over millions of years, containing a chaotic mixture of hundreds of different hydrocarbons. Cooking oils are extracted from plants (or animal fat) and consist of relatively uniform triglyceride molecules. Essential oils, another category entirely, are volatile plant compounds responsible for fragrance and flavor, with yet another set of molecular structures. The word “oil” really just describes a physical property: a slippery liquid that doesn’t dissolve in water.

