Ad Space — Top Banner

Comparative Advantage Formula

Calculate comparative advantage using opportunity cost.
Determine which country should produce which good for mutual trade benefit.

The Formula

Opportunity Cost of Good X = (Units of Good Y Forgone) / (Units of Good X Gained)

Comparative advantage is one of the most important concepts in economics. It explains why countries benefit from trade even when one country can produce everything more efficiently than another. A country has a comparative advantage in producing a good if its opportunity cost of producing that good is lower than the opportunity cost faced by another country.

The key insight is that trade is not about who is the best at producing something in absolute terms. It is about who gives up the least to produce it. Even if Country A can make both cars and wheat more efficiently than Country B, it still makes sense for each country to specialize in the good where its opportunity cost is lowest and then trade with the other.

David Ricardo first described this principle in 1817 in England. His work showed that free trade leads to mutual gains, which remains a cornerstone of international economics today. The formula itself is straightforward: divide the amount of the alternative good sacrificed by the amount of the target good produced. Whichever country has the lower ratio should specialize in that good.

This principle applies beyond countries. It works for individuals, businesses, and departments deciding how to allocate limited resources for maximum overall output.

Variables

SymbolMeaning
OCXOpportunity cost of producing one unit of Good X
Y forgoneUnits of Good Y that must be given up
X gainedUnits of Good X that are produced

Example 1

Problem

Country A can produce 100 cars or 200 tonnes of wheat. Country B can produce 40 cars or 120 tonnes of wheat. Which country has a comparative advantage in cars?

Country A: Opportunity cost of 1 car = 200/100 = 2 tonnes of wheat

Country B: Opportunity cost of 1 car = 120/40 = 3 tonnes of wheat

Country A has the comparative advantage in cars (2 < 3 tonnes of wheat per car).

Example 2

Problem

Using the same countries above, which has the comparative advantage in wheat?

Country A: Opportunity cost of 1 tonne of wheat = 100/200 = 0.5 cars

Country B: Opportunity cost of 1 tonne of wheat = 40/120 = 0.333 cars

Country B has the comparative advantage in wheat (0.333 < 0.5 cars per tonne). Both countries benefit if A specializes in cars and B specializes in wheat.

When to Use It

Comparative advantage analysis is essential whenever you need to determine the best allocation of limited resources between two or more producers.

  • International trade decisions — determining which goods a country should export or import
  • Business resource allocation — deciding which department or team should handle which tasks
  • Personal productivity — figuring out which tasks to do yourself versus delegate
  • Economic policy analysis — evaluating the impact of tariffs and trade agreements

Ad Space — Bottom Banner

Embed This Calculator

Copy the code below and paste it into your website or blog.
The calculator will work directly on your page.