Absolute vs Comparative Advantage

You have an absolute advantage in something if you can produce it with fewer resources than others: faster, or with less time or material.
Comparative advantage is subtler. You have a comparative advantage in something if you can produce it at a lower opportunity cost than others. Opportunity cost is the value of the next best thing you give up. You can have a comparative advantage even in a task where someone else is faster. The British economist David Ricardo set out this idea in 1817.
Here is a hypothetical example. In one day, Ana can bake 20 loaves of bread or sew 10 shirts. Ben can bake 6 loaves or sew 6 shirts. Ana is faster at both, so she has the absolute advantage in both.
Now look at what each gives up:
- For Ana, 1 shirt costs 2 loaves (20 ÷ 10 = 2).
- For Ben, 1 shirt costs 1 loaf (6 ÷ 6 = 1).
Ben gives up less to make a shirt, so Ben has the comparative advantage in shirts. Ana gives up only half a shirt per loaf, while Ben gives up a whole shirt, so Ana has the comparative advantage in bread.
Check the gain. If each splits the day evenly, Ana makes 10 loaves and 5 shirts, and Ben makes 3 loaves and 3 shirts. Together that is 13 loaves and 8 shirts. Now suppose Ben sews all day (6 shirts) and Ana spends a fifth of her day on shirts (2 shirts) and the rest on bread (16 loaves). Together that is 16 loaves and 8 shirts. Same shirts, 3 more loaves. Trading lets them share that extra output.
The same idea explains why a surgeon who types faster than an assistant still hands over the typing. Every hour the surgeon types is an hour of surgery given up, which is a very high opportunity cost.