🔍
⚖️

Comparative Advantage Calculator

Compare two producers’ opportunity costs for two goods to see who holds the comparative advantage in each.

units
units
units
units

What is comparative advantage?

Comparative advantage is an economic principle showing that a producer should specialize in the good it can make at the lowest opportunity cost, even if another producer is more efficient at everything (absolute advantage). Trade based on comparative advantage benefits both parties.

How this calculator works

Enter how many units of Good X and Good Y each producer can make in a fixed period (like a day). We calculate each producer’s opportunity cost of Good X (how much Good Y they give up to make one more unit of X) and vice versa. Whoever has the lower opportunity cost for a good holds the comparative advantage in it.

This calculator is for general economics education purposes using a simplified two-producer, two-good model.

Last reviewed August 2026