Comparative Advantage Example Problems- Economics
What Comparative Advantage Actually Means
Comparative advantage is one of those economics concepts that sounds complicated but really isn't. It just tells you who should produce what when countries or people have different opportunity costs.
The cold truth: absolute advantage (being better at everything) doesn't matter. What matters is being relatively better at something. If you're the worst at everything, you still have a comparative advantage in what you're least bad at.
This theory, developed by David Ricardo in 1817, is the foundation of why free trade works. Countries don't need to be the best at anything to benefit from exchanging goods.
The Opportunity Cost Formula
Before jumping into problems, you need the core formula:
Opportunity Cost = What you give up / What you gain
To find comparative advantage, calculate the opportunity cost of producing one unit of a good in terms of the other good.
Comparative Advantage Example Problem #1: Two Countries, Two Goods
The Setup:
Imagine the US and Japan can both produce cars and computers. Here's the data:
| Country | Cars (per worker/day) | Computers (per worker/day) |
|---|---|---|
| US | 10 | 5 |
| Japan | 6 | 12 |
Step 1: Calculate opportunity costs
For the US:
- 1 car = 0.5 computers (5 ÷ 10)
- 1 computer = 2 cars (10 ÷ 5)
For Japan:
- 1 car = 2 computers (12 ÷ 6)
- 1 computer = 0.5 cars (6 ÷ 12)
Step 2: Compare opportunity costs
The US gives up fewer computers when making cars (0.5 vs 2). The US has a comparative advantage in cars.
Japan gives up fewer cars when making computers (0.5 vs 2). Japan has a comparative advantage in computers.
The Solution:
- US should specialize in cars and export them to Japan
- Japan should specialize in computers and export them to the US
Comparative Advantage Example Problem #2: Finding the Terms of Trade
Terms of trade matter. If the price isn't right, countries won't trade even with comparative advantages.
The Setup:
Brazil and Argentina produce soybeans and beef:
| Country | Soybeans (tons/hour) | Beef (tons/hour) |
|---|---|---|
| Brazil | 12 | 4 |
| Argentina | 6 | 8 |
Calculate opportunity costs:
Brazil:
- 1 soybean = 0.33 beef (4 ÷ 12)
- 1 beef = 3 soybeans (12 ÷ 4)
Argentina:
- 1 soybean = 1.33 beef (8 ÷ 6)
- 1 beef = 0.75 soybeans (6 ÷ 8)
Who produces what?
Brazil's opportunity cost for soybeans (0.33 beef) is lower than Argentina's (1.33 beef). Brazil has the comparative advantage in soybeans.
Argentina's opportunity cost for beef (0.75 soybeans) is lower than Brazil's (3 soybeans). Argentina has the comparative advantage in beef.
Finding acceptable terms of trade:
For soybeans, Brazil's internal price is 0.33 beef per soybean. Argentina's internal price is 1.33 beef per soybean. Any trade between 0.33 and 1.33 beef per soybean benefits both countries.
Comparative Advantage Example Problem #3: With Labor Constraints
Sometimes you get problems with labor hours instead of output quantities. Same process, different numbers.
The Setup:
Germany and France produce wine and cheese with these labor requirements:
| Country | Wine (hours/liter) | Cheese (hours/kg) |
|---|---|---|
| Germany | 4 | 2 |
| France | 2 | 4 |
Calculate labor cost per unit:
Germany needs 4 hours for wine and 2 hours for cheese. To find the opportunity cost, ask: how much wine could Germany make in the time it takes to make 1 kg of cheese?
Germany:
- 1 cheese = 2 wine (4 hours ÷ 2 hours/kg for wine)
- 1 wine = 0.5 cheese (2 hours ÷ 4 hours/liter for cheese)
France:
- 1 cheese = 2 wine (4 hours ÷ 2 hours/liter for wine)
- 1 wine = 0.5 cheese (2 hours ÷ 4 hours/kg for cheese)
Wait—this shows both countries have the same comparative advantage. When that happens, trade doesn't help. This is the edge case your professor might throw at you.
How to Solve Any Comparative Advantage Problem
Follow this checklist every time:
- Identify the data — Is it output per worker or input per unit? Read carefully.
- Calculate opportunity costs — Divide what you give up by what you gain. Do this for both goods and both countries.
- Compare opportunity costs — The country with the lower opportunity cost for a good has the comparative advantage in that good.
- Determine specialization — Each country should produce what they're relatively better at.
- Check terms of trade — The exchange rate must fall between both countries' internal opportunity costs for both to benefit.
Common Mistakes That Cost You Points
Students mess this up in predictable ways:
- Confusing absolute and comparative advantage — Just because one country produces more doesn't mean they have the comparative advantage. Compare relative costs, not absolute output.
- Forgetting to calculate both directions — Always check opportunity cost for producing good A in terms of good B, and vice versa.
- Trading at the wrong terms — If the exchange rate falls outside the acceptable range, one country loses out.
- Assuming specialization is total — Real-world countries rarely produce only one thing. The model assumes perfect specialization for simplicity.
The Quick Way: The Reciprocal Method
Once you have the opportunity costs, there's a shortcut. For two countries and two goods:
- If Country A's opportunity cost for X is lower than Country B's, Country A has the advantage in X
- Country B automatically has the advantage in Y
You only need to calculate the opportunity cost for one good per country. The other advantage follows automatically. Saves time on exams.
Why This Matters Beyond the Classroom
Comparative advantage explains why the US imports electronics from China even though the US can technically make them. It explains why countries specialize in oil, agriculture, or manufacturing based on their resource endowments.
The theory isn't perfect — it assumes perfect information, no transportation costs, and that resources can move freely between industries. Reality doesn't work that way. But for understanding why trade happens, it's still the best framework we have.