The US foreign trade deficit narrowed to $US40.6 billion ($A44.5 billion) in October on a strong rise in exports, the Commerce Department says.
The trade gap fell for the first time in four months, by 5.4 per cent from September's upwardly revised number of $US43.0 billion.
Exports rose 1.8 per cent from September to a record $US192.7 billion in October.
Imports were up a modest 0.4 per cent at $US233.3 billion, their highest level since March 2012.
Imports of crude oil, which account for 10 per cent of US imports, rose 0.8 per cent to $US23.9 billion in October.
The October reading was a hair higher than analyst expectations.
"The trade data suggest that external demand for US goods is improving, suggesting a somewhat stronger global economy, and still resilient US domestic demand," said Tu Packard of Moody's Analytics.
A sharp rise in imports from Europe pushed the US trade deficit with the European Union to $US14.3 billion from $US8.0 billion in September.
The trade shortfall with China shrank to $US28.9 billion in October from $US30.5 billion the prior month, lowering the odds that it will top the 2012 record gap of $US315.1 billion. In the first 10 months of the year, the gap with China was $US267.0 billion.
China has the largest two-way trade surplus with the US, drawing criticism that Beijing keeps its yuan currency undervalued to boost exports.
The trade gap also narrowed with Canada and Mexico.
"Sales of goods to China, Mexico, and Canada all set records this past month as global demand for food, energy, industrial supplies, and consumer goods shows strength," said Jay Morelock of FTN Financial.
Year-over-year, the US trade deficit fell 4.9 per cent in October.
