WASHINGTON — The federal government ran the second highest monthly surplus on record this April as tax revenues were pushed higher by a change in the deadline for corporate tax payments.

In its monthly budget report, the Treasury Department said Wednesday that the surplus for April totaled $182.4 billion, the second largest surplus after a record $189.8 billion surplus set in April 2001.

The government generally runs surpluses in April reflecting the annual tax deadlines. This year’s surplus was inflated because of a deadline change that allowed corporations until April to make their final tax payments for last year. The deadline had previously been March.

Through the first seven months of the current budget year, the government is running a deficit of $344.4 billion, down 2.4 percent from the same period a year ago.

The Congressional Budget Office is projecting that the deficit for the full budget year, which ends on Sept. 30, will decline 4.6 percent to $559 billion. That would compare to a 2016 deficit of $585.6 billion.