All 10 S&P 500 sectors rose on the day, with most climbing more than 1 percent. The benchmark index is now 1.4 percent away from its record closing high, recovering much of its recent weakness, which took the index down as much as 6 percent.
Republican leaders in the US House of Representatives caved in to demands by President Barack Obama and agreed to advance legislation increasing Washington's borrowing authority, removing a potential market headwind.
Yellen, who has just stepped into the Fed's top job, emphasized continuity in the central bank's policy strategy of cutting asset purchases by $10 billion a month, saying she strongly supports the approach of her predecessor, Ben Bernanke. In her first public comments as Fed chief, Yellen also said that while the U.S. unemployment rate has fallen recently, labor market conditions needed to improve further.
"No one was really expecting a major debt ceiling showdown or changes in tapering, but anticipation is one thing, and the experience is another," said John Carey, portfolio manager at Pioneer Investment Management in Boston. "Everyone is more relaxed now that those issues are officially off the table."
The Fed's policies have been credited with driving the market's steep gains in 2013, and those accommodative measures are expected to keep a floor under stock prices for as long as they continue. However, had the pace of ending the program been slowed, it may have raised concerns that the economy was still not strong enough to grow on its own.
The Dow Jones industrial average was up 219.12 points, or 1.39 percent, at 16,020.91. The Standard & Poor's 500 Index was up 22.70 points, or 1.26 percent, at 1,822.54. The Nasdaq Composite Index was up 48.55 points, or 1.17 percent, at 4,196.72.
The S&P 500 rose above its 50-day moving average for the first time since January 24, a technical resistance level that could fuel further gains if convincingly held.
More From This Section
Sprint Corp
CVS Caremark Corp
Of the 357 companies in the S&P 500 that have reported earnings through Tuesday morning, 67.8 percent have beaten profit expectations, above the long-term average of 63 percent, according to Thomson Reuters data. Almost 66 percent have topped revenue forecasts, above the historical average of 61 percent.
On the downside, the shares of both Dean Foods Co
Infloblox Inc
Cadence Pharmaceuticals Inc