DataJockey
TradeChord · All countries

Step 1 of 25: Malaysia in world trade

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

I · The world

2002–2023

Malaysia in world trade

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

In 2023, Malaysia reported $312.6B of exports and $265.6B of imports.

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

I · The world

Routes

Its 12 largest routes carry 76% of its trade

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

Teal arcs carry Malaysia'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 24% is with smaller partners and the rest of the world, which are not drawn.

I · The world

Rank

#23 of 34 reporters by exports

The exports of all 34 reporters in this release replay from 2002 to 2023. Malaysia slipped from #17 to #23.

In 2023, Malaysia accounted for 1.6% of their combined exports.

2023 Scroll to move through the years, or

II · The country

Scale

Exports grew 3.4× since 2002

Exports went from $93.3B in 2002 to $312.6B in 2023; imports grew 3.1×, from $86.1B to $265.6B. Exports peaked in 2022 at $352.2B.

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

II · The country

Balance

A $47.0B trade surplus in 2023

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

II · The country

Openness

Goods trade equals 145% of GDP

Exports were 78% of GDP in 2023, against 93% in 2002; imports 66%. That is $9K of exports per person.

Among the 30 reporters, Malaysia ranks #4 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 46% of exports

Each tile is a product group, sized by its 2023 export value. The three largest, machinery & electronics, fuels and vegetable products, are shaded.

III · What it trades

How the mix changed

Machinery & electronics: 58% of exports in 2002, 46% 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 diversified than in 2002: the three largest groups made up 74% then and 69% now.

III · What it trades

What it buys

Machinery & electronics lead imports at 37%

The same group tops both sides of the ledger: Malaysia 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 Malaysia sells more of than it buys; orange bars to the left, the reverse.

Largest net export: machinery & electronics (+$44.9B); largest net import: transport equipment (−$8.40B).

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.

Miscellaneous manufactures turned to surplus and textiles & clothing turned to deficit over the period.

IV · Who with

Who it trades with

China is the largest named partner

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

IV · Who with

The network

Malaysia at the centre of its trade

The teal arc is Malaysia's exports; each orange arc is what Malaysia imports from that partner. Grey ribbons join the two: their width at Malaysia'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 largest of them was the United States in 2002 and China by 2023.

2023 Scroll to move through the years, or

IV · Who with

What shifted

China gained the most export share

Share of Malaysia's exports going to each partner, 2002 against 2023. China rose from 5.6% to 13.5%; the United States fell from 19.8% to 11.3%.

IV · Who with

Surplus and deficit by partner

A surplus with 5 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 Singapore (+$16.6B); Japan and South Korea switched sides over the period.

V · Closest ties

Biggest relationship

Malaysia and China

The largest relationship with both flows reported. In 2023, exports to China were $42.1B and imports $56.7B.

V · Closest ties

Two ledgers

Malaysia and China keep different books

In 2023, Malaysia reported $42.1B of exports to China; China reported $102.9B of imports from Malaysia, 144% more. Across 22 years, China's figure averaged 104% above Malaysia's.

Solid lines are what Malaysia 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

Partners account for 22% of the exports Malaysia leaves unattributed

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

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

In all, these partners record $323.7B of purchases from Malaysia, against $234.4B that Malaysia assigns to them; much of the difference likely sits in the $53.5B 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

China · 2023

What moves between them

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

VI · Finest grain

Flows · 2023

From product to partner

Exports pour out of Malaysia 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 Singapore: $26.9B.

VI · Finest grain

Flows · 2023

And back again

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

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

VI · Finest grain

The single largest flow

Machinery & electronics from China

$28.3B in 2023, 10.7% of all Malaysia's imports.

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 China grew the most, from $11.2B of two-way trade to $98.9B.

2023 Scroll to move through the years, or

VII · Snapshot

2023 · on one page

Malaysia in 2023

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

Download it as an image to share.