Inflation in the United States cooled in June for a third straight month, a sign that the worst price spike in four decades is steadily fading and may soon usher in interest rate cuts by the Federal Reserve.

In a better-than-expected report, consumer prices declined 0.1% from May to June after having remained flat the previous month, the Labor Department said Thursday. It was the first monthly decline in overall inflation since May 2020, when the economy was paralyzed by the pandemic.

And measured from one year earlier, prices were up 3 percent in June, cooler than the 3.3 percent annual rate in May.

The latest inflation readings will likely help convince the Fed’s policymakers that inflation is returning to their 2 percent target. A brief pickup in inflation early this year had caused the officials to scale back their expectations for interest rate cuts. The policymakers said they would need to see several months of mild price increases to feel confident enough enough to cut their key rate from its 23-year high.

The June figures will qualify as another installment of the more good inflation data the central bank has been seeking. Should inflation remain low through the summer, most economists expect the Fed to begin cutting its benchmark rate in September.

“This confirms that there is very little chance of inflation re-accelerating and that it’s time for some rate cuts from the Fed,” said Luke Tilley, chief economist at Wilmington Trust, a wealth management firm.

Tilley noted that measures of rent and homeownership costs cooled significantly last month, a long-awaited development. Rental prices typically don’t change much from month to month, he noted, which means that the slower price increases in June will probably continue.

Excluding volatile food and energy costs, so-called core prices climbed just 0.1 percent from May to June, below the 0.2 percent increase in the previous month. Measured from 12 months earlier, core prices rose 3.3 percent in June, down from 3.4 percent May. Core prices are thought to provide a particularly telling signal of where inflation is likely headed.

Rental and homeownership costs, which make up more than one-third of the entire consumer price index, rose at a slower pace last month, up 0.3 percent from May to June. That is the mildest such increase in nearly three years, and it could signal that a long-awaited slowdown in rental price increases has finally arrived. Compared with a year earlier, rents in June were still up 5.1 percent, a much faster rate than before the pandemic.

Rental costs are typically among the last inflationary dominoes to drop, which is why economists are encouraged by the smaller rise in June. A jump in apartment construction in the past two years has brought many new units online, forcing some landlords to keep rents in check to attract renters. The government also uses rental data to calculate the costs of homeownership, which grew more slowly last month after years of rapid acceleration.

Most other major drivers of inflation over the past three years – groceries, used cars, gas – have either leveled off or declined. Rental price increases had remained persistently high until June.

“This is a really, really good sign that the [price] weakness that we’ve been expecting for a year and a half is finally starting to occur,” said Alan Detmeister, an economist at UBS Investment Bank. The pullback in housing costs, he said, “will make [Fed officials] feel that the slowing in inflation is a little more sustainable.”

The Fed has kept its key interest rate unchanged for nearly a year after having aggressively raised it in 2022 and 2023, leading to costlier mortgages, auto loans, credit cards and other forms of consumer and business borrowing.

In the second half of 2023, core inflation cooled steadily, raising expectations that the Fed would cut its key rate up to six times this year. But then fast-rising costs for auto insurance, apartment rents and other services kept inflation elevated in the first three months of this year, leading Fed officials to downgrade their forecasts for rate cuts in 2024 from three to just one. Wall Street traders expect two rate cuts this year, with the first one coming in September.

In testimony Tuesday to Congress, Fed Chair Jerome Powell noted that the job market has “cooled considerably” and is “not a source of broad inflationary pressures.” That marked a notable shift from his past comments, which had suggested that rapid wage growth could perpetuate inflation because some companies would likely raise their prices to offset their higher labor costs.