- The public deficit measures the difference between income and expenses each year, while public debt reflects everything the State owes accumulated at a specific time.
- Both magnitudes are expressed as a percentage of GDP, but the deficit is an annual flow variable and the debt is a stock variable that adds deficits and subtracts previous surpluses.
- A high and persistent deficit forces financing through more public debt, increasing interest payments and limiting the margin for future spending.
- European regulations set reference limits (3% deficit and 60% debt to GDP) to ensure sustainable public finances in member states.
When economics is discussed in the news, it is very common to hear terms like public deficit and public debt mixed together almost as if they were the same. However, although they are closely related, they refer to different things, and it is important to be clear about them to understand what is really happening with the Public finances and the State accounts.
In everyday life, understanding the difference between what is spent each year and what is owed accumulated It helps to better interpret headlines about cuts, tax increases, European Union rules, or debates about whether we are indebting future generations. We will break all this down calmly, with simple examples and supported by the data and regulations used by the official bodies themselves.
What is the public deficit and how is it calculated?
El public deficit is Negative difference between the income and expenses of public administrations in a specific period of time, usually a yearIn other words, it occurs when the entire administration (central government, autonomous communities, municipalities, Social Security, etc.) spends more money than it takes in during that fiscal year.
If during that period Income exceeds expensesThe situation is the opposite, and we are talking about public surplusBoth situations refer to the same magnitude - the difference between income and expenses - only that a deficit implies a negative result and a surplus, a positive one.
Public accounts are organized around a few annual budgets that include projected income and authorized expensesIn Spain, the best example is the State Budget, which includes both expenditure items (healthcare, education, pensions, roads, public employee salaries, etc.) and sources of income (income taxes, VAT, social security contributions, taxes on the self-employed and companies, fees, etc.).
From an economic point of view, the public deficit is a flow variable: measures what happens in a certain time interval (for example, a budget year). It does not refer to the accumulated amount owed, but to the balance for that specific period between what comes in and what goes out of the public coffers.
In order to compare countries and analyze the sustainability of public accounts, the public deficit It is almost always expressed as a percentage of Gross Domestic Product (GDP)This makes it easier to see the relative weight of the imbalance with respect to the size of that country's economy.
Practical examples of public deficit
The basic way to calculate the deficit is very straightforward: Income – ExpensesIf the result is negative, we call it a deficit; if it's positive, a surplus. From there, that figure is related to GDP to obtain the percentage.
Imagine that a country has a GDP of 100.000 euros in one yearDuring that period, the administrations received €40.000 and spent €50.000. The balance is:
- 40.000 – 50.000 = -10.000 euros
Those negative 10.000 euros represent a public deficit equivalent to 10% of GDP (10.000 out of 100.000). This is how statistical agencies usually present the figure: as a percentage that allows comparison over time and between different countries.
Another example: suppose GDP amounts to 100.000 euros, the State spends 10.000 and receives 8.000. The result is a deficit of 2.000 EurosExpressed in terms of GDP, the deficit for that year would be said to be 2% of GDPbecause 2.000 is 2% of 100.000.
This pattern is repeated for both the central government deficit as is the case for autonomous communities, Social Security, or municipalities. Each administration calculates its own annual balance, and to obtain the public deficit of the country as a whole all those results are added together.
Deficit of the State, autonomous communities and local entities
When talking about total public deficit This refers to the sum of the deficits (or surpluses) of all the administrations that make up the public sector: central government, regional governments, local authorities, and Social Security. This aggregate figure is used as a benchmark in the European Union and in international analyses.
Each level of government has its own sources of revenue and spending responsibilities. For example, an autonomous community can have a surplus in a given year, while the central government has a deficit; the sum of all balances is what determines the overall position of public finances.
There is one important peculiarity in the Spanish case: the local entities (municipalities, provincial councils, etc.) They are subject to a specific rule. Article 135.2 of the Constitution establishes that these administrations must maintain the budget balanceThat is, they cannot incur a deficit except in exceptional circumstances.
That restriction was suspended in 2020 and 2021 Due to the extraordinary impact of the COVID-19 pandemic, taking advantage of the flexibility provided for in Article 135 itself. Subsequently, local authorities have returned to the general framework of balance, which structurally limits their ability to spend above their income.
In practice, the calculation of the total public deficit is done by adding up the budget results of all levels of government and adjusting the data with homogeneous criteria (for example, European accounting standards). This is how the official figure published by bodies such as the Ministry of Finance, the Bank of Spain, or Eurostat is obtained.

Types of public deficit: primary, cyclical, and structural
Depending on the information sought, the concept of public deficit can be nuanced as follows: Several waysEach of these variations helps to better understand the origin of the imbalance between income and expenses.
There is talk of primary deficit when calculating expenses Interest payments on the debt are not included.In other words, it measures the balance between the government's "current" income and expenses, excluding the cost of financing the accumulated debt. This variable is used to analyze whether the government would be able to balance its accounts without taking into account the inherited financial burden.
El cyclical deficit is linked to the point in the economic cycleIn times of recession or crisis, income falls (because economic activity, employment, and business profits decrease) while some automatic expenses increase (unemployment benefits, social assistance). This difference generates a deficit that is considered "cyclical," meaning it is caused by the downturn in the economic cycle.
In turn, the structural deficit It reflects the imbalance that would continue to exist even if the economy were in a "normal" situation of full employment or trend growthThis concept is used to assess whether, beyond specific crises, the country's fiscal and spending system is permanently unbalanced and is relevant in debates such as the Ricardian equivalence.
This is common in international analyses adjust the public deficit to eliminate the effects of the economic cycle or exceptional phenomena (such as a pandemic or an energy shock) and thus focus on the most permanent part of the problem, which is what conditions sustainability in the medium and long term.
Recent evolution of the public deficit in Spain
Data from the Ministry of Finance and the Bank of Spain allow us to observe how the Spanish public deficit over the last few years, with strong fluctuations in times of crisis.
Following the 2008 financial crisis, the deficit skyrocketed: in 2009 it even surpassed 11% of GDPThis figure is very high compared to the European benchmark of 3%. This situation reflected both the sharp drop in public revenues and the increase in social spending and stimulus measures.
En 2012 Another significant peak was recorded, with a deficit exceeding 11% of GDP, at the height of the sovereign debt crisis in the eurozone. From then on, budgetary adjustments and economic recovery allowed reduce the imbalance gradually, until it reached around 3% in the years prior to the pandemic.
En 2019For example, Spain's public deficit was approximately 2,8-3,1% of GDPAccording to various statistical sources, although it remained above the European target, the trend was clearly downward.
The arrival of the COVID-19 in 2020 The situation changed radically: the deficit skyrocketed again to around 10-10,1% of GDPThe combination of falling revenues, increased healthcare spending, aid to businesses and workers, and extraordinary measures explains this strong impact.
In the following years there has been a relatively quick correction of the deficit. In 2021 it fell to around 6,7% of GDP, and in 2022 it continued to decrease, settling at around 4,7% of GDPOfficial forecasts from the Ministry of Economy indicate that, in the coming years, the aim is to bring the figure closer to 3%, which is the reference limit set by the European Union.
European regulations on public deficit
The European Union uses the public deficit as one of the key indicators to assess whether a country's finances are healthy and sustainableWithin the so-called convergence criteria for belonging to the monetary union, it is established that the States must maintain:
- Un annual public deficit not exceeding 3% of GDP.
- An public debt below 60% of GDP.
In practice, there are few countries of the eurozone that strictly meet both conditions, especially after the financial crisis and the pandemic. Even so, these values remain the benchmark of the so-called Stability and Growth Pact.
When a Member State exceeds the 3% deficit threshold, the Commission and the Council can activate the Excessive Deficit Procedure (EDP)This mechanism involves enhanced monitoring and the obligation to submit corrective action plans, and may include financial penalties if effective measures are not taken.
The penalties foreseen include a fine of 0,2% of GDP, to which a variable component can be added depending on the distance to the target, with an additional maximum of 0,5% of GDPThese sanctions can accumulate every six months if the country does not correct its situation, although in practice they have rarely been fully applied.
During the COVID-19 pandemic, the European Union temporarily suspended these fiscal rules to allow Member States to increase spending without the immediate pressure of the EDP. Subsequently, Member States have agreed to reactivate the fiscal discipline framework, with open discussions on a possible reform to make the rules more flexible and adaptable, including a reduction in the severity of the fines (for example, from 0,2% of GDP to 0,05% in some cases).
What is public debt and how is it related to the deficit?
La Public debt, also called sovereign debt, is the set of financial obligations that the public sector maintains with the private sector and other creditorsIt includes the debts of the central government, the autonomous communities, local entities and Social Security to individuals, companies, banks, investment funds or other countries.
In practice, this debt materializes in financial securities issued by the Treasury or by other public bodies: Treasury Bills, Government Bonds and Obligationspromissory notes, etc. Each of these instruments has a maturity date and an interest rate that is paid to investors who have lent their money to the public sector.
The key is that public debt is a variable stockThat is, it represents the total accumulated amount of money that the State owes at a specific timeEach year, the resulting deficit or surplus is added to or subtracted from the existing debt, so both figures are closely linked.
If a country registers public deficit In a given fiscal year, to cover it, it will have to be financed, normally through issuance of new debtThis new borrowing increases the total volume of outstanding debt. Conversely, if the State achieves a surplus in a given year, it can use part of that surplus to amortize debt and reduce outstanding stock.
Like the deficit, public debt is often expressed as percentage of GDPThis allows us to measure its relative weight in relation to the size of the economy. For example, in Spain before the pandemic, public debt was around 95,5% of GDP, well above the European limit of 60% but lower than other countries with levels above 100% of GDP.
Public debt and deficit financing
When the State spends more than it takes in, it has to find a way to finance that gapThere are three main theoretical ways to cover the public deficit, each with its pros and cons.
The first option is raise taxes or create new tax categoriesIn this way, revenue increases and the gap between income and expenses is reduced. This approach is part of what is known as fiscal policy and it is in the hands of the Government and Parliament. However, it is often unpopular and can have negative effects on consumption, investment, or employment if overused.
The second possibility is to resort to the issue of money by the central bank. In advanced economies, this practice is avoided as a direct mechanism for financing the deficit because it generates inflation and currency devaluationThis distorts the normal functioning of the economy and particularly penalizes savers and those with fixed incomes. These types of measures fall under the expansionary monetary policy.
The third and most used is the public debt issuanceThe Treasury issues bonds, bills, and other instruments with varying maturities on the financial markets, thereby obtaining the necessary funds to cover the deficit. Investors (banks, funds, individuals, and other countries) purchase these securities expecting to receive periodic interest payments and the repayment of the principal at maturity.
For example, if the Treasury issues 1.000 billion euros in 10-year bondsBuyers hand over that money to the State today, and in return will receive periodic coupons for a decade, in addition to the return of the principal at the end of the term. "live" sum of all unamortized issues This is what we call public debt, which in turn is usually expressed as a percentage of GDP.
This mechanism has effects on the entire economy. When public debt is very high and the state needs constant financing, the so-called [unclear] can occur. crowding-out effectThe public sector competes with private companies for available savings, and these are forced to offer higher interest rates to attract financing, which makes their activity more expensive and can reduce competitiveness.
Key differences between public deficit and public debt
Although the terms are often mixed up in conversations, it is important to be clear about the fundamental differences between public deficit and public debtbecause each one provides different information about a country's economic situation.
First, the public deficit is a flow variableIt measures the result of a specific period (usually a year) between income and expenses. In contrast, public debt is a variable stock: reflects the total accumulated amount of everything owed at a given time, after adding all deficits and subtracting surpluses from previous years.
Second, the deficit indicates the annual imbalance of public accounts, while the debt shows the global level of indebtednessA country can have a moderate deficit in a given year and still carry a very high debt due to past accumulation. Similarly, a country could have low debt but register a high one-off deficit due to an extraordinary circumstance.
Furthermore, public debt is not only affected by the year's deficit, but also by other factors, such as interest payment, possible European fines linked to the Excessive Deficit Procedure, exchange rate variations (in debts issued in foreign currency) or early amortization decisions.
From a sustainability perspective, a high and persistent deficit This tends to increase public debt to levels that could generate uncertainty in financial markets. If investors perceive risk, they will demand higher interest ratesThis, in turn, increases the cost of state financing and can trigger a complicated spiral: more interest, more spending, more deficit, and again, more debt.
Why reducing the public deficit matters
Controlling the public deficit is not just a matter of complying with Brussels; it is directly related to the a country's future capacity to finance quality public servicesto hold his Welfare state and respond to unexpected crises.
When a State chains many years of deficitIts public debt level increases considerably because each year with a negative balance almost always results in new bond and treasury bill issuances. This accumulated debt implies paying interest every year, which becomes a fixed expenditure item that is difficult to cut.
If interest rates rise too high, an increasing portion of the budget is allocated to pay off past debt instead of investing in healthcare, education, infrastructure, or innovation. This is compounded by restrictions stemming from European regulations and market pressure for the government to present credible fiscal consolidation plans.
In contexts of very high debt, countries have less room to react to a new crisis with expansionary measures, because investors may distrust their ability to repay what they owe. That is why many economists emphasize the importance of reduce the deficit and stabilize debt during times of growthcreating "buffers" that allow action when the time comes next recession.
Ultimately, the relationship between deficit and public debt becomes a key indicator of the solvency of an Administration and its ability to fulfill its commitments without constantly resorting to drastic adjustments or sudden tax increases that affect the entire citizenry.
To fully understand the difference between what is missing each year (deficit) and all that has already been accumulated (debt), how each magnitude is calculatedUnderstanding what European regulations require and the consequences of high debt helps us read headlines about public finances with a different perspective and to better assess debates about who pays today and who will bear the bill for current economic decisions tomorrow.