When Were Fossil Fuels Formed: Coal, Oil, and Gas

Most fossil fuels formed between roughly 360 and 60 million years ago, though the exact timing depends on the type. Coal, oil, and natural gas each have distinct origin stories, drawn from different organisms, buried in different environments, and cooked under different conditions over tens to hundreds of millions of years.

When Coal Formed

The bulk of Earth’s coal deposits date to the Carboniferous period, 359 to 299 million years ago. The name “Carboniferous” literally means “coal-bearing,” and for good reason. During this era, vast swamp forests covered much of the land near the equator. Trees and other plants grew in waterlogged soil, and when they died, they fell into oxygen-poor swamps where they couldn’t fully decompose. Instead, layers of dead plant material piled up, were buried under sediment, and were slowly compressed and heated over millions of years until they became coal.

What made this period so exceptional for coal formation was a combination of biology and timing. Forests were spreading across the continents, producing enormous quantities of wood. Fallen trees were buried rapidly, and the sheer volume of plant material locked away underground was staggering. Coal formation continued into the early Permian period (299 to 252 million years ago), but the late Carboniferous and early Permian together account for the major share of the coal reserves we mine today. All that buried carbon pulled so much CO2 out of the atmosphere that Earth came close to global glaciation around 300 million years ago.

Smaller amounts of coal formed during later periods as well, particularly during the Cretaceous (145 to 66 million years ago) and parts of the Paleogene (66 to 23 million years ago), but these deposits are generally younger, thinner, and lower in energy content than the ancient Carboniferous seams that powered the Industrial Revolution.

When Oil and Natural Gas Formed

Oil and natural gas come from a completely different source than coal. Instead of land plants, they originated from tiny marine organisms, primarily algae, plankton, and other microscopic life that drifted through ancient oceans and shallow seas. When these organisms died, they sank to the seafloor and mixed with fine sediment. Over time, more layers of sediment piled on top, burying the organic material deeper and deeper.

Unlike coal, which is concentrated in one or two geological periods, oil and gas formed across a wider span of Earth’s history. Six stratigraphic intervals account for more than 90% of the world’s discovered oil and gas reserves. The two most productive windows are the middle Cretaceous (around 100 million years ago), which generated roughly 29% of global reserves, and the Upper Jurassic (around 150 million years ago), responsible for about 25%. Other significant source periods include the Silurian (about 430 million years ago, 9% of reserves), the Upper Devonian (about 370 million years ago, 8%), the Pennsylvanian to Lower Permian (about 310 to 280 million years ago, 8%), and the Oligocene to Miocene (about 34 to 5 million years ago, 12.5%).

So while coal formation was concentrated in one geological burst, oil production was spread across at least 400 million years of Earth’s history, with peaks during periods when warm, shallow seas covered large portions of the continents and organic material accumulated in oxygen-depleted basins.

How Organic Material Becomes Fuel

Burial alone doesn’t create fossil fuels. The critical ingredients are heat and pressure, applied over millions of years. As organic-rich sediment gets pushed deeper underground by the weight of newer layers above it, temperatures and pressures rise. At depths beyond about 2 kilometers and temperatures between 60°C and 120°C, the organic matter undergoes chemical changes that convert it into liquid oil. This range is known as the “oil window.” Push the temperature past 120°C, and most of the remaining organic material breaks down further into methane, the main component of natural gas.

Coal follows a parallel process on land. Buried plant material first becomes peat, then is gradually compressed into lignite (brown coal), then bituminous coal, and finally anthracite, the hardest and most energy-dense form. Each stage requires more heat and pressure, which is why the oldest, deepest coal seams tend to be the highest quality.

The entire process, from living organism to usable fuel, takes at minimum a few million years under the right geological conditions. Most of the fossil fuels we extract today spent tens to hundreds of millions of years underground before reaching their current state.

Why This Matters for Energy Today

The timescales involved are the reason fossil fuels are classified as nonrenewable. The coal we burn formed from forests that existed 300 million years ago. The oil in a gas tank traces back to marine life that lived when dinosaurs roamed. These resources took geological ages to accumulate, and we’ve been extracting them at industrial scale for only about 200 years. There is no process on a human timescale that can replace them. New fossil fuels are technically still forming in places where organic material is being buried under sediment, but the rate is negligible compared to how fast we consume existing reserves.