Formula and methodology
Fiscal deficit = total expenditure − total receipts excluding borrowing. Primary deficit = fiscal deficit − interest payments. Fiscal deficit (% of GDP) = fiscal deficit ÷ GDP × 100. Use the same currency unit for all inputs.
Worked example
With Total expenditure 4,500, Total receipts excluding borrowing 3,000, Interest payments 1,000, Nominal GDP 30,000, the calculator gives: Fiscal deficit = 1,500; Fiscal deficit (% of GDP) = 5; Primary deficit = 500; Primary deficit (% of GDP) = 1.67.
How to read the result
Official definitions differ across countries and budgets, for example in how receipts and certain borrowings are counted. Use the definitions and figures published in the relevant budget documents.