How to Calculate Comparative Advantage
What You Need to Know
Comparative advantage is about who can produce a good at a lower opportunity cost, not who produces more.
Why it matters (AP Macro context): comparative advantage explains specialization, trade, and gains from trade (imports/exports, net exports). On exams, you’ll usually be asked to calculate opportunity costs and identify who should specialize in what.
Core definition (the one you must nail)
- A country (or person) has comparative advantage in producing a good if it has the lower opportunity cost of producing that good.
Opportunity cost in this topic
Opportunity cost is what you give up of the other good.
Opportunity cost of unit of good (in terms of ):
Opportunity cost of unit of good (in terms of ):
The one rule that never changes
Comparative advantage = lower opportunity cost.
Even if one country has an absolute advantage in producing both goods, both sides can still gain from trade as long as opportunity costs differ.
Step-by-Step Breakdown
You’ll see comparative advantage problems in a few common data formats. The steps below work for all of them.
Step 1: Identify the data format
Most questions give one of these:
- PPF / maximum output table (e.g., max shirts and max wheat)
- Unit labor requirements (hours per unit) (e.g., hours per shirt)
- Productivity (units per hour) (e.g., shirts per hour)
Step 2: Compute opportunity cost for each country and each good
You only need opportunity costs within each country.
Case A: Given maximum outputs (a “two-point” PPF)
If Country A can produce either:
- of good (and of ), or
- of good (and of )
Then the constant per-unit opportunity costs are:
Case B: Given hours per unit (unit labor requirement)
Let be hours to make unit of , and be hours to make unit of .
Interpretation: producing uses hours; those hours could have made units of .
Case C: Given units per hour (productivity)
If productivity is and , convert to hours per unit by taking reciprocals:
Then use Case B.
Warning: Most mistakes happen here—students compare productivity directly instead of opportunity cost.
Step 3: Compare opportunity costs across countries (good by good)
For each good:
- The country with the lower has the comparative advantage in that good.
You should end up with:
- One country has comparative advantage in
- The other has comparative advantage in
(Or, in edge cases, neither/both if opportunity costs are identical.)
Step 4 (common exam add-on): State specialization and terms of trade bounds
- Specialize according to comparative advantage.
- Acceptable terms of trade must lie between the two opportunity costs.
If Country A has and Country B has , and A is lower:
A will export if trade price satisfies:
Same idea if pricing in units of per .
Key Formulas, Rules & Facts
Opportunity cost formulas (by data type)
| Given | Opportunity cost of (in ) | Opportunity cost of (in ) | Notes |
|---|---|---|---|
| Max outputs | Works for straight-line PPF between intercepts | ||
| Hours per unit | “Hours used for one good could’ve made the other” | ||
| Units per hour | Because |
Absolute vs. comparative advantage (quick rules)
| Concept | How you identify it | What it means |
|---|---|---|
| Absolute advantage | Higher output with same resources, or lower input per unit | “Who can produce more” |
| Comparative advantage | Lower opportunity cost | “Who gives up less” |
Key facts examiners love
- If opportunity costs differ, both can gain from trade.
- One country can have absolute advantage in both goods but still not have comparative advantage in both.
- If opportunity costs are identical, there are no gains from trade (in the basic model).
- Opportunity cost comparisons must be done using the same units (e.g., “wheat per car” vs “cars per wheat” are reciprocals—don’t mix).
Examples & Applications
Example 1: Max output table (classic AP style)
Two countries can produce either Good (computers) or Good (wheat) with all resources.
| Country | ||
|---|---|---|
| Alpha | ||
| Beta |
Alpha opportunity costs
Beta opportunity costs
Comparative advantage
- In : Alpha has lower cost ( vs ) ⇒ Alpha CA in computers
- In : Beta has lower cost ( vs ) ⇒ Beta CA in wheat
Specialize: Alpha → , Beta → .
Terms of trade bounds (if trading for ):
- Must satisfy (price of in wheat).
Example 2: Hours per unit (unit labor requirements)
| Country | Hours per (textile) | Hours per (steel) |
|---|---|---|
| Home | ||
| Foreign |
Compute opportunity costs:
Home
Foreign
Conclusion: Opportunity costs are identical.
- Neither country has comparative advantage.
- In the basic model, no gains from trade from specialization.
This is a favorite “trick” case: different absolute productivity can still yield no comparative advantage if ratios match.
Example 3: Units per hour (productivity) + the “flip”
| Country | (phones/hour) | (tablets/hour) |
|---|---|---|
| A | ||
| B |
Compute opportunity costs using productivity ratio:
Country A
Country B
Comparative advantage
- In : A has vs B has ⇒ A CA in phones
- In : B has vs A has ⇒ B CA in tablets
Key insight: Even though A is more productive in both goods (absolute advantage), B still has comparative advantage in one good (tablets).
Example 4: PPF slope interpretation (graph-based)
If a country’s PPF between and is a straight line, the slope gives opportunity cost.
If the PPF is written as , then:
- Slope is
- Opportunity cost of in terms of is (the magnitude).
Example:
On graphs, you usually use intercepts or rise/run to get the slope magnitude.
Common Mistakes & Traps
Confusing absolute advantage with comparative advantage
- Wrong move: Picking the country with higher max output (or higher productivity) as having comparative advantage.
- Why wrong: Comparative advantage depends on opportunity cost ratios, not total output.
- Fix: Always compute first.
Not taking the reciprocal when needed (mixing “per unit” vs “per hour”)
- Wrong move: Using “units per hour” directly like it’s “hours per unit.”
- Why wrong: Opportunity cost in the labor model uses hours per unit .
- Fix: If given , convert via or use .
Comparing different opportunity-cost directions
- Wrong move: Comparing Alpha’s to Beta’s .
- Why wrong: You must compare the same good across countries.
- Fix: Make two columns: “OC of ” and “OC of ,” then compare row-by-row.
Dropping units (and then getting lost)
- Wrong move: Saying without “”.
- Why wrong: Opportunity cost is always “units of other good.”
- Fix: Write it as or “ units of .”
Using total output changes instead of per-unit opportunity cost
- Wrong move: Looking at the difference .
- Why wrong: Opportunity cost is a ratio, not a difference.
- Fix: Always use or slope magnitude.
Forgetting that comparative advantage should “split” across goods
- Wrong move: Concluding one country has comparative advantage in both goods.
- Why wrong: With two goods/two countries and different opportunity costs, comparative advantage will be one good each. If one appears to have both, you probably miscomputed.
- Fix: Check: if A has lower , then B must have lower (unless equal).
Mis-stating terms of trade
- Wrong move: Setting trade price outside the opportunity cost bounds.
- Why wrong: If price is worse than your own opportunity cost, you wouldn’t trade.
- Fix: For exported good , ensure .
Assuming trade happens even when opportunity costs are equal
- Wrong move: Forcing specialization even when ratios match.
- Why wrong: No relative cost difference ⇒ no gains from specialization in this model.
- Fix: If are equal for both goods, answer: no comparative advantage.
Memory Aids & Quick Tricks
| Trick / mnemonic | What it helps you remember | When to use it |
|---|---|---|
| CA = LOC | Comparative Advantage = Lower Opportunity Cost | Every problem (say it before you calculate) |
| “Opp cost is the OTHER good” | must be in units (and vice versa) | Prevents unit mix-ups |
| “Max outputs ⇒ ratio” | When given a max-output table | |
| “Productivity? Flip it or ratio it.” | If given , do reciprocal or | When numbers look like “per hour” |
| ToT sandwich | Trade price must lie between the two countries’ | When asked for terms of trade |
Quick Review Checklist
- Compute opportunity cost for each good in each country (don’t guess).
- Use the right formula for the data type:
- Max outputs:
- Hours/unit:
- Units/hour:
- Comparative advantage = lower (good-by-good comparison).
- Label opportunity costs with units (e.g., ).
- Expect “one good each” unless opportunity costs are equal.
- If asked: specialize by comparative advantage.
- If asked: terms of trade must be between the two opportunity costs.
You’ve got this—calculate the carefully and the rest is automatic.