NEW YORK (Reuters) - Stocks ended lower on Wall Street on Wednesday, closing out the first negative month for the S&P 500 since February, as energy shares tracked oil prices lower.

The Dow Jones industrial average <.DJI> fell 53.42 points, or 0.29 percent, to 18,400.88, the S&P 500 <.SPX> lost 5.2 points, or 0.24 percent, to 2,170.92 and the Nasdaq Composite <.IXIC> dropped 9.77 points, or 0.19 percent, to 5,213.22.

(Reporting by Chuck Mikolajczak; Editing by Nick Zieminski)