Ages

Now you know how oil is formed!

What next?

Try it yourself ↓

How is oil formed?

▶ 5:24 video · Watch on YouTube

  1. 0:00 Start
  2. 0:31 Sunlight in the sea
  3. 1:39 The oil window
  4. 2:39 Rising and trapped
  5. 3:33 Three things line up
  6. 4:13 Ancient sunshine

Your turn

Make oil yourself

Play with oil!

Each lab is one part of the video. Tap, slide and see what happens.

Each lab isolates one step. The models are simplified teaching sketches; depths and temperatures are typical values that vary between basins.

Tap the buttons and slide the sliders.

1

Save the plankton

Anoxia and preservation

Who eats the plankton?

Turn the oxygen at the bottom down. What happens to the ooze on the seafloor?

Where bottom water is anoxic, scavengers can’t live and organic matter accumulates. Lower the oxygen and watch.

Slide the oxygen down. Now nobody eats the tiny sea creatures!

2

Find the oil window

The oil window

Just right

Drag the rock (or use the slider) up and down. Where does it cook into oil? Where does it turn to gas?

Bury the source rock. Around 60–120 °C (typically 2–4 km) kerogen generates oil; hotter, it cracks to gas.

Move the rock down. Too cold, just right, too hot!

3

Trap the oil

Migration and the seal

Put the lid on

Take away the cap rock, then put it back. Where does the oil go?

Buoyant oil migrates up through porous rock. Remove the impermeable seal and the accumulation leaks to the surface.

Take the lid away. Where does the oil go? Put it back!

4

Make an oil field

Source, maturation, trap

Pick all three. Which mix gives you an oil field?

All three conditions must line up. Try each combination.

5

Ancient sunshine

Burning ancient carbon

Old sunshine

Tap the pump a few times. Made over millions of years, used up in a flash.

Oil forms over millions of years; burning it releases its carbon as carbon dioxide.

Tap the pump. It took so long to make!

How is oil made?

Oil is very, very old. Some people think it is made of dinosaurs. But it is not! Oil comes from tiny living things in the sea.

A sunny sea

Long ago, warm seas were full of tiny living things, too small to see. They used sunshine to grow. When they died, they fell to the bottom like snow.

Saved in the mud

Most of the time, fish and other animals ate them. But deep down, where there was no air, the animals that would eat them couldn't live. So they piled up in the mud.

Deep and warm

More and more mud covered them up, like blankets on a bed. Deep in the ground it is warm. Not too cold, not too hot, just right, and they slowly cook into oil. Too hot, and they turn into gas.

Up, and stuck

Oil is lighter than water, so it floats up through rocks with tiny holes, like a sponge. Sometimes a hard rock stops it, like a lid on a jar. That's where people find oil.

Did you know? Oil took a very, very long time to make. When we use it up, it is gone. Oil makes cars and planes go, but burning it makes a gas that warms our planet.

← More explainers

How is oil formed? The short answer

Oil (also called petroleum, which means "rock oil") formed mostly from tiny sea plankton and algae, not from dinosaurs.13 When these microscopic living things died, they sank to the seafloor. Where the bottom water had almost no oxygen, the animals that would eat them couldn't live there, so their remains piled up in the mud.6 Over millions of years that mud was buried deeper and deeper. Earth's heat slowly "cooked" the remains into oil and natural gas.3 Because oil is lighter than water, it crept upward through rocks full of tiny holes until a solid cap rock trapped it. That's where wells find it today.36

So oil is a kind of fossil fuel: the stored energy of ancient sunshine, captured by living things long ago.4

Is oil made from dinosaurs?

It's one of the most popular ideas about oil, and it's (mostly) a myth. Geologists agree that most oil and gas came from marine micro-organisms that settled into seafloor sediments.3 The U.S. Energy Information Administration says these tiny plants and animals, like diatoms, lived in the sea millions of years ago, before dinosaurs existed.1

Think about the numbers. Plankton live and die in enormous numbers in sunlit seas, year after year, and blooms can turn the water green.6 Dinosaurs were big, but they lived on land and there were far fewer of them. When a land animal dies, its body usually gets eaten or rots in the open air. The sea floor, especially where oxygen runs out, is a much better place to save remains for millions of years.6 (Land plants did matter too: buried swamp forests became coal.34)

Step 1: Plankton store sunlight

Algae and plant-like plankton are like the plants of the sea. They use sunlight to build their bodies from carbon dioxide and water, and their bodies end up made mostly of carbon and hydrogen.43 That's where oil's energy comes from. Each tiny creature is a little battery of stored sunshine, and burning oil releases that energy again.4

Step 2: Buried in low-oxygen mud

In most of the ocean, dead plankton never get a chance to become oil. Animals eat them on the way down or on the seafloor, and oxygen breaks down the rest.63 Two things change that:

  • Huge blooms of plankton, so much dead material rains down that some escapes being eaten.6
  • Anoxic bottom water (water with little or no oxygen), where scavengers can't live.6

Then the remains collect as a dark, organic-rich mud. More sand and mud wash in on top, layer after layer. In roughly the first kilometre of burial, the remains change into a solid substance called kerogen, spread through the rock.6 The mud itself hardens into a dark rock called shale. Petroleum geologists call it the source rock.35 It's the same burial-in-mud trick that preserves fossils.

Step 3: Cooking in the oil window

The deeper you go into the Earth, the hotter it gets. Geologists call this the geothermal gradient.3 As the source rock sinks deeper under new layers, the kerogen warms up. Its chemical bonds begin to break, and it releases the smaller hydrocarbon molecules that make up oil.6

How deep and hotWhat happens to the kerogen
Shallow and cool (below about 60 °C)Mostly nothing yet. Microbes near the surface can make some methane.3
The oil window: about 60–120 °C, usually 2 km or deeperKerogen slowly "cooks" into oil.3
Hotter than about 120 °COil and kerogen break down into natural gas (methane).35

The exact numbers vary from place to place. One university guide puts the main oil-making zone at about 3–4 km and 100–150 °C.6 The idea stays the same: oil needs rock that's warm, but not too hot. It's a bit like baking bread. Too cool and the dough stays raw, too hot and it burns.

Step 4: Oil rises until it's trapped

Rocks deep underground are soaked with water, and oil is lighter than water. So once oil forms, it's squeezed out of the shale and slowly floats upward.36 It travels through reservoir rocks such as sandstone or limestone, which are full of tiny connected holes, a bit like a hard sponge.6

Most oil never stops. It keeps rising until it leaks out at the surface as a natural oil seep.5 Seeps are still happening: NOAA says natural seeps release nearly half of the oil that enters the ocean each year, and some off Southern California have probably leaked for thousands of years.7

Some oil is luckier (for us). It runs into a layer of rock it can't pass through, such as dense mudrock. This is the cap rock, or seal. Where the layers are bent into a dome, or broken by a fault or pushed up by salt, the oil collects under the cap. That's an oil trap.3 Inside, the fluids sort themselves by weight: gas on top, oil in the middle, water at the bottom.3

Where is oil found? (Hint: not in lakes)

People often imagine oil sloshing around in huge underground caves. In reality, oil sits in the tiny spaces inside sedimentary rocks, filling the gaps between sand grains.1 To find traps, geologists study rock layers and use seismic surveys, which send sound waves into the ground and listen for echoes. Then they drill test wells.83 Some oil is also locked inside tight shale or in near-surface oil sands. These need special methods to get the oil out.18

The recipe: three things must line up

  1. A source: plankton-rich mud buried where oxygen was low.6
  2. Cooking: burial deep enough to reach the oil window, but not so deep that everything becomes gas.3
  3. A trap: reservoir rock under a cap rock. The trap has to be in place before the oil arrives, or the oil escapes.6

Miss any one, and there's no oil field like this. That's why oil is found in some places and not others.

How long does oil take to form?

Millions of years. Burial, cooking and migration are all slow. Once buried away from oxygen, organic matter can be kept for tens to hundreds of millions of years.3 The EIA describes the remains behind oil and gas as building up "millions to hundreds of millions of years ago."2 That's why oil counts as a nonrenewable resource: new oil forms far too slowly to replace what we use.10 Besides fuel, oil and natural gas are also the starting point for most plastics (see how plastic is made).

Oil and the climate

When oil is burned, its ancient carbon joins with oxygen from the air to make carbon dioxide. Burning fossil fuels has raised the amount of carbon dioxide in the atmosphere, and that is warming the planet.9 You can explore how in our explainer on what causes climate change.

Common myths about oil

"Oil is dead dinosaurs." Most oil comes from marine plankton and algae. Many of them lived before dinosaurs.13
"Oil sits in underground lakes." It fills tiny holes in rock, like water in a sponge.1
"The deeper, the more oil." Too hot, and oil breaks down into natural gas. Oil only forms in the oil window.3
"Oil stays where it forms." Oil moves upward. Most of it escapes at the surface unless a trap stops it.56

FAQ

Is oil made from dinosaurs?

Mostly no. Most oil formed from microscopic marine plankton and algae that sank to the seafloor. Much of it comes from ancient seas, and the U.S. Energy Information Administration notes that many of these organisms lived before dinosaurs existed.

How long does it take for oil to form?

Millions of years. The remains have to be buried and cooked slowly at around 60 to 120 °C. Then the oil can migrate into a trap. The remains behind most oil were buried millions to hundreds of millions of years ago.

How is oil made in the earth, in simple words?

Tiny sea creatures die and settle in low-oxygen mud. The mud gets buried deeper and deeper, where Earth's heat slowly cooks their remains into oil. The oil rises through rocks with tiny holes. Some of it gets trapped under a solid cap rock, but much of it leaks away to the surface over time.

Is oil still forming today?

The same natural processes are still going on in some places, but they take millions of years. That's far too slow to replace the oil we use, which is why oil counts as a nonrenewable resource.

Is oil found in underground lakes?

No. Oil fills the tiny spaces between grains in rocks like sandstone, a bit like water soaked into a sponge. It collects under a cap rock with gas above it and water below.

What is the oil window?

The oil window is the range of underground temperatures, roughly 60 to 120 °C, where buried organic matter turns into oil. It's usually reached a few kilometres down. Cooler rock makes no oil, and hotter rock turns it into natural gas.

Why is oil called a fossil fuel?

Because it formed from the remains of living things that died millions of years ago, like fossils. It stores energy that ancient plankton captured from sunlight, and burning it releases that energy and carbon dioxide.

Did this help it click?

Sources

  1. U.S. Energy Information Administration, Oil and petroleum products explained
  2. U.S. Energy Information Administration, Energy Kids: Natural gas
  3. Earle, Physical Geology (2nd ed., BCcampus open textbook), 20.3 Fossil Fuels
  4. Smithsonian Ocean, What Are Fossil Fuels?
  5. Penn State EARTH 104, How Nature Makes Coal, Oil and Gas
  6. University of Waterloo, The formation of oil and the elements required to produce petroleum
  7. NOAA Ocean Service, Oil seeps
  8. U.S. Energy Information Administration, Where our oil comes from (in depth)
  9. NASA Science, The Causes of Climate Change
  10. National Geographic Education, Fossil Fuels