Major U.S. stock indexes rallied Friday to finish one of their most tumultuous weeks in memory on a high note, buoyed by strong earnings from Apple and other big companies.
The move—capped off with a late-afternoon rally—was good news for investors after a nerve-racking January set to wrap-up Monday. The S&P 500 and Dow Jones Industrial Average snapped three-week losing streaks and the Nasdaq rose more than 3% on the day to finish a wild week flat.
At the same time, traders said they expect more volatility as corporate earnings continue to grab headlines and investors keep a close eye on factors such as interest rates and economic data.
Stocks have mostly declined in recent weeks as expectations mounted that the Federal Reserve would pivot from juicing economic growth to combating inflation. Fed Chairman Jerome Powell signaled on Wednesday that the central bank would start a series of rate increases in March, ending a long period of rock-bottom interest rates.
“Cheap money is like a comfort blanket for investors and for markets,” said Jane Foley, senior foreign-exchange strategist at Rabobank. “Almost inevitably, you start to withdraw some of that cheap money and you’re going to have more volatility in the markets.”
The S&P gained 105.34 points on Friday, or 2.4%, to close at 4431.85. The Dow rose 564.69 points, or 1.7%, to 34725.47, after a volatile day in which it swung between gains and losses, then surged in the last hour-and-a-half of trading.
The technology-heavy Nasdaq Composite jumped 417.79, or 3.1%, to 13770.57, erasing its losses for the week. The Dow and S&P ended the week with gains of 1.3% and 0.8%, respectively.
Some upbeat big-name corporate earnings reports cheered investors. Shares of Apple, the world’s largest publicly traded company by market capitalization, on Friday rallied $11.11, or 7%, to $170.33, a day after the iPhone maker posted record revenue and profit.
“Apple was the savior yesterday for the whole market,” said Louis Ricci, head trader of Emles Advisors, an investment-management firm.
Still, major stock indexes are well off their highs. The S&P 500 is down 7% so far in January.
Government data released Friday showed the upward pressure on prices that has worried policy makers. The Fed’s preferred measure of inflation, the core personal-consumption expenditures price index, rose at 4.9% in December over the prior year.
A separate measure showed employers spent 4% more on wages and benefits over the past year—an increase not seen since 2001—as a tight labor market encouraged workers to demand higher pay. Still, employment costs didn’t rise as much in the fourth quarter as economists anticipated, easing concerns that the U.S. economy is heading for a “wage-price spiral.” In such a scenario, salary hikes and price increases become mutually reinforcing, fueling inflation.
Going forward, investors can expect more volatility as the Fed grapples with inflation, said Scott Clemons, chief investment strategist for Brown Brothers Harriman’s private banking business.
“If the market concludes that the Fed is raising interest rates because they have fallen behind the curve on inflation and are scrambling to catch up, that is a rather disruptive narrative,” Mr. Clemons said.
Meanwhile, new Commerce Department data showed consumer spending fell last month amid rising prices and the fallout from the Omicron wave of Covid-19. Some data suggests that the highly contagious variant has peaked in densely populated parts of the U.S., while continuing to surge elsewhere.
Inflation concerns have filtered into this week’s corporate earnings reports. Mondelez International said late Thursday that it would likely raise prices further this year. Its shares fell $1.05, or 1.6%, to $66.42 on Friday after the global food giant said its profitability was being squeezed by rising ingredient and transportation costs.
Corporate earnings have generally been solid. Almost a third of the companies on the S&P 500 have reported fourth-quarter results, and 78% of them have beaten analysts’ estimates for earnings per share, according to FactSet.
In commodities, U.S. natural-gas futures shot up 8.3% to settle at $4.64 per million British thermal units as a snowstorm threatened to hit the East Coast and forecasters said February would be colder than anticipated, driving up expected demand for the heating fuel.
Investors bought government bonds on Friday, pushing down yields. The yield on the 10-year Treasury note dropped to 1.779% from 1.807% on Thursday. Bond yields move in the opposite direction from prices.
European markets dropped, with the pan-continental Stoxx Europe 600 falling 1%.
Asian markets were mixed. Hong Kong’s Hang Seng fell 1.1%, while the Shanghai Composite Index was down about 1%. Japan’s Nikkei 225 rose 2.1%.
Write to Alexander Osipovich at alexander.osipovich@wsj.com and Joe Wallace at joe.wallace@wsj.com
Corrections & Amplifications
Government-bond prices fell, pushing up yields. An earlier version of this article incorrectly said falling bond prices pushed up prices. (Corrected on Jan. 28.)
Copyright ©2022 Dow Jones & Company, Inc. All Rights Reserved. 87990cbe856818d5eddac44c7b1cdeb8