How Oil Is Made: Understanding Porosity, Permeability, and Traps in Reservoirs

Last updated: November 11, 2025

Cross-sectional geological illustration showing the process of crude oil formation — from ancient ocean deposition and sediment burial to kerogen formation, oil migration, and trap accumulation beneath the earth’s surface.
Stages of petroleum generation: organic material transforms into kerogen, migrates through porous rock layers, and accumulates in traps ready for extraction.

Introduction

Oil doesn’t appear by accident.

It results from slow, natural chemistry heat, pressure, and time working together beneath layers of rock and sand. What started out as tiny marine organisms millions of years ago now fuels industries, transportation, and entire economies.

For petroleum engineers and geoscientists, it is essential to understand how oil is generated. It helps them identify where hydrocarbons can be found and how easily they might be produced. Porosity, permeability, and reservoir traps are the three properties that allow this to happen.

These are not just geological terms; they are the language of exploration, the hints about whether a formation is potential or remains dry rock.

Ancient Oceans to Hydrocarbon Reservoirs

3D geological cross-section showing ocean life, sediment layers, and the gradual formation of oil deposits over millions of years from 10 to 100 million years beneath the seabed.
Formation of crude oil beneath ancient oceans organic material accumulates, gets buried under sediments, and transforms into hydrocarbons over millions of years.

The tale of oil starts with life in ancient seas. As plankton and algae died, they sank to the bottom of the sea and mixed with silt and clay. This was buried under further layers of sediment over millions of years.

With burial, temperature and pressure increased. As the organic matter decayed, it first turned into a waxy material called kerogen, and then, when temperatures rose higher, into liquid and gaseous hydrocarbons.

Geologists typically regard this conversion as occurring in three key stages:

Graph illustrating the stages of organic matter transformation—diagenesis, catagenesis, and metagenesis showing temperature versus burial depth, with the oil window and gas-dominant zones highlighted.
Thermal maturity curve showing how increasing temperature and burial depth convert organic material into oil during catagenesis and gas during metagenesis.
  • Diagenesis: Shallow burial where organic remnants are compressed and lose water.
  • Catagenesis: Deeper burial where oil and gas generate within the “oil window.”
  • Metagenesis: High temperature resulting in mostly gas production.

Over time, these hydrocarbons migrate through permeable rock layers looking for a place to accumulate. The rocks they traverse and the ones that block them determine whether a field will be profitable.

0
A DECADE OF SAFETY, AN Ai POWERED FUTURE

Recognized for excellence.

0

PROJECTS DELIVERED ACROSS THE GLOBE

Porosity: The Hole in the Rock

A rock doesn’t look porous, but under a microscope it is filled with tiny openings. These small voids are what geologists call pores, and the proportion of these voids to the total volume defines porosity.

Porosity informs us about how much oil or gas a rock can store.

Well-sorted sandstone might have 20–30% porosity, while dense shale may have less than 5%.

There are two types:

3D geological model comparing primary and secondary porosity showing rounded grain structures with pore spaces on the left and fractured rock with dissolution pathways on the right.
Primary porosity forms from original spaces between sediment grains, while secondary porosity develops later through fracturing and dissolution processes.
  • Primary porosity: The voids created when the rock was originally laid down.
  • Secondary porosity: Openings formed later by fracturing, dissolution, or deformation.

Porosity is an indication of storage, but it does not tell us whether that oil can move. For that, we turn to permeability.

Permeability: The Power to Flow

Permeability refers to how easily fluids flow through a rock’s interconnected pores.

Even a very porous rock could be worthless if the pores within it don’t connect.

Rocks with larger, well-connected pores like coarse sandstones let oil move through easily. In tight or cemented formations, the flow rate drops drastically. Permeability is quantified by engineers in millidarcies (mD) and used to estimate how productive a reservoir might be.

In other instances, permeability is so low that oil needs some assistance. This is done by hydraulic fracturing or acidizing (acid treatment) to open larger flow paths particularly in tight reservoirs such as shale. Without that, hydrocarbons remain trapped; they don’t move an inch.

Traps: Nature’s Storage Chambers

Hydrocarbons are less dense than water, so once they form, they tend to rise through porous rock layers. They keep rising until they encounter something that prevents further movement. This is a trap, and it’s where oil and gas collect.

Three main components are required for an active petroleum system:

  1. A hydrocarbon-originating source rock.
  2. A migration pathway that gives space to move.
  3. A reservoir rock and a caprock from which the gases cannot escape.

Types of Traps

There are several ways in which oil and gas can be trapped:

  • Structural traps: Upward folding or faulting of rocks, such as anticlines and fault blocks.
  • Stratigraphic traps: Resulting from lateral variations in rock type or thickness for example, pinch-outs and unconformities.
  • Compound traps: Cases in which both factors operate together.

These traps, sealed off by impermeable rocks such as shale or salt, act like natural tanks that have preserved hydrocarbons for millennia until a drill bit pierces them.

How Geologists Identify Promising Reservoirs

Geologists spend months before drilling, analyzing whether a potential reservoir has the right conditions. They examine seismic profiles to determine subsurface structures, well-logging data to measure porosity and saturation, and core samples to verify the quality of the rock directly.

This data reveals three things:

  • How much hydrocarbon could be present.
  • How easily it might flow.
  • Whether there’s a reliable seal to keep it contained.

Every successful discovery depends on the accuracy with which these properties are estimated.

The Engineering Connection

Knowing porosity, permeability, and traps is only half of it. The other half lies in how engineers use this knowledge to design systems that generate energy efficiently and safely.

At iFluids Engineering, we combine geological knowledge with practical solutions. Our teams unite disciplines including reservoir modeling, flow assurance, and risk-based inspection to help operators optimize production and safeguard assets.

Good geology is the foundation of good engineering. When both come together, fields become more sustainable, better understood, and more predictable.

Conclusion

3D geological block diagram showing subsurface oil and gas accumulation beneath a sealing rock layer, with labeled zones for oil, gas, and cap rock seal.
Oil and gas accumulate in porous rock layers beneath an impermeable seal, forming distinct zones based on density oil at the bottom, gas above, and a cap rock preventing upward migration.

Oil formation is one of the most remarkable processes in nature, a slow alchemy that transforms ancient life forms into usable energy.

For those working in the petroleum sector, the story of that journey is not just academic. It shapes how we search, how we design, and how we manage risk.

  • Porosity quantifies how much a rock can hold.
  • Permeability defines how easily oil can travel.
  • Traps determine where it ends up.

Taken together, they explain why one well gushes while another goes dry and they remind us that even in the digital age, everything comes back to the rock.

Frequently Asked Questions

Organic material doesn’t become crude oil in just a few centuries; it normally takes tens of millions of years under heat and pressure.

Sandstones and certain limestones, being porous enough to store hydrocarbons yet firm enough to prevent excessive leakage.

Impervious layers of shale, salt, or clay hold hydrocarbons inside like a sealed container — though one on a geological scale.

By studying core samples in laboratories and evaluating recorded well-logging data.

Structural traps form from folds or faults, while stratigraphic traps result from variations in rock type or depositional patterns.