The counterintuitive insight
Imagine England can produce both cloth and wine more efficiently than Portugal. Intuitively, you might think there's no reason to trade. David Ricardo showed in 1817 that this logic is wrong. Even if England is twice as efficient at producing cloth and 1.5 times as efficient at producing wine, it should still specialise in cloth — because cloth is where its relative advantage is greatest — and import wine from Portugal.
Opportunity cost is the key
Comparative advantage is really about opportunity cost — what you give up to produce one unit of something. England produces cloth at the cost of 0.83 units of wine (100/120). Portugal produces cloth at the cost of 1.125 units of wine (90/80). So England's opportunity cost for cloth is lower — cloth is its comparative advantage. Portugal's opportunity cost for wine is lower — wine is its comparative advantage.
Comparative advantage in the modern world
Today's comparative advantages are less about natural resources and more about skilled labour, technology clusters, institutions, and accumulated expertise. The US has comparative advantage in software, finance, and pharmaceutical R&D. Germany in precision manufacturing. Bangladesh in garment production. These advantages shift over decades as education, capital, and technology spread — which is why China moved from textiles in the 1980s to electric vehicles and solar panels today.
The limits
Comparative advantage is a powerful explanation for why trade benefits both parties on average — but it doesn't mean everyone within a country benefits. Workers in industries that lose out to imports may be permanently displaced, and the gains from trade don't automatically compensate them. This distributional tension is at the heart of most trade policy debates.
"The theory of comparative advantage is one of the most elegant — and most frequently misunderstood — ideas in all of economics." — Paul Samuelson
What this means for you
Global equity index funds work partly because of comparative advantage: you own companies across many countries, each specialising in what they do best. Understanding comparative advantage also helps you evaluate political debates about trade — the argument that "we should make everything ourselves" ignores that doing so would make consumers of those goods significantly worse off.