June 02, 2014, 03:30:00 PM EDT

SAO PAULO–Brazil posted a $712 million trade surplus in May, wider than $506 million in April, the government said Monday.

May’s surplus is the result of $20.8 billion in exports and $20.04 billion in imports, in 21 working days, the trade ministry said.

In the first five months of 2014, Brazil ran a $4.9 billion trade deficit, narrower than a $5.4 billion deficit in the same period a year earlier, the ministry said.

The accumulated result over the last 12 months is a surplus of $3.1 billion, narrower than a surplus of $7.8 billion in the June 2012-May 2013 period, the ministry said.