For Hobbyists & Makers · Comparative Advantage
Comparative Advantage for a trade tariff
Built for hobbyists & makers exploring it for fun. Play with real physics and math, no license and no setup — just open and tinker. Simulate a trade tariff live below — adjust the inputs and watch it respond, right in your browser.
Comparative AdvantageLive
the gains from trade
Controls
Presets
David Ricardo's great insight: even if one country is worse at making everything, both still gain from trade. Each should specialize in the good it gives up the least to produce — its comparative advantage — measured by the slope of its production-possibility frontier. Trade then lets both consume beyond their own frontiers.
Data Inspector
A opp. cost (wine)0.50 cloth
B opp. cost (wine)2.00 cloth
A should makewine
B should makecloth
Governing equation
Reading this result: Country A gives up 0.50 cloth per wine versus B at 2.00, so A specializes in wine and B in cloth — trade then lets both consume beyond their own frontiers.
Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.
More with Comparative Advantage
Comparative Advantage for a supply-demand marketComparative Advantage for a monopolyComparative Advantage for an auctionComparative Advantage for a tax policyComparative Advantage for an inflation modelComparative Advantage for a labor marketComparative Advantage for a game-theory standoffComparative Advantage for a price war
Frequently asked questions
- Is this good for hobbyists & makers?
- Yes — this version of "Comparative Advantage for a trade tariff" is framed for hobbyists & makers exploring it for fun. Play with real physics and math, no license and no setup — just open and tinker.
- Do I need to install anything?
- No. It runs in any modern browser, free, with no account required.