How EU Debt Map calculates live government debt estimates
EU Debt Map starts with official Eurostat quarterly debt data. The live counters are then estimated from the latest available trend, so visitors can understand the direction and scale of government debt across the EU-27.
The live ticker is an educational estimate. It is not an official real-time statistic. The official source remains Eurostat.
What you are looking at
The number on each country page is a live estimate built from official quarterly debt data. It keeps moving because we convert the most recent change into a per-second rate.
Fetch official data
We use Eurostat’s quarterly government debt dataset and request the latest available periods for all EU-27 countries.
Select the latest trend
For each country, we keep the latest two quarters with valid values. This creates a recent debt movement, not a long-term forecast.
Convert to euros
Eurostat reports the selected series in millions of euros. EU Debt Map converts this to euros for the large live counters.
Estimate per second
The difference between the two latest quarters is divided by the seconds between the two reference dates.
Official data source
EU Debt Map uses Eurostat gov_10q_ggdebt: quarterly general government gross debt under the Maastricht definition.
| Dataset | gov_10q_ggdebt |
|---|---|
| Frequency | Q, quarterly |
| Sector | S13, general government |
| Debt item | GD, gross debt |
| Unit | MIO_EUR, converted to euro by multiplying by 1,000,000 |
| Countries | EU-27 member states only |
| Greece code | Eurostat uses EL, EU Debt Map displays GR |
| Lookback | lastTimePeriod=8, then we select the latest two available quarters per country |
Eurostat gives a consistent, comparable data source across EU member states. That matters because national debt figures can differ in timing, format, definitions, and publication rhythm.
How the live estimate is calculated
The calculation is intentionally simple. It avoids hidden economic assumptions and makes the numbers easy to audit.
Simple example
Suppose a country’s debt increases by €7.8 billion between two quarter-end dates. A quarter is roughly 7.8 million seconds. In that simplified case, the live estimate would move by about €1,000 per second.
If the change is negative, the counter moves down. If the latest two values are the same, the counter stays flat.
previous_value_eur = debt value at previous quarter end
latest_value_eur = debt value at latest quarter end
seconds_between_dates =
latest_reference_timestamp - previous_reference_timestamp
rate_per_second =
(latest_value_eur - previous_value_eur) / seconds_between_dates
if now <= latest_reference_timestamp:
estimate =
previous_value_eur +
(latest_value_eur - previous_value_eur) *
((now - previous_reference_timestamp) / seconds_between_dates)
if now > latest_reference_timestamp:
estimate =
latest_value_eur +
rate_per_second * (now - latest_reference_timestamp)How we prevent misleading ticker behaviour
Live counters can look precise, but the input data is quarterly. The site therefore uses a few conservative safeguards.
The app caps extreme per-second values to prevent runaway counters if a source value, date, or generated field is abnormal.
If only one recent valid value is available, the estimate is treated as flat until more data is available.
Quarter labels such as 2025-Q3 are converted to quarter-end dates so the per-second movement has a consistent time span.
The site intentionally excludes non-EU countries to keep the scope clear and comparable.
What the live ticker cannot tell you
The site is designed for public understanding, not for official accounting, trading, forecasting, or fiscal reporting.
It is not official real-time debt
Governments do not publish a fully comparable live second-by-second debt number through Eurostat. The official data is quarterly.
It assumes a linear path
Debt does not actually change smoothly every second. The ticker spreads the latest quarterly movement evenly over time.
It focuses on gross debt
Gross government debt is useful for comparison, but it does not include every measure of fiscal strength, assets, future obligations, or budget quality.
When the numbers change
The live movement changes when new official Eurostat data is fetched and the site is regenerated.
lastTimePeriod=8, then selects the latest two available quarters per country.Reproduce the input data
The exact transformed values are generated during the build process. The public Eurostat API call below shows the source dataset and filters.
https://ec.europa.eu/eurostat/api/dissemination/statistics/1.0/data/gov_10q_ggdebt
?lang=EN
&format=JSON
&freq=Q
§or=S13
&na_item=GD
&unit=MIO_EUR
&lastTimePeriod=8
&geo=FR
&geo=DE
&geo=ITIn production, EU Debt Map requests all EU-27 country codes. Eurostat uses EL for Greece, while the app displays Greece as GR.