NEW YORK — The U.S. stock market had another solid year.

The Standard & Poor's 500 rose 11.4 percent for 2014. The Dow Jones industrial average gained 7 percent and the Nasdaq composite rose 13 percent.

On Wednesday the market started higher but gave up those gains by the afternoon. Utilities fell the most.

The S&P 500 was down 21 points on the day, or 1 percent, ending the year at 2,058.

The Dow lost 160 points, or 0.9 percent, to 17,823. The Nasdaq fell 41 points, or 0.9 percent, to 4,736.

Energy stocks fell the most in 2014 as the price of oil collapsed. Oil fell 45 percent this year, its biggest yearly loss since 2008.

Bond prices rose. The yield on the 10-year Treasury note edged down to 2.18 percent.