The U.S. trade deficit narrowed for a second straight month in February as imports and exports declined ahead of the hit to global commerce from the expanding pandemic.

The overall U.S. deficit in goods and services declined to US$39.9 billion from a revised US$45.5 billion in January, according to Commerce Department data released Thursday. The median estimate of economists surveyed by Bloomberg had called for a US$40 billion shortfall.