The budget surplus or deficit is the difference between total federal revenue and spending in a given year. When the budget is in deficit, the government borrows from the public. Alternatively, when the budget is in surplus, the government can reduce debt held by the public.