Comparative advantage is the single most counterintuitive result in introductory microeconomics: two parties can both gain from trade even when one of them is better at producing everything. The argument is short, but it relies on getting opportunity cost right. This guide walks the standard two-good, two-country example and pulls out the trade pattern and the gains.

Absolute Advantage Is Not the Question

Absolute advantage is who produces more of a good with the same resources. Comparative advantage is who produces a good at a lower opportunity cost. The two are different ideas, and absolute advantage is not what determines who should specialize.

That distinction is the entire payoff of the topic. A country (or a person) that is better at everything in absolute terms can still gain from trade, as long as it is relatively better at some things than others. The "gains from trade" come from each side specializing in what it gives up least to produce — and trading for the rest.

A Two-Country, Two-Good Example

Two countries, Atria and Brevia, can each spend one year of labor producing either wheat or cloth. Their production possibilities for one year:

  • Atria: 100 bushels of wheat or 50 bolts of cloth.
  • Brevia: 60 bushels of wheat or 20 bolts of cloth.

Atria is better at both goods — absolute advantage in wheat (100 > 60) and cloth (50 > 20). The naive conclusion is "Atria should make everything." That's the wrong answer.

A globe and a wooden basket holding raw wheat and a bolt of folded cloth on a desk
A globe and a wooden basket holding raw wheat and a bolt of folded cloth on a desk

Compute the opportunity cost of one extra unit, in terms of what each country gives up.

  • Atria — to produce 1 bushel of wheat, it gives up 50/100 = 0.5 bolts of cloth. To produce 1 bolt of cloth, it gives up 100/50 = 2 bushels of wheat.
  • Brevia — to produce 1 bushel of wheat, it gives up 20/60 = 0.33 bolts of cloth. To produce 1 bolt of cloth, it gives up 60/20 = 3 bushels of wheat.

Brevia gives up less cloth per bushel of wheat (0.33 < 0.5), so Brevia has the comparative advantage in wheat. Atria gives up less wheat per bolt of cloth (2 < 3), so Atria has the comparative advantage in cloth.

Notice the structure: each country has a comparative advantage in exactly one good, even though Atria has the absolute advantage in both. That is no accident — it is a mathematical consequence of opportunity costs being reciprocals of each other.

Specialize, Trade, and Both Gain

Now let each country specialize completely and split a year of labor between them. Without trade, suppose each had been splitting its labor in half:

  • Atria (no trade): 50 wheat + 25 cloth.
  • Brevia (no trade): 30 wheat + 10 cloth.
  • World totals: 80 wheat + 35 cloth.

With each specializing in its comparative-advantage good:

  • Atria: 0 wheat + 50 cloth.
  • Brevia: 60 wheat + 0 cloth.
  • World totals: 60 wheat + 50 cloth.

That's less wheat (60 vs. 80) but a lot more cloth (50 vs. 35). Specialization is only a win if the two trade. Pick a trade ratio between the two opportunity costs — say "1 bolt of cloth for 2.5 bushels of wheat." Atria gives up cloth (which costs it 2 bushels per bolt) and gets 2.5 bushels per bolt — better than producing wheat domestically. Brevia gives up wheat (1 wheat costs 0.33 cloth domestically) and gets 0.4 cloth per wheat — better than producing cloth domestically.

If they trade 30 cloth ↔ 75 wheat:

  • Atria ends with: 75 wheat + 20 cloth (vs. 50 + 25 before — net gain of 25 wheat, loss of 5 cloth; but at 2 wheat per cloth, the 25 wheat is worth 12.5 cloth, so Atria is up the equivalent of 7.5 cloth).
  • Brevia ends with: −15 wheat (60 − 75? wait — recompute below).

Let me reset the trade: 20 cloth ↔ 50 wheat.

  • Atria: produces 50 cloth, exports 20, keeps 30 cloth, imports 50 wheat. Final: 50 wheat + 30 cloth. Both larger than the no-trade 50 wheat + 25 cloth.
  • Brevia: produces 60 wheat, exports 50, keeps 10 wheat, imports 20 cloth. Final: 10 wheat + 20 cloth. Compare to no-trade 30 wheat + 10 cloth. Brevia trades 20 wheat for 10 cloth — at a ratio of 2 wheat per cloth, better than its own 3 wheat per cloth. Brevia ends up with 20 fewer wheat and 10 more cloth; at its own opportunity cost, the 10 cloth is worth 30 wheat, so Brevia is up the equivalent of 10 wheat.

Both countries finish with combinations outside their no-trade production possibilities. That is the gains-from-trade result.

What the Result Does and Does Not Say

The model says that voluntary trade based on comparative advantage raises total output and lets both sides consume bundles they couldn't reach alone. It does not say:

  • Every individual within a country gains. Workers in import-competing industries can be worse off even when the country as a whole gains.
  • Specialization should be 100%. Real countries diversify for many reasons — transport costs, varying production functions, strategic considerations — that this stripped-down model ignores.
  • Wages or living standards are equalized. The model is about gains relative to no-trade autarky, not absolute outcomes.

The lesson to take to an exam is procedural: identify the opportunity cost for each side, point to whoever gives up less, and that's the comparative-advantage producer. For more on how exchange creates surplus more generally, see consumer and producer surplus.

Conclusion

Comparative advantage rests on opportunity cost, not absolute productivity. Even if one party is better at everything, both can gain from trade as long as their opportunity costs differ — each specializes in the good it gives up least to make, then trades for the rest. Compute the opportunity costs, identify each side's comparative-advantage good, pick a trade ratio between the two opportunity costs, and both end up with consumption bundles they couldn't reach in autarky.