Key facts

Merchandise imports of US$27.5 billion and exports of US$26.4 billion left Costa Rica with a deficit of US$1.1 billion in 2025, according to World Bank/WTO data. In 2024, UN Comtrade data put the United States first both as an export destination and as an import origin, accounting for 47.9% of exports and 36.5% of imports.

Costa Rica trade at a glance

Scroll sideways to see all columns.

The two columns cover different years and sources, so their totals are not directly comparable. To compare sources, use the same year: see the methodology
MeasureWTO via World Bank (2025)UN Comtrade (2024)
ExportsUS$26.4 billionUS$19.9 billion
ImportsUS$27.5 billionUS$23.7 billion
Total tradeUS$53.9 billionUS$43.6 billion
Trade balance−US$1.1 billion−US$3.8 billion
Import valuation basis—CIF

Costa Rica exports and imports, 2015–2025

  • Exports
  • Imports

nominal US$

Costa Rica merchandise exports and imports, 2015–2025 (nominal US$)Costa Rica exported US$26.4 billion and imported US$27.5 billion of goods in 2025, according to WTO data published by the World Bank.0US$10 billionUS$20 billionUS$30 billionUS$40 billion20152016201720182019202020212022202320242025ImportsExportsCosta Rica merchandise exports and imports, 2015–2025 (nominal US$)Costa Rica exported US$26.4 billion and imported US$27.5 billion of goods in 2025, according to WTO data published by the World Bank.0US$10 billionUS$20 billionUS$30 billionUS$40 billion201520172019202120232025

Merchandise imports rose 68.9% in nominal terms, from US$16.3 billion in 2015 to US$27.5 billion in 2025. Exports increased 180.5% across those years, from US$9.4 billion to US$26.4 billion. Both reached their series peaks in 2025. From 2024 to 2025, exports grew 21.9%, while imports grew 3.8%.

Costa Rica: merchandise exports and imports, 2015–2025 (nominal US$, WTO via World Bank)
YearExports (US$)Imports (US$)
2015US$9.4 billionUS$16.3 billion
2016US$10.4 billionUS$15.5 billion
2017US$10.8 billionUS$16.8 billion
2018US$11.5 billionUS$18.3 billion
2019US$11.9 billionUS$17.6 billion
2020US$12.3 billionUS$14.9 billion
2021US$15.5 billionUS$20.7 billion
2022US$16.6 billionUS$22.7 billion
2023US$19 billionUS$24 billion
2024US$21.7 billionUS$26.5 billion
2025US$26.4 billionUS$27.5 billion

Costa Rica's top trading partners (2024)

The United States was Costa Rica's top export destination in 2024, taking 47.9% of merchandise exports, compared with 8.6% for the Netherlands. Guatemala was the third destination by value. The United States also supplied the largest share of Costa Rica's merchandise imports, at 36.5%, ahead of China at 17.1% and Mexico at 6.4%.

Export destinations

Costa Rica top export destinations, 2024 (share of total)Largest: United States with 47.9%.United States47.9%Netherlands8.6%Guatemala5.2%Belgium5%Nicaragua3.7%Panama3.1%Honduras3%El Salvador2.5%China1.9%Mexico1.7%
Costa Rica: top export destinations, 2024 (US$, UN Comtrade) UN Comtrade query
RankPartnerExports 2024 (US$)Share of Costa Rica's 2024 exports (%)
1United StatesUS$9,527,331,70347.9%
2NetherlandsUS$1,714,447,3148.6%
3GuatemalaUS$1,027,311,3395.2%
4BelgiumUS$986,903,3805%
5NicaraguaUS$737,246,1623.7%
6PanamaUS$613,515,4863.1%
7HondurasUS$597,351,7143%
8El SalvadorUS$499,547,7532.5%
9ChinaUS$383,469,1641.9%
10MexicoUS$332,171,4171.7%

Import origins

Costa Rica top import origins, 2024 (share of total)Largest: United States with 36.5%.United States36.5%China17.1%Mexico6.4%Brazil2.9%Guatemala2.6%Japan2.6%Germany2.4%Colombia1.8%Spain1.8%Panama1.6%
Costa Rica: top import origins, 2024 (US$, UN Comtrade) UN Comtrade query
RankPartnerImports 2024 (US$)Share of Costa Rica's 2024 imports (%)
1United StatesUS$8,649,621,35436.5%
2ChinaUS$4,037,317,47617.1%
3MexicoUS$1,518,753,1336.4%
4BrazilUS$683,886,7822.9%
5GuatemalaUS$621,656,1272.6%
6JapanUS$607,415,2172.6%
7GermanyUS$565,773,9702.4%
8ColombiaUS$425,343,5051.8%
9SpainUS$418,031,2461.8%
10PanamaUS$379,604,9761.6%

Costa Rica trade with China and the United States (2024)

Costa Rica: trade with China and the United States, 2024 (US$, UN Comtrade)
PartnerExports to (US$)Share of exportsRank as destinationImports from (US$)Share of importsRank as origin
ChinaUS$383,469,1641.9%9US$4,037,317,47617.1%2
United StatesUS$9,527,331,70347.9%1US$8,649,621,35436.5%1

In 2024, Costa Rica sold US$9.5 billion in goods to the United States, accounting for 47.9% of its exports, and bought US$8.6 billion from it, or 36.5% of its imports. Exports to China totalled US$383.5 million (1.9% of exports), while imports from China totalled US$4 billion (17.1% of imports).

What Costa Rica exports and imports by HS chapter (2024)

In 2024, Optical and medical instruments accounted for 44% of Costa Rica's merchandise exports, ahead of Fruit and nuts at 14%. The top import chapters were closer in share: Mineral fuels and oils accounted for 10.4% of merchandise imports, compared with 9.8% for Electrical machinery and equipment and 9.2% for Vehicles and parts.

Exports by HS chapter

Costa Rica top export chapters (HS), 2024 (share of total)Largest: HS 90 Optical and medical instruments with 44%.HS 90 Optical and medical instruments44%HS 08 Fruit and nuts14%HS 21 Miscellaneous food preparations5.6%HS 85 Electrical machinery and equipment4.2%HS 39 Plastics2.7%HS 20 Fruit and vegetable preparations2.4%HS 30 Pharmaceutical products2.3%HS 09 Coffee, tea and spices1.8%HS 40 Rubber1.7%HS 15 Fats and oils1.5%
Costa Rica: top export chapters (HS), 2024 (US$, UN Comtrade) UN Comtrade query
RankHS chapterExports 2024 (US$)Share of 2024 exports (%)
1HS 90 — Optical, photographic, cinematographic, measuring, checking, medical or surgical instruments and apparatus; parts and accessoriesUS$8,747,615,41744%
2HS 08 — Fruit and nuts, edible; peel of citrus fruit or melonsUS$2,778,923,72514%
3HS 21 — Miscellaneous edible preparationsUS$1,119,864,3215.6%
4HS 85 — Electrical machinery and equipment and parts thereof; sound recorders and reproducers; television image and sound recorders and reproducers, parts and accessories of such articlesUS$839,124,0474.2%
5HS 39 — Plastics and articles thereofUS$543,966,2452.7%
6HS 20 — Preparations of vegetables, fruit, nuts or other parts of plantsUS$486,413,1172.4%
7HS 30 — Pharmaceutical productsUS$452,495,3512.3%
8HS 09 — Coffee, tea, mate and spicesUS$356,420,6221.8%
9HS 40 — Rubber and articles thereofUS$330,108,8921.7%
10HS 15 — Animal, vegetable or microbial fats and oils and their cleavage products; prepared edible fats; animal or vegetable waxesUS$289,310,8111.5%

Imports by HS chapter

Costa Rica top import chapters (HS), 2024 (share of total)Largest: HS 27 Mineral fuels and oils with 10.4%.HS 27 Mineral fuels and oils10.4%HS 85 Electrical machinery and equipment9.8%HS 87 Vehicles and parts9.2%HS 84 Machinery and mechanical appliances8.7%HS 39 Plastics7.3%HS 90 Optical and medical instruments5.5%HS 30 Pharmaceutical products4.7%HS 72 Iron and steel3.4%HS 48 Paper and paperboard3.2%HS 73 Iron or steel articles2.4%
Costa Rica: top import chapters (HS), 2024 (US$, UN Comtrade) UN Comtrade query
RankHS chapterImports 2024 (US$)Share of 2024 imports (%)
1HS 27 — Mineral fuels, mineral oils and products of their distillation; bituminous substances; mineral waxesUS$2,460,756,24210.4%
2HS 85 — Electrical machinery and equipment and parts thereof; sound recorders and reproducers; television image and sound recorders and reproducers, parts and accessories of such articlesUS$2,326,748,1009.8%
3HS 87 — Vehicles; other than railway or tramway rolling stock, and parts and accessories thereofUS$2,183,624,0379.2%
4HS 84 — Machinery and mechanical appliances, boilers, nuclear reactors; parts thereofUS$2,064,067,4998.7%
5HS 39 — Plastics and articles thereofUS$1,719,775,4407.3%
6HS 90 — Optical, photographic, cinematographic, measuring, checking, medical or surgical instruments and apparatus; parts and accessoriesUS$1,297,839,0875.5%
7HS 30 — Pharmaceutical productsUS$1,122,112,8944.7%
8HS 72 — Iron and steelUS$811,131,9103.4%
9HS 48 — Paper and paperboard; articles of paper pulp, of paper or paperboardUS$759,747,1283.2%
10HS 73 — Iron or steel articlesUS$556,638,0642.4%

What the data shows

The United States has a larger share of exports than of imports

The United States was Costa Rica's top partner in both directions in 2024, but it took a larger share of exports (47.9%) than it supplied of imports (36.5%). The difference was less pronounced for the top three partners taken together: they accounted for 61.7% of exports and 60% of imports.

Exports are more concentrated by product chapter than imports

The top three chapters accounted for 63.6% of Costa Rica's merchandise exports in 2024, compared with 29.4% for the top three import chapters. The share for Optical and medical instruments alone, at 44% of exports, was larger than the combined share of the top three import chapters. None of the top three export chapters was also among the top three import chapters.

Where to find shipment-level data for Costa Rica

The figures on this page are aggregate trade statistics: national totals by partner and by HS chapter. They do not identify companies, individual shipments or tariff-line detail. Shipment-level records, such as customs declarations and bills of lading, are released by some customs authorities and compiled by commercial data providers; access and coverage vary by country. Our guide explains where to look.

How to find customs import data

Costa Rica trade data: FAQ

Does Costa Rica have a merchandise trade surplus or deficit?
Costa Rica recorded a merchandise trade deficit of US$1.1 billion in 2025. In the World Bank/WTO series, merchandise imports totalled US$27.5 billion, while merchandise exports totalled US$26.4 billion.
What are Costa Rica's main merchandise exports?
Optical and medical instruments was Costa Rica's largest export chapter in 2024, accounting for 44% of merchandise exports reported to UN Comtrade. Fruit and nuts accounted for 14%, and Miscellaneous food preparations made up 5.6%.
What does Costa Rica import the most?
Mineral fuels and oils was Costa Rica's largest import chapter in 2024, at 10.4% of merchandise imports reported to UN Comtrade. Electrical machinery and equipment and Vehicles and parts each accounted for a smaller share, at 9.8% and 9.2%, respectively.
How much does Costa Rica import from China?
Costa Rica imported US$4 billion in merchandise from China in 2024, according to UN Comtrade. That represented 17.1% of Costa Rica's merchandise imports, placing China behind only the United States as an import origin.
How have Costa Rica's merchandise exports changed since 2015?
Costa Rica's merchandise exports rose 180.5% in nominal terms between 2015 and 2025. They started at US$9.4 billion and reached US$26.4 billion in 2025, the peak of the World Bank/WTO series shown here.

Sources and methodology

World Bank, World Development Indicators — Merchandise exports (current US$) (source: WTO)
Data period: 2015–2025 · Retrieved: November 19, 2026 · Dataset last updated: November 11, 2026 · View source query
World Bank, World Development Indicators — Merchandise imports (current US$) (source: WTO)
Data period: 2015–2025 · Retrieved: November 19, 2026 · Dataset last updated: November 11, 2026 · View source query
UN Comtrade — exports by partner, total goods (2024)
Data period: 2024 · Retrieved: November 19, 2026 · View source query
UN Comtrade — imports by partner, total goods (2024)
Data period: 2024 · Retrieved: November 19, 2026 · View source query
UN Comtrade — exports and imports by HS chapter (2024)
Data period: 2024 · Retrieved: November 19, 2026 · View source query

Figures are merchandise (goods) trade in nominal US dollars. Totals and the trend come from WTO data published by the World Bank; partner and HS chapter breakdowns come from the country's own reports to UN Comtrade. Services trade is not included.

Read the full methodology

Sources: UN Comtrade (United Nations policy on data use). World Bank, World Development Indicators (source: WTO), licensed CC BY 4.0. Compiled by yTrade.