← Wonderland

Ricardo's Comparative Advantage

The most counterintuitive idea in economics: two countries always gain from trade with each other, even when one of them is worse at producing everything.

Most powerful ideas in economics feel obvious once you've heard them. Comparative advantage is the exception. It feels wrong. The economist Paul Samuelson once joked that of all the propositions in social science, it is the only one that is both true and non-trivial — and that it took him decades to find a way to convince people of it. David Ricardo set it down in 1817, in a single dense chapter of On the Principles of Political Economy and Taxation, and it has been quietly running the world economy ever since.

The idea, stripped to its core: it is not who is better that determines who should specialise in what. It is who gives up less to do it.

Ricardo's wine and cloth

Ricardo's original example uses England and Portugal, wine and cloth. He sets out a table of labour costs. Producing a unit of wine takes 80 hours in Portugal and 120 in England. Producing a unit of cloth takes 90 hours in Portugal and 100 in England.

Look at the columns. Portugal is better at both. Fewer hours for wine, fewer hours for cloth. Adam Smith, fifty years earlier, would have asked what each country was absolutely best at and assigned production accordingly — but here Portugal is best at everything. By that logic, England should make nothing and Portugal should make both. Trade has no role.

Ricardo saw what Smith had missed. The relevant question is not how many hours something takes you. It is what you give up to make it.

Labour hours per unit Country Wine (1 unit) Cloth (1 unit) England 120 hrs 100 hrs Portugal 80 hrs 90 hrs Opportunity cost of 1 wine in England: 120/100 = 1.20 cloth Opportunity cost of 1 wine in Portugal: 80/90 = 0.89 cloth

Ricardo's two-country, two-good world. Portugal is absolutely better at both, but worse at one in terms of what it gives up.

For every unit of wine England makes, it forgoes 120/100 = 1.20 units of cloth. For every unit of wine Portugal makes, it forgoes 80/90 = 0.89 units of cloth. Wine is cheaper for Portugal in the only sense that ultimately matters — what it costs in terms of the alternative.

Run the same calculation for cloth and the symmetry pops out. Cloth costs England 100/120 = 0.83 units of wine; it costs Portugal 90/80 = 1.13 units of wine. England gives up less wine to make cloth. So even though Portugal is faster at cloth in absolute terms, England has the lower opportunity cost. That is its comparative advantage.

The gains, made concrete

Suppose each country has 220 hours of labour. Without trade, Portugal splits its time and makes, say, one of each — 1 wine plus 1 cloth, using 170 hours, with 50 hours left over. England, slower at both, manages roughly 1 wine and 1 cloth as well, using all 220 hours. World output: 2 wine, 2 cloth.

Now let each country do what it's comparatively best at. Portugal pours all 220 hours into wine and makes 2.75 units. England puts all 220 into cloth and makes 2.20 units. They trade, at any rate between the two opportunity costs — say 1 wine for 1 cloth. Both end up with more of both goods than before. The world is richer not because anyone worked harder, but because each country stopped paying its higher opportunity cost.

It is not whether you are better at something. It is whether you are less worse at it than at the next-best thing you could be doing.

The result is robust in a way that surprises people. As long as the two countries' relative costs differ at all — as long as the opportunity-cost ratios are not identical — specialisation plus trade leaves both better off. The only case with no gains is when one country has exactly the same ratio of costs as the other; then the trade-off is the same everywhere and there is nothing to arbitrage.

What the diagram really shows

The deepest way to see comparative advantage is geometrically, as a kink in the world's production possibilities. Each country has a production possibility frontier: the line of all combinations of wine and cloth it could make if it used all its labour. The slope of that line is the opportunity cost. When two countries with different slopes pool their efforts, the joint frontier has a kink — and the area beyond either country's individual frontier is the gain from trade.

Wine Cloth England alone Portugal alone Joint frontier (with trade) Portugal: all wine England: all cloth gains from trade

Production possibility frontiers. Each country's slope is its own opportunity cost. Combined, the joint frontier bulges outward — that bulge is the gain.

This is why the principle generalises far beyond Ricardo's two countries and two goods. Replace nations with workers, hospitals, firms, or whole regions of the world economy and the logic carries through. A surgeon who can type a hundred words a minute should still hire an assistant: her opportunity cost of typing is operating on someone. A small country that produces nothing as cheaply as China still has things it should make, because it has things it gives up less to make than China does. The argument has no scale dependence.

What Ricardo's argument doesn't promise

Comparative advantage explains why total output rises when countries specialise. It does not promise that everyone inside a country wins. The workers in England's wine industry, in Ricardo's setup, are out of a job. They have to retrain, move, accept lower wages, or wait for new sectors to absorb them. The aggregate gains are real; the distributional pain is too. Two centuries of trade liberalisation, and the political backlash against it, can largely be read as this footnote playing out at scale.

There are other quiet assumptions. Labour and capital are taken to be mobile within a country but not across borders. Costs are assumed constant; in reality they rise as industries scale up. Technology is taken as fixed; in reality, specialising in something can change what you are good at, sometimes locking a country into a low-value niche. None of these undo the principle, but they qualify its policy reach.

Even so, the core insight is one of the few in social science that has survived everything thrown at it. The reason two countries trade is not that one is better than the other. The reason two countries trade is that their internal trade-offs are different — and wherever differences exist, there is a way to rearrange the world so both sides come out ahead. That is the strange, durable gift Ricardo left us, in one chapter, in 1817.


Further reading

  1. Ricardo, D. (1817). On the Principles of Political Economy and Taxation, chapter 7 — On Foreign Trade.
  2. Samuelson, P. (1969). The Way of an Economist — on comparative advantage as the only non-trivial truth in social science.
  3. Krugman, P. (1996). Ricardo's Difficult Idea, essay.
  4. Dixit, A. & Norman, V. (1980). Theory of International Trade, chapter 2.