Markets & money · Indonesia

Where Rp3,621 trillion goes

Indonesia’s 2025 state budget as a zoomable treemap, read out of the law’s scanned annexes.

The 2025 budget law sets state spending at Rp3,621.3 trillion against Rp3,005.1 trillion of revenue, a deficit of 2.53% of GDP. Three-quarters is spent by the central government and a quarter is transferred to provinces, regencies and villages.

The treemap below shows every line I could recover from the law and its implementing regulation. Box area is money. Click into a box to see what is inside it; the trail above the chart takes you back out. The icicle view shows the same tree as columns.

Fig. 01 · Indonesia’s 2025 state budget, Rp3,621 trillion of spending, box by box (UU 62/2024)
Layout
  • Ministries & agencies
  • Treasury: interest, subsidies, pensions
  • Transfers to regions

The shape of it

The 86 ministries and agencies together get Rp1,160.1 trillion. The Treasury’s own lines, which no ministry controls, are larger at Rp1,541.4 trillion. Interest on government debt alone is Rp552.9 trillion, more than Defence, the National Police and Public Works combined. Subsidies are Rp307.9 trillion, two-thirds of it energy: electricity, 3 kg LPG cylinders and subsidised diesel and kerosene. Pensions and health-insurance contributions for civil servants add Rp189.1 trillion.

Another Rp491.2 trillion sits in “other central spending”. The regulation breaks this down only by function (Rp269.6 trillion under economy, Rp177.8 trillion under general public services) and not by programme, so the treemap cannot go further.

Among the ministries, Defence (Rp166.3 trillion) and the Police (Rp126.6 trillion) lead, then Public Works and Housing, Health, Education and Social Affairs. The new National Nutrition Agency, which runs the free-meals programme, starts at Rp71.0 trillion, the same as the whole village-funds transfer. The sector groupings inside the ministries box are mine, not the government’s.

Transfers to the regions are dominated by the general allocation, Rp446.6 trillion of mostly formula-driven block grants, followed by revenue sharing and the special allocation funds that pay for school operating grants and regional teachers’ allowances.

Fig. 02 · The same Rp2,701 trillion of central spending, cut by function instead of by ministry (Informasi APBN 2025)

The by-function split is a different cut of the same central total. Education comes to Rp285.2 trillion here because it counts Religious Affairs’ madrasah schools and the Treasury’s reserves as well as the ministry; the constitutional 20% education mandate, Rp724.3 trillion, is wider still, because it also includes transfers.

Reading the PDFs

None of this is published as a table. Law 62/2024 is a scanned PDF on the BPK regulations portal, and its Annex I lists each ministry’s allocation in a five-page table. pdftotext recovers the text, but the OCR layer confuses similar glyphs: o for 0, l and t for 1, a for 8. Those are mapped back and the rows checked against the law’s own totals. Nine rows still disagreed with the page images, mostly an 8 read as a 4, and are corrected by hand. After that the 86 ministries sum exactly to the Rp1,160,085,000,000 thousand the law implies.

The Treasury lines come from Annex IV of Presidential Regulation 201/2024, a worse scan where the OCR drops digits. Those figures are transcribed rather than parsed, and every subtotal is asserted against its parent: energy subsidies against all subsidies, subsidies plus interest plus pensions against the Treasury total, and so on up to the Rp3,621,313,743,500 thousand in the law.

How it is drawn

The data is a nested tree, so d3.hierarchy sums it and d3.treemap lays it out with padding, three levels at a time. Zooming re-runs the layout on the clicked node’s subtree and transitions each box from its old rectangle to its new one, keyed by its path in the tree. Boxes that leave fade out; deeper ones fade in. The icicle uses the same tiles with depth along the x-axis and money along the y-axis, so switching between the two animates too.

Data

The law’s PDF comes from the BPK regulations portal. Annex I is extracted with poppler’s pdftotext, corrected and checked against the totals, then written to a 9 KB JSON file. Amounts are in thousand rupiah, as in the law.