Home▸Economics & Social Systems▸International Trade: The J-Curve & Marshall-Lerner Simulator

🧪 International Trade: The J-Curve & Marshall-Lerner Simulator

Simulate how a currency depreciation and an import tariff move a country's trade balance over time: watch the short-run J-curve dip and see whether the Marshall-Lerner condition delivers a long-run improvement, with animated 3D export/import flows.

Economics & Social Systems3DModerate60 FPS📱 Mobile-adapted🟠 Blender⇄ 2D version
International Trade: The J-Curve & Marshall-Lerner Simulator ↗ Open standalone

This simulator models a single, well-defined piece of international trade theory: how a currency depreciation and an import tariff move a country's trade balance over time. Because contracts, shipping and buying habits are sticky, import and export volumes don't move the moment prices change — they drift toward their new level over months, while the price of imports jumps immediately. That gap produces the "J-curve": the trade balance first worsens because the import bill rises before quantities adjust, then recovers (or doesn't) once trade volumes catch up. Whether the long run recovery actually improves the trade balance is governed by the Marshall-Lerner condition, ηx + ηm > 1 — the sum of the export and import price elasticities must exceed one. Adjust the depreciation, tariff, elasticities and contract-adjustment speed, then press Play to watch the 3D export and import flows speed up or slow down while the trade-balance path traces its J-shape in real time.

⚙ Under the hood

This 2D simulation demonstrates the principles of international trade, exploring factors like tariffs and exchange rates on global economies.

International TradeComparative AdvantageSupply ChainsJ-curveMarshall-Lerner conditionexchange rateimport tariff

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)