DataBrighten

    Primary school starting age (years)

    11,539 × 6rows × columns: 210 countries, 1970 to 2025

    Real data: World Bank, World Development Indicators, indicator SE.PRM.AGES, retrieved 19 November 2026. Values are as published; we only reshaped the file.

    textnumberdateyes/no
    Rows11,539country-year values
    Countries210with at least one value
    Years1970 – 202556 years with data
    LicenceCC BY 4.0credit the World Bank

    What it measures

    Primary school starting age is the age at which students would enter primary education, assuming they had started at the official entrance age for the lowest level of education, had studied full-time throughout and had progressed through the system without repeating or skipping a grade.

    Limits and exceptions (World Bank note)

    The theoretical entrance age to a given programme or level is typically, but not always, the most common entrance age.

    The numbers in 2025

    In 2025, 210 countries have a value. At the top, 32 countries tie at 7 (e.g. Afghanistan, Bulgaria, Croatia); at the bottom, 25 countries tie at 5 (e.g. Antigua and Barbuda, Australia, Bahamas, The). The median country value is 6.

    Highest, 2025

    Ties are listed A to Z.

    #CountryValue
    1Afghanistan7
    2Bulgaria7
    3Croatia7
    4El Salvador7
    5Equatorial Guinea7
    6Estonia7
    7Ethiopia7
    8Finland7
    9Gambia, The7
    10Guatemala7

    Lowest, 2025

    Ties are listed A to Z.

    #CountryValue
    1United Kingdom5
    2Trinidad and Tobago5
    3St. Vincent and the Grenadines5
    4St. Lucia5
    5St. Kitts and Nevis5
    6Sri Lanka5
    7Samoa5
    8Pakistan5
    9New Zealand5
    10Nepal5
    How many countries report, by decade
    DecadeMost countries in one year
    1970s201
    1980s206
    1990s208
    2000s208
    2010s210
    2020s210

    First rows

    primary-school-starting-age-years.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19707
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19717
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19727
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19737
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19747
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19757
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19767
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19777

    Data dictionary

    ColumnTypeMeaning
    countrytextCountry or economy, World Bank name
    iso3textISO 3166-1 alpha-3 code
    regiontextWorld Bank region
    income_grouptextWorld Bank income group
    yearnumberCalendar year of the value
    valuenumberPrimary school starting age (years), exactly as the World Bank API returns it (not rounded)

    Only country-years with a value are in the long file; blank cells in the wide file mean no value was published.

    Practice questions

    answers computed from the file

    Which country has the highest value in 2025?

    There is a tie: 32 countries share the highest value, 7 (for example Afghanistan, Bulgaria, Croatia).

    Excel (on the long CSV: E = year, F = value)

    =FILTER(A2:A100000,(E2:E100000=2025)*(F2:F100000=MAXIFS(F2:F100000,E2:E100000,2025)))

    SQL (table wb = the CSV)

    SELECT country, value FROM wb WHERE year = 2025
      AND value = (SELECT MAX(value) FROM wb WHERE year = 2025);

    pandas (df = pd.read_csv("primary-school-starting-age-years.csv"))

    y = df[df.year == 2025]
    y[y.value == y.value.max()][["country", "value"]]

    File: primary-school-starting-age-years.csv

    How many countries report a value for 2025?

    210 of the 217 economies in the file's country list.

    Excel (on the long CSV: E = year, F = value)

    =COUNTIF(E2:E100000,2025)

    SQL (table wb = the CSV)

    SELECT COUNT(*) FROM wb WHERE year = 2025;

    pandas (df = pd.read_csv("primary-school-starting-age-years.csv"))

    (df.year == 2025).sum()

    File: primary-school-starting-age-years.csv

    What is the median across countries in 2025?

    6 (median of the 210 country values; not a World Bank aggregate).

    Excel (on the long CSV: E = year, F = value)

    =MEDIAN(FILTER(F2:F100000,E2:E100000=2025))

    SQL (table wb = the CSV)

    -- SQLite has no MEDIAN(); this picks the middle value(s)
    SELECT AVG(value) FROM (SELECT value FROM wb WHERE year = 2025 ORDER BY value
      LIMIT 2 - (SELECT COUNT(*) FROM wb WHERE year = 2025) % 2
      OFFSET (SELECT (COUNT(*) - 1) / 2 FROM wb WHERE year = 2025));

    pandas (df = pd.read_csv("primary-school-starting-age-years.csv"))

    df[df.year == 2025]["value"].median()

    File: primary-school-starting-age-years.csv

    Which country rose the most between 2015 and 2025?

    Afghanistan: from 7 to 7, a rise of 0 (out of 208 countries with both years).

    Excel (on the long CSV: E = year, F = value)

    Use the wide file (primary-school-starting-age-years-wide.csv): add a column = [2025] - [2015], then sort it largest to smallest.

    SQL (table wb = the CSV)

    SELECT a.country, b.value - a.value AS rise FROM wb a JOIN wb b ON a.iso3 = b.iso3
    WHERE a.year = 2015 AND b.year = 2025 ORDER BY rise DESC LIMIT 1;

    pandas (df = pd.read_csv("primary-school-starting-age-years.csv"))

    w = df.pivot(index="country", columns="year", values="value")
    (w[2025] - w[2015]).dropna().nlargest(1)

    File: primary-school-starting-age-years.csv

    Which year has the most countries reporting?

    2025, with 210 countries.

    Excel (on the long CSV: E = year, F = value)

    Make a pivot table: year in Rows, Count of value in Values, then sort by the count.

    SQL (table wb = the CSV)

    SELECT year, COUNT(*) AS n FROM wb GROUP BY year ORDER BY n DESC, year DESC LIMIT 1;

    pandas (df = pd.read_csv("primary-school-starting-age-years.csv"))

    df.groupby("year").size().sort_values(ascending=False).head(1)

    File: primary-school-starting-age-years.csv