Data

Years of schooling

by level of education and gender
See all data and research on:
Configure the data
Years of schooling

Interactive visualization requires JavaScript.

What you should know about this indicator

  • This indicator shows the average number of years that adults in a country have spent in formal education.
  • It reflects the overall educational attainment of the population based on what they have already completed.
  • The calculation converts each person's highest completed education level into years - for example, someone who finished high school counts as having roughly 12 years of schooling, while someone who never attended school counts as 0 years.
  • The data comes from censuses and surveys of adults aged 25 and older, including only formal education starting from primary school.
  • This indicator captures how much schooling adults have accumulated over their lifetimes, showing the results of past investments in education systems.
  • Higher values indicate a population with stronger educational foundations, but the measure does not account for education quality or informal learning.
  • The data may not reflect recent progress in countries with infrequent surveys or outdated census information.
  • UNDP originally obtained this indicator from: Barro and Lee (2018), Eurostat (2024), ICF Macro Demographic and Health Surveys (various years), UNESCO Institute for Statistics (2024) and UNICEF Multiple Indicator Cluster Surveys (various years).
Average years of schooling
UNDP
Average number of years adults aged 25 and older have spent in formal education.
Source
UNDP, Human Development Report (2025)with minor processing by Our World in Data
Last updated
May 7, 2025
Next expected update
May 2026
Date range
1990–2023
Unit
years

Sources and processing

UNDP, Human Development Report – Human Development Report

Artificial intelligence (AI) has broken into a dizzying gallop. While AI feats grab headlines, they privilege technology in a make-believe vacuum, obscuring what really matters: people's choices.

The choices that people have and can realize, within ever expanding freedoms, are essential to human development, whose goal is for people to live lives they value and have reason to value. A world with AI is flush with choices the exercise of which is both a matter of human development and a means to advance it.

Going forward, development depends less on what AI can do—not on how human-like it is perceived to be—and more on mobilizing people's imaginations to reshape economies and societies to make the most of it. Instead of trying vainly to predict what will happen, the 2025's Human Development Report asks what choices can be made so that new development pathways for all countries dot the horizon, helping everyone have a shot at thriving in a world with AI.

For more details, refer to https://hdr.undp.org/data-center/documentation-and-downloads

Retrieved on
May 7, 2025
Retrieved from
Citation
This is the citation of the original data obtained from the source, prior to any processing or adaptation by Our World in Data. To cite data downloaded from this page, please use the suggested citation given in Reuse This Work below.
UNDP (United Nations Development Programme). 2025. Human Development Report 2025: A matter of choice: People and possibilities in the age of AI. New York.

Artificial intelligence (AI) has broken into a dizzying gallop. While AI feats grab headlines, they privilege technology in a make-believe vacuum, obscuring what really matters: people's choices.

The choices that people have and can realize, within ever expanding freedoms, are essential to human development, whose goal is for people to live lives they value and have reason to value. A world with AI is flush with choices the exercise of which is both a matter of human development and a means to advance it.

Going forward, development depends less on what AI can do—not on how human-like it is perceived to be—and more on mobilizing people's imaginations to reshape economies and societies to make the most of it. Instead of trying vainly to predict what will happen, the 2025's Human Development Report asks what choices can be made so that new development pathways for all countries dot the horizon, helping everyone have a shot at thriving in a world with AI.

For more details, refer to https://hdr.undp.org/data-center/documentation-and-downloads

Retrieved on
May 7, 2025
Retrieved from
Citation
This is the citation of the original data obtained from the source, prior to any processing or adaptation by Our World in Data. To cite data downloaded from this page, please use the suggested citation given in Reuse This Work below.
UNDP (United Nations Development Programme). 2025. Human Development Report 2025: A matter of choice: People and possibilities in the age of AI. New York.

All data and visualizations on Our World in Data rely on data sourced from one or several original data providers. Preparing this original data involves several processing steps. Depending on the data, this can include standardizing country names and world region definitions, converting units, calculating derived indicators such as per capita measures, as well as adding or adapting metadata such as the name or the description given to an indicator.

At the link below you can find a detailed description of the structure of our data pipeline, including links to all the code used to prepare data across Our World in Data.

Read about our data pipeline

How to cite this page

To cite this page overall, including any descriptions, FAQs or explanations of the data authored by Our World in Data, please use the following citation:

“Data Page: Average years of schooling”, part of the following publication: Hannah Ritchie, Veronika Samborska, Esteban Ortiz-Ospina, and Max Roser (2023) - “Global Education”. Data adapted from UNDP, Human Development Report. Retrieved from https://archive.ourworldindata.org/20260326-120116/grapher/years-of-schooling.html [online resource] (archived on March 26, 2026).

How to cite this data

In-line citationIf you have limited space (e.g. in data visualizations), you can use this abbreviated in-line citation:

UNDP, Human Development Report (2025) – with minor processing by Our World in Data

Full citation

UNDP, Human Development Report (2025) – with minor processing by Our World in Data. “Average years of schooling – UNDP” [dataset]. UNDP, Human Development Report, “Human Development Report” [original data]. Retrieved April 10, 2026 from https://archive.ourworldindata.org/20260326-120116/grapher/years-of-schooling.html (archived on March 26, 2026).

Quick download

Download the data shown in this chart as a ZIP file containing a CSV file, metadata in JSON format, and a README. The CSV file can be opened in Excel, Google Sheets, and other data analysis tools.

Data API

Use these URLs to programmatically access this chart's data and configure your requests with the options below. Our documentation provides more information on how to use the API, and you can find a few code examples below.

Data URL (CSV format)
https://ourworldindata.org/grapher/years-of-schooling.csv?v=1&csvType=full&useColumnShortNames=false&level=all&metric_type=average_years_schooling&sex=boys
Metadata URL (JSON format)
https://ourworldindata.org/grapher/years-of-schooling.metadata.json?v=1&csvType=full&useColumnShortNames=false&level=all&metric_type=average_years_schooling&sex=boys

Code examples

Examples of how to load this data into different data analysis tools.

Excel / Google Sheets
=IMPORTDATA("https://ourworldindata.org/grapher/years-of-schooling.csv?v=1&csvType=full&useColumnShortNames=false&level=all&metric_type=average_years_schooling&sex=boys")
Python with Pandas
import pandas as pd
import requests

# Fetch the data.
df = pd.read_csv("https://ourworldindata.org/grapher/years-of-schooling.csv?v=1&csvType=full&useColumnShortNames=false&level=all&metric_type=average_years_schooling&sex=boys", storage_options = {'User-Agent': 'Our World In Data data fetch/1.0'})

# Fetch the metadata
metadata = requests.get("https://ourworldindata.org/grapher/years-of-schooling.metadata.json?v=1&csvType=full&useColumnShortNames=false&level=all&metric_type=average_years_schooling&sex=boys").json()
R
library(jsonlite)

# Fetch the data
df <- read.csv("https://ourworldindata.org/grapher/years-of-schooling.csv?v=1&csvType=full&useColumnShortNames=false&level=all&metric_type=average_years_schooling&sex=boys")

# Fetch the metadata
metadata <- fromJSON("https://ourworldindata.org/grapher/years-of-schooling.metadata.json?v=1&csvType=full&useColumnShortNames=false&level=all&metric_type=average_years_schooling&sex=boys")
Stata
import delimited "https://ourworldindata.org/grapher/years-of-schooling.csv?v=1&csvType=full&useColumnShortNames=false&level=all&metric_type=average_years_schooling&sex=boys", encoding("utf-8") clear