Pupil-teacher ratio, preprimary
Real data: World Bank, World Development Indicators, indicator SE.PRE.ENRL.TC.ZS, retrieved 19 November 2026. Values are as published; we only reshaped the file.
What it measures
Preprimary school pupil-teacher ratio is the average number of pupils per teacher in preprimary 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 2017
In 2017, 106 countries have a value. The highest is Tanzania (114); the lowest is Sweden (5.52). The median country value is 16.29. The World Bank's World aggregate for 2018 is 17.45.
Top 10 countries, 2017
value
Highest, 2017
| # | Country | Value |
|---|---|---|
| 1 | Tanzania | 114 |
| 2 | United Kingdom | 61.81 |
| 3 | Namibia | 37.61 |
| 4 | Liberia | 37.31 |
| 5 | Gambia, The | 34.75 |
| 6 | Cambodia | 34.42 |
| 7 | Mongolia | 33.34 |
| 8 | Timor-Leste | 33.18 |
| 9 | Rwanda | 32.36 |
| 10 | Burundi | 32.07 |
Lowest, 2017
| # | Country | Value |
|---|---|---|
| 1 | Sweden | 5.52 |
| 2 | Liechtenstein | 7.58 |
| 3 | Germany | 7.7 |
| 4 | Belarus | 7.76 |
| 5 | New Zealand | 7.82 |
| 6 | St. Vincent and the Grenadines | 7.88 |
| 7 | Armenia | 8.39 |
| 8 | Kuwait | 8.73 |
| 9 | Lithuania | 9.67 |
| 10 | Latvia | 9.72 |
How many countries report, by decade
| Decade | Most countries in one year |
|---|---|
| 1970s | 66 |
| 1980s | 92 |
| 1990s | 111 |
| 2000s | 117 |
| 2010s | 113 |
World aggregate by year
As published by the World Bank (in the regions file, not the country file).
| Year | World |
|---|---|
| 2018 | 17.45 |
| 2017 | 17.72 |
| 2016 | 17.83 |
| 2015 | 17.71 |
| 2014 | 17.75 |
| 2013 | 18.27 |
| 2012 | 17.9 |
| 2011 | 17.73 |
| 2010 | 17.69 |
| 2009 | 17.7 |
| 2008 | 17.47 |
| 2007 | 17.41 |
By region, 2017
| World Bank region | Value |
|---|---|
| Sub-Saharan Africa | 33.04 |
| Latin America & Caribbean | 20.55 |
| Middle East, North Africa, Afghanistan & Pakistan | 20.31 |
| East Asia & Pacific | 17.74 |
| North America | 14.55 |
| Europe & Central Asia | 11.4 |
First rows
pupil-teacher-ratio-preprimary.csv
| countrytext | iso3text | regiontext | income_grouptext | yearnumber | valuenumber |
|---|---|---|---|---|---|
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1970 | 23.30952 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1971 | 23.69048 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1972 | 20.98462 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1973 | 18.26027 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1974 | 19.90541 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1975 | 19.90526 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1976 | 17.62805 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1977 | 16.96818 |
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, preprimary, 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 2017?
Tanzania, with 114.
Excel (on the long CSV: E = year, F = value)
=FILTER(A2:A100000,(E2:E100000=2017)*(F2:F100000=MAXIFS(F2:F100000,E2:E100000,2017)))SQL (table wb = the CSV)
SELECT country, value FROM wb WHERE year = 2017
AND value = (SELECT MAX(value) FROM wb WHERE year = 2017);pandas (df = pd.read_csv("pupil-teacher-ratio-preprimary.csv"))
y = df[df.year == 2017]
y[y.value == y.value.max()][["country", "value"]]File: pupil-teacher-ratio-preprimary.csv
How many countries report a value for 2017?
106 of the 217 economies in the file's country list.
Excel (on the long CSV: E = year, F = value)
=COUNTIF(E2:E100000,2017)SQL (table wb = the CSV)
SELECT COUNT(*) FROM wb WHERE year = 2017;pandas (df = pd.read_csv("pupil-teacher-ratio-preprimary.csv"))
(df.year == 2017).sum()File: pupil-teacher-ratio-preprimary.csv
What is the median across countries in 2017?
16.29 (median of the 106 country values; not a World Bank aggregate).
Excel (on the long CSV: E = year, F = value)
=MEDIAN(FILTER(F2:F100000,E2:E100000=2017))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 = 2017 ORDER BY value
LIMIT 2 - (SELECT COUNT(*) FROM wb WHERE year = 2017) % 2
OFFSET (SELECT (COUNT(*) - 1) / 2 FROM wb WHERE year = 2017));pandas (df = pd.read_csv("pupil-teacher-ratio-preprimary.csv"))
df[df.year == 2017]["value"].median()File: pupil-teacher-ratio-preprimary.csv
Which country rose the most between 2007 and 2017?
Tanzania: from 43.06 to 114, a rise of 70.91 (out of 74 countries with both years).
Excel (on the long CSV: E = year, F = value)
Use the wide file (pupil-teacher-ratio-preprimary-wide.csv): add a column = [2017] - [2007], 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 = 2007 AND b.year = 2017 ORDER BY rise DESC LIMIT 1;pandas (df = pd.read_csv("pupil-teacher-ratio-preprimary.csv"))
w = df.pivot(index="country", columns="year", values="value")
(w[2017] - w[2007]).dropna().nlargest(1)File: pupil-teacher-ratio-preprimary.csv
Which year has the most countries reporting?
2001, with 117 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-preprimary.csv"))
df.groupby("year").size().sort_values(ascending=False).head(1)File: pupil-teacher-ratio-preprimary.csv