"Given what's been driving import prices, which is the oil component, you're likely to see a slight moderation or even greater moderation going forward," said Jacob Oubina, a senior U.S. economist at RBC Capital Markets LLC in New York.
"Import prices were certainly a problem for businesses in the last three months, but we've seen those pressures ease."
The Standard & Poor's 500 rose by 0.74%, or 10.12 points, to 1,368.71. The Dow Jones Industrial Average gained 0.70%, or 89.46 points, to 12,805.39. The Nasdaq Composite Index increased by 0.84%, or 25.24 points, to 3,016.46.