The strong December surplus helped reduce the trade deficit for the December quarter to $87 million.
Exports fell 5.1 per cent in the December month compared to December 2011, reflecting a 5.3 per cent fall in the value of exports of milk powder, butter and cheese, a 17 per cent fall in exports of logs and wood and wood products and a 97 per cent fall in exports of prefabricated buildings.
The picture was lumpier on the import side where an 89 per cent fall in the value of imports of large aircraft and helicopters from France helped reduce imports in December by 10 per cent.
The value of imports of petroleum and products fell by 31 per cent but the value of vehicle imports rose by $49 million.
New Zealand had a trade deficit of $1.2 billion in the December year, equal to 2.6 per cent of exports.
"This compares with an average deficit of 4.9 per cent over the previous five December years, although there were surpluses in the December 2010 and 2011 years," Statistics New Zealand said.
In the year ended December exports fell $1.7 billion, or 3.5 per cent, from a year earlier and imports rose $399 million, 0.7 per cent.