ECON 330 · International Trade

The Gravity Model

A simple rule says trade rises with the size of two economies and falls with the distance between them.

Key takeaways

  • The gravity model says trade between two countries rises with the size of their economies and falls with the distance between them.
  • A simple version is: trade = A × (GDP of country 1 × GDP of country 2) ÷ distance.
  • Doubling one economy's size roughly doubles trade, while doubling the distance roughly halves it.
  • Distance stands in for many costs: shipping, time, information, language and culture.
  • Economists use the model to estimate how much a border, a shared language or a trade agreement changes trade.

Here is a guess you can make without reading a single trade statistic. Which country buys more from Canada: Mexico or Japan? Which sells more to Germany: France or Australia? Most people guess the nearer, bigger partner, and most people are right.

Economists noticed long ago that this guess works astonishingly well. The pattern is so regular that they borrowed a name from physics for it. This lesson introduces the gravity model, the workhorse tool for predicting how much two countries will trade, and shows how economists use it to ask practical questions about trade agreements, borders and distance.

Why "gravity"?

In physics, Isaac Newton said that two objects attract each other more strongly when they are heavier and weaker when they are farther apart. The pull is proportional to the product of the two masses, divided by the square of the distance.

Trade works in a similar way. A big economy is like a heavy planet: it makes and buys a lot, so it has plenty to sell and plenty of money to spend. Two heavy economies attract a lot of trade. Distance weakens the pull, because every kilometer adds cost and trouble.

The Dutch economist Jan Tinbergen first used a gravity-style equation for trade in 1962, and it has been among the most successful empirical tools in economics ever since. It is one of the few relationships that economists treat as nearly a rule of thumb.

The basic equation

Here is the simplest version.

Trade between i and j = A × (Y_i × Y_j) ÷ D_ij
  • Y_i and Y_j are the GDPs of the two countries, their sizes.
  • D_ij is the distance between them.
  • A is a constant that captures everything else and scales the result to match the data.
The gravity equation in words
Trade = A Y₁ × Y₂ ÷ D Trade = Value of goods flowing between two countries Imports plus exports between the pair, per year. A = A scaling constant Absorbs everything else, such as common language or trade rules. Y₁ × Y₂ = Product of the two GDPs Bigger economies make and buy more. ÷ D = Distance between them Farther apart means costlier and less trade. Trade = A Y₁ × Y₂ ÷ D Trade = Value of goods flowing between two countries Imports plus exports between the pair, per year. A = A scaling constant Absorbs everything else, such as common language or trade rules. Y₁ × Y₂ = Product of the two GDPs Bigger economies make and buy more. ÷ D = Distance between them Farther apart means costlier and less trade.

Size pulls trade up, distance pushes it down.

Economists often take logarithms so the product becomes a sum. That makes the equation easy to estimate with data and lets each factor's effect be read as a percentage change. We will keep the plain form here.

A worked example

Suppose A = 0.02, GDPs are in trillions of dollars, distance is in thousands of kilometers, and the result is in trillions of dollars of trade per year. Take three pairs of countries.

Pair 1. Country X has GDP 2 and country Y has GDP 3. They are 1 thousand km apart.

Trade = 0.02 × (2 × 3) ÷ 1 = 0.02 × 6 = 0.12 trillion = 120 billion

Pair 2. Same two countries, but now 4 thousand km apart.

Trade = 0.02 × 6 ÷ 4 = 0.03 trillion = 30 billion

Four times the distance gives one quarter the trade. That matches what research finds: in real data, a 1% increase in distance typically goes with about a 1% fall in trade, roughly, though estimates vary by study and period.

Pair 3. X (GDP 2) and a bigger partner Z with GDP 6, still 1 thousand km apart.

Trade = 0.02 × (2 × 6) ÷ 1 = 0.02 × 12 = 0.24 trillion = 240 billion

Compared with Pair 1, the partner's GDP doubled (3 to 6) and predicted trade doubled (120 to 240 billion). Each step follows the rule: scale up size and trade scales up with it; scale up distance and trade scales down.

Try one more experiment. What if both countries double in size, with distance unchanged? Then the product of GDPs rises fourfold (2 × 3 = 6 becomes 4 × 6 = 24), so predicted trade rises fourfold, from 120 to 480 billion. In this simple form, trade grows faster than the economies themselves, which is a quirk of the equation and a reason not to push it too literally.

Trade falls with distance (GDPs 2 and 3, A = 0.02)
Trade (billions $) Predicted trade 1,000 km 4,000 km Distance (thousand km) Trade (billions $) Predicted trade 1,000 km 4,000 km Distance (thousand km)

What distance really means

Why should kilometers matter at all, in a world of container ships and video calls? Distance is a stand-in for a bundle of costs.

  • Transport. Fuel, crews, insurance and time all rise with distance. Spoilable goods such as fresh flowers are especially sensitive.
  • Time. Goods in transit tie up money and can go out of fashion. A firm waiting six weeks for a shipment pays for the wait.
  • Information. It is easier to know customers and suppliers who are close. Trust builds faster across a short distance.
  • Culture and language. Distant countries often differ in language, law and custom, so deals are harder to make.

Remarkably, researchers have found that the effect of distance on trade has not fallen much over decades, even as shipping costs and phone costs dropped. Economists call this the "distance puzzle," and explanations include shifts in what is traded (more services and parts) and that the costs of time and information matter more than freight rates.

What pushes trade up or down in a gravity model
Trade between two countries Actual flows are compared with the gravity prediction. Common history Past ties, such as colonial links, raise trade. Border A border, even a friendly one, lowers trade. Trade agreement Lower tariffs raise trade. Size Larger GDPs raise trade. Distance Farther apart lowers trade. Shared language Makes deals easier and raises trade. Trade between two countries Actual flows are compared with the gravity prediction. Size Larger GDPs raise trade. Distance Farther apart lowers trade. Shared language Makes deals easier and raises trade. Trade agreement Lower tariffs raise trade. Border A border, even a friendly one, lowers trade. Common history Past ties, such as colonial links, raise trade.

Adding other costs: the "extras"

The basic equation includes just size and distance. Economists extend it with other things that make trade easier or harder, such as a shared language, a shared border, a common currency, and membership in the same trade agreement. Each extra shifts the constant A for that pair of countries.

Here is a simple use. Suppose the gravity equation predicts that a pair of countries should trade 120 billion, given their sizes and distance. In fact they trade 150 billion. Compare them:

Actual ÷ predicted = 150 ÷ 120 = 1.25

They trade 25% more than size and distance alone suggest. If the pair signed a trade agreement, that 25% might be (part of) the effect of the agreement. Economists run this comparison across hundreds of pairs of countries to estimate the average effect.

A famous version of this exercise is the "border effect." In 1995, John McCallum compared trade between Canadian provinces with trade between Canadian provinces and nearby United States states. After accounting for size and distance, he found that provinces traded with each other many times more than with American states, even though the two countries had a free trade agreement. Later work shrank the estimate but confirmed that national borders matter far more than distance alone would predict.

Why the model is so useful

Gravity gives policy makers and economists a benchmark. It shows what to expect, so that surprises stand out.

  1. Forecasting. If a country grows faster than its neighbors, gravity predicts that its trade with them will grow.
  2. Evaluating agreements. Compare actual trade after an agreement with what the model predicted without it, as in the example above.
  3. Spotting barriers. If trade between two nearby, large countries is far below the prediction, something is blocking it: a tariff, a regulation or a conflict.
  4. Explaining the pattern in similar goods. Rich countries are large and clustered, so they trade a great deal among themselves, as in the lesson on economies of scale.

Notice that gravity does not need a theory of comparative advantage to work. It fits the data with a few simple variables, which is why it is used even by researchers who disagree about deeper theory. Later, economists showed that gravity can be derived from several different theories, including the Ricardian and monopolistic-competition models, so it is a kind of common ground.

A common mistake: reading gravity as a law that must hold

A few cautions help.

  • Size is not the only thing that matters. A country can be big but closed, with high tariffs. Gravity then overpredicts its trade. The gap between prediction and reality is the interesting part.
  • Distance is not just kilometers. A short hop across a tense border may carry more cost than a long ocean crossing between friendly partners.
  • Correlation is not proof of cause. A trade agreement may be signed between countries already planning to trade more, so some of the "agreement effect" may have been coming anyway. Careful studies try to adjust for this.
  • A big country trades less per GDP dollar. Large economies have more of their own customers at home, which is why openness, as we saw in world trade at a glance, is lower for the United States than for many small countries.

Where the model shows up next

Gravity helps explain why firms choose to export or invest abroad, studied in the lesson on firms in world trade. And it is the backdrop to later lessons on tariffs, quotas and agreements, since each of those changes the "extras" in the equation.

Words to know

Gravity model an equation saying trade between two countries rises with their sizes and falls with the distance between them.

GDP gross domestic product, the value of everything a country produces in a year.

Trade costs all the costs of moving goods between countries, from shipping to paperwork to tariffs.

Border effect the finding that trade within a country is much larger than trade across a border of the same distance.

Logarithm a mathematical tool that turns multiplication into addition, often used to estimate gravity equations.

Benchmark a standard of comparison, here the trade level the model predicts.

Check yourself

  1. In your own words, what two things does the basic gravity model say matter most for trade between two countries?
  2. Using A = 0.02, GDPs of 4 and 5 (trillions) and distance 2 (thousand km), find predicted trade in billions.
  3. What happens to predicted trade if the distance in question 2 doubles?
  4. A pair of countries trades 90 billion while the model predicts 60 billion. By what percent does actual trade exceed the prediction?
  5. Why might a short distance across a border still carry high trade costs?
  6. Name one use of the gravity model in judging a trade agreement.
Show the answers
  1. The sizes of the two economies (larger means more trade) and the distance between them (farther means less trade).
  2. 0.02 × (4 × 5) ÷ 2 = 0.02 × 20 ÷ 2 = 0.2 trillion = 200 billion.
  3. Trade is halved: 0.02 × 20 ÷ 4 = 0.1 trillion = 100 billion.
  4. 90 ÷ 60 = 1.5, so actual trade is 50% above the prediction.
  5. Distance also stands for language, law, trust and tariffs, and a border can add all of these even over a short span.
  6. Compare actual trade after the agreement with what the model predicted for the pair, and treat the excess as part of the agreement's effect.

A free self-study program written for 4Economics with AI writing tools and not reviewed line by line by a person. It is not an accredited degree and awards no credit. Check anything you rely on against a textbook or primary source. Report an error.

In this unit: Why countries trade

  1. World Trade at a GlanceHow to measure trade, what countries buy and sell, and why trade has grown so much over the past century.11 min
  2. The Ricardian ModelA two-country, one-input model that shows why even a country that is worse at everything gains from trade.11 min
  3. Specific Factors: Winners and Losers From TradeWhy a country can gain from trade overall while some owners and workers lose, shown with a model of stuck machines.10 min
  4. The Heckscher-Ohlin ModelHow differences in labor, capital and land across countries decide which goods each country sells abroad.11 min
  5. Factor Prices, Wages and TradeHow trade shifts the pay of workers and owners of capital, and why economists argue over wage gaps.10 min
  6. Economies of Scale and Trade in Similar GoodsWhy rich countries swap similar goods, such as cars for cars, and how bigger markets mean lower prices and more choice.10 min
  7. Firms in World Trade: Exporters and MultinationalsWhich firms export, which build plants abroad, and how falling trade costs reshuffle who survives.10 min
  8. The Gravity ModelA simple rule says trade rises with the size of two economies and falls with the distance between them.10 min
  9. Offshoring and Global Supply ChainsHow production is split across countries, why gross trade numbers mislead, and what supply chains risk and gain.10 min

In the news