The US government sold 30-year bonds at the highest interest rate in a quarter century, a testament to investors’ demand for greater compensation to finance the nation’s growing deficit.

The yield at the $25 billion sale Thursday came in at 5.216%, the most since 2001, even as a drop in oil prices supported US debt in secondary-market trading. The sale, which was met with decent demand, follows the Treasury Department’s 10-year auction a day earlier that drew the highest financing cost at that tenor since 2007.

It’s a headache for President Donald Trump and Treasury Secretary Scott Bessent ahead of midterm elections in November. Lofty government financing costs are already feeding through to the broader economy, after years of elevated inflation and government spending.

“Investors are being asked to absorb a growing supply of government debt globally at a time when deficits remain large, inflation uncertainty persists” and the Federal Reserve is no longer a major buyer, said Michal Stanczyk, portfolio manager for the global fixed income team at Allspring Global Investments.

“If investors continue demanding greater compensation for inflation and fiscal risks, long-term yields could move higher and away from 5% even if Treasury auctions remain well covered,” he said.