Stocks finished broadly higher again on Thursday, as investors grew more confident that a slowing US economy means the Federal Reserve would be able to scale down its aggressive interest rate rises aimed at curbing inflation.

The S&P 500 gained 1.2%, with more than 80% of the equities in the benchmark index closing higher. The Dow Jones Industrial Average increased by 1%, while the Nasdaq increased by 1.1%. Smaller company stocks outperformed the larger market, pushing the Russell 2000 up 1.3%.

Also Read| US Stock Market: DJIA, S&P500 and Nasdaq turns red in early trade on Thursday

The Commerce Department reported that the economy contracted at a 0.9% annual pace last quarter. The decline in the gross domestic product — the broadest gauge of the economy — followed a 1.6% annual drop from January through March. Consecutive quarters of falling GDP are an informal, though not definitive, an indicator of a recession.

The GDP report signalled weakness across the economy. Consumer spending slowed as Americans bought fewer goods. Business investment fell. Inventories tumbled as businesses slowed their restocking of shelves, shedding 2 percentage points from GDP.

Also Read| US Premarket: Ford, Meta, Spirit and other stocks making biggest moves

The Federal Reserve has made slowing the U.S. economy to tame the highest inflation in 40 years its goal by raising interest rates, most recently on Wednesday. The latest GDP report, along with other recent weak economic data, could be giving some investors confidence that the central bank will be able to ease up on the size of any further rate hikes in the months to come, analysts said.

Traders now see a 74% chance that the Fed will raise its key rate by a half-point at its next policy meeting in September, and only a 26% chance of another 0.75-point increase, according to CME Group.

Also Read| Trade Setup: Top 15 things to know before market opens on July 29, 2022

The central bank raised its key short-term interest rate by 0.75 percentage points on Wednesday, lifting it to the highest level since 2018. The move sparked a broad market rally led by technology stocks that helped give the Nasdaq its biggest gain in over two years. The major indexes are now all on pace for a weekly gain, extending Wall Street’s strong July rally.

On Thursday, the S&P 500 rose 48.82 points to 4,072.43, while the Dow added 332.04 points to close at 32,529.63. The Nasdaq gained 130.17 points to 12,162.59. The Russell 2000 rose 24.69 points to 1,873.03.

Also Read| Closing Bell: Sensex jumps 1041 points, Nifty up 288 points

Technology stocks and retailers, restaurant chains and other companies that rely on direct consumer spending helped lift the S&P 500 Thursday. Microsoft rose 2.9%, Target gained 3.1% and McDonald’s added 1.8% higher.

Communication services stocks were the only laggards. Meta Platforms fell 5.2% after the social media giant said its revenue fell last quarter for the first time ever, dragged down by a drop in ad spending.

In a busy week of corporate earnings reports, investors have focused on what companies are saying about inflation and the impact rising interest rates are having on their business and customers.

Also Read| Bajaj Finance, Tata Steel, Nestle and other stocks that moved most on July 28

Markets were spooked Monday after retail giant Walmart warned that its profits are being hurt by rising prices for food and gas, which are forcing shoppers to cut back on more profitable discretionary items such as clothing.

Stanley Black & Decker slumped 16.1% Thursday after the tool maker’s second-quarter results fell short of Wall Street’s estimates. The company noted that demand significantly slowed in May and June.

Oshkosh fell 6.2% after the Wisconsin-based maker of postal trucks and military vehicles reported weaker-than-expected quarterly results and lowered its 2022 profit guidance, citing lingering supply chain disruptions and inflation.

Also Read| Why global economy is not in recession yet

Apple’s profit and revenue fell in its April-June quarter, but the results still beat analysts’ forecasts. The iPhone maker’s shares rose 0.4% but added 3.9% in after-hours trading following the release of its earnings report.

Amazon jumped more than 12% in after-hours trading. It reported its second-consecutive quarterly loss but its revenue topped Wall Street’s expectations. The stock closed 1.1% higher during regular trading.

Also Read| US inflation rate at a 40-year high | A timeline: 1930-2022

Meanwhile, Spirit Airlines shares rose 5.6% after JetBlue said it agreed to buy the budget airline for $3.8 billion to create the nation’s fifth largest airline. The agreement, which still requires regulator and shareholder approval, comes a day after Spirit’s attempt to merge with Frontier Airlines fell apart. Frontier Airlines vaulted 20.5%.

Bond yields were broadly lower. The two-year Treasury yield, which tends to move with expectations for the Fed, fell to 2.87% from 2.98% late Wednesday. The 10-year yield, which influences mortgage rates, fell to 2.68% from 2.74%.