NEW YORK - Stocks posted their biggest gains in more than a week Tuesday, led by rising energy companies and banks.
The market was higher all day, building on a late gain the day before. The Standard & Poor's 500 index rose for the second day in a row, something that hadn't happened since early November. Energy stocks rose as the price of crude oil jumped 3 percent, and banks moved higher a day ahead of an expected rate increase by the Federal Reserve.
The Dow Jones industrial average added 156.41 points, or 0.9 percent, to 17,524.91. The S&P 500 increased 21.47 points, or 1.1 percent, to 2,043.41. The Nasdaq composite index gained 43.13 points, or 0.9 percent, to 4,995.36.
Stocks have been on a bumpy ride since a six-week winning streak ended in early November. They dropped sharply in mid-November, then bounced back the following week, but failed to build consistently on those gains.
Last week, a plunge in the price of oil set off a sharp drop in energy stocks, which dragged the broader market down to its second-worst weekly performance of 2015. Now, with more encouraging signs on the economy, many expect the Fed to begin returning borrowing costs back toward normal levels with its first interest-rate increase in nine years.
The government said early Tuesday that prices for a variety of goods and services rose last month, including plane tickets and medical care. Overall prices were unchanged from last year because food and energy prices are weak, but "core inflation," which leaves out energy and food, rose 0.2 percent. That's the highest result in more than a year.
Michelle Girard, chief U.S. economist for RBS, said the signal on inflation should remove any last barriers to the Fed to raise rates Wednesday. The inflation report gave the Fed "a green light to take action tomorrow," Girard said. The Fed's key short-term interest rate has been near zero for seven years.
Energy stocks were the top-performing sector as U.S. crude rose $1.04, or 2.9 percent, to $37.35 a barrel in New York. That's on top of a 2 percent gain Monday. Oil is still down 30 percent in 2015 and is at its lowest level in more than six years.
Brent crude, a benchmark for international oils, rose 53 cents, or 1.4 percent, to $38.45 a barrel in London.
That helped the energy sector, which has struggled throughout 2015. ExxonMobil had its best day since late August. Its shares jumped $3.40, or 4.5 percent, to $79.43.
Bank stocks climbed as investors anticipated that higher interest rates would help banks become more profitable by charging more for loans. JPMorgan Chase rose $1.83, or 2.8 percent, to $66.10, and Wells Fargo gained $1.71, or 3.2 percent, to $54.91.
Investors dipped a toe back into the high-yield bond market after several days of selling. The iShares high-yield corporate bond ETF rose $1.29, or 1.6 percent, to $80.12 and the SPDR Barclays high-yield bond ETF rose 39 cents, or 1.2 percent, to $33.81.
High-yield bonds have been attractive to investors in recent years because their returns are high. But investors are becoming worried that more companies could default.
Guy LeBas, chief fixed-income strategist at Janney Montgomery Scott, said plunging oil prices were a big contributor to the recent decline. He thinks more pain is coming.
"Buyers of high-yield bonds will be, on average, pretty happy five years from now," he said. "But I think they're going to be pretty unhappy in the next three months."