Pupil-teacher ratio, primary
Real data: World Bank, World Development Indicators, indicator SE.PRM.ENRL.TC.ZS, retrieved 19 November 2026. Values are as published; we only reshaped the file.
What it measures
Primary school pupil-teacher ratio is the average number of pupils per teacher in primary 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, 90 countries have a value. The highest is Rwanda (59.51); the lowest is San Marino (6.93). The median country value is 20.27. The World Bank's World aggregate for 2018 is 23.45.
Top 10 countries, 2018
value
Highest, 2018
| # | Country | Value |
|---|---|---|
| 1 | Rwanda | 59.51 |
| 2 | Malawi | 58.68 |
| 3 | Mozambique | 55.27 |
| 4 | Tanzania | 50.63 |
| 5 | Afghanistan | 48.79 |
| 6 | Cameroon | 44.83 |
| 7 | Pakistan | 44.08 |
| 8 | Burundi | 42.52 |
| 9 | Cote d'Ivoire | 41.82 |
| 10 | Cambodia | 41.7 |
Lowest, 2018
| # | Country | Value |
|---|---|---|
| 1 | San Marino | 6.93 |
| 2 | Kuwait | 8.88 |
| 3 | Georgia | 8.98 |
| 4 | Cuba | 9.16 |
| 5 | Oman | 9.67 |
| 6 | Brunei Darussalam | 9.9 |
| 7 | Andorra | 10.5 |
| 8 | Monaco | 11.39 |
| 9 | Bahrain | 11.92 |
| 10 | Qatar | 12.17 |
How many countries report, by decade
| Decade | Most countries in one year |
|---|---|
| 1970s | 125 |
| 1980s | 125 |
| 1990s | 150 |
| 2000s | 146 |
| 2010s | 142 |
World aggregate by year
As published by the World Bank (in the regions file, not the country file).
| Year | World |
|---|---|
| 2018 | 23.45 |
| 2017 | 23.39 |
| 2016 | 23.44 |
| 2015 | 23.11 |
| 2014 | 23.29 |
| 2013 | 23.55 |
| 2012 | 24.2 |
| 2011 | 24.12 |
| 2010 | 24.31 |
| 2009 | 24.68 |
| 2008 | 24.97 |
| 2007 | 25.05 |
By region, 2018
| World Bank region | Value |
|---|---|
| Sub-Saharan Africa | 37.36 |
| South Asia | 33.25 |
| Middle East, North Africa, Afghanistan & Pakistan | 21.32 |
| Latin America & Caribbean | 21.3 |
| East Asia & Pacific | 17.54 |
| Europe & Central Asia | 14.87 |
| North America | 14.43 |
First rows
pupil-teacher-ratio-primary.csv
| countrytext | iso3text | regiontext | income_grouptext | yearnumber | valuenumber |
|---|---|---|---|---|---|
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1970 | 41.22332 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1971 | 39.10539 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1972 | 40.38314 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1973 | 38.32161 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1974 | 37.21537 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1975 | 37.30693 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1976 | 35.75747 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1989 | 36.40558 |
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, primary, 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?
Rwanda, with 59.51.
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-primary.csv"))
y = df[df.year == 2018]
y[y.value == y.value.max()][["country", "value"]]File: pupil-teacher-ratio-primary.csv
How many countries report a value for 2018?
90 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-primary.csv"))
(df.year == 2018).sum()File: pupil-teacher-ratio-primary.csv
What is the median across countries in 2018?
20.27 (median of the 90 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-primary.csv"))
df[df.year == 2018]["value"].median()File: pupil-teacher-ratio-primary.csv
Which country rose the most between 2008 and 2018?
Afghanistan: from 43.73 to 48.79, a rise of 5.06 (out of 73 countries with both years).
Excel (on the long CSV: E = year, F = value)
Use the wide file (pupil-teacher-ratio-primary-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-primary.csv"))
w = df.pivot(index="country", columns="year", values="value")
(w[2018] - w[2008]).dropna().nlargest(1)File: pupil-teacher-ratio-primary.csv
Which year has the most countries reporting?
1999, with 150 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-primary.csv"))
df.groupby("year").size().sort_values(ascending=False).head(1)File: pupil-teacher-ratio-primary.csv