Skip to content
CountryAtlas
Infrastructure & transportation · Rail

Rail lines (total route-km)

km · Annual · 116 of 218 countries (53 %) · 1995–2021
World total
786,130 km
across 65 countries, 2021
Latest observation
2021
Source updated
13 Jul 2026
CountryAtlas refreshed
11 Sep 2026
Snapshot 20260911T072322Z

World map

One value per country for the selected year. Hatched = no data.

No data available

Trend

Aggregate across the countries of a group, year by year. Computed by CountryAtlas from country values — no published aggregate is used.

Not enough countries to aggregate this indicator for World.

Highest and lowest

The five leaders and the five trailing countries, 2021.

Highest 5

Lowest 5

Compare countries

Pick up to five countries. Defaults to the three largest economies with data.

No series for the selected countries.

Definition

Definition
Unit
km
Frequency
Annual
Aggregation
sum · No direction
Valid range
0

Sources & provenance

Every value on this page comes from one of these series, chosen per country by priority.

  1. Priority #1
    World BankWDIIS.RRS.TOTL.KMok
    116 countries · 2,139 obs. · → 2021 · CC BY 4.0

    The total length of rail line in the country operated for passenger transport, goods transport, or both. Source: Railisa Database, International Union of Railways (UIC), uri: https://uic-stats.uic.org/

    Open at source

Series-level selection: for each country the whole series comes from the highest-priority source that has any non-forecast value for it. If a lower-priority source is more than three years fresher, the freshest source wins instead. Non-chosen values are kept as alternatives, never discarded.

Countries without data

Typical reasons: the source does not survey small territories or micro-states; the statistical office reports with a lag of one to three years; the series is only compiled for member countries of the source organisation (OECD, EU, Eurostat); or a value exists but failed validation and is quarantined rather than shown.

Downloads & API

Every observation for this indicator, all countries and years, with provenance columns.

API example

One country, full history. Replace CAN by any ISO3 code or slug.

bash
curl -s "https://www.countryatlas.co/api/v1/series?country=CAN&indicator=rail-lines" | jq '.series[0] | {country: .country.name, unit, last: .stats.last, source: .provenance.source_name}'

API documentation