AP Macroeconomics · Unit 1 · Topic 1.3

Comparative Advantage and Gains from Trade Study Lab

A country has a comparative advantage in a good when it can make that good at a lower opportunity cost than another country. When each country specializes in its comparative advantage and trades, both can consume a combination outside their own PPC. Use the calculator to work output and input problems step by step, then test terms of trade on the PPC graphs.

1. Comparative advantage calculator

Pick a preset or type your own numbers. Then flip between an output problem and an input problem with the same numbers and watch the answer reverse.

A. Find opportunity costs and who specializes

AP-style presets
What do the numbers in the table mean?
Units produced

    B. PPCs and the terms-of-trade checker

    Each country specializes in its comparative advantage and trades. Propose a trade ratio and an amount to trade. Solid green PPCs show what each country can make on its own; the dashed purple line shows what it can consume after trading at your terms.

    Country A straight-line PPC

    Country B straight-line PPC

    PPC (production on its own)Consumption possibilities with tradePoint on the PPC with the same amount of the first goodConsumption after trade
    Comparative advantage in good 1
    Comparative advantage in good 2
    Terms that help both
    Your terms

    2. Key ideas

    More or faster

    Absolute advantage

    A producer has an absolute advantage in a good if it can make more of it with the same resources (output problem) or make one unit with fewer resources (input problem). One country can have an absolute advantage in both goods.

    Lower opportunity cost

    Comparative advantage

    A producer has a comparative advantage in a good if it gives up less of the other good to make one unit. Unless the opportunity costs are equal, each country has a comparative advantage in exactly one of the two goods.

    Output: other over

    Output problems

    The table shows how many units each country can produce. Opportunity cost of one good = the other good's output ÷ this good's output. If A makes 40 wheat or 20 cloth, 1 wheat costs 20 ÷ 40 = 0.5 cloth.

    Input: in on top

    Input problems

    The table shows the hours (or workers, or acres) needed to make one unit. Opportunity cost of one good = the input for the good you are asking about ÷ the other good's input. If a shirt takes 6 hours and a hat takes 3, 1 shirt costs 6 ÷ 3 = 2 hats. Lower numbers mean absolute advantage here.

    The trade price

    Terms of trade

    The terms of trade are how much of one good trades for one unit of the other. Both countries gain only if the terms fall between their two opportunity costs. Outside that range, one country could do better by making the good itself.

    Why comparative

    Gains from trade

    Trade lets each country get a good for less than it would cost to make at home. What matters is the opportunity cost each country faces, which comparative advantage measures. Production stays on each PPC, but consumption moves outside it.

    3. Worked examples

    First, the two setups side by side. Then the presets from the calculator worked out the way an answer key would.

    SetupWhat the numbers meanAbsolute advantage goes toOpportunity cost of 1 XMemory aid
    Output problemUnits of each good made with the same resources (per day, per worker, in total)The larger numberY output ÷ X outputOutput: the other good goes on top
    Input problemHours, workers, or acres needed to make 1 unitThe smaller numberX input ÷ Y inputInput: the good you are in goes on top
    ProblemOpportunity costsAbsolute advantageComparative advantageTerms that help both
    Output. A: 40 wheat or 20 cloth. B: 10 wheat or 15 cloth.A: 1 wheat = 0.5 cloth, 1 cloth = 2 wheat
    B: 1 wheat = 1.5 cloth, 1 cloth = 2/3 wheat
    A in bothA in wheat, B in clothBetween 0.5 and 1.5 cloth per wheat
    Input. A: 6 hours per shirt, 3 per hat. B: 8 hours per shirt, 2 per hat.A: 1 shirt = 6 ÷ 3 = 2 hats
    B: 1 shirt = 8 ÷ 2 = 4 hats
    A in shirts, B in hatsA in shirts, B in hatsBetween 2 and 4 hats per shirt
    Input. A: 2 hours per corn, 4 per steel. B: 6 hours per corn, 8 per steel.A: 1 corn = 2 ÷ 4 = 0.5 steel
    B: 1 corn = 6 ÷ 8 = 0.75 steel
    A in both (fewer hours)A in corn, B in steelBetween 0.5 and 0.75 steel per corn
    Output. A: 20 rice or 10 fish. B: 10 rice or 5 fish.Both: 1 rice = 0.5 fishA in bothNeitherNone. Equal opportunity costs mean no gains from trade.

    4. Answering it on the FRQ

    What graders want to see

    • Write the opportunity cost with the numbers and units: "A's opportunity cost of 1 wheat = 20 cloth ÷ 40 wheat = 0.5 units of cloth."
    • Justify comparative advantage with a comparison of opportunity costs: "A has a comparative advantage in wheat because its opportunity cost of wheat (0.5 cloth) is lower than B's (1.5 cloth)."
    • Justify absolute advantage with the raw numbers: "A can produce more wheat (40 > 10)" or "A needs fewer hours per unit (2 < 6)."
    • For terms of trade, state the range and check your answer against both opportunity costs: "1 wheat for 1 cloth benefits both because 0.5 < 1 < 1.5."
    • On a PPC, put one good on each axis, label the intercepts, and draw a straight line for constant opportunity cost. The slope's size is the opportunity cost of the horizontal-axis good.
    • For gains from trade, say consumption moves to a point outside the PPC. Production stays on the PPC.

    Common mistakes

    • Using the output formula on an input table. In an input problem, the good you are asking about goes on top.
    • Calling the larger number in an input table an absolute advantage. More hours per unit means slower, so the smaller number wins.
    • Deciding specialization by absolute advantage. A country with an absolute advantage in both goods still specializes only in its comparative advantage.
    • Saying one country has a comparative advantage in both goods. With two goods, a lower cost of one good always means a higher cost of the other.
    • Choosing terms of trade outside the range between the two opportunity costs, or exactly at one end (that country gains nothing).
    • Dropping units. "0.5" earns less than "0.5 units of cloth."

    5. Practice questions

    AP-style multiple choice. Pick an answer to see the explanation.

    0 / 0 correct

    6. Key terms

    The vocabulary for topic 1.3. Read the list, flip through flashcards, or quiz yourself. For every term in the unit, see the Unit 1 terminology guide.