What Is Comparative Advantage?


6 min read≈ 1,220 words3 questions · up to 3 points
What this is about
In David Ricardo's famous example of 1817, Portugal makes both cloth and wine with fewer workers than England, and yet he argues that Portugal should buy its cloth from England. You learn the logic behind this result with Ricardo's own four numbers, why it applies to people as much as to countries, and why trade that makes a country richer can still leave whole towns poorer for a decade.
In a nutshell· skip ahead
Comparative advantage is the rule that a country or a person gains by making what costs them least in other things given up, and by trading for the rest. What counts is this cost measured in the other goods, not who works fastest, so two sides can both gain from trade even when one of them is better at everything.
In 1817 the English economist David Ricardo published an example with four numbers that economics students still learn today. In his example Portugal can make both cloth and wine with fewer workers than England. Even so, Ricardo argued that Portugal should make only wine and buy its cloth from England. Why would a country import something that it can make with less work at home?
What is comparative advantage?
Comparative advantage is the rule that a country or a person gains by making what costs them least in other things given up, and by trading for the rest. Being able to make something with fewer hours of work is called an absolute advantage, and it does not decide who should make what. What decides it is the opportunity cost, which here means how much of the other good you give up for each unit you make.
Ricardo’s example in chapter 7 of On the Principles of Political Economy and Taxation shows the mechanism in four steps. His numbers are the workers needed for one year to make a fixed amount of each good, which we will call one unit.
| One unit of cloth | One unit of wine | |
|---|---|---|
| England | 100 workers | 120 workers |
| Portugal | 90 workers | 80 workers |
- Portugal is better at both goods. It needs fewer workers for cloth (90 against 100) and for wine (80 against 120), so it has the absolute advantage in both.
- Compare the costs inside each country. In Portugal, the 90 workers who make one unit of cloth could have made about 1.13 units of wine instead (90 divided by 80). In England, the 100 workers who make one unit of cloth could have made only about 0.83 units of wine (100 divided by 120). Cloth therefore costs England less wine than it costs Portugal, so England has the comparative advantage in cloth and Portugal has it in wine.
- Each country makes one good. If each country makes one unit of each good, the two together make 2 units of cloth and 2 units of wine. If England puts all its 220 workers into cloth, it makes 2.2 units, and if Portugal puts all its 170 workers into wine, it makes 2.125 units. The same workers now make more of both goods.
- The two countries trade. Any price between 0.83 and 1.13 units of wine for one unit of cloth leaves both countries better off. Ricardo used one for one, so England gets wine that would have cost it 120 workers for cloth made by 100, and Portugal gets cloth that would have cost it 90 workers for wine made by 80.
The surprising part is that Portugal buys cloth from a country that needs more workers to make it, and Ricardo stated it plainly.
Though she could make the cloth with the labour of 90 men, she would import it from a country where it required the labour of 100 men to produce it
You may ask how England can sell anything at all when it is worse at everything. In the modern version of the model, wages in England settle lower than in Portugal, so English goods stay cheap in money where England’s disadvantage is smallest, which is cloth. The more productive country keeps its higher wages, and the less productive one still has something worth selling.
What comparative advantage teaches you
Before you do a task yourself because you do it best, ask what else your hour could have produced, because the right question is who gives up least, not who works fastest.
- Work. Imagine a lawyer who types twice as fast as her assistant. She should still let him type her letters, because an hour of her typing costs an hour of legal work that earns many times his wage. She has the absolute advantage in typing, but he has the comparative advantage.
- Studies and shared homes. In a group project or a shared flat, the person who is good at everything helps most by taking the tasks where her lead is largest and leaving the rest to others.
- The news. When someone claims that a country “cannot compete” because another country is more productive at everything, Ricardo’s example shows that trade can still benefit both. A country’s lower productivity shows up in lower wages, not in having nothing to sell.
When the mathematician Stanislaw Ulam asked the economist Paul Samuelson for an idea in economics that was both universally true and not obvious, Samuelson named comparative advantage.
Where does the rule stop working?
The most common misconception is that comparative advantage means “do what you are best at”. In Ricardo’s example Portugal is better than England at making cloth and should still not make it. The rule means doing what you are relatively best at, which for a side that is good at everything means leaving some things it does well to others.
The strongest objection is that the gains go to a country as a whole, not to every person in it. Ricardo’s model assumes that workers move from cloth to wine without cost and that everybody keeps a job.
The economists David Autor, David Dorn and Gordon Hanson tested what happens when this fails. They found that rising imports from China from 1990 to 2007 explain about a quarter of the fall in US manufacturing jobs in that period. In the most exposed towns, wages stayed low and unemployment stayed high for at least ten years. By 2016 they had not found the new jobs elsewhere that the theory expects to make up for the lost ones. Theory says the winners could compensate the losers, but it does not say that they will.
Two further assumptions matter. Ricardo assumed that capital stays at home. He even wrote that English capitalists would gain if both goods were made in Portugal, so in a world where factories move easily his argument needs more care. Comparative advantage is also not fixed by nature, because skills and factories built today change what a country makes cheaply tomorrow. Splitting work has costs of its own as well, as What Is Brooks’s Law? shows for software teams in which every new person adds conversations.
Learn more
There is no single uncontested originator of comparative advantage. The British economist Robert Torrens wrote in 1815, in An Essay on the External Corn Trade, that a country might import goods it could make more cheaply itself. David Ricardo, a London stockbroker who had made a fortune and turned to economics at 27 after reading Adam Smith’s The Wealth of Nations, gave the full argument with numbers in 1817. The economist Roy Ruffin argued in 2002 that Ricardo found it in October 1816 and that Torrens did not grasp the whole logic, but historians still disagree about the credit.
Comparative advantage is opportunity cost applied to trade, and What Is Opportunity Cost? explains how to find the value of the best alternative you give up. Even when both countries would gain from free trade, each may keep its own barriers, a pattern that What Is the Prisoner’s Dilemma? explains with a payoff table.
Quiz
3 questions · up to 3 points
Open a question and pick one answer. Only your first answer counts: +1 if it is right, −1 if it is wrong.
In Ricardo's example, why should England make cloth, although Portugal needs fewer workers for cloth than England does?
Show answer
Because in England one unit of cloth costs less wine given up than it does in Portugal. English cloth costs about 0.83 units of wine, Portuguese cloth about 1.13 units, so England's opportunity cost of cloth is lower, and that decides the comparative advantage.
A doctor sorts her patients' files twice as fast as her receptionist does, and an hour of her medical work earns far more than an hour of his work. What does comparative advantage suggest?
Show answer
The receptionist should sort the files, because an hour of the doctor's sorting costs an hour of medical work. The doctor has the absolute advantage in sorting, but the receptionist has the comparative advantage, because he gives up much less to do it.
Which statement about the gains from trade fits the evidence described in the article?
Show answer
A country as a whole can gain, while workers in towns hit by imports can stay worse off for a decade or more. Autor, Dorn and Hanson found that in US towns exposed to Chinese imports, wages stayed low and unemployment stayed high for at least ten years after the shock began.
Your points are saved only in this browser for now. Accounts that keep them for good are on the way.
Continue learning: What Is Opportunity Cost? →The takeaway
Comparative advantage is the rule that a country or a person gains by making what costs them least in other goods given up and trading for the rest. In Ricardo's example Portugal needs fewer workers for both cloth and wine, yet the two countries make more of both when England makes only cloth and Portugal only wine. The gain goes to a country as a whole, while workers who lose their jobs to imports can stay worse off for a decade. Before doing a task because you do it best, ask what else your time could produce.
Cheat card
The whole idea on one page. Tap to open it full size, download it below, or test yourself against it tomorrow.


Download
- Light card · PNG image, 411 KB
- Dark card · PNG image, 418 KB
- Printable light card · PDF, searchable, 24 KB
Read the card as text
comparative advantage: The rule that a country or person gains by making what costs them least in other things given up, and trading for the rest.
How it works
- Making one good uses workers who could have made another good instead.
- So each good has a cost counted in the other good given up.
- Each side makes the good whose cost in the other good is lowest for it.
- So total output of both goods rises, and trade lets both sides share the gain.
Example: Ricardo's England and Portugal, 1817
- Per unit, Portugal needs fewer workers than England for cloth (90 vs 100) and wine (80 vs 120).
- Cloth costs England 0.83 units of wine given up, but costs Portugal 1.13 units.
- → England makes only cloth (2.2 units) and Portugal only wine (2.125 units).
- → Together the two countries make more of both goods than the 2 units of each before.
Use it for
- Deciding whether to do a task yourself or leave it to a slower colleague
- Dividing tasks in a group project or shared flat by who gives up least
- Judging claims that a less productive country cannot compete in trade
Watch out
- Trade helps a country, but workers losing jobs to imports can stay worse off for years.
- Comparative advantage does not mean doing what you are best at, but what costs you least.
Remember: If you are fastest at a task, ask what else that hour could produce.
References
- On the Principles of Political Economy and Taxation, chapter 7: On Foreign Trade. David Ricardo, John Murray, 3rd edition (Library of Economics and Liberty), 1821
The original text with the England and Portugal example, the four numbers and Ricardo's remark that capital does not move freely between countries.
- Comparative Advantage. Donald J. Boudreaux, The Concise Encyclopedia of Economics (Econlib), 2008
A short, plain explanation with a second worked example and the story of Samuelson's answer to Ulam.
- The China Syndrome: Local Labor Market Effects of Import Competition in the United States. David H. Autor, David Dorn and Gordon H. Hanson, American Economic Review 103 (6), 2121–2168, 2013
The study that showed how Chinese imports from 1990 to 2007 raised unemployment and lowered wages in exposed US towns.
- The China Shock: Learning from Labor-Market Adjustment to Large Changes in Trade. David H. Autor, David Dorn and Gordon H. Hanson, Annual Review of Economics 8, 205–240 (NBER Working Paper 21906), 2016
A review of the evidence on how slowly local labour markets adjust after a large rise in imports.
- David Ricardo's Discovery of Comparative Advantage. Roy J. Ruffin, History of Political Economy 34 (4), 727–748, 2002
A history of how Ricardo found the idea in 1816 and why the author does not give the credit to Robert Torrens.





