AP · Microeconomics · Scarcity and Choice

Comparative Advantage and Trade

12 min readUpdated December 1, 2026FreeAP Microeconomics, Basic Economic Concepts

A producer has a comparative advantage in a good when it makes it at a lower opportunity cost than another producer; absolute advantage only means producing more or using fewer inputs. If each side specializes in its comparative-advantage good and trades at a price between the two opportunity costs, both gain, even if one is better at everything.

Quick check

  1. On a straight-line PPC, how do you find the opportunity cost of one unit of a good?Show answerHide answer

    Divide the amount of the other good given up by the amount gained; on a straight line it is the same everywhere (see the note on The Production Possibilities Curve).

  2. Preview: a doctor types faster than her assistant. Should she do her own typing?Show answerHide answer

    Not necessarily. Each hour she types costs an hour of treating patients, so her opportunity cost of typing is high.

Know these already? Jump to the practice questions

What you'll be able to do

  • Distinguish absolute advantage from comparative advantage.
  • Calculate opportunity costs from output tables and from input tables.
  • Identify which producer should specialize in each good.
  • Calculate whether terms of trade benefit both sides.

Key terms

Absolute advantage

The ability to produce more of a good than another producer with the same resources, or the same amount with fewer resources.

In plain English
Being better at making it.
Don't write
That absolute advantage decides who should specialize.

Comparative advantage

The ability to produce a good at a lower opportunity cost than another producer.

In plain English
Giving up less to make it.
Don't write
That a producer can have a comparative advantage in both goods.

Specialization

Concentrating production on the good in which a producer has a comparative advantage.

In plain English
Doing what you give up least to do.
Don't write
That specializing means producing the good you make most of.

Terms of trade

The rate at which one good is exchanged for another.

In plain English
The price of one good in units of the other.
Don't write
That any exchange rate benefits both sides.

Absolute or comparative: which decides trade?

Absolute advantage compares amounts; comparative advantage compares opportunity costs, and it decides who should make what.

A producer can have the absolute advantage in both goods, but not the comparative advantage in both. If it gives up less Y to make X, it must give up more X to make Y, because one opportunity cost is the reciprocal of the other. So when opportunity costs differ, each producer has a comparative advantage in one good.

Check yourself

Can one country have a comparative advantage in both of two goods?
Show answerHide answer

No. A lower opportunity cost in one good means a higher one in the other, unless both opportunity costs are equal.

How do you find opportunity cost in an output table?

An output table shows how much each producer makes with the same resources. A bigger number is better.

Learn this (output table): opportunity cost of 1 X = amount of Y ÷ amount of X.

Two hypothetical countries, using all their resources for a day:

CountryCornClothOpportunity cost of 1 clothOpportunity cost of 1 corn
Alba201020 ÷ 10 = 2 corn10 ÷ 20 = 1/2 cloth
Bryn12412 ÷ 4 = 3 corn4 ÷ 12 = 1/3 cloth

Alba has the absolute advantage in both goods. But Alba's cloth costs less corn (2 against 3), so Alba has the comparative advantage in cloth, and Bryn's corn costs less cloth (1/3 against 1/2), so Bryn has it in corn.

Check yourself

In this table, what is Bryn's opportunity cost of one cloth?
Show answerHide answer

3 corn: 12 ÷ 4 = 3.

How do you find opportunity cost in an input table?

An input table shows the time or resources needed to make one unit. A smaller number is better.

Learn this (input table): opportunity cost of 1 X = input needed for X ÷ input needed for Y.

Hypothetical workers, hours per unit: Rosa needs 2 hours per shirt and 4 per hat; Sam needs 3 per shirt and 9 per hat. Rosa has the absolute advantage in both, because she needs fewer hours.

  • Rosa: 1 shirt = 2 ÷ 4 = 1/2 hat; 1 hat = 4 ÷ 2 = 2 shirts.
  • Sam: 1 shirt = 3 ÷ 9 = 1/3 hat; 1 hat = 9 ÷ 3 = 3 shirts.

So Sam has the comparative advantage in shirts (1/3 against 1/2) and Rosa in hats (2 against 3).

Check yourself

Convert Rosa's input data into output: in 36 hours, how many shirts or hats can she make?
Show answerHide answer

18 shirts or 9 hats, so 1 hat costs 18 ÷ 9 = 2 shirts, matching the input formula.

Why do both sides gain from trade?

Suppose Alba specializes in cloth and Bryn in corn, and they trade at 1 cloth for 2.5 corn.

  • Alba gives up 2 corn to make each cloth but sells it for 2.5 corn, so it gains 0.5 corn per cloth.
  • Bryn pays 2.5 corn per cloth instead of the 3 corn it would give up making cloth itself, so it saves 0.5 corn per cloth.

Terms of trade benefit both only when they lie strictly between the two opportunity costs, here between 2 and 3 corn per cloth. Each side then consumes a combination outside its own PPC.

Key idea

Trade at a price between the two opportunity costs lets each side get a good more cheaply than it could make it.

Gains to a country as a whole are not gains for everyone: workers and firms competing with imports can lose, which is one reason trade policy is debated.

Check yourself

Would 1 cloth for 3.5 corn benefit both Alba and Bryn?
Show answerHide answer

No. Bryn can make 1 cloth for 3 corn at home, so paying 3.5 corn would leave it worse off.

Worked example 1: Output problem

Question: Two hypothetical bakers can each make the following in a day.

BakerPiesCakes
Lena84
Omar61

(a) What is Omar's opportunity cost of one pie, in cakes? Give a fraction. (b) Who has the comparative advantage in pies?

What tells you the method

Amounts made in a day: an output table, so the other good's amount goes over the good's own amount.

  1. Step 1: Omar's cost of a pie.

    1 ÷ 6 = 1/6 cake.

    Why

    Omar gives up 1 cake to make 6 pies.

  2. Step 2: Lena's cost of a pie.

    4 ÷ 8 = 1/2 cake.

    Why

    The same formula for the other producer.

  3. Step 3: Compare.

    1/6 is less than 1/2, so Omar gives up less to make pies.

    Why

    Comparative advantage goes to the lower opportunity cost, even though Lena makes more pies.

Check it

Lena's cake costs 2 pies and Omar's costs 6, so Lena has the comparative advantage in cakes: one good each.

Answer

(a) 1/6 of a cake. (b) Omar.

Worked example 2: Terms of trade

Question: Two hypothetical countries trade cloth and corn, and Alba specializes in cloth.

CountryOpportunity cost of 1 cloth
Alba2 corn
Bryn3 corn

Which terms of trade benefit both countries?

  • A) 1 cloth for 1.5 corn
  • B) 1 cloth for 3.5 corn
  • C) 1 cloth for 2.5 corn
  • D) 1 corn for 2.5 cloth

What tells you the method

"Terms of trade benefit both": find the range between the two opportunity costs.

  1. Step 1: Predict.

    The price of cloth must be more than 2 corn and less than 3 corn.

    Why

    Alba will not sell cloth for less than the 2 corn it gives up to make it, and Bryn will not pay more than its own cost of 3 corn.

  2. Step 2: Test the options.

    A is below 2, so Alba loses. B is above 3, so Bryn loses. D swaps the goods: 2.5 cloth per corn means 0.4 corn per cloth, far below 2.

    Why

    Only a rate strictly inside the range leaves both better off.

Check it

At 2.5 corn, Alba gains 0.5 corn per cloth sold and Bryn saves 0.5 corn per cloth bought.

Answer

C

Your turn

Question: Two hypothetical carpenters need these hours to make one unit: Jae takes 6 hours per table and 2 per chair; Kim takes 4 hours per table and 1 per chair. (a) What is Jae's opportunity cost of one table, in chairs? (b) Who has the comparative advantage in tables?

  1. Step 1: Spot the table type.

    Hours per unit: an input table, so the good's own input goes over the other good's input.

  2. Step 2: Your go: work out each carpenter's cost of a table and compare.

Show the full solutionHide the solution

Step 1. Input table: opportunity cost of 1 table = hours per table ÷ hours per chair.

Step 2. Jae: 6 ÷ 2 = 3 chairs. Kim: 4 ÷ 1 = 4 chairs. Jae gives up fewer chairs, even though Kim is faster at both.

Answer: (a) 3 chairs. (b) Jae.

Traps

Trap

The producer who makes more of a good should specialize in it.

It seems right because more output sounds more efficient. But that is absolute advantage; specialization follows the lower opportunity cost, which can belong to the slower producer.

Kim makes tables faster than Jae, but Jae's opportunity cost of a table is lower. Who should make tables?

Jae, because Jae gives up fewer chairs per table.

Trap

In an input table, the bigger number shows the advantage.

It seems right because bigger numbers win in output tables. But input numbers are hours or resources used, so fewer is better, and the formula flips.

Ana needs 3 hours per bowl and Ben needs 4. Who has the absolute advantage in bowls?

Ana, because she needs fewer hours.

What's examined

On the AP® Microeconomics exam (Unit 1: Basic Economic Concepts), multiple-choice and free-response questions can give an output or input table and ask you to identify absolute and comparative advantage, calculate an opportunity cost, or decide whether terms of trade benefit both sides. Show each division you use.

Practice questions

The table is for questions 1 to 3. It shows what one worker in each hypothetical country makes in a month.

CountryPhonesShoes
Norland3060
Sudria1040
  1. Recall Which country has the absolute advantage in shoes?
Show answer

Answer: Norland.

Marking points:

  • It is an output table, so the bigger number wins: 60 shoes against 40.
  1. Apply What is Sudria's opportunity cost of one phone, in shoes?
Show answer

Answer: 4 shoes.

Marking points:

  • Output table: other good over own good, 40 ÷ 10 = 4.
  1. Exam-style Norland exports phones and Sudria exports shoes. What whole-number price of one phone, in shoes, would benefit both countries?
Show answer

Answer: 3 shoes per phone.

Marking points:

  • Norland's opportunity cost of a phone is 60 ÷ 30 = 2 shoes; Sudria's is 40 ÷ 10 = 4 shoes.
  • The price must lie strictly between 2 and 4, and the only whole number there is 3.
  1. Apply Read the table for two hypothetical potters.
PotterHours per bowlHours per mug
Ana31
Ben42

Which statement is correct?

  • A) Ana has the comparative advantage in both bowls and mugs.
  • B) Ben has the comparative advantage in bowls, and Ana has it in mugs.
  • C) Ben has the absolute advantage in bowls, because 4 is greater than 3.
  • D) Ana has the comparative advantage in bowls, because she makes them in fewer hours.
Show answer

Answer: B. Ben's bowl costs 4 ÷ 2 = 2 mugs and Ana's costs 3 ÷ 1 = 3 mugs; Ana's mug costs 1/3 bowl and Ben's 1/2 bowl.

Why the others are wrong:

  • A is impossible: one producer cannot have the comparative advantage in both goods.
  • C reads an input table as if bigger were better.
  • D uses fewer hours, which is absolute advantage, not opportunity cost.
  1. Exam-style Hypothetical Bryn's opportunity cost of 1 cloth is 3 corn. Instead of making 4 cloth itself, it buys them from Alba at 1 cloth for 2.5 corn. How many units of corn does Bryn save?
Show answer

Answer: Bryn saves 2 units of corn.

Marking points:

  • Making 4 cloth would cost 4 × 3 = 12 corn.
  • Buying 4 cloth costs 4 × 2.5 = 10 corn, and 12 − 10 = 2.
  1. Apply Read the claim by a columnist in a hypothetical country.

Our country makes both cars and computers more cheaply than our neighbor, so trading with them can only hurt us.

Which is the best response to the claim?

  • A) It confuses absolute with comparative advantage: if opportunity costs differ, both countries can gain by specializing.
  • B) It is right: a country with the absolute advantage in both goods cannot gain from trade.
  • C) It is wrong, because trade makes every worker in both countries better off.
  • D) It is wrong, because the neighbor must have the absolute advantage in one good.
Show answer

Answer: A. Gains depend on differences in opportunity cost, not on who is better at everything.

Why the others are wrong:

  • B repeats the columnist's confusion of absolute with comparative advantage.
  • C overclaims: the country gains overall, but workers competing with imports can lose.
  • D contradicts the claim's own premise; the neighbor can lack an absolute advantage in both goods and still gain.

Key points

Recall, then reveal

Say the main points from memory first, then check them.

Show key pointsHide key points
  • Absolute advantage compares amounts or inputs; comparative advantage compares opportunity costs.
  • Output table: other good over own good. Input table: own input over the other good's input.
  • No producer has the comparative advantage in both goods unless their opportunity costs are equal.
  • Terms of trade benefit both sides only when they lie strictly between the two opportunity costs.
  • A country gains from trade overall, but some groups within it can lose.

Keep learning

Explore AP Microeconomics tutoring →

View the full Microeconomics syllabus →

More in this unit

Basic Economic Concepts

All Scarcity and Choice notes

Part of Novark's AP Microeconomics notes