How to Calculate Gains From Trade: Imports, Exports, and Tariffs

To calculate gains from trade, measure total economic surplus in the closed economy, measure it again once the market opens at the world price, and take the difference. Surplus is the sum of consumer surplus (the area under the demand curve and above the price) and producer surplus (the area above the supply curve and below the price). Each piece is a triangle, so the arithmetic is ½ × base × height. The work is in getting the right prices and quantities into those triangles.

The Two Triangles You’re Measuring

Consumer surplus is the gap between what buyers would have been willing to pay and what they actually pay. Producer surplus is the gap between the market price and the lowest price sellers would have accepted. On a supply-and-demand diagram, these sit as triangular areas above and below the equilibrium price.

Before trade, the relevant price is the domestic equilibrium — the autarky price — where domestic supply meets domestic demand. The consumer surplus triangle runs from the demand curve down to that price. The producer surplus triangle runs from that price down to the supply curve. Their sum is total social surplus under autarky.

Once the market opens, the price shifts to the world price. The triangles reshape around that new price line. Post-trade consumer surplus runs from the demand curve down to the world price. Post-trade producer surplus runs from the world price down to the supply curve. Add the two post-trade triangles, subtract the pre-trade total, and the remainder is the gain from trade.

A Worked Import Example

Put numbers on it. Suppose the domestic market for steel has a demand curve running from a maximum willingness to pay of $12 per unit down to zero, and a supply curve starting at $4 per unit and sloping upward. In autarky, the market clears at a price of $8 and a quantity of 100 units.

Pre-trade surpluses:

  • Consumer surplus: ½ × 100 × ($12 − $8) = $200
  • Producer surplus: ½ × 100 × ($8 − $4) = $200
  • Total social surplus: $400

Now suppose the world price is $6, below the domestic equilibrium. At $6, domestic consumers want 150 units and domestic producers supply only 50. The country imports the 100-unit difference. The new triangles:

  • Consumer surplus: ½ × 150 × ($12 − $6) = $450
  • Producer surplus: ½ × 50 × ($6 − $4) = $50
  • Total social surplus: $500

The gain from trade is $500 − $400 = $100. Consumers picked up $250 in surplus while producers lost $150. The net is positive. That is the core result: at a national level, the winners gain more than the losers lose.

What Changes if You Export Instead

The direction of the gains depends on how the world price compares to the autarky price. In the import case above, the world price was lower, so the domestic price fell and consumers captured the net gain.

When the world price sits above the autarky price, the country becomes an exporter. The domestic price rises to meet the world price. Producers gain because they sell at a premium abroad; consumers lose because they pay more at home. The net gain is still positive, but it accrues to producers rather than consumers. The mechanics of the calculation are identical. You draw the same two triangles before and after, at the same price lines, and subtract. Only the distribution flips.

Adding a Tariff

A tariff drives a wedge between the world price and the price domestic buyers actually face, and that wedge shrinks the gains from trade.

Return to the steel example. If the government imposes a $1 tariff on imported steel, the effective domestic price climbs from $6 to $7. At $7, demand falls to 125 units and supply rises to 75, so imports drop to 50 units. Recalculate:

  • Consumer surplus: ½ × 125 × ($12 − $7) = $312.50
  • Producer surplus: ½ × 75 × ($7 − $4) = $112.50
  • Government tariff revenue: $1 × 50 imports = $50
  • Total welfare: $475

Without the tariff, total surplus was $500. With it, $475. The missing $25 is deadweight loss, and it appears as two small triangles on the diagram. One is the production distortion of ½ × 25 × $1 = $12.50, where domestic firms produce units at a cost above the world price. The other is the consumption distortion of ½ × 25 × $1 = $12.50, where buyers who would have purchased at $6 are priced out at $7. That $25 is value that simply disappears; nobody captures it.

Real tariffs follow the same arithmetic with messier inputs. Under Section 232 of the Trade Expansion Act, the President can impose tariffs on imports that threaten national security.1Office of the Law Revision Counsel. 19 USC 1862 – Safeguarding National Security Steel and aluminum duties imposed under that authority have run from 25 percent to 50 percent depending on the product and country of origin.2Bureau of Industry and Security. Section 232 Steel and Aluminum When these duties apply, add them to the world price before you redraw the triangles.

How the Gains Split Between Partners

The arithmetic above gives you the gain for one country, but both sides of a trade benefit. How the surplus divides depends on the terms of trade, the ratio of a country’s export prices to its import prices, usually expressed as an index: (export price index ÷ import price index) × 100.

A value above 100 means a country’s exports are becoming more valuable relative to its imports, pulling a larger share of the gains its way. A value below 100 means the opposite. Any exchange ratio that sits between the two countries’ opportunity costs leaves both better off; the closer the ratio is to your own opportunity cost, the less of the joint surplus you capture.

Getting Real Prices and Quantities

Textbook curves are tidy. Live calculations need actual numbers.

The International Trade Commission runs DataWeb, the public system for official U.S. import and export statistics.3U.S. International Trade Commission. U.S. Trade and Tariff Data It is the standard source for traded quantities, applied tariff rates, and prices by product category. The U.S. Census Bureau publishes complementary trade volume and value data.

Currency conversion matters too. When goods are invoiced in a foreign currency, the applicable exchange rate is set by the date the merchandise leaves the country of export, not the date it arrives or the date payment clears. Using the wrong date will skew the landed price and every surplus figure that depends on it.

Free Trade Agreement Adjustments

Goods that qualify under a free trade agreement may enter at a reduced or zero rate, which changes the effective world price. Qualifying requires meeting rules-of-origin thresholds. Under the USMCA, for example, passenger vehicles must meet a 75 percent regional value content requirement to receive preferential treatment.4International Trade Administration. USMCA Auto Report That content is calculated using the net cost method, which includes production costs and excludes marketing, royalties, and shipping.5Office of the United States Trade Representative. USMCA Chapter 4 – Rules of Origin If a shipment misses the threshold, the full tariff applies, and your calculation should use the tariff-inclusive price rather than the duty-free world price.

If You’re Running These Numbers on Real Transactions

The surplus math is an analytical exercise. Applying it to actual imports or exports brings in a compliance layer the formulas don’t show. Federal law requires importers and exporters to keep records tied to their customs transactions for at least five years from the date of entry, reconciliation filing, or exportation.6Office of the Law Revision Counsel. 19 USC 1508 – Recordkeeping USMCA certifications of origin carry the same five-year clock, measured from the date the certification is completed. Entering goods with inaccurate price, classification, or quantity information exposes the filer to penalties scaled by intent, up to the full domestic value of the merchandise for fraud.7Office of the Law Revision Counsel. 19 USC 1592 – Penalties for Fraud, Gross Negligence, and Negligence Catching errors in your inputs early is cheaper than correcting them after CBP opens a formal review.