DataBrighten

    Secondary education, duration (years)

    11,411 × 6rows × columns: 209 countries, 1970 to 2025

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

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

    What it measures

    Secondary duration refers to the number of grades (years) in secondary school.

    Limits and exceptions (World Bank note)

    The presence of national legislation does not guarantee that countries will implement it effectively, nor does it ensure that parents will take advantage of the provisions available for their children.

    The numbers in 2025

    In 2025, 209 countries have a value. At the top, 2 countries tie at 9 (e.g. Germany, Slovak Republic); the lowest is Singapore (4). The median country value is 6. The World Bank's World aggregate for 2025 is 6.

    Top 10 countries, 2025

    years

    Source: World Bank, SE.SEC.DURS, retrieved 19 November 2026. Computed from secondary-education-duration-years.csv.

    Highest, 2025

    Ties are listed A to Z.

    #CountryValue
    1Germany9
    2Slovak Republic9
    3Armenia8
    4Austria8
    5Bosnia and Herzegovina8
    6Bulgaria8
    7Croatia8
    8Czechia8
    9Hungary8
    10Italy8

    Lowest, 2025

    #CountryValue
    1Singapore4
    2Zambia5
    3Venezuela, RB5
    4Turks and Caicos Islands5
    5Trinidad and Tobago5
    6St. Vincent and the Grenadines5
    7St. Lucia5
    8St. Kitts and Nevis5
    9South Africa5
    10Sint Maarten (Dutch part)5
    How many countries report, by decade
    DecadeMost countries in one year
    1970s200
    1980s204
    1990s208
    2000s205
    2010s209
    2020s209

    World aggregate by year

    As published by the World Bank (in the regions file, not the country file).

    YearWorld
    20256
    20246
    20236
    20226
    20216
    20206
    20196
    20186
    20176
    20166
    20156
    20146

    By region, 2025

    World Bank regionValue
    Europe & Central Asia7
    South Asia7
    East Asia & Pacific6
    Latin America & Caribbean 6
    Middle East, North Africa, Afghanistan & Pakistan6
    North America6
    Sub-Saharan Africa 6

    First rows

    secondary-education-duration-years.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19706
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19716
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19726
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19736
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19746
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19756
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19766
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19776

    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
    valuenumberSecondary education, duration (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: 2 countries share the highest value, 9 (for example Germany, Slovak Republic).

    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("secondary-education-duration-years.csv"))

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

    File: secondary-education-duration-years.csv

    How many countries report a value for 2025?

    209 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("secondary-education-duration-years.csv"))

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

    File: secondary-education-duration-years.csv

    What is the median across countries in 2025?

    6 (median of the 209 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("secondary-education-duration-years.csv"))

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

    File: secondary-education-duration-years.csv

    Which country rose the most between 2015 and 2025?

    Gibraltar: from 4 to 7, a rise of 3 (out of 205 countries with both years).

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

    Use the wide file (secondary-education-duration-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("secondary-education-duration-years.csv"))

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

    File: secondary-education-duration-years.csv

    Which year has the most countries reporting?

    2025, with 209 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("secondary-education-duration-years.csv"))

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

    File: secondary-education-duration-years.csv