Climate Change: Simple, Serious, Solvable › Models and Data
The Hidden Cost: A Fuel, Its Smoke and a Price on Pollution
Buyers and sellers of a fuel settle on a price and an amount. The smoke costs other people something too, but nobody in the market pays for it. Put a price on the pollution and see what changes: how much is burned, what the buyer pays and how much harm is avoided.
- Demand
- Supply: the seller's cost
- Social cost: the seller's cost plus the harm
- The seller's cost plus the price
- How much smaller the pie is
| Fuel burned | |
|---|---|
| The price the buyer pays | |
| What the seller keeps | |
| The fuel bill, paid to the sellers | |
| The price on the pollution brings in | |
| The harm to other people | |
| Harm avoided, beside the market alone | |
| The pie is smaller than it could be by | |
| The biggest pie burns |
The best amount isn't zero. Where the pie is biggest, some fuel is still burned and some harm is still done. Each of those tons is worth more to its buyer than it costs the seller and the people downwind together.
The biggest pie, not fair slices. The graph says nothing about who gets which slice. The people downwind still bear the harm that's left, unless the money from the price reaches them.
This is a made-up market. Its two straight lines are chosen to be easy to follow, not to match any real fuel. The About tab has every equation.
About this model
This is a very simple model of a market externality: a cost that falls on people outside the market. It draws the supply-and-demand graph of section 14.2 of Chapter 14, "Planetary Prosperity", for a made-up fuel, and it does the arithmetic of a price on pollution.
Buyers and sellers of the fuel settle where demand meets supply. The smoke from burning it costs other people something too, but nobody in the market pays that cost, so the market burns too much. The social cost of the fuel is the seller's cost plus the harm to other people. Put a price on the pollution equal to the harm, and the market settles where demand meets the social cost: the economists' biggest pie.
On the page as it opens, each ton burned does $30 of harm to other people, and there's no price on it. The market burns 100 million tons a year at $80 a ton, and the smoke does $3.00 billion of harm a year. Set the price on the pollution to $30 a ton, and the market burns 62.5 million tons at $98.75 a ton. The harm falls to $1.88 billion a year.
How to use this page
You can change two things: the cost that falls on other people for each ton burned, from $0 to $80, and the price on the pollution for each ton, from $0 to $80. The page opens at $30 of harm and no price. "Back to where the page opened" puts both back.
The graph is the supply-and-demand graph of Chapter 14. Price, in dollars a ton, runs up the side, and the amount burned, in millions of tons a year, runs along the bottom. The blue line is demand and the dark line is supply. The red dashed line is the social cost: the supply line raised by the harm. When you put a price on the pollution, a green line shows the seller's cost plus the price. The open circle is where the market alone settles, and the filled dot is where it settles now. The shaded triangle, when there is one, is how much smaller the pie is than it could be.
Under the graph, a table gives every number. Money is in billions of dollars a year.
The address in your browser changes as you move the sliders, so you can bookmark a view or send it to someone. Nothing is sent anywhere as you work.
This page is part of the website for Climate Change: Simple, Serious, Solvable, an open textbook by Scott Denning. It goes with Chapter 14, "Planetary Prosperity", section 14.2.
The equations
You don't need any of this to use the page. But the whole model is six short steps, and you can follow every one of them with a calculator.
The model answers one question: when burning a fuel harms people outside the market, how much does the market burn, and what does a price on the pollution change?
You choose two things: E, the cost that falls on other people, in dollars for each ton burned; and t, the price on the pollution, in dollars for each ton. Q is the amount burned, in millions of tons a year. The market itself is made up, and four numbers fix it:
| What | Its value |
|---|---|
| What buyers would pay for the very first ton | $130 a ton |
| How much less they'll pay for each million tons more | $0.50 a ton |
| What the very first ton costs the seller | $50 a ton |
| How much more each million tons more costs the seller | $0.30 a ton |
1. Demand: what is one more ton worth to the buyers?
The first tons go to the uses that matter most, and each ton after that to a use that matters a little less. That's section 14.2's diminishing returns. So the most buyers will pay for one more ton falls as more is burned:
dollars a ton. That's the blue line.
2. Supply: what does one more ton cost the seller?
The easiest fuel to dig and ship comes first, and each ton after that costs a little more. So the least sellers will take for one more ton rises as more is burned:
dollars a ton. That's the dark line. It's the seller's own cost, which economists call the private cost.
3. The social cost: what does one more ton cost everyone?
Each ton burned also does E dollars of harm to people outside the market. Add that to the seller's cost, and you get what one more ton costs everyone:
dollars a ton. That's the red dashed line: the supply line, raised by E.
4. Where does the market settle?
Buyers keep buying while one more ton is worth more to them than it costs. With a price of t on each ton, a seller needs its own cost plus t. So the market settles where 130 − 0.5 Q = 50 + 0.3 Q + t, which is
million tons a year. The buyer pays the demand line's price at that Q, and the seller keeps that price less t. Notice that E isn't in this equation. The market alone doesn't see the harm at all.
5. How much harm does the smoke do?
Each ton burned does E dollars of harm, so all of it together does
million dollars a year. The harm avoided is E times the tons no longer burned.
6. How big is the pie?
Economists measure the pie as everything the fuel is worth to its buyers, less everything it costs the sellers and the people downwind. Each ton adds the gap between the demand line and the social cost line. So the pie is biggest when burning stops where the two lines cross, at
million tons a year. Compare it with step 4: it's the same equation with E in place of t. That's why a price equal to the harm gives the biggest pie. Burn any other amount Q, and the pie is smaller by the shaded triangle between the two lines, whose area is
million dollars a year: half its base times its height. Economists call it the deadweight loss. It shrinks if too much is burned, and it shrinks just as surely if the price is set too high and too little is burned.
Where the equations stop
- A made-up market. Real demand and supply aren't straight lines, and nobody knows them this exactly. The numbers are chosen so you can check every step by hand.
- One number for the harm. The model charges every ton the same harm, and it takes that number as known. For CO₂ it's the social cost of carbon, and Chapter 14 shows how widely its estimates spread, mostly with the discount rate.
- Nothing changes but the amount. A seller facing a price on pollution might also clean up its smoke, and buyers might switch to clean energy, which gets cheaper as more is built. The model leaves those out, and they're much of why a price on pollution works.
- Who gets the slices. The pie adds everyone's gains and losses together. It doesn't say who pays the price, who gets its money or who still breathes the smoke.
A worked example
Open the page, leave the harm at $30 a ton and set the price on the pollution to $30. Here's where the table's numbers come from.
- Where the market settles (step 4). Q = (130 − 50 − 30) ÷ (0.5 + 0.3) = 50 ÷ 0.8 = 62.5 million tons a year. With no price it was 80 ÷ 0.8 = 100, so 37.5 million tons fewer are burned.
- The price the buyer pays (step 1). 130 − 0.5 × 62.5 = $98.75 a ton, up from $80. The seller keeps 98.75 − 30 = $68.75.
- The harm (step 5). H = 30 × 62.5 = 1,875 million dollars, or $1.88 billion a year. The harm avoided is 30 × 37.5 = $1.13 billion a year.
- The money the price brings in. 30 × 62.5 = $1.88 billion a year, the same as the harm that's left, because the price equals the harm.
- The pie (step 6). Qbest = (130 − 50 − 30) ÷ 0.8 = 62.5, the amount the market now burns, so L = 0: this is the biggest pie.
The table says 62.5 million tons a year, $98.75 a ton, $1.88 billion of harm and $1.13 billion avoided, and that the pie is as big as it can be.
See the equations at work
- The market doesn't see the harm. Press "Back to where the page opened" and move the harm from $0 to $80. The red line moves, but the amount burned and the price don't (step 4). Only the harm grows.
- The buyer pays most of the price. With the harm at $30, set the price to $30. The buyer's price goes up by $18.75 and the seller keeps $11.25 less. Each side's share is the steepness of its own line: 0.5 for the buyers and 0.3 for the sellers, out of 0.8. Buyers who can't easily do without the fuel pay more of the price.
- Too high a price. With the harm at $30, set the price to $60. Only 25 million tons are burned, and the pie is smaller than it could be by $0.56 billion a year: the same as with no price at all (step 6).
- Underestimating the harm. Set the harm to $60 and the price to $30. The pie is still $0.56 billion smaller than it could be. A price set by a guess at the harm is only as good as the guess.
Where the ideas come from
The market is made up, so there's no data. The ideas are Chapter 14's. The price on pollution is Arthur Pigou's:
Pigou, A. C. (1920). The Economics of Welfare. Macmillan, London.
The world's real hidden bill for fossil fuels, added up country by country, is the International Monetary Fund's. Chapter 14 uses it in section 14.5, "What fire really costs":
Black, S., W. Celniak, A. Garcia Huitron, I. W. H. Parry, P. Schulz Antipa and N. Vernon-Lin (2025). Underpriced and Overused: Fossil Fuel Subsidies Data 2025 Update. IMF Working Paper WP/25/270. International Monetary Fund. doi:10.5089/9798229034715.001
How it was checked
A set of tests comes with the model, and they run every time the page changes. Here's what they hold it to.
- The code, against a second copy. The tests have the six steps written out a second time, in another programming language. At every setting they try, the two copies agree to within a billionth.
- The pie, the long way. The tests add up the pie ton by ton, as the gap between the demand line and the social cost line, and check that step 6's triangle is what's lost.
- This tab, against the model. Every equation above is tried with the model's own numbers. The worked example is done again from the rounded numbers a calculator would use. And each number in the text is worked out again from the model.
The code
The code is small enough to read. Two files do all the work, and they use no outside software. The comments in model.js use the same step numbers and letters as the equations above.
model.js is the science: the six steps, and the made-up market.
app.js is the page: the sliders, the graph and the table.
To keep a copy, save model.js or app.js.
All of the model's code is on GitHub, at github.com/airscottdenning/climate-models. You're free to use it, change it and teach with it.
Credits
By Scott Denning, for Climate Change: Simple, Serious, Solvable.
The ideas are Chapter 14's. Claude, from Anthropic, wrote it to run in your browser and checked it against the book.