The Dow Jones industrial average climbed as much as 129 points in early trading before settling at 12,805.39, up 89.46 points.
Other US indexes also erased much of the previous day's losses.
The Standard&Poor's 500 rose 10.12 points to 1,368.71 after losing 24 points the day before.
The Nasdaq composite climbed 25.24 points to 3,016.46 following a 56-point loss Tuesday.