Fossil fuels form when accumulated organic matter is buried, heated, and compressed over geological time scales, converting it into coal, oil, or natural gas. A diagram showing this process typically traces two main pathways—terrestrial plant matter becoming coal, and marine and lacustrine microorganisms becoming oil and gas—through stages of deposition, burial, diagenesis, catagenesis, and migration. Because fossil fuel formation spans millions of years and occurs underground, any diagram is necessarily schematic: it compresses time, exaggerates vertical scale, and simplifies the chemistry.
The Two Main Pathways
A useful diagram begins by distinguishing the raw materials. Coal derives predominantly from plant material that accumulated in swampy, terrestrial environments and was preserved as peat. Oil and natural gas derive predominantly from plankton and other microorganisms that settled to the bottom of marine or lake environments and were preserved as organic-rich mud, later converted into a waxy solid called kerogen within fine-grained sedimentary rock.
This distinction matters because the conditions and rock types differ. Coal forms in coal beds associated with deltaic and floodplain deposits; oil and gas form in "source rocks"—often shales or limestones—and then migrate into porous reservoir rocks. A diagram that shows a single funnel labeled "plants and animals → fossil fuels" is misleadingly generic; the stronger diagrams show two parallel columns converging on a shared idea of burial and heating.
Stage 1: Accumulation and Preservation
The first panel of a typical diagram shows living organisms: forests and peat swamps on land, plankton blooms in the sea. The critical condition is anoxic preservation. When organic matter decays in the presence of oxygen, it is consumed by microbes and returns to the atmosphere mostly as carbon dioxide. Fossil fuels could not form on a large scale if that always happened.
Preservation instead requires oxygen-poor conditions. In swamps, standing water limits oxygen exchange with the atmosphere; the acidic, waterlogged environment slows decay and permits peat to accumulate. In marine basins, oxygen can be depleted in bottom waters—for example, in restricted basins with poor circulation or during intervals of high organic productivity that overwhelm oxygen supply. Organic matter that settles into these oxygen-poor sediments escapes much of the decomposition that would otherwise destroy it. A diagram may label this "anoxic bottom water" or "preserved organic matter."
Diagrammatic shorthand often shows falling leaves and dead plankton drifting down. That is a useful compression, but a technically accurate diagram should also indicate that only a tiny fraction of organic material ever survives; most is recycled before burial.
Stage 2: Burial and Diagenesis
The second panel shows sediment piling on top of the organic-rich layer. As deposition continues, the organic material is buried under sand, silt, and mud. Increasing overburden raises temperature and pressure, and pore water is squeezed out. In the coal pathway, this stage compresses peat into lignite, a soft brown coal. In the oil-and-gas pathway, microbial and low-temperature chemical reactions convert the organic matter into kerogen dispersed in the source rock.
The key concept here is that burial provides both the pressure and the geothermal heat that drive the later transformations. The diagram usually adds a downward arrow labeled "increasing temperature and pressure," because the change is directional and irreversible: once buried, organic matter does not return to its original state.
Depth and temperature are not interchangeable with time alone. The temperature at any given depth depends on the geothermal gradient of the basin, which varies. A diagram that shows identical depths on both sides of the coal/oil split can mislead, since coal beds and source rocks often occur at different depths and in different tectonic settings.
Stage 3: Heating—the Oil Window and Gas Window
The third panel is the heart of most formation diagrams: a temperature range in which kerogen breaks down into liquid and gaseous hydrocarbons. This thermal breakdown is called catagenesis. Petroleum geologists commonly describe an "oil window" of roughly 60 °C to 120 °C (about 140 °F to 250 °F) and a "gas window" at higher temperatures, roughly 120 °C to 200 °C, though published boundaries vary and depend on kerogen type and heating rate. These are not sharp thresholds but gradients of conversion.
The relationship is usually drawn as a vertical axis with depth or temperature increasing downward and a zone labeled "oil" above a zone labeled "gas." The diagram should be read as showing a tendency, not a bright line: at the lower end, some kerogen generates heavy oil; at higher temperatures, oil itself can crack into gas; at still higher temperatures, the organic matter becomes graphitic and generates little of use.
For coal, the analogous progression is called coalification or the rank series: peat → lignite → sub-bituminous coal → bituminous coal → anthracite. Higher rank reflects greater burial and heating, with increasing carbon content and decreasing volatile matter and moisture. A diagram of coal formation often shows this sequence rather than the oil/gas windows.
Stage 4: Migration and Accumulation
A diagram that stops at hydrocarbon generation misses the step that makes deposits economically interesting: migration and trapping. Generated oil and gas are initially dispersed in fine-grained source rock. Because the source rock has low permeability, the fluids move—under buoyancy and pressure—into more permeable carrier beds and then into reservoir rocks such as sandstones or porous limestones.
The final panel usually shows a "trap," an arrangement that concentrates hydrocarbons and prevents them from escaping to the surface. Common traps include anticlines (upward folds), faults that seal one side of a reservoir, and salt domes that push up surrounding strata. A cap rock—an impermeable layer such as shale or salt—seals the top. Without a trap, hydrocarbons may seep to the surface, where they are degraded or escape, or form seeps.
This is where many simplified diagrams lose accuracy. They show a pocket of oil under an arch as if it were generated there. In reality, the oil typically migrated into the trap from a source rock elsewhere. The diagram should show at least one arrow indicating migration if it is meant to explain how a field forms, not merely how hydrocarbons are generated.
Time, Scale, and Diagram Conventions
Fossil fuel formation takes place over millions of years. The exact time required depends on burial rate and geothermal gradient; a rough rule of thumb in geology is that the oil window corresponds to burial depths of about 2,000 to 4,000 meters, but this varies widely by basin. A diagram compressing these scales should include a note that the vertical axis is exaggerated—real sedimentary basins span kilometers of strata while spanning hundreds of kilometers laterally, so a true-scale diagram would be extremely flat.
Diagrams often add a timeline along the side: plant and plankton growth at the top, then peat or organic mud, then burial, then oil/gas generation, then migration and trapping. The clarity comes from ordering, not from literal proportion.
What the Diagram Cannot Show
Fossil fuel formation is not a single event but a continuum, and many diagrams obscure this. A few points worth flagging when reading or drawing one:
Not all organic matter becomes fuel. Most is oxidized or consumed by microbes. The diagram should not imply efficiency. Source, reservoir, and seal are distinct. Generation occurs in source rock; storage occurs in reservoir rock; sealing occurs in cap rock. Conflating them into one layer is a common simplification. Temperature, not just depth, controls the stage. Basins with different geothermal gradients reach the oil window at different depths. Coal and oil/gas are separate pathways. They share the logic of burial and heating but differ in starting material, environment, and resulting rock relationships. Migration can destroy as well as concentrate. Some hydrocarbons leak, biodegrade, or remobilize; a trap is a local success, not a guaranteed outcome.
Reading a Diagram Correctly
When you see a formation diagram, identify four things: the source material, the depositional environment, the burial/heating progression, and whether a trap or migration arrow is shown. A diagram that includes all four explains formation and accumulation. One that stops at hydrocarbon generation explains only the chemical transformation. One that shows a single "ancient swamp" becoming a barrel of oil is a rhetorical simplification, not a geological model.
A well-constructed diagram also distinguishes the physical state of the material at each stage: peat is a solid, kerogen is a solid dispersed in rock, oil is a liquid, and natural gas is a gas (or dissolved in oil, or adsorbed onto coal). Overlooking the physical state is a frequent source of confusion—coal does not "turn into" oil in the same bed; the two pathways are largely separate.
Ambiguity and Scope of This Answer
The query does not specify whether the diagram should cover coal only, oil and gas only, or all fossil fuels; this answer covers all three and distinguishes the pathways. It also does not specify a region or a particular basin, and the temperatures, depths, and timings given are general ranges rather than values for any specific formation. Those details vary by basin and are best checked against local geological surveys. No specific diagram, textbook edition, or figure is supplied, so no particular image is being interpreted here—only the standard process that such diagrams depict.