🔥
Community request
Requested by u/tenderhart on Reddit — “…the greenhouse effect…”

The Greenhouse Effect — Interactive 3D Model

🌡 Tier: AP Environmental Science / IB Physics / Early Undergraduate

Watch sunlight stream in, heat the ground, leave again as infrared — and watch greenhouse-gas molecules grab some of that IR on the way out and re-radiate it back. Crank the CO₂. See the planet warm. Feel the math behind every news headline about climate.

1 · Interactive 3D Simulation

👁 See It Clearly
🌍 3D Earth
⚖ Energy Balance
📈 ΔT vs Time
Present-day baseline
Surface ≈ 15 °C. Without greenhouse gases the Earth would be a frozen rock at −18 °C. Move the CO₂ slider to see the difference.
Year 2025
Surface T (°C)
+15.0
CO₂ (ppm)
420
CH₄ (ppb)
1900
Water vapour ×
1.00
Incoming (W/m²)
239
Outgoing IR (W/m²)
239
Forcing F (W/m²)
+2.2
▶ Playback
📖 Story Walkthrough
Auto-advance
⚙ Scenario
🌫 Greenhouse Gases
☀ Planetary Properties
⏱ Simulation
🎛 Display
Show IR rays
Show GHG molecules
Auto-rotate Earth

2 · The Whole Thing in One Sentence

🪟 The greenhouse-window analogy

Imagine the atmosphere as a one-way window. Sunlight (mostly visible & UV) passes in easily — the window is transparent to it. The ground absorbs that energy and re-emits it as invisible infrared (IR) heat. Greenhouse gases — CO₂, methane, water vapour — are like tiny sticky patches on the window: they grab outgoing IR and re-radiate half of it back down. The more sticky patches, the harder it is for heat to escape, so the surface has to get hotter until outgoing IR finally matches incoming sunlight again. Without these gases, Earth would be −18 °C. With them, +15 °C. Add more, it gets hotter still. That's the whole story.

What each slider does, in plain words

SliderReal-world meaning
CO₂The headline greenhouse gas. Goes from 280 ppm (pre-industrial) → 420 today → potentially 1000+ if we keep burning. Logarithmic effect on temperature.
CH₄Methane. Per molecule, ~80× stronger than CO₂ over 20 years. Cattle, rice paddies, leaking gas pipes, melting permafrost.
N₂ONitrous oxide from agricultural fertiliser. Long-lived, ~300× CO₂ per molecule.
Water vapourStrongest greenhouse gas by mass — but it's a feedback, not a forcing. Hot air holds more vapour, which traps more heat, which heats the air…
Albedo αFraction of sunlight reflected straight back to space. Ice ≈ 0.85, ocean ≈ 0.06, Earth average ≈ 0.30. Snowball Earth happens at α ≈ 0.7+.
Cloud coverClouds are double-edged: white tops reflect sun (cooling) but trap IR (warming). Net effect ≈ cooling, but it depends on cloud type.
Climate sensitivity λBest estimate ≈ 0.8 K per W/m². IPCC gives 2.5–4 K per CO₂ doubling. Uncertainty is from clouds and ice feedbacks.

3 · The Idea, Step by Step

Leave a car in a sunny car park with the windows up. Come back an hour later and the inside is an oven. Sunlight poured in through the glass, the seats turned it into heat, and that heat had a hard time getting back out. A planet wrapped in greenhouse gases pulls the same trick — except the "glass" is just a few invisible gases mixed into the air.

To put numbers on it, picture the energy the Sun delivers. The full beam at Earth's distance is the solar constant, about $1361$ W/m², but the planet is a spinning ball, so that power is shared over a surface four times the size of the disk the Sun sees. The average sunlight per square metre is therefore $S_0/4 \approx 340$ W/m². Some bounces straight back off ice and clouds — that reflected fraction is the albedo $\alpha$. The rest, $(1-\alpha)\,S_0/4 \approx 239$ W/m², soaks into the ground and oceans. To hold a steady temperature, the surface must hand exactly that much back to space as infrared. A bare rock with no atmosphere would balance at about $-18\,^\circ$C. Greenhouse gases slow the infrared escaping, so the surface has to warm until enough leaks out — landing near $+15\,^\circ$C. That 33-degree gap is the blanket the gases provide.

The precise statement is just energy in equals energy out: $(1-\alpha)\tfrac{S_0}{4} = \varepsilon\sigma T_s^4$. Adding CO₂ does not add a fixed number of degrees; it adds a forcing that grows with the logarithm of concentration, $F = 5.35\,\ln(C/C_0)$ W/m², and the temperature change follows $\Delta T = \lambda F$. The control panel maps straight onto these symbols: the CO₂, CH₄ and N₂O sliders set $C$, the albedo slider sets $\alpha$, the solar-constant slider sets $S_0$, and the sensitivity slider sets $\lambda$.

Try this in the sim above. First set CO₂ to 280 ppm, then to 560 ppm (one doubling) and watch the surface temperature climb roughly 3 °C. Next push CO₂ to 1120 ppm: the jump is about the same size again, not double — that is the logarithm at work. Finally drag the albedo slider toward 0.7 (or pick the "Snowball Earth" preset) and watch the planet freeze even with greenhouse gases present, because now too much sunlight is reflected before it can ever warm the ground.

4 · The Physics

4.1 · Stefan–Boltzmann: how a planet glows

Any object above 0 K emits thermal radiation. For a blackbody at temperature T (kelvin):

$$P = \sigma T^4, \qquad \sigma = 5.67 \times 10^{-8}\ \text{W m}^{-2}\text{K}^{-4}$$

The Sun's photons peak in the visible (T ≈ 5778 K). The Earth's emission peaks at ~10 µm (T ≈ 288 K) — in the thermal infrared. That mismatch is what makes the greenhouse effect possible: glass and gases that are transparent in visible can be opaque in IR.

4.2 · Energy balance & equilibrium temperature

At equilibrium, energy in equals energy out:

$$\underbrace{(1-\alpha)\frac{S_0}{4}}_{\text{Absorbed solar}} = \underbrace{\varepsilon \sigma T_s^4}_{\text{Outgoing IR (effective)}}$$

where the factor of 4 comes from spreading sunlight over the whole sphere. With S₀ = 1361 W/m² and α = 0.30, the absorbed flux is ~ 239 W/m². If Earth were a bare rock (ε = 1, no atmosphere), Tₛ = 255 K = −18 °C. The atmosphere's IR opacity reduces effective ε to ~ 0.61, raising Tₛ to ~ 288 K = +15 °C. That 33 °C is the natural greenhouse effect.

4.3 · Radiative forcing — the logarithmic CO₂ law

Adding more CO₂ traps additional outgoing IR. The forcing relative to a reference concentration C₀ is:

$$F_{\mathrm{CO_2}} = 5.35 \ln\!\left(\frac{C}{C_0}\right)\ \text{W/m}^2$$

So doubling CO₂ from 280 to 560 ppm gives F ≈ 3.7 W/m². Climate sensitivity converts forcing to temperature: ΔT = λ · F. With λ ≈ 0.8 K/(W/m²), doubled CO₂ ⇒ ~ 3 K warming.

4.4 · The other greenhouse gases (simplified)

$$F_{\mathrm{CH_4}} = 0.036\,(\sqrt{C} - \sqrt{C_0})$$ $$F_{\mathrm{N_2O}} = 0.12\,(\sqrt{C} - \sqrt{C_0})$$

(These are the IPCC AR4 simplified expressions; the sim uses them for fast updates.)

5 · How the Simulation Works — Step by Step

  1. Sun emits visible light at S₀ = 1361 W/m² of solar constant. Spread over the spherical Earth, the global average is S₀/4.
  2. Albedo reflects 30 %. Ice, deserts, clouds bounce some photons back to space — those don't warm the planet.
  3. The remaining 70 % hits the surface — about 239 W/m² absorbed on average. This warms the ground and oceans.
  4. The warmed surface emits thermal IR outward (Stefan–Boltzmann at ~ 288 K → ~ 390 W/m² from the surface).
  5. Greenhouse gases intercept IR in specific wavelength bands (CO₂ near 15 µm, H₂O across many bands, CH₄ at 7.7 µm) and re-emit half upward, half downward.
  6. The downward IR warms the surface further. The surface temperature rises until outgoing-to-space IR equals incoming solar.
  7. The simulation computes ΔT = λ × ΣF, where ΣF is the sum of all gas forcings plus albedo/solar perturbations.

6 · Worked Example

Doubling CO₂ from pre-industrial

F = 5.35 · ln(560/280) = 5.35 · 0.693 ≈ 3.71 W/m². ΔT = λ · F = 0.80 · 3.71 ≈ +3.0 °C. Add water-vapour feedback (~+50 %) and you land at ~ +4.5 °C — squarely inside the IPCC sensitivity range. Try it: select "Doubled CO₂ (560 ppm)" preset, press Run, and watch ΔT climb.

7 · FAQ

If water vapour is the strongest greenhouse gas, why blame CO₂?
Because water vapour is a feedback, not a forcing. The atmosphere's H₂O concentration is set by temperature (Clausius–Clapeyron). Add CO₂, the air warms, more H₂O evaporates in, the warming roughly doubles. But H₂O cannot start warming on its own — there is no human-controlled lever for it. Try the slider: with H₂O at 0× (a magic dry atmosphere) doubling CO₂ still warms the planet, just less.
How can a trace gas (420 ppm = 0.042 %) matter so much?
Because the relevant quantity is not concentration but optical depth in specific IR bands. CO₂ has a powerful absorption line near 15 µm — exactly where Earth's IR emission peaks. Other molecules (N₂, O₂) are nearly transparent at IR wavelengths. So even 0.04 % CO₂ blocks a non-trivial fraction of the outgoing thermal radiation.
Why is the forcing logarithmic in CO₂?
The strongest CO₂ absorption lines are already saturated — the central wavelengths can't absorb more. Adding CO₂ broadens the wings of the absorption lines, but each new wing increment is smaller. Hence the ln(C/C₀) law. Doubling CO₂ adds 3.7 W/m² whether you go 280→560 or 560→1120.
What happened on Venus?
Venus has ~ 96 % CO₂ at 92 atmospheres. Its surface is ~ 462 °C. The forcing is so large the planet ran a "moist greenhouse" 4 billion years ago: water evaporated, vapour absorbed even more IR, the warmer atmosphere held more vapour … until the oceans boiled away and UV broke the H₂O into hydrogen (which escaped to space). Earth is far enough from the Sun that this won't happen here at any CO₂ level we could produce.
Why is there uncertainty in climate sensitivity?
The forcing equation is solid physics. The hard part is the feedbacks: how much extra water vapour appears, what happens to clouds (low clouds cool, high clouds warm), how fast ice melts. Different climate models give λ between 0.4 and 1.3 K/(W/m²). The most likely value is 0.6–0.9. The simulator lets you try the range with the λ slider.

8 · References

Myhre, G. et al. (1998). New estimates of radiative forcing due to well-mixed greenhouse gases. GRL, 25, 2715–2718.
IPCC (2021). AR6 WGI, Ch. 7 — The Earth's Energy Budget, Climate Feedbacks & Climate Sensitivity.
Pierrehumbert, R.T. (2010). Principles of Planetary Climate. Cambridge University Press.
Hansen, J. et al. (2008). Target atmospheric CO₂: Where should humanity aim? Open Atmos. Sci. J. 2, 217–231.