The Nilgiri Mountain Railway: The Rack Line to Ootacamund
India's only rack railway climbs almost two kilometres from the plains at Mettupalayam to Ooty on a toothed rail, behind Swiss-built steam engines. How it was built, how it works, and how to ride it.

At Mettupalayam, at the foot of the Nilgiri hills, the little blue-and-cream train waits with its steam engine at the back, not the front. That is the first clue that this is no ordinary railway. Over the next 46 kilometres it will climb from about 326 metres above sea level to about 2,203 metres at Udhagamandalam, the hill station the British called Ootacamund and everyone now calls Ooty. On the steepest stretch the engine pushes the carriages up a slope of 1 in 12, and it can only do so because a toothed wheel under the engine grips a toothed rail laid between the tracks.
The Nilgiri Mountain Railway is the only rack railway in India, and part of the UNESCO World Heritage Site of the Mountain Railways of India. For the people of the High Range it is also a cousin of our own lost hill railway (see the Kundala Valley Railway).
At a glance
- Route: Mettupalayam, Coonoor, Udhagamandalam (Ooty); about 46 km, metre gauge.
- Climb: from about 326 m to about 2,203 m.
- Rack: the Abt rack-and-pinion system between Kallar and Coonoor, with a maximum gradient of 1 in 12 (8.33 per cent).
- Opened: to Coonoor on 15 June 1899; to Ooty in 1908.
- Heritage: added to the UNESCO World Heritage Site of the Mountain Railways of India in July 2005.
A railway to the Blue Mountains
Ootacamund grew in the nineteenth century into the summer capital of the Madras Presidency, but reaching it meant a long and difficult climb by road from the plains. A railway was proposed as early as 1854. One early scheme, put forward with the Swiss engineer Niklaus Riggenbach, the pioneer of rack railways, was turned down because no one in government was willing to recommend hauling passengers up such steep slopes. Riggenbach and J. L. L. Morant of the Royal Engineers are still remembered as the first to conceive the line.
A company to build the railway was formed in 1885, and work began in the early 1890s. The engineers chose the system devised by another Swiss engineer, Roman Abt, in which a pair of toothed rails is laid in the middle of the track, with their teeth offset, so that the pinion wheels of the engine always have a tooth in mesh. Heavy rains damaged the works, but the line from Mettupalayam to Coonoor, about 27 km, was finally opened on 15 June 1899.
The company could not raise the money to go further, and in 1903 the Government of India bought the line. Its own engineers built the extension from Coonoor to Ooty, which was steep but could be worked by ordinary adhesion without a rack. The line reached Fernhill and then Ooty in 1908.
How the rack works
From Mettupalayam to Kallar the line is almost level and the train runs like any other. At Kallar the rack begins. Between Kallar and Coonoor the gradient is as steep as 1 in 12: for every 12 metres it travels, the train rises 1 metre. No ordinary locomotive could hold a train on such a slope, so the engines are fitted with pinion wheels that engage the double toothed rack laid between the running rails.
The engine is coupled at the downhill end of the train, so that it pushes the carriages up the hill and holds them back on the way down. Because of the slope and the monsoon weather the trains use two independent braking systems, one acting on the wheels and one on the rack, and each carriage has its own brakesman. Beyond Coonoor the gradient eases to a ruling 1 in 23 and the rack ends. There are three tunnels on this upper section, the longest some 282 metres, and the maximum speed on the line is about 30 km/h.
The engines
The rack section is still worked by steam. The X class locomotives, built by the Swiss Locomotive and Machine Works of Winterthur, have powered the line for most of its life: the oldest in service date from the 1920s, and later engines of the same design were built in the 1950s. Newer oil-fired engines of the same type were added in the 2010s. On the upper section from Coonoor to Ooty, diesel locomotives usually take over.
UNESCO and the Mountain Railways of India
In 1999 the Darjeeling Himalayan Railway became the first railway in Asia to be inscribed on the World Heritage List. In July 2005 the Nilgiri Mountain Railway was added to the listing, which was renamed the Mountain Railways of India, and the Kalka Shimla Railway followed in 2008. UNESCO's evaluation singled out the Nilgiri line's rack system and its survival as a working railway.
Riding the line
The full journey from Mettupalayam to Ooty takes about five hours uphill and about three and a half hours down. The scenic train runs once a day in each direction between Mettupalayam and Ooty, connecting at Mettupalayam with the overnight Nilgiri Express from Chennai, and additional trains run on the Coonoor to Ooty section. Seats are few and sell out quickly, especially in the summer season, so book well ahead through Indian Railways. The best views are on the right-hand side going up, over the Kallar valley and the tea gardens below Coonoor (see a guide to Munnar tea).
From Munnar, the Nilgiris are a long day's drive by way of Coimbatore. Many travellers combine them with Kodaikanal, the other great hill station of the southern Ghats (see Kodaikanal).
Timeline
- 1854A railway to the Nilgiris is first proposed.
- 1885A company is formed to build the line.
- Early 1890sConstruction begins, using the Abt rack system.
- 15 Jun 1899The line opens from Mettupalayam to Coonoor.
- 1903The Government of India buys the railway.
- 1908The extension reaches Fernhill and Ooty.
- 1951The line becomes part of the Southern Railway.
- Jul 2005Added to the UNESCO World Heritage Site, renamed Mountain Railways of India.
Questions people ask
Why is the Nilgiri Mountain Railway special?
It is the only rack railway in India, climbing slopes of up to 1 in 12 with toothed rails, and it still uses steam on its steepest section.
How long is the train journey to Ooty?
About five hours from Mettupalayam to Ooty, for 46 km.
When was the Ooty toy train built?
The line opened to Coonoor in 1899 and was extended to Ooty in 1908.
Is the Nilgiri Mountain Railway a World Heritage Site?
Yes. It was added to the Mountain Railways of India World Heritage Site in July 2005.
(Read also the Kundala Valley Railway, the Top Station ropeway and Kodaikanal.)
See it for yourself, with a local driver who knows these roads.
Book a Munnar Jeep SafariSources & further reading
- Wikipedia: Nilgiri Mountain Railway
- UNESCO World Heritage Centre: Evaluation of the Nilgiri Railway (944 bis)
- Google Arts & Culture (Indian Railways Heritage Directorate): The one-of-a-kind Nilgiri Mountain Railway
- IRFCA: Nilgiri Mountain Railway
- IRFCA: History of the Nilgiri railway
- FIBIS Wiki: Nilgiri Mountain Railway
- Tamil Nadu Tourism: The Nilgiri Mountain Railway
Figures are from the sources listed and were checked in November 2026. Park timings and road conditions change, so please confirm before you travel.