Washington (CNN) The federal government budget deficit surpassed $1 trillion in 2019, marking the first time the country has crossed that threshold in a calendar year since 2012.

The budget deficit reached $1.02 trillion for the 12-month calendar year ending in December, according to data released by the Treasury Department on Monday

And the gap appears to be widening. For the first quarter of fiscal year 2020, which began on October 1, the deficit grew 12% over last year.

The deficit -- the gap between how much the government spends versus how much it takes in -- increased to $357 billion in the first three months of the fiscal year as military spending and health care costs continued to eclipse federal tax receipts. The shortfall stood at $319 billion for the same period in fiscal 2019.

Federal spending rose 7% to $1.16 trillion between October and December, while federal tax receipts increased 5% to $807 billion. That includes $21.1 billion collected from tariffs paid by importers.

Read More