New Zealand's annual trade surplus grew to $1.7 billion in the year to September, as the pandemic hit imports but export growth stayed solid.
It was the largest trade surplus the country has seen since the height of the dairy boom in 2014.
"For most of the past 20 years, New Zealand had a goods trade shortfall, importing much more than it exports," said StatsNZ senior insights analyst Nicholas Cox.
"New Zealand also exported more breathing equipment, which is in high demand worldwide because of Covid-19," Cox said.
Exports of respiration apparatus rose $348m in the September 2020 year.
The industry is dominated in New Zealand by NZX listed F&P Healthcare which has seen a surge in demand for its products this year.
"Import activity continues to be proportionately more impacted by the pandemic, and the global economic slowdown," said ASB economist Nathaniel Keall.
He emphasised the "caveat" that an improving trade balance isn't always the sign of a healthy economic outlook.
"The trade balance fell during the last global financial crisis as soggy domestic demand weighed on imports but key export sectors – like agriculture – proved relatively more resilient," he said.
"We continue to see broadly similar themes this year."
On a monthly basis September saw a slight fall in dairy export returns from a year earlier.
Milk powder, butter, and cheese exports fell $97m this month, led by falls in milk fats including butter (down $35m), and milk powder (down $31m).
"The falls in butter and milk powder were price-driven, as the export volumes for both commodities were higher in 2020, by 8 per cent and 4 per cent, respectively," Cox said.
However this is likely to be a short-term dip as export prices on the Global Dairy Trade auction have risen in the past six weeks.
The monthly trade balance in September 2020 was a deficit of $1b - lower than the average deficit in the previous five September months at $1.3b.