Comparative advantage is the ability to produce a good or service at a lower opportunity cost than another producer. It is a relative test. You compare what each producer must give up to make something, not how much each can make in absolute terms. A producer can be less productive overall and still hold comparative advantage in one particular good.
Opportunity cost is the number that decides it
Opportunity cost is the value of the best alternative you give up when you use scarce resources for one choice. If a worker spends an hour on task A instead of task B, the opportunity cost of task A is whatever task B would have produced in that hour. Comparative advantage goes to whoever has the lower opportunity cost for a given good, because that producer gives up less of everything else to make it.
| # | Preview | Product | Price | |
|---|---|---|---|---|
| 1 |
|
Principles of Economics | $270.79 | Buy on Amazon |
| 2 |
|
Basic Economics: A Common Sense Guide to the Economy | $25.49 | Buy on Amazon |
| 3 |
|
Economics For Dummies: Book + Chapter Quizzes Online | $17.49 | Buy on Amazon |
| 4 |
|
Principles of Economics | $177.99 | Buy on Amazon |
| 5 |
|
Understanding Economics, Student Edition (ECONOMICS PRINCIPLES & PRACTIC) | $49.02 | Buy on Amazon |
How to calculate comparative advantage
The calculation works for any two producers and any two goods, as long as you know the maximum amount of each good each producer can make from the same resources.
- List each producer’s maximum output of both goods. For example, one producer might be able to make 100 bushels of corn or 50 barrels of oil, using all of its resources on one good or the other.
- Find the opportunity cost of good A in units of good B. Divide the maximum units of B by the maximum units of A. This tells you how much of B is forgone for each extra unit of A.
- Find the opportunity cost of good B in units of good A. Divide the maximum units of A by the maximum units of B.
- Compare the producers for each good. The producer with the lower opportunity cost for a good has comparative advantage in that good.
- Check your work. With two goods and two producers whose costs differ, the producer with the lower cost for one good has the higher cost for the other. If both producers show the same direction for both goods, recheck the inputs.
This method assumes the production alternatives are a straight line, meaning each extra unit of a good costs the same amount of the other good. Textbook examples are built this way to keep the arithmetic clear. Real economies rarely behave so neatly.
Recommended Free Tools
#1 Best Overall
Worked example: corn and oil
OpenStax’s Principles of Economics 3e uses a United States and Saudi Arabia comparison. The figures below are the textbook’s illustrative production possibilities, not measurements of either country’s current output.
| Producer | Maximum corn | Maximum oil | Corn given up per barrel of oil | Oil given up per bushel of corn | Comparative advantage |
|---|---|---|---|---|---|
| United States | 100 bushels | 50 barrels | 2 bushels | 0.5 barrel | Corn |
| Saudi Arabia | 25 bushels | 100 barrels | 0.25 bushel | 4 barrels | Oil |
Saudi Arabia gives up only 0.25 bushel of corn for each barrel of oil, while the United States gives up 2 bushels. Saudi Arabia therefore has comparative advantage in oil. The same comparison shows the United States gives up 0.5 barrel of oil per bushel of corn, versus 4 barrels for Saudi Arabia, so the United States has comparative advantage in corn.
Rank #2
In this example, the United States also has absolute advantage in corn (100 bushels against 25), and Saudi Arabia has absolute advantage in oil (100 barrels against 50). The two tests happen to agree here, which is why the difference is easy to miss.
Absolute advantage is a different test
Absolute advantage asks which producer can make more of a good with the same resources, or which needs fewer resources to produce a given amount. Comparative advantage asks which producer gives up less of another good. The two can point to different producers, as the following hypothetical example shows. The numbers are invented to illustrate the logic only.
Rank #3
| Producer | Maximum cloth | Maximum wheat | Cloth given up per unit of wheat | Wheat given up per unit of cloth | Comparative advantage |
|---|---|---|---|---|---|
| Producer A | 120 units | 60 units | 0.5 unit of cloth | 2 units of wheat | Wheat |
| Producer B | 100 units | 20 units | 0.2 unit of cloth | 5 units of wheat | Cloth |
Producer A has absolute advantage in both goods, because it can make more of each. Yet Producer B has comparative advantage in cloth, since it gives up only 0.2 unit of wheat per cloth unit against A’s 0.5. Producer A has comparative advantage in wheat, since it gives up 2 cloth units per wheat unit against B’s 5. Being more productive overall does not settle who should specialize in what.
Why specialization and trade can help both sides
When each producer concentrates on the good where its opportunity cost is lower, total output of both goods can rise. Trade then lets each side obtain the good it does not make at a price better than producing it at home.
Rank #4
In the corn and oil example, the United States would give up 2 bushels of corn to make one barrel of oil, and Saudi Arabia would give up 4 barrels of oil to make one bushel of corn. Any exchange rate between those costs is mutually acceptable in the model. Suppose a barrel of oil trades for 1 bushel of corn:
- The United States pays 1 bushel instead of giving up 2, so it gains.
- Saudi Arabia receives 1 bushel for oil that cost it only 0.25 bushel to produce, so it also gains.
The mutually beneficial range therefore runs from 0.25 to 2 bushels of corn per barrel of oil. Exchange terms outside that range leave at least one side worse off than producing the good itself.
What the model does not settle
- Constant costs are a simplification. The straight-line production frontier assumes each extra unit costs the same amount of the other good. Actual production usually involves costs that rise or fall as output changes.
- Aggregate gains are not universal gains. The model describes potential benefits for the countries or producers as wholes. It does not promise that every worker, firm or household gains, and it does not account for the cost of shifting resources from one industry to another.
- Textbook figures are not current statistics. The corn and oil numbers illustrate a method. Use current national production and trade data from official statistical agencies for any real-world claim. The World Trade Organization’s introductory explainer on comparative advantage is also older, so rely on it for definitions rather than for trade figures.
Applying the idea to household decisions
The same logic applies to time inside a household, with a caveat: wages are only a rough measure of what time is worth. Suppose a hypothetical couple splits a chore. Partner A earns $40 an hour and does the laundry in 0.5 hour, giving an opportunity cost of $20 per load. Partner B earns $15 an hour and does it in 1 hour, giving an opportunity cost of $15 per load. Partner A is faster in absolute terms, but Partner B gives up less income to do the job, so B has comparative advantage in laundry. Counting leisure, fatigue, or preferences would change the numbers, so treat the calculation as a starting point rather than a rule.
Next steps for working through a problem
To apply the concept to any pair of producers, write down each one’s maximum output of both goods, compute the four opportunity costs, and mark which producer has the lower cost for each good. Then test whether a proposed exchange rate falls between the two opportunity costs. If it does, the model predicts gains to both sides. Whether those gains reach every person involved is a separate question the model does not answer.
For a free, full-length treatment of the concept, OpenStax’s Principles of Economics 3e includes a comparative advantage section and is available free online and as a PDF.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.
The Tool Desk
Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →




