Comparative advantage refers to the ability of a party to produce a particular good or service at slower marginal and opportunity cost over another. Even if one country is more efficient in the production of all goods than the other, both countries will still gain by trading with each other. The net benefits to each country are called the gains from trade.