Comparative Advantage Calculator

Find who has the comparative and absolute advantage in two goods from each producer's output, the opportunity costs, and the range of terms of trade…

Results

Enter your details and click Calculate to see your results.
About This Calculator

Enter how much of each good each producer (person, firm or country) could make with the same resources if it made only that good. The producer with the lower opportunity cost of a good has the comparative advantage in it and should specialise in it.

Example

Example: A can make 40 X or 20 Y; B can make 30 X or 30 Y. A gives up 0.5 Y per X and B gives up 1 Y per X, so A has the comparative advantage in X and B in Y. Trade at any price between 0.5 and 1 Y per X helps both.

Assumptions

Output-based ("output") problems with constant opportunity costs. If your problem gives hours or inputs needed per unit ("input" problems), convert to output per period first. These are standard textbook formulas for learning, homework and quick business estimates; real markets rarely follow straight-line curves exactly.

Frequently Asked Questions

Can a country gain from trade if it is worse at making everything?

Yes — it still has a comparative advantage in something, and specialising in it lets both sides consume more.

What's the difference between absolute and comparative advantage?

Absolute advantage is producing more; comparative advantage is producing at a lower opportunity cost.

Related Calculators

About the Author

Imran Hossain
Imran Hossain

Professional SEO, Digital Marketer Specialist

I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist

View full profile