Budget Galaxy · Methodology

← Back to app

Methodology

How Budget Galaxy is built, what it covers, and where the data comes from.

1. What is Budget Galaxy?

Budget Galaxy visualizes federal and public sector budgets for Germany and the United Kingdom, built from official government data sources. It is an independent project with no government affiliation. Every figure shown is traceable to a specific published dataset, and every transformation applied to that data is documented in this page and in the project's source code.

2. Data Sources

Germany — Federal Budget

Source bundeshaushalt.de · Federal Ministry of Finance (BMF)
Licence Open Government Data dl-de/by-2-0

Coverage: Federal planned budget (Soll). 25 Einzelpläne (ministerial chapters), approximately 4,388 Titel (line items). Years 2015–2024.

What it shows: Planned budget, not actual spending (Ist).

Not included: Off-budget Sondervermögen (the €100B special defence fund, the €60B climate fund, etc.) are not reflected in these figures.

UK — Central Government (OSCAR)

Source HM Treasury OSCAR via gov.uk
Licence Open Government Licence v3

Coverage: 40 central government departments, 2015–2024.

What it shows: Total Managed Expenditure — both DEL (departmental) and AME (pensions, welfare, etc.). Planned figures, not final outturn.

Note: OSCAR schema changed significantly between 2019 (OSCAR I) and 2020 (OSCAR II), causing some year-on-year discontinuities visible in the 2018–2020 range. This is a feature of the source data, not a Budget Galaxy bug.

UK — Supplier Data (Spend Over £25,000)

Source gov.uk transparency data · 15 departments
Source UK Contracts Finder OCDS API · ~93,000 contracts

Coverage: FY 2024 only. 645,572 payment transactions across 15 departments.

What it shows: Actual payments over £25,000 made to external suppliers, grouped by department and supplier. Supplier descriptions come from publicly available sources; employee counts are approximate.

Not included: Payments below the £25,000 disclosure threshold.

UK — NHS Provider Sector

Source NHS England Trust Accounts Consolidation (TAC) · 2022/23 and 2023/24
Source NHS ODS Spine API for ICB commissioning relationships

Coverage: 206 trusts (2023/24) and 212 trusts (2022/23).

What it shows: Total operating expenditure per trust (TAC subcode EXP0390, current year). Categorised as Staff Costs, Clinical Supplies & Drugs, Premises & Infrastructure, and Other Operating Costs. Each trust also shows its Integrated Care Board (ICB) commissioner, derived from the NHS ODS Spine REST API at directory.spineservices.nhs.uk.

Important note on double-counting: NHS trusts receive funding from DHSC via NHS England → ICBs, then spend it on operations. Budget Galaxy shows both the commissioning side (under DHSC) and the provider side (under NHS Provider Sector), with the overlap netted out to avoid double-counting. The DHSC node shows only the residual not captured in TAC data. See section 4 below for the full methodology.

Excluded trusts: 3–5 trusts per year are excluded by NHS England because annual accounts had not been adopted at time of publication.

UK — Local Government (England)

Source MHCLG Revenue Outturn Statistics

Coverage: 401 English local authorities (2024/25), approximately 400 per year for 2017/18–2023/24.

What it shows: Net current expenditure by service: Education, Adult Social Care, Children's Social Care, Public Health, Housing, Transport, Environment, Culture, Planning, Police, Fire & Rescue, Central Services, and Other. Includes grants received from central government.

Not included: Capital expenditure. Scotland, Wales and Northern Ireland have separate systems and are not in this dataset.

UK — NHS ICB Allocations

Source NHS England Annual Allocations

Coverage: 42 Integrated Care Boards.

What it shows: Primary commissioning budgets allocated by NHS England to each ICB. Shown as commissioning context metadata on each NHS trust node, not as separate tree nodes (to avoid double-counting with the NHS Provider Sector view).

3. Coverage

CountrySectorSourceYearsDetail
GermanyFederal govtbundeshaushalt.de2015–2024L1–L4 (4,388 items)
UKCentral govtOSCAR HMT2015–2024L1–L4 (40 depts)
UKSupplier paymentsSpend >£25k2024L5–L6 (645k transactions)
UKNHS providersNHS TAC2022/23, 2023/24L5 (206/212 trusts)
UKLocal govtMHCLG Revenue Outturn2017–2025L5 (~400 councils/year)

UK public sector coverage (2024): approximately 85% of Total Managed Expenditure (£1.38T visualised).

Not included: Off-budget funds (UKEF, Network Rail), devolved governments (Scotland, Wales, Northern Ireland), NHS capital expenditure, local government capital.

4. Fiscal Consolidation and Double-Counting

Public sector finances contain extensive internal flows. The same money is often recorded multiple times: once when central government allocates it to an arm's-length body, once when that body passes it on to a delivery agent, and once when the delivery agent spends it. Naively summing all these views inflates the total significantly.

Budget Galaxy applies surgical netting to remove these overlaps wherever they would distort the picture, while preserving both views in the tree where users can see them side by side. Three categories of consolidation are applied:

NHS Provider Sector vs DHSC

NHS trusts receive funding from DHSC via NHS England → ICBs, and report it as operating expenditure in their accounts. Both views are shown in Budget Galaxy: the commissioning side appears under the Department of Health, and the provider side appears as a separate top-level node "NHS Provider Sector". To prevent double-counting, the DHSC NHS Trusts sub-node is reduced to its residual after subtracting what TAC reports (capital expenditure plus a small set of non-operating items).

Local Government vs MHCLG

English local authorities receive grants from central government (recorded in MHCLG's central budget) and then spend them on services (recorded in MHCLG Revenue Outturn). Budget Galaxy uses the Revenue Outturn figures, which represent actual service delivery expenditure broken down by 13 functional categories. The OSCAR II "LOCAL GOVERNMENT ENGLAND" placeholder line that appears in 2020–2023 data is replaced by the Revenue Outturn detail.

OSCAR 2023 Data Quality Correction

Disclosed correction: The 2022/23 OSCAR data contained a £114.07B "Non-patient-facing NHS expenditure" line inside DHSC > NHS Trusts that does not appear in 2023/24 OSCAR. Cross-referencing against three independent published sources — the DHSC Annual Report 2022-23 (resource outturn £177.1B), HM Treasury PSA July 2023 (DHSC total DEL £181.7B), and the NHS England Annual Report 2022-23 (total expenditure £155.1B) — confirmed that the OSCAR 2023 figure was approximately twice the published DHSC total. The artifact was removed via a documented surgical deduction. The exact value, the source of that value, and the resulting tree changes are recorded in the project's intergovernmental_uk_2023.json and in metadata fields on the affected node. This is the only place in Budget Galaxy where source data has been corrected; all other figures pass through unmodified.

5. Limitations

6. Source Code and Data

All code and processed data files are available at github.com/JuanBlanco9/German-Budget-Galaxy.

Project Licence MIT
Data Licence (UK) Open Government Licence v3
Data Licence (DE) Open Government Data dl-de/by-2-0

This project has no affiliation with any government body. Original government data is used under the open government licences linked above. Where Budget Galaxy applies any transformation to that data, the transformation is documented in the project's source code and on this page.