Higher tax revenues and the phasing out of pandemic-relief spending chopped the U.S. federal government’s budget deficit by a record $1.7 trillion in the first nine months of the fiscal year.

The $515 billion gap for the October-to-June period compares with $2.24 trillion in the same period a year ago, the Treasury Department said Wednesday.

After blowing out during the pandemic, the U.S. government’s shortfall is slimming back down as employment and incomes rise while stimulus spending expires. 

Receipts rose about 26% in the nine-month period, to $3.84 trillion, with more than half of that coming from individual income taxes, while spending dropped about 18%, to $4.35 trillion.

One area not helping the deficit is an increase in federal borrowing costs thanks to inflation and Federal Reserve interest-rate hikes.

Interest payments on public debt have climbed $102 billion so far in the fiscal year. Most of that rise was due to bigger payouts on Treasury inflation-protected securities, known as TIPS.

But costs are rising for nominal Treasuries as well. The weighted average yield on interest-bearing securities was 1.8% at the end of June, up about 19 basis points from a year before, according to the Treasury. That gauge has climbed from 1.56% in January, which was the lowest level in records going back to 2001.

This article was provided by Bloomberg News.