Comparative Advantage and International Trade
Production costs in comparative advantage
Opportunity cost is the value of the next best alternative you give up when you choose to produce one good over another. It's the foundation of comparative advantage.
A country has a comparative advantage in a good if it can produce that good at a lower opportunity cost than its trading partner. Notice this isn't about being "better" at making something in absolute terms. It's about what you sacrifice to make it.
Several factors create differences in opportunity costs between countries:
- Resource availability (arable land, oil reserves, labor supply)
- Technology (automation, manufacturing techniques)
- Productivity (workforce skills, education levels)
- Factor endowments (natural resources, capital stock, skilled labor)
Because of these differences, countries should specialize in producing and exporting goods where they hold a comparative advantage. This leads to more efficient use of resources and higher overall output.
Mutual benefits of international trade
Absolute advantage means a country can produce a good using fewer resources than another country. The U.S., for example, has an absolute advantage in aircraft production. But here's the key point of this section: even a country with an absolute advantage in all goods still benefits from trade.
Why? Because that country can't have a comparative advantage in everything. Comparative advantage depends on relative opportunity costs, and those always differ across goods. So even if Country A outproduces Country B in every category, there will still be some goods where Country B's opportunity cost is lower.
Here's how it works with two countries (A and B) producing two goods (X and Y):
- Country A has an absolute advantage in both goods but a comparative advantage only in good X.
- Country B has a comparative advantage in good Y (its opportunity cost for Y is lower).
- If each country specializes based on comparative advantage and they trade, both can consume more of both goods than they could without trade.
The terms of trade are the relative prices at which countries exchange goods. For trade to benefit both sides, the terms of trade must fall between the two countries' opportunity costs. If they don't, one country has no incentive to trade.

Opportunity cost of trade benefits
To figure out which country has the comparative advantage, you need to calculate opportunity costs. Here's the process:
- Identify how much of each good a country can produce with its resources.
- Divide the amount of the other good forgone by the amount of the good produced:
Example: Country A can produce 10 units of good X or 5 units of good Y with its resources.
- Opportunity cost of 1 unit of good X = units of good Y
- Opportunity cost of 1 unit of good Y = units of good X
Notice that the two opportunity costs are always reciprocals of each other. If producing X costs 0.5Y, then producing Y must cost 2X.
Now suppose Country B can produce 4 units of good X or 4 units of good Y. Country B's opportunity cost of 1 unit of X = unit of Y. Since Country A gives up only 0.5Y per unit of X (compared to Country B's 1Y), Country A has the comparative advantage in good X. Country B, meanwhile, gives up only 1X per unit of Y (compared to Country A's 2X), so Country B has the comparative advantage in good Y.
When both countries specialize according to these comparative advantages and trade, total output rises and both countries can consume beyond their individual production possibilities.
Trade considerations
- Gains from trade arise when countries specialize and exchange goods based on comparative advantage, not absolute advantage.
- Economic efficiency improves as resources shift toward their most productive uses through specialization.
- Trade barriers like tariffs and quotas reduce these potential benefits by raising costs and limiting the volume of trade.