Average precipitation in depth (mm per year)
Real data: World Bank, World Development Indicators, indicator AG.LND.PRCP.MM, retrieved 19 November 2026. Values are as published; we only reshaped the file.
What it measures
Average precipitation is the long-term average in depth (over space and time) of annual precipitation in the country. Precipitation is defined as any kind of water that falls from clouds as a liquid or a solid.
Limits and exceptions (World Bank note)
The data are collected by the Food and Agriculture Organization of the United Nations (FAO) through annual questionnaires. The FAO tries to impose standard definitions and reporting methods, but complete consistency across countries and over time is not possible.
The numbers in 2022
In 2022, 180 countries have a value. The highest is Colombia (3,240); the lowest is Egypt, Arab Rep. (18.1). The median country value is 1,036.
Top 10 countries, 2022
mm per year
Highest, 2022
| # | Country | Value |
|---|---|---|
| 1 | Colombia | 3,240 |
| 2 | Sao Tome and Principe | 3,200 |
| 3 | Papua New Guinea | 3,142 |
| 4 | Solomon Islands | 3,028 |
| 5 | Panama | 2,928 |
| 6 | Costa Rica | 2,926 |
| 7 | Samoa | 2,880 |
| 8 | Malaysia | 2,875 |
| 9 | Brunei Darussalam | 2,722 |
| 10 | Indonesia | 2,702 |
Lowest, 2022
| # | Country | Value |
|---|---|---|
| 1 | Egypt, Arab Rep. | 18.1 |
| 2 | Libya | 56 |
| 3 | Saudi Arabia | 59 |
| 4 | Qatar | 74 |
| 5 | United Arab Emirates | 78 |
| 6 | Bahrain | 83 |
| 7 | Algeria | 89 |
| 8 | Mauritania | 92 |
| 9 | Jordan | 111 |
| 10 | Kuwait | 121 |
How many countries report, by decade
| Decade | Most countries in one year |
|---|---|
| 1960s | 157 |
| 1970s | 157 |
| 1980s | 157 |
| 1990s | 180 |
| 2000s | 180 |
| 2010s | 182 |
| 2020s | 182 |
First rows
average-precipitation-in-depth-mm-per-year.csv
| countrytext | iso3text | regiontext | income_grouptext | yearnumber | valuenumber |
|---|---|---|---|---|---|
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1961 | 327 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1962 | 327 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1963 | 327 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1964 | 327 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1965 | 327 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1966 | 327 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1967 | 327 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1968 | 327 |
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 | Average precipitation in depth (mm per year), 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 2022?
Colombia, with 3,240.
Excel (on the long CSV: E = year, F = value)
=FILTER(A2:A100000,(E2:E100000=2022)*(F2:F100000=MAXIFS(F2:F100000,E2:E100000,2022)))SQL (table wb = the CSV)
SELECT country, value FROM wb WHERE year = 2022
AND value = (SELECT MAX(value) FROM wb WHERE year = 2022);pandas (df = pd.read_csv("average-precipitation-in-depth-mm-per-year.csv"))
y = df[df.year == 2022]
y[y.value == y.value.max()][["country", "value"]]File: average-precipitation-in-depth-mm-per-year.csv
How many countries report a value for 2022?
180 of the 217 economies in the file's country list.
Excel (on the long CSV: E = year, F = value)
=COUNTIF(E2:E100000,2022)SQL (table wb = the CSV)
SELECT COUNT(*) FROM wb WHERE year = 2022;pandas (df = pd.read_csv("average-precipitation-in-depth-mm-per-year.csv"))
(df.year == 2022).sum()File: average-precipitation-in-depth-mm-per-year.csv
What is the median across countries in 2022?
1,036 (median of the 180 country values; not a World Bank aggregate).
Excel (on the long CSV: E = year, F = value)
=MEDIAN(FILTER(F2:F100000,E2:E100000=2022))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 = 2022 ORDER BY value
LIMIT 2 - (SELECT COUNT(*) FROM wb WHERE year = 2022) % 2
OFFSET (SELECT (COUNT(*) - 1) / 2 FROM wb WHERE year = 2022));pandas (df = pd.read_csv("average-precipitation-in-depth-mm-per-year.csv"))
df[df.year == 2022]["value"].median()File: average-precipitation-in-depth-mm-per-year.csv
Which country rose the most between 2012 and 2022?
Afghanistan: from 327 to 327, a rise of 0 (out of 180 countries with both years).
Excel (on the long CSV: E = year, F = value)
Use the wide file (average-precipitation-in-depth-mm-per-year-wide.csv): add a column = [2022] - [2012], 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 = 2012 AND b.year = 2022 ORDER BY rise DESC LIMIT 1;pandas (df = pd.read_csv("average-precipitation-in-depth-mm-per-year.csv"))
w = df.pivot(index="country", columns="year", values="value")
(w[2022] - w[2012]).dropna().nlargest(1)File: average-precipitation-in-depth-mm-per-year.csv
Which year has the most countries reporting?
2021, with 182 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("average-precipitation-in-depth-mm-per-year.csv"))
df.groupby("year").size().sort_values(ascending=False).head(1)File: average-precipitation-in-depth-mm-per-year.csv