Shares of Dow Chemical and DuPont both jumped more than 10 percent after news the two chemical giants are expected to announce a merger by Thursday. The deal was first reported by The Wall Street Journal late Tuesday and will likely be followed by a separation into businesses focusing on agricultural, materials services, and specialty products operations.
"They're (mostly likely) going to be doing a spinoff and that could be a catalyst for the stock because historically our studies show the acquirer hasn't done that well," said Jonathan Morgan, deals analyst at The Edge Consulting Group.
Read MoreDesperate Dow-DuPont megamerger bad for stocks
"The big story of the day is Dow, DuPont and Yahoo not going through spinoff. That's not going to move the market (much). The overarching effect of this long slide in commodity prices is Kinder Morgan," said Art Hogan, chief market strategist at Wunderlich Securities.
Pipeline operator Kinder Morgan late Tuesday cut its quarterly dividend 75 percent to 12.5 cents a share.
Energy and materials pared gains but continued to lead S&P advancers after briefly gaining 3 percent and 4 percent each, respectively.
The gains in energy stocks were likely due to short covering, said Mike Arone, chief investment strategist for the intermediary business, State Street Global Advisors. "I don't anticipate that's net long oil positions."
Read MoreOil could stay in driver's seat Wednesday
Howard Silverblatt, senior index analyst at S&P Dow Jones Indices, noted that between the close of Dec. 1 and Dec. 8, the energy sector lost about 10.4 percent and the S&P 500 fell nearly 1.9 percent. Ex-energy, the S&P 500 is down about 1.2 percent during that time, he said.
The major U.S. averages have closed lower every day for the week so far, on track for a loss of about 2 percent or more for the week.
No major economic news is due until retail sales and the producer price index Friday. Key for markets is the Federal Reserve's meeting next week when the central bank could raise short-term interest rates for the first time in nearly a decade.
"The SPX continues to back-and-fill near its 200-day moving average, getting 'wound up' in a triangle pattern ahead of next week's Fed meeting. This means we should expect volatility to increase in the days ahead with a strong directional bias, unlike the fickle price action of late," BTIG Chief Technical Strategist Katie Stockton said in a note. She added that her indicators support an upward breakout and she expects "a year-end rally as positive seasonal influences take hold."
In data reports Wednesday, U.S. wholesale inventories fell 0.1 percent in October as businesses stepped up efforts to reduce the stockpile of unsold merchandise, suggesting inventories would again be a drag on growth in the fourth quarter, Reuters said.
Economists polled by Reuters had forecast wholesale inventories ticking up 0.1 percent in October.
Read MoreEarly movers: TWTR, KMI, YHOO, DD, AAPL, INTC, COST, LULU & more
Treasury yields held lower, with the 2-year yield near 0.92 percent and the 10-year yield at 2.21 percent. The Treasury auctioned $21 billion of 10-year notes at a high yield of 2.233 percent.
The dollar shed 1 percent against the yen, pushing it below 122 yen for the first time since Nov. 6. "A close below (the yen's 100 day moving average) could signal a test of recent trend-line support at 120.01, with a break below 120 likely to grab MAJOR headlines," Robert Sinche, global strategist at Amherst Pierpont Securities, said in a note.