Osmo Labs · Earth science · Ages 8 to 14

How Is Oil Formed? An Interactive Timeline for Kids

Travel through millions of years in a minute. Bury tiny sea creatures, heat the rock, find the oil window, trap the oil under a cap rock and drill for it. Then compare how long oil takes to form with how fast the world uses it.

Searching "how is oil formed for kids" and want the real story? It starts with creatures smaller than a grain of sand and takes millions of years of burial and heat. This interactive lab lets you scrub through 150 million years, heat the rock, find the "oil window", trap the oil under a cap rock and drill for it.

How is oil formed, step by step?

Oil and natural gas are called fossil fuels because they are made from the remains of living things from long ago. Here is the journey your slider follows.

Step 1: Tiny sea life settles on the seafloor

Most oil and gas comes from marine micro-organisms, such as plankton and algae, not from dinosaurs. Where the sea is full of life, so much dead material sinks to the seafloor that some of it is buried in the mud before it can rot away. The U.S. Energy Information Administration (EIA) describes oil forming from the remains of tiny marine plants and animals, including diatoms.

Step 2: Buried deeper and deeper

Rivers keep washing sand, silt and mud into the sea. Layer by layer, the organic mud is covered and pushed deeper. In the sim, each coloured stripe is a new layer piling on top. Our model adds 35 metres of rock every million years, so after 100 million years the mud is 3.5 km down. That speed is a made-up round number for the model: real places can be much faster or slower.

Step 3: Heat and pressure make kerogen

The deeper you go, the hotter rock gets. Across most of the United States, the U.S. Geological Survey measured rock getting 15 to 35 °C warmer for every kilometre of depth, averaging about 25 °C per km in the east. Squeezed and warmed, the remains change into a waxy material called kerogen. Kerogen is not oil yet. It is more like uncooked dough.

Step 4: The oil window (60 to 120 °C)

At depths beyond about 2 km, at temperatures from 60 to 120 °C, kerogen is slowly converted into oil by chemical reactions. Geologists call this temperature range the oil window. In the sim, it is the golden band. Too cool and the kerogen stays kerogen. Inside the window, oil forms.

Step 5: Hotter still: natural gas

How is natural gas formed? The same way, just hotter. Beyond about 120 °C, most of the organic matter turns into methane, the main ingredient of natural gas. That is the pink "gas window" in the sim. So a rock that has been buried too deep makes gas instead of oil.

Step 6: Oil moves up and gets trapped

Oil and gas are lighter than water, so they creep upward through tiny spaces in rocks like sandstone. Some reach the surface and leak away. The rest get stuck below a layer they cannot pass through, called a cap rock (often mudrock or shale). When rock layers bend upward into a dome, oil and gas collect at the top like air bubbles under an upside-down bowl. Inside the trap they separate: gas on top, oil in the middle, water at the bottom. That is exactly where people drill.

How long does oil take to form vs how fast we use it?

In our model, a layer of plankton needs about 50 million years just to reach the oil window. The EIA's diagram shows tiny sea organisms being buried 300 to 400 million years ago for some of today's oil. Now look at the counter below the simulation. The EIA's Short-Term Energy Outlook puts world consumption of liquid fuels, mostly oil, at about 104.4 million barrels per day in 2025. That is about 1,200 barrels every second. A US barrel holds 42 gallons, about 159 litres.

In the United States, about two thirds of the oil used (66.6% in 2022) goes into transportation: petrol (gasoline), diesel and jet fuel. Oil also becomes plastics, solvents and many everyday materials. That is why oil matters so much, and why it is called non-renewable: a pool that took millions of years to fill can be emptied in a few decades, and it will not refill in any human lifetime.

This is not a reason to panic. It is a design problem, and a good one for curious kids. Engineers are already mixing in energy that renews itself, like sunlight and wind, building better batteries and using energy more cleverly. Understanding where oil comes from helps you think clearly about those choices.

Try this: three experiments

  1. Too shallow. This jumps to 40 million years. The mud is only 1.4 km deep and about 50 °C. Press Drill a well. You get a dry hole: it is all kerogen, still too cool for oil.
  2. In the oil window. At 95 million years the source rock sits about 3.3 km down at around 98 °C. Oil droplets rise and pool under the cap rock. Drill again: you strike oil.
  3. Too hot: gas. At 150 million years the rock is over 5 km deep and above 140 °C. Most of the oil has broken down into natural gas, so the trap fills with gas.

Bonus: move the second slider to 35 °C per km, like a hotter part of the Earth's crust. Press Play and see how much sooner the oil window arrives. Then try 15 °C per km. Why might geologists care about how hot the rock is when they search for oil?

Founder challenge

The real-world problem: our cars, buses, planes and many products depend on oil that took millions of years to form, and we use it in a blink. Moving away from it takes time, money and good ideas. Where could a young inventor make a real dent?

  1. Notice: list five things in your home or school that use oil, as fuel or as plastic.
  2. Imagine: pick one. How could it be done with less oil? Walking buses, a reuse station for plastic, an electric school van, a smarter delivery route?
  3. Build and test with the sim: leave this page open for one minute and read the barrel counter. How many barrels would your idea save in a year if a thousand families used it? Show your maths.
  4. Pitch your fix in 3 sentences: who has the problem, what your idea does, and why people would actually choose it.

For parents and teachers

Ages: Children aged 8 to 10 can follow the five steps with the Play button and explain them back in their own words. Ages 11 to 14 can work with the numbers: depth, the temperature gradient and the oil window. It fits Earth science and "sources of energy" topics in middle school (Classes 6 to 8 in India, Grades 5 to 8 in the US).

Classroom ideas:

  • Make a paper timeline 1.5 metres long, where 1 cm is 1 million years. Mark when the layer enters the oil window in the sim.
  • Calculate the temperature at 3 km using 15 °C plus 25 °C per km. Check the answer against the sim's thermometer.
  • Debate kindly: what would make it easier for a town to use less oil? Keep it about solutions, not fear.
  • Compare with our nuclear reactor simulator to see a very different way of making electricity.

Children who like this can explore the Earth 2.0 and Energy planets in the Osmo app, where real science news is rewritten at three reading levels. See all ten Osmo planets, browse our free science worksheets, or read our guide to science news for kids.

Frequently asked questions

How is oil formed, explained for kids?

Oil formed from tiny sea creatures and algae, called plankton, that died and sank into the mud on the seafloor long ago. Over millions of years, more layers of sand and mud buried them deeper. Deep underground it is hot, and when the rock reached about 60 to 120 °C, the remains slowly cooked into oil. The oil then crept upward until a layer of rock trapped it.

How is crude oil formed step by step?

Step 1: plankton die and settle in seafloor mud. Step 2: sediment buries them, away from oxygen. Step 3: heat and pressure turn the remains into a waxy material called kerogen. Step 4: in the oil window, roughly 60 to 120 °C, kerogen turns into crude oil. Step 5: the oil rises through porous rock until a cap rock traps it, where people can drill for it.

How is natural gas formed?

Natural gas forms in the same way as oil, from buried remains of living things, but it needs more heat. Beyond about 120 °C, most of the organic matter turns into methane, the main part of natural gas. Gas is light, so it rises and collects above oil under cap rock, or stays stuck in tiny spaces inside rocks such as shale.

How long does it take for oil to form?

Millions of years. The rock has to be buried kilometres deep and heated for a very long time. The U.S. Energy Information Administration shows tiny sea organisms being buried 300 to 400 million years ago for some of the oil we use today. In our simplified model, a layer reaches the oil window after roughly 50 to 120 million years.

Why are fossil fuels called non-renewable?

Because they form far more slowly than we use them. Oil takes millions of years to form, but the world uses more than 100 million barrels of liquid fuels every day. Once a pool of oil is used up, it will not refill in any human lifetime. That is why scientists and engineers keep working on energy sources that are renewed naturally, such as sunlight and wind.

Is oil made from dinosaurs?

Mostly no. Oil and gas come mainly from tiny marine micro-organisms such as plankton and algae, not from dinosaurs. Coal is different: almost all coal formed on land from plants. Dinosaurs make a fun cartoon, but the real story is billions of tiny sea creatures settling on the seafloor.

Sources

  1. U.S. EIA: Oil and petroleum products explained
  2. U.S. EIA: Use of oil
  3. U.S. EIA: Natural gas explained
  4. U.S. EIA: Short-Term Energy Outlook, Global oil markets (October 2026)
  5. Steven Earle, Physical Geology 2nd Edition, 20.3 Fossil Fuels
  6. USGS: Geothermal gradients in the conterminous United States
  7. Energy Education (University of Calgary): Kerogen
  8. Wikipedia: Petroleum

Built by the Osmo team from Gravitybrain STEM Program project ideas. Simulations are simplified models for learning, not engineering tools. Spotted an error? Tell us.

Osmo · STEM news for kidsTry free