The World Bank puts every economy into one of four income groups each year, on 1 July: low, lower-middle, upper-middle or high. This dataset has that group for every economy and fiscal year from 1989 (income data for 1987) to 2027 (income data for 2025), the GNI-per-capita thresholds between the groups, and each economy's current group, region and lending category. In 1989 there were 41 high-income economies; in 2027 there are 87.

## What stands out

- **High income has doubled.** There were 41 high-income economies in fiscal 1989, 53 in 2002 and 87 in 2027.
- **Low income has more than halved since its peak.** It peaked at 66 economies in fiscal 2003 and is 25 in 2027.
- **Most of the world has moved up.** Of 205 economies classified in both fiscal 2002 and 2027, 102 are in a higher group, 100 are in the same one and 3 are lower: Lebanon, Syria and Venezuela.
- **Fourteen jumped two groups or more since 2002,** among them Indonesia, Vietnam, Russia, Ukraine, Armenia, Azerbaijan, Georgia, Moldova and Mongolia.
- **China was low income in 1989** and is upper-middle in 2027; India was low income in 2002 and is lower-middle in 2027.
- **The high-income line keeps moving up.** The high-income line was GNI per capita above 6,000 dollars in fiscal 1989 and is above 14,375 dollars in 2027.

## Data

All files are CSV in `data/`. Join on `iso3`.

- `income-groups.csv`: one row per economy and fiscal year, 8,095 rows. Columns: `iso3`, `economy`, `fiscal_year`, `data_year`, `income_group` (`low`, `lower-middle`, `upper-middle`, `high`). 224 economies including former ones. Years in which the World Bank did not classify an economy have no row.
- `thresholds.csv`: one row per fiscal year, 1989 to 2027. Columns: `low_max`, `lower_middle_max`, `upper_middle_max`, in current US dollars of GNI per capita (Atlas method). Low is at or below `low_max`; high is above `upper_middle_max`.
- `current-classification.csv`: 217 economies from the World Bank country API, with `region`, `income_group` and `lending_category` (IDA, IBRD, Blend or Not classified). Aggregates such as "World" are left out.
- `economies-by-group.csv`: the number of economies in each group per fiscal year (feeds the chart).
- `moves-since-2000.csv` and `moves-since-2000-by-economy.csv`: each economy's group in fiscal 2002 (income data for 2000) against the latest year, and the summary counts (feeds the second chart).

Fiscal year and data year: the group announced on 1 July of a calendar year applies to the World Bank fiscal year ending the next 30 June, and is based on GNI per capita for the calendar year before the announcement. So fiscal 2027 (1 July 2026 to 30 June 2027) uses 2025 income. `data_year` is always `fiscal_year` minus 2.

How to join: `iso3` is the World Bank's three-letter economy code, the same as ISO 3166-1 alpha-3 for current countries. To add an income group to another dataset, join on `iso3` and on the year: use `fiscal_year = year + 2` if you want the group that was based on that year's income, or `fiscal_year = year` if you want the group in force that year. Exceptions to ISO: `XKX` (Kosovo) is a user-assigned code and `CHI` (Channel Islands) is the World Bank's own code for a grouping that has no ISO code. Former economies carry codes that are no longer ISO codes: `CSK` (Czechoslovakia), `SUN` (USSR), `YUG` (Serbia and Montenegro, former), `YUGf` (Yugoslavia, former; not a valid ISO form, kept as the World Bank writes it) and `ANT` (Netherlands Antilles). `TWN` ("Taiwan, China") and `MYT` (Mayotte) are valid ISO codes; `TWN` is in the history but not in the API's current list.

## Caveats

- **A group is fixed for the whole fiscal year.** The World Bank: "These official analytical classifications are fixed during the World Bank's fiscal year (ending on June 30), thus economies remain in the categories in which they are classified irrespective of any revisions to their per capita income data."
- **The thresholds are reviewed every year** and adjusted for inflation (they were unchanged between fiscal 2001 and 2002), so a move up is not always a rise in real income, and a country can change group without its income changing much if it sits near a line.
- **Gaps are not zeros.** Economies the World Bank did not classify in a year (new states, small economies, territories) have no row; the source marks them `..`.
- **Yemen** is `LM*` in the source for 1989 and 1990: the World Bank footnotes that Yemen PDR (low) and Yemen Arab Republic (lower-middle) "combined would have been LM". It is lower-middle here.
- **Not the same as lending category.** An income group is a statistic; a lending category (IDA, IBRD, Blend) is an operational status and also depends on creditworthiness. A change of income group does not change the lending category.
- **Current table versus history:** `current-classification.csv` comes from the World Bank country API, the history from the Data Catalog workbook. They agree for every economy in the latest fiscal year (checked at build). `TWN` is only in the history.
- **The undated link lags.** The World Bank's stable file name `OGHIST.xlsx` stopped at fiscal 2025 while the dated file reached 2027, so the refresh job uses the newest dated file.

## Source and licence

World Bank, Historical classification by income, lending, and fragile status (`OGHIST_2026_10_08.xlsx`), [World Bank Data Catalog, World Development Indicators](https://datacatalog.worldbank.org/search/dataset/0037712), and the World Bank country API (`https://api.worldbank.org/v2/country`). Retrieved 2026-12-04; see `archive/PROVENANCE.md`. Methodology: [How does the World Bank classify countries?](https://datahelpdesk.worldbank.org/knowledgebase/articles/378834-how-does-the-world-bank-classify-countries). This is DataHub's tidy reshaping of the World Bank's tables; it is not endorsed by the World Bank.

Terms, from the World Bank's [Terms of Use for Datasets](https://www.worldbank.org/en/about/legal/terms-of-use-for-datasets): "Unless specifically labeled otherwise, these Datasets are provided to you under a Creative Commons Attribution 4.0 International License (CC BY 4.0), with the additional terms below." The Data Catalog page for this dataset says: "This dataset is licensed under Creative Commons Attribution 4.0". The additional terms are a dispute-resolution procedure (mediation, then arbitration) and an attribution format: "The World Bank: Dataset name: Data source (if known)", and sub-licences must carry the same acknowledgment requirement. You may not imply the World Bank endorses your use. Please cite as: The World Bank: Historical classification by income, lending, and fragile status: World Bank Data Catalog (World Development Indicators).

## Upkeep

This dataset is updated annually (living). The World Bank reclassifies on 1 July and publishes the new workbook some weeks later. A GitHub Actions job runs monthly (the 6th), fetches the newest workbook and the country API, rebuilds the CSVs and commits if the data changed; it fails, and publishes nothing, if the workbook changes shape or if more than three economies differ between the workbook and the API in the latest year (the two are equal today). A new fiscal year also opens an issue, because the numbers in this README, the description and the chart text are hand-written and need updating, and the `income_group_fy2027` column name of `moves-since-2000-by-economy.csv` is renamed with the latest year.
