Source: https://goodhandover.co.uk/tools/comparative-advantage-calculator/

[Economics](https://goodhandover.co.uk/tools/economics/#bsc) / BSc economics

🔒 Files never leave your device

# Comparative advantage calculator

Compare opportunity costs for two countries and find the terms-of-trade range. Your inputs stay on your device.

## Set up your task

Ready. Processing stays in this browser.

Files and text stay on your device. [Privacy details](https://goodhandover.co.uk/privacy/).

 

## How to use Comparative advantage calculator

Compare opportunity costs for two countries and find the terms-of-trade range. The example below shows the input values and the result so you can compare the calculator’s method with your own working.

 

- Start with the pre-filled values for country a maximum x, country a maximum y, country b maximum x, country b maximum y.

- Replace the example with your own coursework values. Keep units consistent across the inputs and compare with the stated model.

- Read the intermediate values in the result. Use the check below to see how a change in the assumptions affects the answer.

 

## Supported inputs and limits

Use four positive output quantities from linear production possibilities. Each country’s two outputs must use the same amount of its resources.

 

## How it works

Comparative advantage is about what must be given up to produce more of a good. With a linear production possibility frontier, divide a country’s maximum Y by its maximum X to find the opportunity cost of one unit of X in units of Y. The country with the lower opportunity cost has comparative advantage in X.

Absolute advantage compares production capacity directly. A country can be more productive at both goods and still have the higher opportunity cost in one. For a simple trade exercise, write both costs for X on the same scale, in units of Y. A trade price for X strictly between the costs can benefit both sides under the model’s assumptions.

 

## Example

The pre-filled example gives “Comparative advantage in X: Country A · In Y: Country B” as its first result.

Country A maximum X

12

Country A maximum Y

6

Country B maximum X

6

Country B maximum Y

6

Comparative advantage in X: Country A · In Y: Country B
Cost of 1 X in units of Y: A 0.5 · B 1
Cost of 1 Y in units of X: A 2 · B 1
Mutually beneficial price of X in Y: strictly between 0.5 and 1.

 

## Questions about Comparative advantage calculator

### What input is needed for each country?

Enter both maximum outputs for the same quantity of that country’s resources. Convert time-per-unit questions to outputs over an equal time period before using the calculator.

### What if the opportunity costs are equal?

There is no strictly beneficial price interval based on comparative costs in this simple model. Equal opportunity cost does not require equal productivity.

### In the example, which country should specialise in X?

Country A gives up half a unit of Y per unit of X. Country B gives up one unit. The mutually beneficial price of X lies strictly between 0.5 and 1 unit of Y.

 
 

## Related tools

[BSc economics](https://goodhandover.co.uk/tools/economics/#bsc)

- [Supply and demand equilibrium calculator](https://goodhandover.co.uk/tools/supply-demand-equilibrium-calculator/)

- [Gini coefficient calculator](https://goodhandover.co.uk/tools/gini-coefficient-calculator/)

- [Price elasticity of demand calculator](https://goodhandover.co.uk/tools/price-elasticity-of-demand-calculator/)

- [Tax incidence calculator](https://goodhandover.co.uk/tools/tax-incidence-calculator/)

 

Last updated 24 November 2026
