Comparative Advantage Calculator
Enter the output or labor input of two goods for two countries to find each country's opportunity cost and see which country holds the comparative advantage in each good.
Input
Type of value to enter
Enter how many units of each good can be produced with the same amount of resources. A higher number is judged as higher productivity.
Country A (output from a fixed amount of resources)
Country B (output from a fixed amount of resources)
Result
Comparative advantage verdict
Good X → Country A
Good Y → Country B
If Country A specializes in Good X and Country B specializes in Good Y and they trade, both countries gain.
Comparative advantage in Good X
Country A
Comparative advantage in Good Y
Country B
Opportunity cost (amount of the other good given up to make one unit of this good)
| Country | Opportunity cost of 1 unit of Good X (in Good Y) | Opportunity cost of 1 unit of Good Y (in Good X) |
|---|---|---|
| Country A | 0.8 | 1.25 |
| Country B | 1.5 | 0.667 |
The country with the lower opportunity cost holds the comparative advantage in that good.
How it works
- From the production data of two countries and two goods, this tool determines which good each country has a comparative advantage in. It supports both an output mode and a labor-input mode.
- Opportunity cost is the amount of one good you give up to produce one more unit of another good. In output mode, the opportunity cost of Good X equals Good Y output divided by Good X output; in labor-input mode, the opportunity cost of Good X equals Good X input divided by Good Y input.
- A country whose opportunity cost for a good is lower than the other country's holds the comparative advantage in that good. When each country specializes in the good it has a comparative advantage in and they trade, both countries gain.
- Unlike absolute advantage (simply being more productive), comparative advantage is determined by comparing opportunity costs. Even if one country has an absolute advantage in both goods, the comparative advantage is always split between the two countries.
- The results display each country's opportunity cost in a table and show which country should specialize in which good.
- Note: This tool is a simplified educational model based on Ricardian comparative advantage. Real-world trade is affected by many factors such as transport costs, tariffs, and economies of scale.
Related calculators
Sales Tax & VAT Calculator
MoneyAdd or remove sales tax / VAT from any price. Enter an amount and rate to instantly see the net price, tax amount, and gross total, with your choice of rounding.
Open calculator →Loan Payment Calculator
MoneyJust enter the loan amount, annual interest rate and term to instantly calculate your monthly payment, total repayment and total interest. Supports equal-payment and equal-principal methods, with a modern chart of the principal-vs-interest breakdown.
Open calculator →Lottery Winning Odds Calculator
MoneyPick a lottery type (Loto 6, Loto 7, Mini Loto, or Jumbo) and the number of tickets to calculate your odds of hitting the jackpot, your chance of winning any prize, and the expected payout rate. Compare the odds against everyday events to feel just how unlikely a win really is.
Open calculator →Loan Repayment Calculator with Bonus Payments
MoneyEnter your loan amount, interest rate and term, plus the share repaid through bonus payments and how often they occur, to instantly compute your monthly payment, each bonus payment, the annual and total repayment, and total interest using the equal-payment method. A year-by-year amortization schedule is included.
Open calculator →