Comparative Advantage Calculator
From the output of two goods, compute the opportunity cost of producing good 1 — and thus who has the comparative advantage.
Input Data
Results
At a glance:Comparative advantage is when one side has a lower opportunity cost of producing a good. opportunity cost of Good 1 = Good 2 output / Good 1 output. The lower-cost side has the comparative advantage and should specialise and trade for mutual gain. Example: 10 Good 1 or 20 Good 2 → cost of 1 Good 1 = 2 Good 2. WARNING: Simplified two-good model; real trade has transport, scale and many goods. Education, not advice.
Formula
Opportunity cost of Good 1 = Good 2 output / Good 1 output.
The side with the lower opportunity cost has the comparative advantage in that good.
$$\text{Opportunity Cost of Good 1} = \dfrac{\text{Good 2 Output}}{\text{Good 1 Output}}$$How to Use
- Enter the output of Good 1 with all resources.
- Enter the output of Good 2 with all resources.
- View the opportunity cost of producing Good 1.
FAQ
What is comparative advantage, and how does it differ from absolute advantage?
Absolute advantage (Smith) is about who produces more or more efficiently with the same resources. Comparative advantage (Ricardo) is about who has the lower opportunity cost. Even if one country is absolutely better at everything, trade still helps both as long as their opportunity costs differ — each specialises where it gives up least.
How do I compute the opportunity cost and decide who has the advantage?
Opportunity cost of 1 unit of Good 1 = Good 2 output / Good 1 output; of Good 2 = Good 1 / Good 2. Compare across the two sides: the lower cost side has the comparative advantage in that good. In a two-good, two-party model, if A has the advantage in Good 1, B must have it in Good 2.
What is the real-world meaning and limits of the theory?
It is the key argument for free trade and division of labour — specialisation lifts total output so all can consume more. But it is a stylised model (two goods, mobile resources, no transport, fixed tech); it ignores distribution (some sectors/workers lose), scale economies and dynamic advantage. Useful as the starting point, not the whole policy story.
How is comparative advantage different from absolute advantage?
Absolute advantage compares efficiency (who makes more). Comparative advantage compares opportunity cost (who gives up less). The non-intuitive but crucial result: a country can have an absolute advantage in everything yet still gain from trade, because it cannot have a comparative advantage in everything — specialising where its cost is lowest leaves the other good to the partner.
Why is trade not a zero-sum game?
Because specialisation by comparative advantage makes the total pie bigger, not just redistributes it. Each side trades at a rate between their opportunity costs and ends up able to consume more than under self-sufficiency. The gains are real overall, though some industries or workers may need adjustment support.
Related Tools
References
Content review: Calculatorism Finance Team. Results are for reference only; please refer to the relevant authorities for the official figures.