The changes in bilateral trade, import costs, tariff revenue, producer and consumer surplus, net welfare, and trade diversion after a bilateral tariff change.
Surface: /tariff-simulator
BACI 202601 (CEPII), HS96, 1996-2024 (retrieved 2026-06-01)
The policy surface implements an Armington (1969) CES partial-equilibrium model. It allocates each exporter's product exports across destinations in proportion to that exporter's total bilateral trade shares, converting BACI values from thousands of USD to plain USD.
For each importer, the solver forms baseline expenditure shares, applies the tariff-inclusive price ratio to each supplier, computes a CES import price index, and updates bilateral quantity and value. The ten largest countries by trade are represented separately, together with the country of interest and all policy countries; all others are grouped as ROW.
HS6 substitution elasticities come from Soderbery (2018). Stored sigmas are used in absolute value. A single HS6 uses its own sigma; HS4 or multi-code scenarios use an export-weighted mean for the country of interest. The fallback is sigma = 4.0 when no estimate is available.
Welfare uses a first-order Harberger approximation, most reliable for moderate tariff changes. Trade diversion is detected by comparing bilateral baseline and scenario flows.
The separate GET estimator applies an HS4 import-demand elasticity to a tariff change relative to the latest available MFN baseline.
price_ratio(i,j) = (1 + tariff_new(i,j)) / (1 + tariff_old(i,j))P(j) = [ sum_i share(i,j) * price_ratio(i,j)^(1-sigma) ]^(1/(1-sigma))quantity_ratio(i,j) = price_ratio(i,j)^(-sigma) * P(j)^sigmascenario_value(i,j) = baseline_value(i,j) * quantity_ratio(i,j) * price_ratio(i,j)CS_change = -0.5 * (baseline_imports + scenario_imports) * abs_price_changeimport_change_pct = epsilon * [ tariff_change / (100 * (1 + baseline_tariff)) ] * 100| Path | Method | Returns | Example |
|---|---|---|---|
| /api/tariffs/simulate | GET | The HS4 elasticity, tariff change, implied import change, latest global trade value, dollar impact, and the latest MFN baseline summary where available. | /api/tariffs/simulate?hs4=0101&tariff_change=10 |
| /api/policy-simulator/simulate | POST | The CES trade matrix and changes, prices, tariff revenue, producer and consumer surplus, net welfare, trade diversion, elasticity source, sigma-sensitivity band, optional phase-in results, and scenario metadata. | Not linkable |