Shipping containers are offloaded from a cargo ship at Port Everglades in Fort Lauderdale, Florida.

The U.S.trade deficit rose more than expected in August as a rise in imports offset higher exports.

The Commerce Department said on Wednesday the trade gap widened 3 percent to $40.73 billion.