Comparative advantage is an economic theory stating that a net benefit accrues to any two countries, companies or individuals from specialization and trade if one can produce a good or service at a lower opportunity cost than the other. Opportunity cost is the total value of the next best alternative foregone when making a choice. The party with the lower opportunity cost has the comparative advantage. This contrasts with absolute advantage, which is simply the ability of one party to produce a good or service using fewer resources, or at a lower input cost, than another.
The benefits of comparative advantage can be illustrated with the classic example of a lawyer and a secretary. Suppose the lawyer is more efficient at both legal work and typing than the secretary and can generate $200 per hour doing the former and $30 per hour doing the latter. The secretary cannot provide legal services but can generate $20 in typing per hour. The lawyer has an absolute advantage in both tasks but a comparative advantage only in law.
If the lawyer spends an hour typing, they give up the chance to earn $200 in legal fees, meaning the lawyer's opportunity cost for an hour of typing is $200. If the secretary spends an hour typing, their opportunity cost is just the $20 baseline of typing elsewhere. Because the secretary sacrifices far less potential value ($20 vs. $200) to type, the secretary has the comparative advantage in typing.
To see how trade creates wealth, consider a ten-hour workday. Without trade, suppose the lawyer spends nine hours on law (earning $1,800) and one hour typing their own documents (earning $30), while the secretary types for ten hours for other clients (earning $200). Their combined income is $2,030.
With trade, they exploit their comparative advantage. The lawyer performs exclusively legal services for ten hours, generating $2,000. The lawyer then hires the secretary for one hour to do that typing, paying them a negotiated rate of $40. The secretary spends their remaining nine hours typing for other clients ($180). Now, the secretary makes $220 for the day ($20 more than before), and the lawyer keeps $1,960 after paying the secretary ($130 more than before). Through specialization and trade, their combined wealth increases from $2,030 to $2,180, and all the required work still gets done.
While the theory provides a powerful argument for global free trade, pushing for the absolute elimination of trade barriers has historically introduced serious, difficult-to-quantify negative externalities. Shipping goods across massive global supply chains drastically increases carbon emissions, and polluting industries are often shifted to developing countries with weaker environmental regulations, leading to environmental degradation.
Furthermore, while international trade increases overall macroeconomic output, it can severely reduce the standard of living for specific domestic groups whose jobs are outsourced, severely worsening wealth inequality. Extreme specialization also introduces national security risks, leaving nations dangerously dependent on foreign adversaries or fragile supply chains for critical goods, such as energy, pharmaceuticals and semiconductors, during geopolitical crises or climate-induced disruptions. Finally, a development trap can occur, in which forcing developing countries to specialize strictly in low-skill labor or raw commodities prevents them from protecting and nurturing industries required for long-term economic growth.