Education and literacy by country: literacy, out-of-school, completion, enrolment and spending, 1970-2026 (UNESCO UIS)
UNESCO Institute for Statistics (UIS) core education indicators by country and territory, SDG region, UIS region and World Bank income group, 1970-2026: adult (15+) and youth (15-24) literacy rates; out-of-school rates and numbers for primary, lower secondary and upper secondary school age; completion rates by level (from 1990); gross enrolment ratios for primary, lower secondary, upper secondary and tertiary; all by sex; and government expenditure on education as % of GDP. Tidy long format with UIS indicator codes and UIS's estimate qualifiers (UIS_EST, NAT_EST) and magnitude codes kept. Source: UIS Data API, November 2026 data release (data version 20261125-0771d5ca). Licence CC BY-SA 4.0 (ShareAlike).
UIS education indicators by country or region, indicator and year
Field
Type
Description
Constraints
geo_code
string
UIS geo unit code: ISO 3166-1 alpha-3 for countries and territories (e.g. NPL); for aggregates, UIS's id with its family prefix, e.g. "SDG: World", "UIS: Sub-Saharan Africa", "WB: Low income (July 2026)".
geo_name
string
Name as UIS gives it.
geo_type
string
country (a country or territory, UIS "NATIONAL") or region (an aggregate computed by UIS). Filter to country before ranking or counting countries.
enum ["country","region"]
region_group
string
For regions, the family of aggregates: SDG (UN SDG regions, UIS's headline grouping; use "SDG: World" for the world), UIS (UIS's own regions) or WB (World Bank income groups). Empty for countries. Regions with the same name in different families need not cover the same countries.
indicator
string
UIS indicator code, e.g. LR.AG15T99 (adult literacy rate, both sexes). Names, definitions, topic, level, sex and unit are in indicators.csv.
year
integer
Reference year as UIS gives it, 1970-2026.
value
number
Value as published by UIS (percent, number of children, or percent of GDP; see indicators.csv unit). UIS serves 32-bit floats; values are written as the shortest decimal that is the same 32-bit number. Empty where UIS gives a 0 value with magnitude NA (3,159 records) and for eight zero-valued LOWREL records, which are blanked as an editorial quality exclusion (UIS defines LOWREL as a numeric value of low reliability, not as a missing-value code). All 98 NIL zeros remain numeric zero. The build also blanks SUPP and INCLUDED, neither of which occurs in this release.
qualifier
string
UIS qualifier: UIS_EST (estimate produced by UIS), NAT_EST (national estimate), or empty (no qualifier: reported data, or a UIS aggregate without one).
enum ["","UIS_EST","NAT_EST"]
magnitude
string
UIS magnitude code: NIL (nil or negligible, value 0), NA (not applicable), LOWREL (low reliability), SUPP (suppressed), INCLUDED, INCLUDES, or empty.
Dataset-added screening flag. expenditure_gt_30pct_gdp marks expenditure above 30% of GDP, retained as published and requiring verification. Empty does not certify validity.
The 49 UIS indicators: names, definitions, topic, level, sex and unit
Field
Type
Description
Constraints
indicator
string
UIS indicator code.
name
string
UIS indicator name.
topic
string
literacy, out_of_school, completion, enrolment or expenditure.
Age group (literacy: adult_15plus, youth_15_24) or education level (primary, lower_secondary, upper_secondary, primary_and_secondary, tertiary, all_levels). Out-of-school indicators refer to children of the official school age for the level.
sex
string
both, female or male.
enum ["both","female","male"]
unit
string
percent, number (children, adolescents or youth) or percent_of_gdp.
enum ["percent","number","percent_of_gdp"]
definition
string
UIS glossary definition of the indicator's concept, from the API's indicator metadata.
rows
integer
Rows for this indicator in education.csv (kept countries and regions).
first_year
integer
Earliest year in education.csv.
last_year
integer
Latest year in education.csv.
Selected core education indicators for countries and territories with observations in this extract, from the UNESCO Institute for Statistics (UIS), the UN's official source for education statistics and the custodian agency for most of the SDG 4 education indicators. One tidy table holds adult (15+) and youth (15-24) literacy rates, out-of-school rates and numbers, completion rates, gross enrolment ratios and government spending on education as a share of GDP, by sex where UIS publishes it, for 223 countries and territories with data and 37 regional and income-group aggregates, 1970-2026. UIS indicator codes are kept, and so are UIS's flags saying whether a value is a UIS estimate or a national estimate. From the UIS November 2026 data release.
What stands out
Our sum of UIS’s three rounded world out-of-school estimates is 272.9 million for 2025: 78.6 million of primary school age, 63.6 million of lower secondary age and 130.7 million of upper secondary age. Calculated the same way, the total was 390.7 million in 2000 and reached its minimum within the available 2000–2025 series at 261.4 million in 2017. It increased every year from 2018 through 2025. These are our sums of OFST.1.CP, OFST.2.CP and OFST.3.CP for SDG: World; all three components carry UIS_EST. UIS rounds each component to four significant figures.
Over the same period the world adult literacy rate rose from 81.0% in 2000 to 87.9% in 2025 (women 75.8% to 84.8%, men 86.3% to 91.0%).
Data
data/education.csv: one row per country or aggregate, indicator and year that UIS publishes (220,380 rows). Missing country-years have no row.
geo_code: ISO 3166-1 alpha-3 code for countries and territories; for aggregates, UIS's id including its family, e.g. SDG: World, UIS: Arab States, WB: Low income (July 2026).
geo_name: UIS's name.
geo_type: country (country or territory) or region (an aggregate). Filter to country before ranking; also require a nonblank value when counting countries with observations.
region_group: for aggregates, SDG (UN SDG regions, which UIS uses for its headline figures; use SDG: World for the world), UIS (UIS's own regions) or WB (World Bank income groups). The same area can appear in more than one family, and regions with the same name in different families need not cover the same countries.
indicator: UIS indicator code (see below and data/indicators.csv).
year: reference year, 1970-2026.
value: as published by UIS. Values are blank for 3,159 zero-valued NA records. Eight zero-valued LOWREL records are also blanked as an editorial quality exclusion; UIS defines LOWREL as a numeric value of low reliability, not as a missing-value code. Original magnitude codes are retained. All 98 NIL zeros remain numeric zero. The build also blanks SUPP and INCLUDED, neither of which occurs in this release.
qualifier: UIS_EST (an estimate produced by UIS), NAT_EST (a national estimate) or empty.
magnitude: UIS magnitude code, mostly empty: NIL (nil or negligible: a real 0), NA (not applicable), LOWREL (low reliability), and the other codes UIS defines.
quality_flag: dataset-added screening flag, empty except expenditure_gt_30pct_gdp on the two expenditure values above 30% of GDP, kept as published and requiring verification. Empty does not certify validity.
The 49 indicators (each in a both-sexes, female and male version, except spending):
Topic
UIS codes (both sexes; add .F or .M)
Unit
Years
Adult literacy rate, 15+
LR.AG15T99
%
1970-2025
Youth literacy rate, 15-24
LR.AG15T24
%
1970-2025
Out-of-school rate: primary, lower secondary, upper secondary, primary and secondary school age
ROFST.1.CP, ROFST.2.CP, ROFST.3.CP, ROFST.1T3.CP (sex goes before .CP, e.g. ROFST.1.F.CP)
%
1970-2026
Out-of-school children, adolescents and youth: primary, lower secondary, upper secondary school age
data/indicators.csv: one row per indicator (49 rows): indicator, UIS's name, topic, level, sex, unit, UIS's glossary definition, and the number of rows and first_year/last_year in education.csv.
Caveats
Many values are modelled. 22,513 published values are UIS estimates (UIS_EST), including all world and regional out-of-school numbers, and 38,516 are national estimates (NAT_EST). Literacy rates for many countries come from occasional censuses and surveys, so a country may have only a handful of years.
Aggregates are UIS's, computed by UIS with imputation for missing countries; do not recompute them by summing country rows. Where both exist, SDG: World and UIS: World carry identical values, but out-of-school and completion figures exist only for SDG: World, so use that for the world.
Out-of-school numbers at world and regional level are rounded by UIS to four significant figures. Sums of them, like the 272.9 million above, inherit that rounding.
Gross enrolment ratios count all enrolled pupils regardless of age, so they can exceed 100% where pupils repeat or start late.
The source is not always internally consistent, and the values are kept as published. The build lists 96 such cases in archive/consistency-notes.csv: female and male out-of-school counts that exceed or do not add up to the both-sexes count, both-sexes rates outside the female and male rates (mostly where the both-sexes and by-sex series come from different sources), and two shares of GDP above 30% (Micronesia 1972, 66.9%; Zimbabwe 2020, 60.4%) that require verification against the underlying source and are flagged expenditure_gt_30pct_gdp in data/education.csv.
UIS revises past years in each release; values here are from data version 20261125-0771d5ca. UIS's per-value source footnotes are not included; they are available from the UIS Data API (footnotes=true).
Licence: Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0), https://creativecommons.org/licenses/by-sa/4.0/. The UIS Data Browser terms and conditions (https://databrowser.uis.unesco.org/terms-and-conditions) say: "The work of the UIS is licensed under the Creative Commons Attribution-ShareAlike 4.0 International license." ShareAlike: If you share adapted material, license your contributions under CC BY-SA 4.0 or a compatible licence. Give appropriate credit, link to the licence, and identify changes. Credit as UIS asks: "Source: Adapted from UNESCO Institute for Statistics (UIS), https://api.uis.unesco.org/api/public, extracted 2026-11-29." Changes made: a subset of indicators, countries and aggregates; reshaped into one long table; 32-bit float values written as their shortest decimal; not-applicable values and eight zero-valued low-reliability observations blanked, with magnitude codes retained; a quality_flag column added; aggregates flagged. DataHub is not affiliated with or endorsed by UIS.
This is a living dataset, updated annually or more often: UIS publishes data releases a few times a year. A monthly job (.github/workflows/update.yml) asks the UIS Data API for its current default data version, downloads the 49 indicators and rebuilds both CSVs, committing only when the data change; a new data version also opens an issue to update this README and the metadata. Earlier releases remain in the git history. scripts/fetch.mjs saves the API responses into archive/api/ (listed with their hashes in archive/sources.json) and scripts/build.mjs rebuilds both CSVs from them.
API access
Access dataset files directly from scripts, code, or AI agents.
Each file has a stable URL (r-link) that you can use directly in scripts, apps, or AI agents. These URLs are permanent and safe to hardcode.