Hungary posted a trade surplus in December of 502 million euros, the Central Statistical Office (KSH) said in a first reading of data on Friday.
The surplus was up 12 million euros from the same month a year earlier.
KSH noted that calendar effects could have influenced data, as there were two more working days in December 2017 than in the base period a year before.
Exports rose by an annual 2.5 percent to 7.461 billion euros, while imports were also up 2.5 percent at 6.959 billion.
Fully 77 percent of exports and 76 percent of imports were traded with other European Union member states.
The trade surplus reached 8.238 billion euros in the full year of 2017, down 1.487 billion euros from 2016. Exports were up 8.4 percent at 100.774 billion euros and imports rose by 11.1 percent to 92.536 billion.