A man walks past a bank’s electronic board at the Hong Kong Stock Exchange on Wednesday. Vincent Yu/Associated Press

Stocks closed higher Wednesday, reversing an early slide after the Federal Reserve reassured Wall Street that it expects to keep its key interest rate near zero through 2023.

The central bank’s renewed commitment to leaving rates at rock bottom lows comes even as its latest economic forecast calls for growth of 6.5 percent this year and for inflation to climb above 2 percent for the first time in years. Wall Street has been anxious about the potential for higher inflation to drive up bond yields further and has been looking for signs that the central bank shares its concerns.

Fed Chairman Jerome Powell’s remarks during a news conference appeared to do the trick. Major stock indexes had been down for most of the day, led by another wave of selling in technology companies as bond yields rose, driving the closely watched 10-year Treasury yield up to 1.68 percent at one point, the highest level since January 2020.

After Powell spoke stocks gradually pivoted higher and bond yields fell. The turnaround nudged the S&P 500 and Dow Jones Industrial Average to all-time highs and pulled the tech-heavy Nasdaq out of the red.

“He reassured the market that the Fed is going to the extent possible be patient about even talking about raising rates,” said Willie Delwiche, investment strategist at All Star Charts.

The S&P 500 rose 11.41 points, or 0.3 percent, to 3,974.12, recovering from a 0.7 percent slide. The benchmark index has now notched an all-time high 14 times this year. The Dow gained 189.42 points, or 0.6 percent, to 33,015.37. The Nasdaq, which had been down 1.5 percent, rose 53.64 points, or 0.4 percent, to 13,525.20.

Banks, industrial stocks and companies that rely on consumer spending helped lift the market. Those gains outweighed a pullback in health care, utilities and other sectors.

Smaller company stocks, the market’s standout gainers so far this year, also had good day. The Russell 2000 index of smaller companies picked up 16.87 points, or 0.7 percent, to 2,336.39.

Treasury yields mostly fell, reversing an earlier move higher. The yield on the 10-year U.S. Treasury note, which has surged in recent weeks on inflation concerns, rose to 1.64 percent, the highest level since February 2020. It hit 1.62 percent late Tuesday.

Higher yields put downward pressure on stocks generally, in part because they can steer away dollars that had been headed for the stock market and into bonds instead. That makes investors less willing to pay as high prices for stocks.

Investors are betting big that the economic malaise will dissipate as spring arrives and more Americans get vaccinated against the coronavirus. The $1,400 stimulus checks the Biden administration began sending to individuals last weekend are also helping. But faster economic activity could also translate into some degree of inflation.

The Fed policymakers now forecast that the national unemployment rate will drop faster than they did in December: They foresee unemployment falling from its current 6.2 percent to 4.5 percent by year’s end and to 3.9 percent, near a healthy level, at the end of 2022.

That suggests that the central bank will be close to meeting its goals by 2023, when it expects inflation to exceed its 2 percent target and for unemployment to be at 3.5 percent. Yet it still doesn’t project a rate hike then.

At least some Fed officials appear to be closer to tightening up the central bank’s ultra-low-rate policies. Four of the 18 policymakers now expect a rate hike in 2022, up from just one in December. And seven predict a hike in 2023, up from five in December.

Only subscribers are eligible to post comments. Please subscribe or to participate in the conversation. Here’s why.

Use the form below to reset your password. When you've submitted your account email, we will send an email with a reset code.