How markets and economies work Lesson 4 of 7
Economics · Foundations
Comparative advantage: why trade pays even for the better producer
Ricardo’s 1817 idea worked through step by step: absolute vs comparative advantage, a two-country production example, and what the China-shock evidence adds.
On this page
Why would a country that can make everything more cheaply than its neighbor still buy from that neighbor? The answer, published by the English economist David Ricardo in 1817, is one of the few results in economics that is both surprising and almost universally accepted: what matters for trade is not who is best at something in absolute terms, but who gives up the least to make it. That is comparative advantage.
The idea explains why countries, firms and people specialise, and why trade can raise total output even when one side is better at everything. It also has limits that matter just as much. It says the total gains are positive; it does not say everyone gains, or that the adjustment is painless. This lesson works through Ricardo's own numbers, draws the production possibilities, and then sets the theory against the best-known evidence on what a surge of imports did to American factory towns.
Absolute versus comparative advantage
Absolute advantage: producing a good with fewer inputs than someone else. A surgeon who types faster than her assistant has an absolute advantage in typing.
Comparative advantage: producing a good at a lower opportunity cost. The surgeon's hour of typing costs an hour of surgery; the assistant's hour of typing costs much less. So the assistant has the comparative advantage in typing, and both are better off when the surgeon operates and the assistant types, even though the surgeon is faster at both.
Because opportunity costs are ratios, if one party's cost of X is lower, its cost of Y must be higher. Two parties with different ratios always have something to gain from trade.
Ricardo's example, worked through
Ricardo's chapter "On Foreign Trade" imagines two countries and two goods. His numbers are labour needed to produce a given quantity of each good for one year:
| Country | Cloth (workers) | Wine (workers) |
|---|---|---|
| England | 100 | 120 |
| Portugal | 90 | 80 |
Portugal needs fewer workers for both goods: it has the absolute advantage in cloth and in wine. Now look at opportunity costs.
The gain from specialising
Without trade, suppose each country makes one unit of each good. England uses 100 + 120 = 220 workers; Portugal uses 90 + 80 = 170. World output: 2 cloth and 2 wine.
Now let each country put all its workers into its comparative-advantage good:
- England's 220 workers make 220 ÷ 100 = 2.2 cloth.
- Portugal's 170 workers make 170 ÷ 80 = 2.125 wine.
The same 390 workers now produce 0.2 more cloth and 0.125 more wine. Trade then shares out the extra. Any exchange rate between 0.89 and 1.20 cloth per wine leaves both countries better off than they were alone. At one cloth for one wine, England ends with 1.2 cloth and 1 wine, Portugal with 1 cloth and 1.125 wine: each has more of one good and no less of the other.
The chart shows the same thing geometrically. A country's production-possibility frontier is every mix of the two goods it can make with its workers. Its slope is the opportunity cost. Portugal's line is steeper in wine because wine is relatively cheap for it. Trade lets each country consume outside its own frontier, which no amount of effort at home could achieve.
What comparative advantage does not say
The theory is a statement about total output under tidy assumptions: workers move freely between industries, there is full employment, and costs per unit stay constant. Each assumption can fail.
- Distribution. Trade raises the size of the pie, not every slice. Within each country, producers of the imported good lose, while consumers and exporters gain. The gains are spread thinly over many buyers; the losses fall heavily on a few industries and places.
- Adjustment is slow and costly. In Ricardo's model a weaver becomes a vintner overnight. In practice workers are tied to a place, a skill and a house, and a closed plant can depress a whole town for years.
- Advantage can change. Comparative advantage is not fixed by nature. Education, investment, scale and policy reshape it over decades.
- It says nothing about trade balances. Comparative advantage explains what a country exports and imports, not whether it runs a deficit. That depends on national saving and investment, covered in Trade balance: how the US trade deficit is measured and read.
The evidence: the "China shock"
US goods imports from China rose from $15.2 billion in 1990 to $100.0 billion in 2000 and $321.4 billion in 2007 (Census data, calendar-year totals; China joined the World Trade Organization on December 11, 2001). Over roughly the same years, US manufacturing employment fell from 17.3 million in January 2000 to 13.7 million in December 2007 and 11.4 million in February 2010.
Two lines moving in opposite directions prove nothing on their own: automation and the 2001 and 2008 recessions also hit factory jobs. The study by David Autor, David Dorn and Gordon Hanson in the American Economic Review (2013) tried to isolate trade. They compared local labor markets according to how exposed their industries were to Chinese competition, and used Chinese imports into other rich countries to separate China's own growth from US demand. Their findings:
- Areas more exposed to rising Chinese imports saw higher unemployment, lower labor force participation and lower wages.
- Rising import competition explained about one quarter of the fall in US manufacturing employment from 1990 to 2007 in their main estimate.
- Spending on unemployment, disability, retirement and health-care transfers rose noticeably more in the most exposed areas.
None of this overturns Ricardo. Consumers paid less for many goods, and exporters gained. What the evidence adds is that the losses were concentrated, large and slow to heal, which the simple model leaves out. That is why the debate over trade is rarely about whether there are gains, and mostly about who gets them and who bears the cost.
Common mistakes
- "They are better at everything, so we cannot compete." A country with no absolute advantage still has a comparative advantage in something; wages and exchange rates adjust so that its relatively efficient industries can sell.
- Confusing comparative advantage with low wages. Low wages usually reflect low productivity. What drives the trade pattern is relative cost across goods within each country.
- Treating a trade deficit as a loss of the gains from trade. The gains come from specialisation and exchange; the deficit is a separate, financing question.
- Assuming the gains reach everyone. They are real in total and uneven in detail, as the China-shock research shows.
Comparative advantage and related ideas
| Idea | What it says |
|---|---|
| Absolute advantage | Who uses fewer resources per unit |
| Comparative advantage | Who gives up less per unit; sets the trade pattern |
| Opportunity cost | The value of the best alternative given up |
| Trade balance | Exports minus imports; a saving–investment matter |
| Tariff | A tax on imports that raises their domestic price |
A tariff pushes a country back toward producing goods where its opportunity cost is higher, so economists generally expect it to reduce total output, even when it protects particular jobs.
How Finabase does it
Finabase does not model trade patterns. The figures on this page are ours, from Census and BLS series. The app shows where trade meets markets:
- The Economy page calendar lists scheduled US data releases, with the forecast, the actual figure and the previous reading for each.
- Country funds show how investors priced each economy. FXI, a fund of large Chinese companies, has its own page and chart.
- Exchange rates move with trade flows. The dollar–yuan rate and the forex page chart the currencies that settle that trade; see The US dollar and exchange rates: indexes, drivers and earnings.
Frequently asked questions
What is the difference between absolute and comparative advantage?
Absolute advantage is producing something with fewer resources; comparative advantage is producing it at a lower opportunity cost. Trade patterns follow comparative advantage, so even a country with no absolute advantage can export profitably.
Who came up with comparative advantage?
David Ricardo set it out in 1817 in On the Principles of Political Economy and Taxation, using England, Portugal, cloth and wine. His four numbers are still the standard classroom example.
Does free trade benefit everyone?
Not individually. Comparative advantage shows that total output rises, but the workers and towns that competed with imports can lose a great deal, as research on the China shock found. Whether the winners compensate the losers is a policy choice.
Does comparative advantage explain the US trade deficit?
No. It explains which goods a country exports and imports. Whether the total of imports exceeds exports depends on how much the country saves and invests, which is a separate question covered in the trade balance lesson.
Summary
Comparative advantage says that the party who gives up the least to make a good should make it, and that trading on that basis raises total output even when one side is more efficient at everything. In Ricardo's 1817 example Portugal needs fewer workers for both cloth and wine, yet specialisation raises the pair's output from 2 cloth and 2 wine to 2.2 cloth and 2.125 wine. The theory is about totals under tidy assumptions. Evidence such as Autor, Dorn and Hanson's study of rising Chinese imports, which explained about a quarter of the fall in US factory jobs from 1990 to 2007, shows that the losses can be concentrated and lasting. Both halves matter: the gains are real, and so are the costs.
Check your understanding
4 questions on this lesson. Each answer comes with the reason, and nothing is scored.
Country A can make a car with 10 workers or a tonne of wheat with 5. Country B needs 40 workers for a car and 10 for a tonne of wheat. Which country has the comparative advantage in wheat?
- Country A, because it needs fewer workers for wheat
- Country B, because a tonne of wheat costs it only 0.25 cars, against 0.5 cars in Country A
- Neither, because Country A is better at both goods
Show the answer
B. Country B, because a tonne of wheat costs it only 0.25 cars, against 0.5 cars in Country A Country A has the absolute advantage in both goods, but comparative advantage is about opportunity cost. Wheat costs B a quarter of a car and A half a car, so B should grow wheat and A should make cars.
In Ricardo’s example, England and Portugal each make one unit of cloth and one of wine without trade. After specialising they make 2.2 cloth and 2.125 wine. Where does the extra output come from?
- From more workers joining the labour force
- From each country moving its workers into the good it gives up least to make
- From Portugal working harder because it is more efficient
Show the answer
B. From each country moving its workers into the good it gives up least to make The 390 workers are the same. Reallocating them according to opportunity cost lets the same labour produce more of both goods in total.
A study finds that towns more exposed to rising imports lost more jobs and saw lower wages, while national output from trade rose. Does this contradict comparative advantage?
- Yes: it proves trade lowers output
- No: the theory predicts aggregate gains and says nothing about how they are shared or how fast workers adjust
- No: the job losses were caused only by automation
Show the answer
B. No: the theory predicts aggregate gains and says nothing about how they are shared or how fast workers adjust Comparative advantage is a statement about total output. The China-shock evidence (Autor, Dorn and Hanson, 2013) shows the losses can be concentrated and lasting, which is a distribution and adjustment question.
A politician says: "We run a trade deficit with Country X, so trade with X must be making us poorer." What is the economist’s answer?
- Correct: a deficit means the gains from trade went to X
- The gains from trade come from specialisation; the overall deficit reflects national saving and investment, a separate question
- Deficits are impossible under comparative advantage
Show the answer
B. The gains from trade come from specialisation; the overall deficit reflects national saving and investment, a separate question Comparative advantage explains what is traded, not the balance. A country can gain from trade with a deficit or a surplus.
Exercise
One task to do in Finabase. Nothing is graded or saved.
US goods imports from China rose from $100 billion in 2000 to $321.4 billion in 2007, and the 12-month total peaked around $540 billion in 2018. Open the full-history chart of FXI, a fund of large Chinese companies. Find its 2007 peak, then follow it through the years when trade with the US kept growing, up to 2018. Did the shares of China’s biggest listed companies rise in step with that trade?
Open the FXI chartWhat you should find
FXI soared into its 2007 peak, then spent most of the following years below it, while imports from China kept climbing. The gains from trade in Ricardo’s model are extra output, shared out as cheaper goods for buyers and income for exporters overall. They need not reach one group of shareholders, whose returns also depend on valuations, profits and policy.
Sources and further reading
- Ricardo, D. — On the Principles of Political Economy and Taxation (1817), chapter 7, "On Foreign Trade"; 3rd edition (1821) text at the Library of Economics and Liberty, retrieved 2026-11-18
- Autor, D. H., Dorn, D. and Hanson, G. H. — The China Syndrome: Local Labor Market Effects of Import Competition in the United States, American Economic Review 103(6), 2013, 2121–68
- World Trade Organization — China and the WTO (member since 11 December 2001), retrieved 2026-11-18
- Census Bureau — US imports of goods from China, monthly (FRED series IMPCH), downloaded 2026-11-18
- BLS — All employees, manufacturing (FRED series MANEMP), downloaded 2026-11-18
