Inflation soared over the past year at its highest rate in four decades, hammering America’s consumers, wiping out pay raises and reinforcing the Federal Reserve’s decision to begin raising borrowing rates across the economy.

The Labor Department said Thursday that consumer prices jumped 7.5% last month compared with 12 months earlier, the steepest year-over-year increase since February 1982. Shortages of supplies and workers, heavy doses of federal aid, ultra-low interest rates and robust consumer spending combined to send inflation accelerating in the past year.

The steady surge in prices has left many Americans less able to afford food, gas, rent, child care and other necessities. More broadly, inflation has emerged as the biggest risk factor for the economy and as a serious threat to President Joe Biden and congressional Democrats as midterm elections loom later this year.

The Fed and its chair, Jerome Powell, have pivoted sharply away from the ultra-low-interest rate policies that the Fed pursued since the pandemic devastated the economy in March 2020. Powell signaled two weeks ago that the central bank would likely raise its benchmark short-term rate multiple times this year, with the first hike almost surely coming in March. Investors have priced in at least five rate increases for 2022.

Over time, those higher rates will raise the costs for a wide range of borrowing, from mortgages and credit cards to auto loans and corporate credit. For the Fed, the risk is that in steadily tightening credit for consumers and businesses, it could trigger another recession.

In the past year, sharp increases in the costs of gas, food, autos and furniture have upended many Americans’ budgets. In December, economists at the University of Pennsylvania’s Wharton School estimated that the average household had to spend $3,500 more than in 2020 to buy an identical basket of goods and services.