Skip to content
Tutorials Center
My learning

Topics

Lesson 8 of 37 ยท Scarcity and Choice

Comparative Advantage and Trade

Learn absolute and comparative advantage, how to compute opportunity costs, and why specialization and trade can leave both sides better off, with examples.

Why do people not make everything themselves? A doctor could grow her own food and sew her own clothes, but she mostly does not. She does medicine, earns money and buys the rest. Countries behave the same way. The idea behind this is one of the most important in economics: comparative advantage.

Absolute advantage

A person or country has an absolute advantage in a good if it can make more of it with the same resources (or use fewer resources to make the same amount). It is about raw productivity.

Our example has two people, Ana and Ben, who each work one day. In a day:

Loaves of bread Shirts
Ana (all day on one good) 12 6
Ben (all day on one good) 8 2

Ana is better at both goods, so she has an absolute advantage in both. You might think she gains nothing from trading with Ben. She does.

Comparative advantage

A person has a comparative advantage in a good if their opportunity cost of making it is lower than someone else's. Compute opportunity costs:

  • Ana: 6 shirts or 12 loaves, so 1 shirt costs 12 / 6 = 2 loaves. One loaf costs 6 / 12 = 0.5 shirt.
  • Ben: 2 shirts or 8 loaves, so 1 shirt costs 8 / 2 = 4 loaves. One loaf costs 2 / 8 = 0.25 shirt.

Ana gives up 2 loaves per shirt; Ben gives up 4. So Ana has the comparative advantage in shirts. Ben gives up only 0.25 shirt per loaf while Ana gives up 0.5, so Ben has the comparative advantage in bread.

Notice that it is impossible for one person to have a comparative advantage in both goods, because the opportunity costs of the two goods are reciprocals of each other.

Python Opportunity costs and comparative advantage

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The gains from specialization and trade

Suppose each person splits the day equally between the two goods and does not trade.

  • Ana: 6 loaves and 3 shirts.
  • Ben: 4 loaves and 1 shirt.
  • Total: 10 loaves and 4 shirts.

Now each specializes in the good where they have a comparative advantage: Ana makes only shirts (6) and Ben makes only bread (8). Total output: 8 loaves and 6 shirts. Two loaves are lost and two shirts are gained. Is that better? Any shirt is worth between 2 loaves (Ana's cost) and 4 loaves (Ben's cost), so two shirts are worth more than two loaves.

Now they trade at a price between the two opportunity costs. Say 2 shirts for 5 loaves, which is 2.5 loaves per shirt (within the range of 2 to 4).

  • Ana: 6 shirts - 2 = 4 shirts, and 0 + 5 = 5 loaves. Before she had 3 shirts and 6 loaves, so she gained 1 shirt and lost 1 loaf.
  • Ben: 8 loaves - 5 = 3 loaves, and 0 + 2 = 2 shirts. Before he had 4 loaves and 1 shirt, so he gained 1 shirt and lost 1 loaf.

Both gain 1 shirt for the price of 1 loaf, and a shirt is worth more than a loaf to each of them by their own production costs.

Python Gains from trade

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The numbers are invented; the lesson is the pattern. Trade works when the price lies between the two opportunity costs, because then each side buys the good for less than it would cost them to make it.

The terms of trade

The range of mutually beneficial trade is called the terms of trade. Here it is between 2 and 4 loaves per shirt.

  • At a price of 2 loaves per shirt, Ana gains nothing (it is her own cost), and Ben gets all the benefit.
  • At 4 loaves per shirt, Ben gains nothing and Ana gets it all.
  • Anywhere in between, both gain, and the exact price depends on bargaining.
flowchart LR
  A["Ana: shirt costs 2 loaves"] --> R["Trade price: 2 to 4 loaves per shirt"]
  B["Ben: shirt costs 4 loaves"] --> R
  R --> G["Both better off"]

Any price between the two opportunity costs benefits both traders.

Countries and international trade

The same reasoning applies to countries. A country with warm weather and cheap land may have a comparative advantage in fruit, while another with skilled engineers has it in machines. Trade lets both consume beyond their own PPF.

Real trade is more complicated: there are many goods, transport costs, tariffs and workers who lose jobs when an industry shrinks. Economists generally find that trade raises total output, but they also stress that the gains are not shared equally, which is a normative issue (see positive and normative statements).

To find comparative advantage, never compare raw output. Compare opportunity costs. The person with the lower opportunity cost of a good should specialize in it.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Ana makes 12 loaves or 6 shirts per day. What is her opportunity cost of one shirt?

    12 loaves / 6 shirts = 2 loaves per shirt.
  2. 2. Comparative advantage means

    Comparative advantage is defined by the lower opportunity cost, not by absolute output.
  3. 3. Can one person have a comparative advantage in both of two goods?

    If someone's cost of good X is lower, their cost of good Y must be higher relative to the other person.
  4. 4. Ana's shirt costs 2 loaves and Ben's costs 4. Which price allows both to gain?

    A price between the two opportunity costs, such as 3, lets each buy a shirt for less than it costs to make it.

Summary

  • Absolute advantage compares productivity; comparative advantage compares opportunity cost.
  • Each party should specialize in the good with the lower opportunity cost.
  • Trade at a price between the two opportunity costs leaves both better off.
  • The gains from trade also apply to countries, though costs and benefits are spread unequally.

Next: Economic Systems