Create your own
Lesson illustration

Gains from Trade: A Numerical Example

Hello. Previously, you used opportunity cost, marginal reasoning, and incentives to analyse individual choices. This lesson extends that logic to two people choosing to exchange. The central insight is that voluntary exchange can make both parties better off when each can obtain through trade what would be more costly to produce alone.

By the end, you should be able to demonstrate gains from voluntary exchange with a numerical production-and-trade example, identify the role of comparative advantage, and write a concise exam-ready explanation.


Why voluntary exchange can benefit both sides

A voluntary exchange is a trade that both parties agree to undertake. Each person participates because they expect the trade to leave them better off than their best available alternative, often called their reservation option.

There are two closely related ways exchange creates gains:

  1. Exchange reallocates a good to a person who values it more.
    For example, a buyer may value a textbook more than the seller does.

  2. Specialization and exchange allow people to use their time and resources more efficiently.
    Each person specializes in the activity with the lower opportunity cost and then trades for the other good.

The second case is especially important for introductory microeconomics. It explains why people, firms, and countries trade even when one producer is better at producing everything.

The key is comparative advantage, not simply who can produce the most.

  • Absolute advantage means producing a larger quantity with the same resources.
  • Comparative advantage means producing a good at a lower opportunity cost than another producer.

A person should specialize in the good for which they have comparative advantage.


Comparative advantage: the logic behind specialization

The following Khan Academy video builds the idea visually with two producers, Charlie and Patty. It first calculates opportunity costs, then shows how specializing and trading lets both consume combinations that neither could achieve independently.

Comparative advantage specialization and gains from trade | Microeconomics | Khan Academy

Watch “Comparative advantage specialization and gains from trade” from Khan Academy. It gives a clear visual demonstration of why lower opportunity cost, rather than higher total output, determines comparative advantage.

Watch the production frontiers to see the two producers’ output possibilities. Then watch comparative advantage, focusing on how opportunity costs of cups and plates are calculated. Finish with specialization and trade, where a one-for-one exchange allows both producers to reach a consumption bundle outside their own production possibilities.

A useful rule for any two-person, two-good question is:

Compare the opportunity cost of producing the same good for both producers. The producer with the lower opportunity cost has the comparative advantage in that good.

For example, if one additional plate costs Charlie cups but costs Patty only of a cup, Patty has comparative advantage in plates. Charlie, correspondingly, has comparative advantage in cups.


A full numerical demonstration: oil and corn

The production possibilities frontiers below show the maximum outputs of oil and corn for Saudi Arabia and the United States if each uses all its resources to produce only one good. At this stage, treat each frontier simply as a picture of the country’s production limits; you will study graph construction formally later in the course.

The left graph shows Saudi Arabia can produce up to 100 barrels of oil or 25 bushels of corn; the right graph shows the United States can produce up to 50 barrels of oil or 100 bushels of corn. The different trade-offs create scope for specialization and exchange.

Step 1: Calculate opportunity costs

For Saudi Arabia:

  • Producing barrels of oil requires giving up bushels of corn.
  • Therefore, the opportunity cost of one barrel of oil is:

bushel of corn.

  • The opportunity cost of one bushel of corn is:

barrels of oil.

For the United States:

  • Producing barrels of oil requires giving up bushels of corn.
  • Therefore, the opportunity cost of one barrel of oil is:

bushels of corn.

  • The opportunity cost of one bushel of corn is:

barrel of oil.

GoodSaudi Arabia’s opportunity costUnited States’ opportunity costComparative advantage
1 barrel of oil bushel of corn bushels of cornSaudi Arabia
1 bushel of corn barrels of oil barrel of oilUnited States

Saudi Arabia has a comparative advantage in oil, because producing oil costs it less corn than it costs the United States. The United States has a comparative advantage in corn, because producing corn costs it less oil than it costs Saudi Arabia.

Notice something important: Saudi Arabia can produce more oil, while the United States can produce more corn. In many questions, however, comparative advantage may not be so obvious from output levels. Always calculate opportunity costs.


Step 2: Compare self-sufficiency with specialization

Suppose both countries are initially self-sufficient: each divides its resources equally between oil and corn.

CountryOil before tradeCorn before trade
Saudi Arabia barrels bushels
United States barrels bushels
Total production75 barrels62.5 bushels

Now suppose they specialize according to comparative advantage:

  • Saudi Arabia produces only oil: barrels of oil.
  • The United States produces only corn: bushels of corn.
CountryOil after specializationCorn after specialization
Saudi Arabia barrels bushels
United States barrels bushels
Total production100 barrels100 bushels

Compared with self-sufficiency, total available output has increased:

  • Oil rises from to barrels.
  • Corn rises from to bushels.

Specialization has increased total production because each country has concentrated on the activity with its lower opportunity cost.

However, specialization alone is not enough. Saudi Arabia now has oil but no corn, while the United States has corn but no oil. They need exchange to share the gains.


Step 3: Choose mutually beneficial terms of trade

Suppose they agree to trade:

This is an exchange rate of one barrel of oil for one bushel of corn.

For the trade to benefit both countries, the price of one barrel of oil, measured in corn, must lie between their opportunity costs:

The agreed rate is bushel of corn per barrel of oil. It lies between and , so it can benefit both sides.

Why?

  • Saudi Arabia gives up one barrel of oil to receive one bushel of corn. Producing one bushel of corn itself would cost Saudi Arabia barrels of oil. Trade is cheaper.
  • The United States gives up one bushel of corn to receive one barrel of oil. Producing one barrel of oil itself would cost the United States bushels of corn. Trade is cheaper.

Both countries are better off obtaining the imported good through exchange rather than producing it domestically.


Step 4: Show final consumption after trade

After the trade:

CountryProduction after specializationTradeFinal consumption
Saudi Arabia oil, cornGives oil; receives corn oil, corn
United States oil, cornReceives oil; gives corn oil, corn

Now compare final consumption with consumption before trade.

CountryBefore tradeAfter specialization and tradeResult
Saudi Arabia oil, corn oil, cornMore oil and more corn
United States oil, corn oil, cornMore oil and more corn

This is a direct demonstration of gains from voluntary exchange: both countries consume more of both goods than they could under self-sufficiency.

A subtle but important distinction:

  • Specialization increases the total quantity produced.
  • Trade distributes that larger total output so that both participants can benefit.

After trade, each country consumes a combination that lies beyond what it could produce on its own production possibilities frontier. Trade does not remove resource limits; it allows each country to benefit from the other country’s specialized production.


A second numerical view: buyer and seller gains

Gains from voluntary exchange also occur in an ordinary purchase, even without discussing specialization.

Suppose:

  • Riya is willing to pay up to Rs. for a reference book.
  • A bookseller’s cost of obtaining the book is Rs. .
  • They agree on a price of Rs. .

Riya’s gain is:

The seller’s gain is:

Their combined gain from exchange, or joint surplus, is:

The same result can be written as:

The price determines how the gain is divided between buyer and seller. But the total gain comes from the difference between the buyer’s willingness to pay and the seller’s cost.

Any agreed price between Rs. and Rs. can make both parties better off:

  • At a price below Rs. , the seller would not cover the relevant cost.
  • At a price above Rs. , Riya would not consider the book worth buying.
  • Between these values, both gain relative to not trading.

Reinforce the method with Greta and Carlos

CORE Econ’s example of Greta and Carlos uses apples and wheat. It is particularly useful because Greta has an absolute advantage in both goods, yet Carlos still has a comparative advantage in apples. The example therefore proves that a producer does not need to be best at everything to benefit from trade.

2.3 Comparative advantage, specialization, and markets

Read CORE Econ’s “Comparative advantage, specialization, and markets” to see a complete table-based demonstration of specialization, an agreed exchange rate, and higher consumption for both traders.

In the subsection “Comparative advantage: Gains from specialization,” begin with the paragraph starting the Greta and Carlos example. Read through the production table, the opportunity-cost table, and Figure 2.2c. Focus especially on the comparison between self-sufficiency and consumption after trade: Greta and Carlos each consume more apples and more wheat after specializing and exchanging.

When revising this resource, keep the following structure in mind:

  1. Find each producer’s opportunity cost.
  2. Identify comparative advantage.
  3. Let each specialize in the good with lower opportunity cost.
  4. Select a trade rate that lies between the two opportunity costs.
  5. Compare final consumption with pre-trade consumption.

How to write a full-mark answer

For a question such as, “Demonstrate gains from voluntary exchange using a numerical example,” use a compact but complete structure.

Voluntary exchange can make both parties better off when they specialize according to comparative advantage and trade at mutually beneficial terms. Suppose Country A gives up unit of corn to produce one unit of oil, while Country B gives up units of corn to produce one unit of oil. Country A therefore has comparative advantage in oil, and Country B has comparative advantage in corn. If Country A specializes in oil and Country B specializes in corn, and they trade one unit of oil for one unit of corn, the exchange rate lies between their opportunity costs. Both countries can then consume more oil and more corn than before trade. Therefore, specialization and voluntary exchange create gains from trade.

For numerical answers, a small table is usually stronger than a long paragraph. Make sure it shows:

  • output or consumption before trade;
  • specialized production;
  • goods given and received through trade;
  • consumption after trade;
  • a final comparison showing how both parties gain.

Avoid these common errors:

  • Identifying comparative advantage by total output alone rather than opportunity cost.
  • Claiming that both parties gain merely because they trade, without showing why the exchange rate benefits each side.
  • Forgetting to compare after-trade consumption with the self-sufficiency position.
  • Confusing production after specialization with consumption after trade.
  • Saying that specialization makes both goods more abundant in every possible situation without checking the numbers.

Key takeaways

  • Voluntary exchange occurs when each participant expects to be better off than without the trade.
  • Comparative advantage depends on lower opportunity cost, not necessarily higher output.
  • Specialization in comparative advantage can raise total production.
  • A mutually beneficial exchange rate lies between the trading partners’ opportunity costs.
  • Gains from trade are demonstrated by showing that final consumption after specialization and exchange exceeds consumption before trade.
  • In a buyer–seller transaction, joint surplus equals willingness to pay minus production cost.

Next, you will move from direct exchange between individuals or countries to the broader question of how market prices coordinate economic activity among many buyers and sellers.

Can't find a good explanation? Sign up and we'll make it for you

Sign up