Pupil-teacher ratio, lower secondary
Real data: World Bank, World Development Indicators, indicator SE.SEC.ENRL.LO.TC.ZS, retrieved 19 November 2026. Values are as published; we only reshaped the file.
What it measures
Lower secondary school pupil-teacher ratio is the average number of pupils per teacher in lower secondary school.
Limits and exceptions (World Bank note)
The comparability of pupil-teacher ratios across countries is affected by the definition of teachers and by differences in class size by grade and in the number of hours taught, as well as the different practices countries employ such as part-time teachers, school shifts, and multi-grade classes. Moreover, the underlying enrollment levels are subject to a variety of reporting errors.
The numbers in 2018
In 2018, 63 countries have a value. The highest is Eritrea (40.34); the lowest is San Marino (6.28). The median country value is 14.55. The World Bank's World aggregate for 2018 is 16.87.
Top 10 countries, 2018
value
Highest, 2018
| # | Country | Value |
|---|---|---|
| 1 | Eritrea | 40.34 |
| 2 | Mauritania | 37.6 |
| 3 | Burundi | 35.69 |
| 4 | Afghanistan | 33.87 |
| 5 | Rwanda | 30.32 |
| 6 | Mali | 29.73 |
| 7 | Djibouti | 28.81 |
| 8 | Myanmar | 28.73 |
| 9 | Senegal | 28.35 |
| 10 | El Salvador | 27.8 |
Lowest, 2018
| # | Country | Value |
|---|---|---|
| 1 | San Marino | 6.28 |
| 2 | Azerbaijan | 6.99 |
| 3 | Serbia | 7.8 |
| 4 | Tuvalu | 7.87 |
| 5 | Georgia | 8.28 |
| 6 | Monaco | 8.4 |
| 7 | Belarus | 8.42 |
| 8 | Bosnia and Herzegovina | 8.49 |
| 9 | Uzbekistan | 8.5 |
| 10 | Comoros | 9.16 |
How many countries report, by decade
| Decade | Most countries in one year |
|---|---|
| 1980s | 2 |
| 1990s | 92 |
| 2000s | 91 |
| 2010s | 103 |
World aggregate by year
As published by the World Bank (in the regions file, not the country file).
| Year | World |
|---|---|
| 2018 | 16.87 |
| 2017 | 16.78 |
| 2016 | 16.9 |
| 2015 | 17.26 |
| 2014 | 17.37 |
| 2013 | 17.48 |
| 2012 | 17.86 |
| 2011 | 17.79 |
| 2010 | 17.62 |
| 2009 | 17.55 |
| 2008 | 17.84 |
| 2007 | 18.18 |
By region, 2018
| World Bank region | Value |
|---|---|
| South Asia | 25.83 |
| Latin America & Caribbean | 18.25 |
| Middle East, North Africa, Afghanistan & Pakistan | 16.56 |
| North America | 15.2 |
| East Asia & Pacific | 14.36 |
| Europe & Central Asia | 10.49 |
First rows
pupil-teacher-ratio-lower-secondary.csv
| countrytext | iso3text | regiontext | income_grouptext | yearnumber | valuenumber |
|---|---|---|---|---|---|
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2007 | 31.88292 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2008 | 31.37915 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2009 | 41.37085 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2010 | 43.62042 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2011 | 42.79376 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2012 | 43.8545 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2015 | 31.87929 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2016 | 32.54577 |
Data dictionary
| Column | Type | Meaning |
|---|---|---|
| country | text | Country or economy, World Bank name |
| iso3 | text | ISO 3166-1 alpha-3 code |
| region | text | World Bank region |
| income_group | text | World Bank income group |
| year | number | Calendar year of the value |
| value | number | Pupil-teacher ratio, lower secondary, 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 2018?
Eritrea, with 40.34.
Excel (on the long CSV: E = year, F = value)
=FILTER(A2:A100000,(E2:E100000=2018)*(F2:F100000=MAXIFS(F2:F100000,E2:E100000,2018)))SQL (table wb = the CSV)
SELECT country, value FROM wb WHERE year = 2018
AND value = (SELECT MAX(value) FROM wb WHERE year = 2018);pandas (df = pd.read_csv("pupil-teacher-ratio-lower-secondary.csv"))
y = df[df.year == 2018]
y[y.value == y.value.max()][["country", "value"]]File: pupil-teacher-ratio-lower-secondary.csv
How many countries report a value for 2018?
63 of the 217 economies in the file's country list.
Excel (on the long CSV: E = year, F = value)
=COUNTIF(E2:E100000,2018)SQL (table wb = the CSV)
SELECT COUNT(*) FROM wb WHERE year = 2018;pandas (df = pd.read_csv("pupil-teacher-ratio-lower-secondary.csv"))
(df.year == 2018).sum()File: pupil-teacher-ratio-lower-secondary.csv
What is the median across countries in 2018?
14.55 (median of the 63 country values; not a World Bank aggregate).
Excel (on the long CSV: E = year, F = value)
=MEDIAN(FILTER(F2:F100000,E2:E100000=2018))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 = 2018 ORDER BY value
LIMIT 2 - (SELECT COUNT(*) FROM wb WHERE year = 2018) % 2
OFFSET (SELECT (COUNT(*) - 1) / 2 FROM wb WHERE year = 2018));pandas (df = pd.read_csv("pupil-teacher-ratio-lower-secondary.csv"))
df[df.year == 2018]["value"].median()File: pupil-teacher-ratio-lower-secondary.csv
Which country rose the most between 2008 and 2018?
Thailand: from 20.38 to 24.86, a rise of 4.48 (out of 33 countries with both years).
Excel (on the long CSV: E = year, F = value)
Use the wide file (pupil-teacher-ratio-lower-secondary-wide.csv): add a column = [2018] - [2008], 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 = 2008 AND b.year = 2018 ORDER BY rise DESC LIMIT 1;pandas (df = pd.read_csv("pupil-teacher-ratio-lower-secondary.csv"))
w = df.pivot(index="country", columns="year", values="value")
(w[2018] - w[2008]).dropna().nlargest(1)File: pupil-teacher-ratio-lower-secondary.csv
Which year has the most countries reporting?
2017, with 103 countries. (Later years are still filling in as countries report.)
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("pupil-teacher-ratio-lower-secondary.csv"))
df.groupby("year").size().sort_values(ascending=False).head(1)File: pupil-teacher-ratio-lower-secondary.csv