Deficit is the negative difference between revenues and expenditures of the state, ie, expenses are higher than revenues.
There is surplus when the difference is positive, ie, revenues exceed expenditures.
As in the case of debt, to measure the importance of the deficit in an economy is compared to GDP, to calculate the percentage of deficit to GDP.