| Case | What each side gives up | Result | Planning use |
|---|---|---|---|
| Oil and corn: Saudi Arabia and the United States | Saudi Arabia gives up 1/4 bushel of corn per barrel of oil; the United States gives up 2 bushels of corn per barrel | Saudi Arabia leads in oil; the United States leads in corn | Assign each good to the party that gives up least, then check that the partner leads in the other good. |
| Iron ore and cars: Australia and China | Australia gives up 0.71 cars per iron ore; China gives up 1.25 cars | Australia leads in iron ore, although China’s maximum output is higher for both goods | Do not rank on output. The lower giving-up figure decides who specializes. |
| Copper and corn: Zambia | 2 hours per ton of copper and 1 hour per bushel of corn | One ton of copper costs 2 bushels of corn | Convert hours per unit into a giving-up ratio before comparing anyone. |
These figures are textbook illustrations from the University of Hawaii open macroeconomics textbook and Elucidate’s guide to calculating comparative advantage.
How to find comparative advantage comes down to one comparison: what each party gives up to make each good. The party that gives up least holds the advantage in that good, whatever its raw output.
The method works for individuals, firms and nations, and it is one input into the wider question of what is economic competitiveness.
Decisions the result supports
Finding comparative advantage changes three practical choices: what to specialize in, how to allocate work, and when to repeat the comparison. Each follows from the opportunity-cost figure rather than from who is faster.
- Specialize where the sacrifice is smallest. One calculator guide explains that opportunity cost is lower if you specialise in just one thing than if you try to master two. This suits a person, team or firm that currently spreads effort evenly across tasks.
- Allocate by opportunity cost, not by output. Being better at a task is not enough to decide who should do it. A review of comparative advantage notes that absolute advantage is not very helpful in determining how resources should be used.
- Re-run the comparison when inputs change. The ratio depends on the hours, output or costs you feed in. If a person gets faster at one task, or a firm changes its production line, the giving-up figures move and the best assignment may too.
Comparative advantage and absolute advantage
Comparative advantage means producing a good at a lower opportunity cost, measured in terms of the other goods you could have made. The University of Hawaii textbook says a country has it when it can produce a good at a lower cost in this sense, and that the concept is based on opportunity cost.
Absolute advantage is a simpler idea. A country has it in a good if it uses fewer resources to make that good than another country does. It describes efficiency, not the trade-off, which is why the two can disagree.
Where the two agree: oil and corn
In the textbook’s oil and corn pair, Saudi Arabia needs 1 hour per barrel of oil and the United States needs 2 hours. For corn, Saudi Arabia needs 4 hours per bushel and the United States needs 1 hour. Each country is therefore also the more efficient producer of one good.
The opportunity costs give the same answer. Saudi Arabia gives up 1/4 bushel of corn for each barrel of oil, while the United States gives up 2 bushels of corn. Saudi Arabia gives up the least for oil and the United States gives up the least for corn, so each leads in a different good.
The next case shows the two measures splitting, which is the situation where comparative advantage earns its keep.
Trade between countries
International trade is where the calculation scales up from tasks to nations. Each country compares the goods it can make and exports the one it gives up least to produce.
Australia and China
The Elucidate example gives China a maximum of 80 iron ore or 100 cars, and Australia a maximum of 70 iron ore or 50 cars. China can out-produce Australia in both goods, so it has the absolute advantage in each.
The opportunity costs still favour Australia in one of them. According to the worked calculation, one iron ore costs Australia 0.71 cars (50 divided by 70) and costs China 1.25 cars (100 divided by 80). Australia has the lowest opportunity cost, and so the comparative advantage, in iron ore. The practical lesson is that a weaker producer overall can still have a good it should specialize in. These are illustrative output limits, not recorded trade statistics.

Trade and growth
The Hawaii textbook points out that trade has accompanied economic growth. It says Japan, South Korea, China and India have grown rapidly by orienting their economies toward international trade. That is supporting context for specializing and trading, not a calculation of any one country’s advantage, so treat the ratio method as the test and the growth record as the motivation.
Comparative advantage also tells you nothing about how well a country scores on other capabilities. For a different lens on national strengths, see how the global innovation index scores countries.

Business and personal application
A person or firm applies the same logic to tasks instead of national outputs. The cakes and pies example from the review of comparative advantage is a compact model of two people dividing work.
William can cook 2 cakes or 4 pies in an afternoon, and David can cook 4 cakes or 6 pies. David is faster at both. Even so, William gives up 1/2 cake for each pie, while David gives up 2/3 cake for each pie. David therefore has the comparative advantage in cakes, and William is the cheaper producer of pies.
For a firm, the same comparison gives clear rules for choosing what to keep in-house:
- Keep the task where you give up least. If a task costs you little in other output, it is a candidate for your core activity.
- Hand off the task where you give up most. Assigning it to a colleague, partner or supplier with a lower giving-up figure frees time for your stronger task, even if you could do it faster yourself.
- Compare people on the same pair of tasks. A comparison only works when the same two goods or tasks are measured for every party, so pick the pair first and gather figures second.
The calculation method
The method has three steps, and Elucidate sets them out in the same order for any pair of goods and any pair of parties.
- Calculate the opportunity cost of each good for each party. Express it as the amount of the other good given up for one unit of this good.
- Tabulate the results. Put the parties in columns and the goods in rows so the ratios sit side by side.
- Identify the lowest opportunity cost for each good. The party with the lowest figure for a good has the comparative advantage in it.
With output data, divide the maximum of the other good by the maximum of the good you are costing. That is how Australia’s 50 cars and 70 iron ore give 0.71 cars per iron ore. With hours per unit, work out how many units of the other good the same hours would have produced, as in the copper and corn case where 2 hours for a ton of copper equals 2 bushels of corn at 1 hour each.
Per-labor-unit data works the same way. The Omni Calculator example gives Country X 100 units of good A and 110 units of good B per labor unit, so the opportunity cost of good B is 100 divided by 110, or 0.91 units of good A. Repeat the calculation for the other party and the lower figure for B marks who should make it.
Pitfalls to check
Most errors come from measuring the wrong thing or reading too much into a single comparison.
- Judge each good against its own ratio. The party with the lowest figure for oil is not automatically the party with the lowest figure for corn. In the Saudi Arabia and United States pair, each leads in a different good.
- Keep units consistent. Compare hours with hours or output with output across every party, or the ratios stop meaning anything.
- Treat textbook numbers as illustrations. The oil, iron ore and cake figures show the method; they do not forecast what a real country or business would find with its own data.
- Remember the wider economy. A favourable ratio does not protect output from weak demand. For how tight policy can hold back growth, read Why Contractionary Policies Can Hamper Economic Growth: Clear Explanations And Real-World Effects (2026) – Competitiveness.
Frequently asked questions
Who was David Ricardo, and what did he argue?
David Ricardo was a businessman, economist and member of the British Parliament who set out the idea in 1817. He argued that specialization and free trade benefit all trading partners, even those that may be relatively inefficient, according to the University of Hawaii textbook.
What exchange rate makes trade worthwhile for both sides?
Terms of trade that benefit both parties fall between each party’s opportunity costs, as the review of comparative advantage explains. In the cakes and pies case, a fair price for a pie in cakes sits between what William and what David each give up for it.
Does the calculation still hold when tariffs apply?
Not fully. The theory assumes no trading costs between countries, and tariffs and taxes raise those costs. Treat the ratio as showing which good to specialize in, then test whether the gain survives the extra cost.



