THURSDAY, 3 DECEMBER 2026GLOBAL ECONOMICS INTELLIGENCE
StudyExplainer

Comparative Advantage Explained: Opportunity Cost, the Terms of Trade and Revealed Comparative Advantage

  • ▸A country gains from trade by specializing where its opportunity cost is lowest, even if a trading partner is more productive in every good; both gain when the terms of trade fall between their own opportunity costs.
  • ▸In a two-country example, Home is better at both goods yet both countries end up with 3 more units of wine after specializing and trading at 0.75 wine per unit of cloth; Foreign competes through a lower wage.
  • ▸World Bank export data for 2024 show revealed comparative advantage in manufactures for Germany and Japan, fuels for Norway (index 5.84), ores and metals for Australia (8.48) and food for New Zealand (7.37).
ShareWhatsApp

Understanding comparative advantage — simply put

Comparative advantage is the idea that a country gains from trade by specializing in the goods it gives up the least to produce, even if another country is better at producing everything. What matters is not who is fastest in absolute terms but who has the lower opportunity cost: the amount of one good that must be sacrificed to make one more unit of another. David Ricardo set out the argument in 1817, and it remains the starting point for explaining why countries trade, what they export, and why both sides of a trade can gain.

How does it actually help?

Take two countries, Home and Foreign, that each have 120 hours of labor and make two goods, cloth and wine. Home needs 2 hours for a unit of cloth and 4 hours for a unit of wine; Foreign needs 6 hours for each. Home is better at both. Yet the opportunity cost of a unit of cloth is aC/aWa_C/a_W, where aCa_C and aWa_W are the hours needed per unit of cloth and wine. For Home that is 2/4=0.52/4 = 0.5 units of wine; for Foreign it is 6/6=16/6 = 1 unit of wine.

Home gives up less wine to make cloth, so Home has the comparative advantage in cloth, and Foreign, which gives up only 1 cloth per wine against Home's 2, has the comparative advantage in wine. If Home specializes in cloth and Foreign in wine, and they trade at a price between 0.5 and 1 unit of wine per cloth, both can consume more than they could alone.

Why does this matter?

Comparative advantage explains why a rich, productive economy still imports goods it could make itself, and why a less productive economy can still export. It underpins the case for open trade made by the WTO, the IMF and most trade economists, and it is the benchmark against which tariffs and trade policy are judged. It also shows what trade does not promise: the gains are national totals, and workers in the industries that shrink can lose.

What makes comparative advantage reliable?

The result holds whenever opportunity costs differ between countries, which is almost always the case. Its practical force depends on workers and capital being able to move between industries, on trade costs being low enough that trade happens at all, and on the terms of trade landing between the two countries' own opportunity costs. When those conditions fail, the gains shrink or are spread unevenly.

The takeaway

Specialize where your opportunity cost is lowest and trade for the rest. The examples below work through the logic by hand, then measure comparative advantage in real export data for seven developed economies.

A hand-worked example: who should make what?

The numbers are illustrative. Home and Foreign each have L=120L = 120 hours of labor. The unit labor requirements are:

  • Home: aC=2a_C = 2 hours per unit of cloth, aW=4a_W = 4 hours per unit of wine.
  • Foreign: aC∗=6a_C^* = 6, aW∗=6a_W^* = 6 (an asterisk marks Foreign).

Step 1: absolute advantage. Home needs fewer hours for both goods, so Home has an absolute advantage in both. This does not settle the pattern of trade.

Step 2: opportunity costs. One unit of cloth costs Home aC/aW=2/4=0.5a_C/a_W = 2/4 = 0.5 wine, and costs Foreign aC∗/aW∗=6/6=1a_C^*/a_W^* = 6/6 = 1 wine. One unit of wine costs Home 4/2=24/2 = 2 cloth and Foreign 6/6=16/6 = 1 cloth. Home is the low-cost producer of cloth, Foreign of wine.

Step 3: autarky. Without trade, suppose each country splits its labor evenly. Home makes 60/2=3060/2 = 30 cloth and 60/4=1560/4 = 15 wine. Foreign makes 60/6=1060/6 = 10 cloth and 1010 wine. Inside each country, the price of cloth in terms of wine equals the opportunity cost: 0.5 at Home, 1 in Foreign.

Step 4: the range for the terms of trade. The terms of trade are the world price of cloth measured in wine. Home will sell cloth only if it gets more than 0.5 wine for it; Foreign will buy cloth only if it pays less than 1 wine. Any price between 0.5 and 1 suits both. Take 0.75.

Step 5: specialize and trade. Home makes only cloth: 120/2=60120/2 = 60 units. Foreign makes only wine: 120/6=20120/6 = 20 units. Home exports 12 cloth and receives 12×0.75=912 \times 0.75 = 9 wine. Home consumes 48 cloth and 9 wine; Foreign consumes 12 cloth and 11 wine.

Step 6: check the gains. On its own, Home could have 48 cloth only by using 96 hours, leaving 24 hours for 24/4=624/4 = 6 wine. With trade it has 9 wine, 3 more. On its own, Foreign could have 12 cloth only by using 72 hours, leaving 48 hours for 48/6=848/6 = 8 wine. With trade it has 11, also 3 more. World output of cloth is 48+12=6048 + 12 = 60 and of wine 9+11=209 + 11 = 20, so consumption equals production. Both countries reach a consumption point that lies outside what they could produce alone. The split depends on the price: at 0.6 wine per cloth Home gains 1.2 wine and Foreign 4.8; at 0.9 Home gains 4.8 and Foreign 1.2.

Step 7: wages. Home is more productive in both goods, so Home wages are higher. With Home making cloth at 2 hours per unit and Foreign making wine at 6 hours per unit, a price of 0.75 wine per cloth means an hour of Home labor earns 0.75/2=0.3750.75/2 = 0.375 wine and an hour of Foreign labor earns 1/6=0.1671/6 = 0.167 wine. Home's wage is 2.25 times Foreign's. That ratio lies between Home's productivity edge in wine (6/4=1.56/4 = 1.5) and in cloth (6/2=36/2 = 3), which is the condition for each country to be the cheaper producer of one good. Foreign competes because its lower wage offsets its lower productivity in the good it makes.

Worked example: revealed comparative advantage in developed economies

Opportunity costs cannot be observed directly, so economists measure comparative advantage from what countries actually export. Bela Balassa's revealed comparative advantage (RCA) index divides a good's share in a country's exports by its share in world exports. An index above 1 means the country exports relatively more of that good than the world does, which suggests a comparative advantage in it.

For Norway, fuels were 65.53% of merchandise exports in 2024, against 11.23% for the world, so its RCA in fuels is 65.53/11.23=5.8465.53/11.23 = 5.84. The table applies the same calculation to four product groups.

Germany: 1.221.22GermanyJapan: 1.21.20JapanFrance: 1.131.13FranceUnited States: 0.810.81United StatesNorway: 0.220.22NorwayAustralia: 0.140.14AustraliaNew Zealand: 0.230.23New Zealand
CountryManufacturesFuelsFoodOres and metals
Germany1.220.180.690.68
Japan1.200.120.130.85
France1.130.391.460.59
United States0.811.631.040.71
Norway0.225.841.121.30
Australia0.142.961.338.48
New Zealand0.230.107.370.82
Revealed comparative advantage by product group, 2024 (export share ÷ world export share) — Source: World Bank, World Development Indicators (series TX.VAL.MANF.ZS.UN, TX.VAL.FUEL.ZS.UN, TX.VAL.FOOD.ZS.UN, TX.VAL.MMTL.ZS.UN, based on UN Comtrade merchandise trade data), database updated November 11, 2026, accessed November 30, 2026. World shares in 2024: manufactures 68.79%, fuels 11.23%, food 9.10%, ores and metals 4.03%. Indices computed by EconoLens. Services exports are not included.

How to read it. Germany and Japan show a revealed comparative advantage in manufactures and none in fuels or food. Norway's is mainly in fuels (65.53% of its merchandise exports), Australia's in ores and metals (an index of 8.48), fuels (2.96) and, more weakly, food (1.33), and New Zealand's in food (7.37). France shows an advantage in both manufactures and food. The United States has indices between 0.71 and 1.63 in all four groups, above 1 in fuels (1.63) and, barely, food (1.04).

Example–policy fit. These patterns reflect more than Ricardo's labor productivity. Norway's and Australia's indices come mainly from natural resources, which is the Heckscher–Ohlin explanation of trade (countries export goods that use their abundant factors intensively). Farm subsidies, tariffs and the location of multinational supply chains also shape export shares. RCA measures the outcome of all these forces, so it shows where a country trades successfully, not why. The index also leaves out services, which were 35.7% of US exports of goods and services in 2024 (World Bank, series BX.GSR.NFSV.CD and BX.GSR.GNFS.CD).

The assumptions

Labor moves freely between industries within a country. Why it matters: the gains in the example come from shifting Home's labor from wine to cloth. If workers cannot change jobs, specialization stalls and the displaced workers bear the cost; the national gain still exists in the long run but takes time to arrive.

Constant opportunity costs (constant returns). Each extra unit of cloth costs the same amount of wine. Why it matters: this produces complete specialization. With rising costs, as in the Heckscher–Ohlin model, countries specialize only partly, and each keeps producing some of both goods.

No trade costs. Why it matters: transport costs and tariffs drive a wedge between export and import prices. If the wedge is larger than the gap in opportunity costs (0.5 versus 1 in the example), trade does not happen and no gains are realized.

Full employment and balanced trade. Why it matters: the comparison is between two full-employment outcomes. Comparative advantage is a theory of the pattern of trade, not of the trade balance or unemployment, which depend on saving, investment and macroeconomic policy.

The formula

The formal treatment below is optional for readers who want the general case. With unit labor requirements aia_i at Home and ai∗a_i^* in Foreign for good ii, Home has a comparative advantage in good 1 over good 2 when:

a1a2<a1∗a2∗\frac{a_1}{a_2} < \frac{a_1^*}{a_2^*}
where a_i is the hours of labor needed for one unit of good i at Home, and a_i* the same in Foreign.

Applied to the example: 2/4=0.5<6/6=12/4 = 0.5 < 6/6 = 1, so Home has the comparative advantage in cloth.

Autarky prices and the terms of trade. With labor the only input and competitive markets, the price of a good equals its labor cost, so the relative price at Home is p1/p2=a1/a2p_1/p_2 = a_1/a_2. Trade makes both countries better off when the world relative price pWp^W lies between the two autarky prices:

a1a2≤pW≤a1∗a2∗\frac{a_1}{a_2} \le p^W \le \frac{a_1^*}{a_2^*}
where p^W is the world price of good 1 in units of good 2.

In the example, 0.5≤0.75≤10.5 \le 0.75 \le 1. If pWp^W equaled one country's autarky price, that country would gain nothing and the other would take all the gains.

Many goods. Rank goods by Home's productivity advantage ai∗/aia_i^*/a_i, from highest to lowest. With wages ww at Home and w∗w^* in Foreign, Home produces good ii more cheaply when wai<w∗ai∗w a_i < w^* a_i^*, that is when:

ai∗ai>ww∗\frac{a_i^*}{a_i} > \frac{w}{w^*}
where w/w* is Home's wage relative to Foreign's.

Home makes every good whose productivity advantage exceeds its relative wage; Foreign makes the rest. This is the chain of comparative advantage in the Dornbusch–Fischer–Samuelson model. Applied to the example: Home's productivity advantage is 6/2=36/2 = 3 in cloth and 6/4=1.56/4 = 1.5 in wine, so any relative wage between 1.5 and 3 has Home making cloth and Foreign making wine. Step 7 found 2.25.

The Balassa index. For country cc and good ii:

RCAci=Xci/XcXwi/XwRCA_{ci} = \frac{X_{ci} / X_c}{X_{wi} / X_w}
where X_ci is country c's exports of good i, X_c its total exports, X_wi world exports of good i and X_w total world exports.

An index above 1 is read as a revealed comparative advantage. The index is asymmetric: it runs from 0 to 1 for disadvantage and from 1 to very large numbers for advantage, which is why Australia's index for ores and metals reaches 8.48. A common fix is the symmetric version (RCA−1)/(RCA+1)(RCA - 1)/(RCA + 1), which lies between −1 and 1.

When this isn't the right tool

Trade driven by factor endowments. When countries differ in capital, land or skills rather than technology, the Heckscher–Ohlin model predicts the pattern of trade and, through the Stolper–Samuelson theorem, who wins and loses within each country. The general equilibrium guide covers the tools.

Trade between similar countries. Much trade is two-way exchange of similar goods, such as cars between Germany and France. Models with increasing returns and product variety, associated with Paul Krugman, explain it better than comparative advantage.

Distribution within a country. The Ricardian model has one factor, so everyone gains in proportion. Real adjustments create losers; measuring them requires data on regions and industries, often with difference-in-differences or panel data methods.

Short-run and macroeconomic questions. Trade balances, exchange rates and capital flows are covered in the balance of payments and capital flows guides.

Practice problems

Problem 1 (Ricardo's original numbers). England needs the labor of 100 men for a year to make a quantity of cloth and 120 for a quantity of wine; Portugal needs 90 and 80. Which country has the comparative advantage in each good, and what range of terms of trade (wine per unit of cloth) allows both to gain?

Solution. The opportunity cost of cloth is 100/120=0.833100/120 = 0.833 wine in England and 90/80=1.12590/80 = 1.125 wine in Portugal. England has the comparative advantage in cloth, Portugal in wine, even though Portugal needs less labor for both. Both gain at any price between 0.833 and 1.125 wine per unit of cloth. Check: the opportunity cost of wine is 120/100=1.2120/100 = 1.2 cloth in England and 80/90=0.88980/90 = 0.889 cloth in Portugal, so Portugal is the cheaper producer of wine.

Problem 2. A country's exports are 40% machinery and 5% agricultural goods. World exports are 25% machinery and 8% agricultural goods. Compute the Balassa index for both goods and the symmetric version for machinery.

Solution. Machinery: 40/25=1.640/25 = 1.6; agriculture: 5/8=0.6255/8 = 0.625. The symmetric index for machinery is (1.6−1)/(1.6+1)=0.6/2.6=0.23(1.6 - 1)/(1.6 + 1) = 0.6/2.6 = 0.23. Check: the country has a revealed advantage in machinery (index above 1, symmetric index above 0) and a disadvantage in agriculture.

Problem 3. A politician argues that a country less productive than its trading partner in every industry cannot benefit from free trade. Using the hand-worked example, explain what is wrong and what the less productive country gives up.

Solution. Foreign is less productive in both goods, yet it gains 3 units of wine in the example, because it specializes in wine, where its disadvantage is smaller, and buys cloth at 0.75 wine instead of its own cost of 1. It competes through lower wages: its wage is 1/2.25≈0.441/2.25 \approx 0.44 of Home's, reflecting lower productivity. Free trade does not make Foreign as rich as Home, but it makes Foreign richer than it would be alone. Check: Foreign's consumption with trade, 12 cloth and 11 wine, would need 12×6+11×6=13812 \times 6 + 11 \times 6 = 138 hours to produce alone, more than its 120 hours, so it lies outside its own production possibilities.

Further reading

Sources

  • World Bank, World Development Indicators: Manufactures exports (% of merchandise exports), TX.VAL.MANF.ZS.UN; Fuel exports, TX.VAL.FUEL.ZS.UN; Food exports, TX.VAL.FOOD.ZS.UN; Ores and metals exports, TX.VAL.MMTL.ZS.UN; 2024 values, database updated November 11, 2026, accessed November 30, 2026. https://data.worldbank.org/indicator/TX.VAL.MANF.ZS.UN
  • Ricardo, D. (1817), On the Principles of Political Economy and Taxation, chapter 7; Balassa, B. (1965), Trade Liberalisation and "Revealed" Comparative Advantage, The Manchester School; Dornbusch, R., Fischer, S. and Samuelson, P. A. (1977), Comparative Advantage, Trade, and Payments in a Ricardian Model with a Continuum of Goods, American Economic Review.
  • The labor requirements, endowments and prices in the hand-worked example and practice problems are illustrative; all revealed comparative advantage indices and derived figures were computed by EconoLens.

Frequently Asked Questions

What is comparative advantage?

Comparative advantage is the ability to produce a good at a lower opportunity cost than another producer, meaning less of other goods has to be given up to make it. A country with a comparative advantage in a good gains by specializing in it and trading for other goods, even if another country is more productive at everything.

What is the difference between absolute and comparative advantage?

Absolute advantage means producing a good with fewer resources than another country. Comparative advantage means producing it at a lower opportunity cost. A country can have an absolute advantage in every good but a comparative advantage in only some, and it is comparative advantage that determines who should produce what.

How do you calculate comparative advantage?

Divide the labor (or resources) needed for one good by the labor needed for the other, for each country. That ratio is the opportunity cost. The country with the lower opportunity cost of a good has the comparative advantage in it. For example, if cloth takes 2 hours and wine 4 hours, a unit of cloth costs 0.5 units of wine.

What are the terms of trade?

The terms of trade are the price at which one good exchanges for another in world markets, or more generally the ratio of export prices to import prices. In the Ricardian model both countries gain only if the terms of trade lie between their two opportunity costs.

What is revealed comparative advantage?

Revealed comparative advantage, measured by the Balassa index, compares a good's share in a country's exports with its share in world exports. An index above 1 suggests the country has a comparative advantage in that good. It is calculated from actual trade data because opportunity costs cannot be observed directly.

Does comparative advantage mean everyone gains from trade?

No. It shows that a country as a whole can consume more with trade than without. Within the country, workers and firms in industries that shrink can lose, especially if they cannot move easily to growing industries. Whether the losers are compensated is a policy choice.

Why does comparative advantage matter for wages?

In the Ricardian model a less productive country competes by paying lower wages. Its wage relative to its partner settles between its productivity disadvantages in the goods traded, so trade raises its consumption but does not close the income gap that comes from lower productivity.

Cite This Article

EconoLens. (2026, November 30). Comparative Advantage Explained: Opportunity Cost, the Terms of Trade and Revealed Comparative Advantage. EconoLens. https://www.econolens.co.in/news/study-comparative-advantage-explained

Share this analysis