Comparative Advantage Explained with Real-World Examples
Jude Wallis
Founder of EconLearn · 2nd place internationally at the Economics Olympiad (econolympiad.org)
Comparative advantage is the ability to produce a good at a lower opportunity cost than another producer. When each country or person specializes in the good it makes at a lower opportunity cost than its partner, and they trade at a rate between their two opportunity costs, both can consume beyond their own production possibilities curve, even if one of them has an absolute advantage in every good. The idea shows up on both the AP Micro and AP Macro exams.
Trade is switched on: this economy produces at P, where its opportunity cost equals the terms of trade, and consumes at C, outside its own frontier. Drag C along the dashed line, or drag P to change the world price. Or open the full version, or put it on your own site free, or turn it into a five-minute class activity.
If you have ever wondered why the United States imports T-shirts from Bangladesh even though American factories could make them too, comparative advantage is your answer.
The Basic Idea
The key phrase is "opportunity cost." It is not about who can produce more or who is faster or who has better technology. It is about who gives up the least to produce each good.
When each producer specializes in the good where they have the lower opportunity cost and then trades, total output increases. Both sides end up with more than they could have produced on their own. This is the fundamental argument for trade economics.
Absolute vs Comparative Advantage
Students often confuse these two concepts, and the AP exam specifically tests the distinction.
Absolute advantage means one producer can make more of a good with the same resources, or make the same amount with fewer resources. It is about raw productivity. If the US can produce 100 cars per day and Mexico can produce 60 cars per day with the same labor, the US has an absolute advantage in car production.
Comparative advantage means one producer has a lower opportunity cost for that good. Even if the US has an absolute advantage in both cars and corn, it cannot have a comparative advantage in both. This is a mathematical certainty. If producing one car costs the US 2 tons of corn (opportunity cost), and producing one car costs Mexico 1 ton of corn, then Mexico has the comparative advantage in cars even if Mexico makes fewer of everything.
This is the counterintuitive insight that trips up many students: absolute vs comparative advantage are fundamentally different concepts. A country can have an absolute advantage in everything but a comparative advantage in only some things. Trade is based on comparative advantage, not absolute advantage. For a two-country table that tests both ideas side by side, see absolute vs comparative advantage.
A Worked Example
Suppose two countries, Alphaland and Betaland, can produce only two goods, wheat and cloth, along straight-line production possibilities curves.
| Country | Wheat, if it makes only wheat | Cloth, if it makes only cloth |
|---|---|---|
| Alphaland | 100 | 50 |
| Betaland | 40 | 40 |
Step 1: Check absolute advantage.
Alphaland can produce more of both goods, so it has the absolute advantage in both wheat and cloth.
Step 2: Calculate opportunity costs.
Divide what is given up by what is gained.
| Country | Opportunity cost of 1 wheat | Opportunity cost of 1 cloth |
|---|---|---|
| Alphaland | 50 ÷ 100 = 0.5 cloth | 100 ÷ 50 = 2 wheat |
| Betaland | 40 ÷ 40 = 1 cloth | 40 ÷ 40 = 1 wheat |
Step 3: Identify comparative advantage.
For wheat: Alphaland gives up 0.5 cloth per wheat and Betaland gives up 1 cloth, so Alphaland has the comparative advantage in wheat.
For cloth: Alphaland gives up 2 wheat per cloth and Betaland gives up 1 wheat, so Betaland has the comparative advantage in cloth.
Alphaland holds the absolute advantage in both goods but the comparative advantage in only one. Whenever two producers' opportunity costs differ, each holds the comparative advantage in exactly one good, no matter who has the absolute advantage.
Step 4: Specialize and trade.
Alphaland specializes completely in wheat (100 wheat) and Betaland in cloth (40 cloth). They agree to trade at 0.75 cloth per wheat, a rate between the two opportunity costs, and Alphaland sends Betaland 30 wheat for 22.5 cloth.
| Country | Consumes after trade | Best it could do alone with the same wheat | Gain from trade |
|---|---|---|---|
| Alphaland | 70 wheat and 22.5 cloth | 70 wheat and 15 cloth | 7.5 more cloth |
| Betaland | 30 wheat and 17.5 cloth | 30 wheat and 10 cloth | 7.5 more cloth |
Without trade, Alphaland could pair 70 wheat with at most 15 cloth: the capacity that would have made its other 30 wheat makes only 30 × 0.5 = 15 cloth. Betaland could make 30 wheat only by giving up 30 × 1 = 30 of its 40 cloth, leaving 10. With trade, each country consumes at a point outside its own production possibilities curve.
Real-World Examples of Comparative Advantage
Bangladesh and clothing: Bangladesh has a comparative advantage in garment manufacturing. Its workforce is large relative to its stock of capital, and sewing garments takes a lot of labor and little capital, so a shirt costs Bangladesh fewer other goods forgone than it costs a capital-rich country. Its low wages reflect the same shortage of capital per worker, but they are not what defines the advantage: comparative advantage compares what each country gives up, not what a shirt costs in dollars. The United States could make the same shirts, but only by pulling workers and capital away from industries such as aircraft and software, so its opportunity cost of clothing is much higher.
Saudi Arabia and oil: Saudi Arabia has vast, easily accessible oil reserves, making its opportunity cost of oil production extremely low. It exports oil and imports manufactured goods and food, specializing where its comparative advantage is strongest.
Japan and automobiles: Japan built a comparative advantage in automobiles through efficient production systems and skilled labor. What makes it comparative rather than absolute is that Japan's productivity edge over its trading partners is larger in cars than in many other goods, so a car costs Japan less of the other things it could have made than it costs those partners.
A surgeon and an assistant: A surgeon may type faster than her assistant, giving her the absolute advantage in typing as well as in surgery. But every page she types costs surgery she could have performed in that time, while the assistant, who cannot operate, gives up no surgery at all to type a page. The assistant has the lower opportunity cost of typing and the surgeon the lower opportunity cost of surgery, so the assistant types and the surgeon operates.
These examples illustrate why countries specialize even when some have absolute advantages across the board. What matters is relative opportunity cost.
Terms of Trade
The terms of trade is the price at which two countries exchange goods. For trade to benefit both parties, the terms of trade must fall between the two countries' opportunity costs.
In the worked example, Alphaland's opportunity cost of 1 wheat is 0.5 cloth, and Betaland's is 1 cloth. The terms of trade for wheat must be between 0.5 and 1 cloth per unit of wheat. At any price in that range, both countries benefit compared to producing both goods themselves.
If the terms of trade are exactly at one country's opportunity cost, that country neither gains nor loses from trade. All the gains go to the other country. AP exam questions sometimes ask you to identify the range of mutually beneficial terms of trade, which is always between the two opportunity costs.
Comparative Advantage on the AP Exam
This topic appears on both the AP Micro and AP Macro exams.
On AP Micro, comparative advantage shows up in the basic concepts unit. You will calculate opportunity costs from a production possibilities table or production possibilities curve, identify which producer has the comparative advantage in each good, and determine the range of beneficial terms of trade.
On AP Macro, comparative advantage is also a Unit 1 topic, Basic Economic Concepts, with the same opportunity cost and terms of trade calculations. The open-economy unit builds on it with the balance of payments and exchange rates, and the international trade module works through the country-level version.
Common AP exam mistakes:
Confusing absolute and comparative advantage. Always calculate opportunity costs before declaring who has the comparative advantage.
Saying a country has a comparative advantage in both goods. This is mathematically impossible. If one party has the comparative advantage in good A, the other must have it in good B, and if their opportunity costs are identical, neither has one.
Mixing up the terms of trade range. The terms must fall between the two opportunity costs. If you reverse the direction, your answer will be wrong.
Why Comparative Advantage Matters
Beyond the AP exam, comparative advantage is the intellectual foundation for free trade. It explains why economists overwhelmingly support trade between countries, even when one country is more productive across the board. The logic is simple: specialization based on comparative advantage increases total output, and trade allows both parties to consume more than they could produce alone.
Practice calculating opportunity costs and identifying comparative advantage with the interactive exercises in the international trade module on EconLearn. The more you work through different numerical scenarios, the more automatic the process becomes on exam day.
Check yourself
Three AP-style questions from the EconLearn practice bank on what this page covers. Pick your answer, then open it to see the explanation.
1. Two countries, Alpha and Beta, have production possibilities as follows: Alpha: 1 worker can produce 20 units of wheat OR 10 units of steel. Beta: 1 worker can produce 15 units of wheat OR 12 units of steel. If both countries specialize according to comparative advantage and trade, which country should specialize in steel?
- A. Alpha, because 20 wheat > 15 wheat
- B. Beta, because Beta's opportunity cost of steel is 15/12 = 1.25 wheat, less than Alpha's 20/10 = 2 wheat
- C. Alpha, because Alpha has higher absolute productivity
- D. Neither country should specialize
Show answer
Correct answer: B. Beta, because Beta's opportunity cost of steel is 15/12 = 1.25 wheat, less than Alpha's 20/10 = 2 wheat
Check opportunity costs. Alpha gives up 2 wheat for each steel (20 wheat / 10 steel). Beta gives up 1.25 wheat for each steel (15 wheat / 12 steel). Beta sacrifices less wheat per unit of steel, so Beta has comparative advantage in steel. Alpha should specialize in wheat. Option A confuses absolute productivity with opportunity cost, which is the classic trap in these questions. Option C repeats the same error.
2. Country A can produce 80 units of food or 40 units of clothing. Country B can produce 30 units of food or 30 units of clothing. Country A has:
- A. Absolute advantage in both goods and comparative advantage in both goods
- B. Absolute advantage in both goods and comparative advantage in food
- C. Absolute advantage in food only and comparative advantage in clothing
- D. Absolute advantage in both goods and comparative advantage in clothing
Show answer
Correct answer: B. Absolute advantage in both goods and comparative advantage in food
Country A produces more of both goods (80 > 30 food, 40 > 30 clothing), so it holds absolute advantage in both. For comparative advantage: Country A's cost of 1 food = 40/80 = 0.5 clothing; Country B's cost of 1 food = 30/30 = 1 clothing. Since 0.5 < 1, Country A has comparative advantage in food. Country B has comparative advantage in clothing (1 food per clothing vs. 2 for A). Option A is impossible because no country can hold comparative advantage in both goods, since comparative advantage is inherently relative. Option C is wrong because Country A's clothing output (40) exceeds Country B's (30). Option D reverses the comparative advantage calculation.
3. Country M can produce 120 phones or 60 laptops. Country N can produce 80 phones or 80 laptops. If they specialize according to comparative advantage and trade 1 laptop for 1.5 phones, which statement is true?
- A. Both countries are worse off because they lose production diversity
- B. Only Country N gains from trade because it gets cheap phones
- C. Both countries gain because each receives goods at a cost below their own opportunity cost
- D. Country M loses because it gives up 1.5 phones per laptop, which is less than its domestic cost
Show answer
Correct answer: C. Both countries gain because each receives goods at a cost below their own opportunity cost
Country M's domestic cost of 1 laptop is 2 phones (120/60). Country N's is 1 phone (80/80). Country N has comparative advantage in laptops; Country M in phones. At a trade price of 1.5 phones per laptop, Country M obtains a laptop for 1.5 phones instead of 2 (saving 0.5), and Country N receives 1.5 phones for a laptop that domestically cost only 1 phone (gaining 0.5 extra). Both benefit. Option A ignores the gains that specialization creates. Option B is half right, since both gain, not just one. Option D miscalculates; 1.5 is less than M's domestic cost of 2, so M comes out ahead.
Keep practicing: Basic Economic Concepts questions with answers
Frequently asked questions
How do you know which country has the comparative advantage?
Calculate each country's opportunity cost for the good, then pick the one with the lower opportunity cost. In the worked example, Alphaland gives up 0.5 cloth per wheat while Betaland gives up 1 cloth, so Alphaland has the comparative advantage in wheat. Betaland gives up less wheat per cloth, so it has the comparative advantage in cloth. Always compare opportunity costs before deciding.
Can a country have a comparative advantage in both goods?
No. With two goods, opportunity costs are reciprocals of each other, so if Country A gives up less to make wheat, it must give up more to make the other good, meaning Country B has the comparative advantage there. A country can hold an absolute advantage in both goods, but never a comparative advantage in both. If opportunity costs are exactly equal, neither country has a comparative advantage and there are no gains from trade.
What is a real world example of comparative advantage?
A classic example: a surgeon who types faster than her assistant still hires the assistant, because every hour she spends typing is an hour of surgery forgone, so her opportunity cost of typing is far higher than the assistant's. Internationally, the same logic explains why the U.S. exports aircraft and soybeans while importing clothing and electronics assembled in countries that give up less of other goods to make them.
Is comparative advantage micro or macro?
Both. Comparative advantage, opportunity cost, and the production possibilities curve appear in Unit 1 of both AP Microeconomics and AP Macroeconomics, so it is fair game on either exam. AP Macro additionally applies it to international trade in the open-economy unit.
What is the difference between absolute advantage and comparative advantage?
Absolute advantage means producing more output with the same resources. Comparative advantage means producing at a lower opportunity cost, giving up less of the other good. Trade patterns and the gains from trade are driven by comparative advantage, not absolute advantage.
Questions students ask
More on comparative advantage
- CalculatorComparative Advantage Calculator + Formula
- CalculatorGains From Trade = Trade Bundle − Autarky
- CalculatorTerms of Trade Formula: Px ÷ Pm × 100
- CalculatorTerms of Trade Range: Between Both Costs
- Quick answerWhich producer has the comparative advantage in a good?
- Quick answerWhy does comparative advantage benefit both trading countries?
- AP topic1.3 Comparative Advantage and Trade
- AP topic1.4 Comparative Advantage and Trade
- For teachersComparative Advantage Lesson Plan
- For teachersComparative Advantage Trading Activity
- For teachersHow to Teach Comparative Advantage
- CompareComparative Advantage vs Opportunity Cost
Next in the course
- Micro Unit 3Production costs: fixed, variable, marginal and average
- Micro Unit 3Perfect competition in the short run and the long run
- Micro Unit 3Why profit is maximized where MR = MC
- Micro Unit 4Perfect competition vs monopoly: price and output
- Macro Unit 2What GDP measures, and why it matters
- Macro Unit 2CPI vs the GDP deflator, and why they differ
Use what you just learned
Put the live graph in front of students
Copy the exact interactive graph for a class site or LMS, or turn it into a short prediction activity with one student link.
Get new study guides in your inbox
Occasional emails with new posts, study tips, and exam-season reminders. Free, no spam.
No spam. Unsubscribe anytime. Read our privacy policy.
Teaching this topic? Every interactive graph on this site can be assigned as a graded activity with scores in your gradebook, and the classroom tools are free to pilot. No student accounts are needed for the graphs themselves.