Skip to content
Tutorials Center
My learning

Topics

Lesson 16 of 37 · Energy Sources

Fossil Fuels: Coal, Oil and Natural Gas

How coal, oil and natural gas form, how they are used, their environmental costs, and how to calculate their CO2 emissions per kilowatt-hour of electricity.

About four-fifths of the world's primary energy still comes from fossil fuels (a share that has changed only slowly in recent decades). They power vehicles, heat buildings, generate electricity and supply raw materials for plastics and fertilizers. They are also the largest source of the carbon dioxide that is warming the planet. To discuss energy choices fairly, you need to know what they are, why they are so useful, and what they cost the environment.

How fossil fuels form

Fossil fuels are made from the remains of ancient living things, buried and transformed by heat and pressure over millions of years. The energy in them was originally captured from sunlight by photosynthesis.

  • Coal forms mainly from plant material in ancient swamps (largely in the Carboniferous period, roughly 300 million years ago). Buried peat turns into lignite, then bituminous coal and anthracite as pressure and temperature increase, and the carbon content and energy density rise along the way.
  • Oil (petroleum) and natural gas form mainly from the remains of tiny marine organisms such as plankton buried in sea-floor mud. Heat and pressure convert the organic matter into hydrocarbons. The oil and gas migrate upward through porous rock until trapped beneath impermeable rock layers, where drilling can reach them.

Natural gas is mostly methane (CH₄). Burning it releases less CO₂ per unit of energy than oil or coal, because methane has a high ratio of hydrogen to carbon.

Because these fuels take millions of years to form and are used in centuries, they are treated as nonrenewable.

Why they became so important

They are energy dense, easy to store and transport, and in many places cheap. One kilogram of coal contains roughly 24-30 MJ of energy, and a kilogram of gasoline roughly 44 MJ, while a kilogram of lead-acid battery stores only around 0.1-0.15 MJ and even a modern lithium-ion battery around 0.5-0.9 MJ. That is why aircraft and ships are hard to electrify.

Uses

  • Coal: mainly electricity generation and steel and cement production.
  • Oil: transport fuels (petrol, diesel, jet fuel), plastics and chemicals, heating.
  • Natural gas: electricity, heating, cooking, industry, and the feedstock for ammonia fertilizer.

Environmental impacts

  1. Climate change. Burning carbon-based fuel produces carbon dioxide, a greenhouse gas. The chemistry is simple: for methane, CH₄ + 2O₂ → CO₂ + 2H₂O.
  2. Air pollution. Combustion can release sulfur dioxide (SO₂, which forms acid rain), nitrogen oxides (NOx), fine particles (PM2.5, small enough to enter the lungs) and carbon monoxide. Coal contains impurities such as sulfur and mercury.
  3. Mining and drilling. Surface mining and mountaintop removal destroy habitat and can leave acidic drainage. Underground mining brings the risk of accidents and lung disease. Offshore drilling and tankers risk spills; the 2010 Deepwater Horizon blowout in the Gulf of Mexico released roughly 4 to 5 million barrels of oil (estimates vary).
  4. Methane leakage. Methane is a potent greenhouse gas (about 80 times more warming than CO₂ over 20 years per kilogram, and around 28-30 times over 100 years, according to recent assessment reports). Leaks during gas production and transport can offset some of gas's advantage over coal.
  5. Fracking (hydraulic fracturing) cracks shale rock with high-pressure fluid to free oil and gas. It has greatly increased supply, but concerns include water use, wastewater disposal and induced small earthquakes.
  6. Oil sands are heavy bitumen mixed with sand and require much more energy and water to produce.

CO₂ emissions per energy

Each fuel has an emission factor, the mass of CO₂ released per unit of energy burned. Approximate default values commonly used in national inventories:

Fuel Emission factor (kg CO₂ per GJ of fuel energy)
Coal (bituminous) about 94.6
Diesel / gas oil about 74.1
Gasoline (petrol) about 69.3
Natural gas about 56.1

To find CO₂ per kilowatt-hour of electricity, remember that 1 kWh = 3.6 MJ of electrical output, and the plant needs more fuel energy than that, because it is not 100 % efficient: fuel energy = 3.6 MJ ÷ efficiency.

Python CO2 per kWh of electricity

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Gas used in an efficient combined-cycle plant produces well under half the CO₂ of coal per kWh in these estimates, but not zero. Lifecycle accounts, which include mining, transport and leaks, add to every figure.

Fuel use for a car

The same idea works for transport. Burning one liter of gasoline releases about 2.3 kg of CO₂. (A liter of gasoline weighs about 0.74 kg, and roughly 86 % of its mass is carbon; each kg of carbon becomes 3.67 kg of CO₂, giving 0.74 × 0.86 × 3.67 ≈ 2.3 kg.) For diesel the value is about 2.7 kg per liter.

Python CO2 from driving

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Peak oil and the future

The idea of peak oil says oil output will reach a maximum and then decline. Predictions of when have repeatedly been wrong because new technology and discoveries added supply. Many analysts now worry less about running out and more about demand, since policies to limit climate change require leaving a large part of known reserves unburned. Nobody can be sure of the timing, so this track will treat the transition away from fossil fuels as a question of choice and speed rather than of exhaustion.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. Which fuel produces the least CO2 per unit of energy when burned?

    Methane has a high hydrogen-to-carbon ratio, so natural gas releases less CO2 per unit of energy than oil or coal.
  2. 2. Most coal formed from which kind of material?

    Coal comes mostly from buried plant matter. Oil and gas come mostly from marine organisms.
  3. 3. Why does a power plant's efficiency matter for CO2 per kWh?

    Fuel energy needed = electricity output ÷ efficiency, so lower efficiency means more fuel and more CO2.
  4. 4. Why can methane leaks reduce the climate advantage of natural gas?

    Methane traps much more heat per kilogram than CO2 does, so leaks before burning can offset the lower CO2 from combustion.

Summary

  • Fossil fuels are the buried remains of ancient organisms; they are energy dense, so they dominate global energy.
  • Coal comes from swamp plants; oil and gas mostly from marine life.
  • Environmental costs include CO₂ and other air pollution, mining and spill damage, and methane leaks.
  • Emission factors (kg CO₂ per GJ) and plant efficiency give CO₂ per kWh; coal is highest and gas lowest.
  • Climate policy, more than running out, now shapes the future of fossil fuels.

Next: Nuclear Power