DataJockey
TradeChord · All countries

Step 1 of 25: Mexico in world trade

Source: World Bank WITS · release 2026-11 · reported goods trade, current US$

I · The world

2002–2023

Mexico in world trade

A walkthrough of Mexico's reported goods trade, from its place among the world's traders down to a single partner and product.

In 2023, Mexico reported $593.7B of exports and $597.8B of imports.

Scroll, or use ↓ and ↑, to move through the story.

I · The world

Routes

Its 12 largest routes carry 87% of its trade

The map unfolds into a compass: each partner keeps its true direction from Mexico, but distances are compressed so close neighbours no longer pile up. Circles are sized by trade.

Teal arcs carry Mexico's exports out; orange arcs bring imports in. Each arc's width, and the dots flowing along it, scale with its 2023 value.

The other 13% is with smaller partners and the rest of the world, which are not drawn.

I · The world

Rank

#9 of 34 reporters by exports

The exports of all 34 reporters in this release replay from 2002 to 2023. Mexico climbed from #13 to #9.

In 2023, Mexico accounted for 3.1% of their combined exports.

2023 Scroll to move through the years, or

II · The country

Scale

Exports grew 3.7× since 2002

Exports went from $160.8B in 2002 to $593.7B in 2023; imports grew 3.5×, from $168.7B to $597.8B.

The sharpest fall in exports came in 2009 (−21%); the strongest rise in 2010 (+30%).

II · The country

Balance

A $4.06B trade deficit in 2023

Exports minus imports, year by year. Mexico ran a surplus in 2 of the 22 years shown; bars above the line are surpluses, below it deficits.

II · The country

Openness

Goods trade equals 66% of GDP

Exports were 33% of GDP in 2023, against 20% in 2002; imports 33%. That is $5K of exports per person.

Among the 30 reporters, Mexico ranks #14 by goods trade relative to GDP. Hubs that re-export can exceed 100%, because trade is counted gross while GDP counts value added.

GDP and population: World Bank, World Development Indicators (CC BY 4.0).

III · What it trades

What it sells

Machinery & electronics is 33% of exports

Each tile is a product group, sized by its 2023 export value. The three largest, machinery & electronics, transport equipment and miscellaneous manufactures, are shaded.

III · What it trades

How the mix changed

Machinery & electronics: 41% of exports in 2002, 33% in 2023

Each column is one year of exports, split by product group. The tiles fold into 2023 and history unrolls to the left.

Exports are more concentrated than in 2002: the three largest groups made up 68% then and 71% now.

III · What it trades

What it buys

Machinery & electronics lead imports at 36%

The same group tops both sides of the ledger: Mexico buys and sells machinery & electronics at scale.

III · What it trades

Net position

A net exporter in 6 of 16 product groups

Exports minus imports for each group in 2023. Teal bars to the right are groups Mexico sells more of than it buys; orange bars to the left, the reverse.

Largest net export: transport equipment (+$102.4B); largest net import: base metals (−$32.1B).

III · What it trades

Net position over time

A net exporter of 6 groups in 2023, 6 in 2002

Each panel is one product group: the teal line is exports, the orange line imports, and the fill shows which was larger each year.

Fuels turned to deficit, vegetable products turned to surplus and textiles & clothing turned to deficit over the period.

IV · Who with

Who it trades with

The United States is the largest named partner

The ten largest partners by combined trade in 2023. The top five take 87% of Mexico's exports.

IV · Who with

The network

Mexico at the centre of its trade

The teal arc is Mexico's exports; each orange arc is what Mexico imports from that partner. Grey ribbons join the two: their width at Mexico's end is exports, at the partner's end imports.

IV · Who with

The network over time

The network, rebuilt year by year

The same partners, replayed from 2002 to 2023: arcs swell and shrink with each year's trade.

The United States is the largest of them at both ends of the series.

2023 Scroll to move through the years, or

IV · Who with

What shifted

China gained the most export share

Share of Mexico's exports going to each partner, 2002 against 2023. China rose from 0.4% to 1.6%; the United States fell from 85.6% to 80.0%.

IV · Who with

Surplus and deficit by partner

A surplus with 2 of 8 major partners

One panel per partner, 2002–2023: exports in teal, imports in orange, and the fill shows which was larger.

The widest gap in 2023 is with the United States (+$218.7B); Canada switched sides over the period.

V · Closest ties

Biggest relationship

Mexico and the United States

The largest relationship with both flows reported. In 2023, exports to the United States were $474.7B and imports $255.9B.

V · Closest ties

Two ledgers

Mexico and the United States keep different books

In 2023, Mexico reported $474.7B of exports to the United States; the United States reported $480.1B of imports from Mexico, 1% more. Across 22 years, the United States' figure averaged 4% below Mexico's.

Solid lines are what Mexico reports; dashed lines are the partner’s record of the same goods. The two rarely match: imports are usually valued including freight and insurance, and timing, re-exports and partner attribution differ.

V · Closest ties

What partners report · 2023

Mexico's export records against its partners' books

For each partner that reports its own trade, the dark bar is what Mexico says it exported there and the light bar what the partner says it bought.

Ireland is not named in Mexico's own data, yet together these partners record $2.00B of purchases from it, against $50.9B of exports Mexico assigns to no named partner.

In all, these partners record $540.5B of purchases from Mexico, against $506.4B that Mexico assigns to them; much of the difference likely sits in the $50.9B it reports without a named destination.

Imports are usually valued including freight and insurance, so partner figures run somewhat higher even when the trade is the same.

V · Closest ties

United States · 2023

What moves between them

Exports to the right, imports to the left. In 2023, machinery & electronics led both directions: $174.1B of exports and $59.6B of imports.

VI · Finest grain

Flows · 2023

From product to partner

Exports pour out of Mexico on the left, split into product groups in the middle, and reach partners on the right. Grey streams are the smaller groups and partners combined.

The widest single stream, highlighted, is machinery & electronics to the United States: $174.1B.

VI · Finest grain

Flows · 2023

And back again

The same streams for imports, read from partner to Mexico.

The widest is machinery & electronics from China: $61.6B.

VI · Finest grain

The single largest flow

Machinery & electronics to the United States

$174.1B in 2023, 29.3% of all Mexico's exports.

This is the finest grain in the release: one partner, one product group, one year.

VI · Finest grain

Routes over time

2002–2023: the routes redrawn

Back to the map, replayed year by year: routes thicken, thin and change direction as trade shifts.

The route to the United States grew the most, from $243.3B of two-way trade to $730.6B.

2023 Scroll to move through the years, or

VII · Snapshot

2023 · on one page

Mexico in 2023

Mexico's trade at a glance: the headline numbers, its routes, and its largest products and partners.

Download it as an image to share.