Skip to content

Comparative Advantage Calculator

Calculate comparative advantage and opportunity costs for two countries and two goods using the Ricardian model. Find who should specialize in what.

Inputs

Country A

≥ 0
≥ 0

Country B

≥ 0
≥ 0

Results

Who Should Specialize?

No gains from trade. Both countries have the same opportunity-cost ratio, so neither holds a comparative advantage and specialization changes nothing.

Output per Hour (Absolute Advantage)

Output per hourCountry ACountry B
Good X (units)
106
Good Y (units)
54

Opportunity Cost (Comparative Advantage)

Opportunity cost of…Country ACountry B
1 unit of Good X (in Y)
00
1 unit of Good Y (in X)
00

Embed this calculator

Preview

Paste this code into your page to show the calculator.

Share this calculation

Anyone who opens this link sees your values already filled in.

200+ calculators · 10 languages · 100% free

Was this calculator helpful?

No

How can we improve this calculator?