scenic-trains
The Demodara Loop: Sri Lanka's railway engineering wonder
The Demodara Loop explained — where to see it, why it exists, and how the train crosses over itself to descend the Ella Gap.
| Where | Demodara station, on the Kandy–Ella railway, 15–20 minutes by tuk-tuk from Ella town |
| Cost | Ella–Demodara short-section train ticket around 30–50 LKR unreserved; tuk-tuk transfer around 400–600 LKR one-way |
| Time needed | 15–20 minutes by train through the loop itself; a half-day if combining the Nine Arch Bridge viewpoint with the Demodara ground viewpoint |
| Getting there | By train (any Kandy–Ella or Ella–Badulla service) or by tuk-tuk from Ella town to the Demodara station viewpoint |
| Best time | Morning (08:00–11:00) for ground photography light; any time of day for the in-train experience |
An engineering problem from 1921
In 1921, British engineers faced an impossible task: extend the Ceylon Government Railway from Demodara station down into the Ella Gap, a descent of roughly 100 metres over a lateral distance that made a direct track line structurally unfeasible. The gradient required was too steep for a conventional railway. The solution they found — a spiral tunnel that loops the track under itself — is one of only a handful of such engineering features in the world.
The result is the Demodara Loop. The train descends through a curved tunnel dug into the hillside, emerges from the far side, crosses the Nine Arch Bridge over the valley, and arrives at Ella station. At the point where the train crosses its own earlier path, you are riding over the tunnel you entered from 180 metres back. The train literally crosses over itself.
This guide explains how the loop works, where to see it, and how to experience it from both inside the train and on the ground.
How the loop works: the geometry
The challenge of rail engineering in steep terrain is gradient. A standard railway locomotive can manage gradients of around 1:80 (a 1.25% grade) in loaded service. Beyond this, wheels slip or braking becomes dangerous on the descent. The Ella Gap descent requires dropping roughly 100 vertical metres over a short horizontal distance.
The spiral solution addresses this by extending the effective track length without extending the lateral distance. The train does not go straight down the hillside — it goes in a loop.
The sequence for a train travelling from Ella toward Badulla (downhill):
- The train departs Ella station heading south and east.
- It crosses the Nine Arch Bridge (91 metres long, 24 metres high) over the valley gorge.
- It enters the Demodara Tunnel, curving sharply to the right inside the hill.
- The tunnel curves 180° and the train emerges heading back north-northwest.
- It crosses a smaller bridge directly over the Nine Arch Bridge approach track it used 2-3 minutes earlier.
- It arrives at Demodara station, now approximately 100 vertical metres lower than when it crossed the Nine Arch Bridge.
From the ground near Demodara station, you can see both the upper track (the approach from Ella crossing the Nine Arch Bridge) and the lower track (the exit from the tunnel) simultaneously. At the right moment, you can watch the same train appear on both levels within seconds of each other — the front carriages on the lower track while the rear carriages are still on the upper bridge.
Where to see it from the ground
Viewpoint 1: the road near Demodara station
The most accessible ground-level viewpoint is the area around Demodara station (not Ella station — Demodara is the next station down the line). Walk approximately 200-400 metres south of Demodara station along the track-side path and look back toward the Nine Arch Bridge. From here, on clear days, you can see the upper approach bridge and the lower exit track simultaneously.
Getting there from Ella: tuk-tuk from Ella town to Demodara station takes approximately 15-20 minutes. The road follows the valley. Cost is typically 400-600 LKR one-way; most drivers know the Demodara Loop viewpoint.
Ella to Demodara tuk-tuk transferViewpoint 2: the hillside path above Ella town
From Ella town’s southern edge, there is a path leading uphill toward the Ella Railway Station direction that, at certain points, gives views across the valley toward the Demodara tunnel entrance and the Nine Arch Bridge. This is a 30-40 minute walk from Ella town centre on rough paths. The view angle is broader but the proximity is less dramatic.
Best for photography: the viewpoint near Demodara station gives the clearest photo of the dual-level track. Use a telephoto lens (100-300mm equivalent) to compress the two track levels together in frame. The Nine Arch Bridge as backdrop with a train on both levels is the target shot.
Viewpoint 3: the Nine Arch Bridge itself
The Nine Arch Bridge (a 5-minute walk from Ella town) is visually part of the Demodara Loop system — the Kandy-bound train crosses it on the approach that feeds into the spiral. Standing on the hill above the Nine Arch Bridge, you see the bridge crossing directly below you, and can understand the geometry: the tracks disappear into the hillside (the tunnel entrance) after crossing the bridge. The loop is invisible from here but the entry point is clear.
See our Nine Arch Bridge guide for optimal train timing and positioning at the bridge itself.
Comparing the three viewpoints
| Viewpoint | Distance from Ella | Effort | Best for |
|---|---|---|---|
| Demodara station | 15–20 min by tuk-tuk | Easy, flat walk from the station | The full dual-level shot — both tracks visible together |
| Hillside path above Ella town | 30–40 min walk | Moderate, rough paths | Photographers who prefer not to arrange transport |
| Nine Arch Bridge | 5 min walk from town | Easy | Understanding the geometry’s entry point and train-spotting on the bridge itself |
For most visitors with limited time, the Nine Arch Bridge alone (walkable, no transport needed) delivers the iconic photo everyone recognizes, while Demodara station is the one worth the extra tuk-tuk trip if you specifically want to understand — and photograph — the spiral itself.
From inside the train
The experience from inside the train during the Demodara Loop passage is disorienting in a wonderful way. Here is what happens second by second:
Crossing the Nine Arch Bridge: you feel the transition to bridge deck — the sound changes as the wheel noise echoes off the stone arches below. Through the left-side windows, the valley drops 24 metres. The bridge crossing takes approximately 20-25 seconds. Through right-side windows, you see the opposite valley wall.
Entering the tunnel: immediately after the Nine Arch Bridge, the train enters the Demodara Tunnel. The carriage goes dark. The curve is sharp — more so than standard rail curves. You feel the train banking slightly and the sound of the wheels becomes louder, reverberating off the tunnel walls.
The emergence: the tunnel exit delivers the key sensation of the loop. As the train emerges from darkness, you are now facing back toward where you came from. Through the right-side windows, for approximately 10-15 seconds, you can see the lower arch structure of the Nine Arch Bridge — the bridge you crossed 2-3 minutes ago is now above you and to the right. This is the confirmation moment: you have just crossed over your own earlier path.
Arriving at Demodara station: the train pulls in to a small station that feels unremarkable given what just occurred in the hill behind it.
The key seat: right-side window (facing toward the front of the train) for the tunnel exit emergence view when travelling Ella → Badulla (downhill). For trains travelling Kandy → Ella (uphill through the loop), the sequence is reversed and the left-side window gives the emergence view.
When to travel for the loop experience
The Demodara Loop is equally impressive in both travel directions, but the experience differs:
Kandy → Ella (uphill through the loop): the train ascends the spiral. You approach Demodara station on the lower track, enter the tunnel, emerge on top of the Nine Arch Bridge, then cross it to arrive at Ella. The duration of the tunnel is slightly longer going uphill due to slower speed.
Ella → Badulla (downhill through the loop): the train crosses the Nine Arch Bridge first, then descends through the spiral. This is the sequence described above. The descent is faster and the emergence from the tunnel is more dramatic due to speed.
Most travellers experience the loop as part of the Kandy-Ella scenic train journey. For the specific purpose of experiencing the loop, the Ella → Demodara portion (you can disembark at Demodara) takes approximately 15-20 minutes and requires only a short-section ticket.
For the full journey rather than just the loop segment, see our complete Kandy to Ella train guide and our breakdown of how to book the Kandy–Ella train — reserved seats sell out well in advance in high season, and unreserved third class is a genuinely viable alternative if you’re flexible about a seat. If you’re deciding which class is worth paying for, our 1st vs 2nd vs 3rd class comparison covers what each actually buys you for the loop segment specifically.
The Pekoe Trail connection
The Pekoe Trail Stage 16 passes through the Demodara area on the descent toward Ella. Trekkers on this stage walk alongside and below the railway alignment, giving a ground-level perspective on the loop’s engineering from the valley floor. If you are walking Stage 16, you can see the tunnel exit portal from below before reaching Ella.
Pekoe Trail Stage 16 Demodara guided tourPhotography guide for the loop
From the train
Camera setting: 1/800s minimum shutter speed for any ground-level movement outside the train. Inside the tunnel, your camera will struggle — increase ISO to 6400+ for the approximately 45 seconds of darkness and don’t attempt precise photography in the tunnel itself. The moment to capture is the 10-15 seconds of tunnel exit where the Nine Arch Bridge appears through the right window.
Best focal length: 24-50mm equivalent. The view through the window limits how wide a scene you can frame; the Nine Arch Bridge at this angle requires no telephoto.
Focus point: pre-focus on a middle-distance point before the tunnel entry so the camera is not hunting when you emerge into daylight. Burst mode for the 10-15 second window.
From the ground
Target scene: a train on both levels simultaneously. This requires knowing the train schedule precisely and positioning at Demodara station 5 minutes before a Kandy-bound service.
Train schedule for ground photography: trains cross the Nine Arch Bridge heading toward Ella at predictable times — check the current Sri Lanka Railways timetable. The train appears on the upper bridge first, then 2-3 minutes later emerges on the lower exit track. If the train length is sufficient (9-12 carriages is standard), the rear carriages are still on the upper bridge while the front carriages emerge below — this is the dual-level shot.
Focal length for ground photography: 100-200mm to compress the two track levels into a single frame. The vertical separation between the upper Nine Arch Bridge track and the lower Demodara exit track is approximately 100 metres; a longer lens compresses this separation and makes the dual-level geometry clear.
The engineering context: how rare is this?
The spiral tunnel technique used at Demodara is an engineering solution developed independently in multiple steep-terrain rail projects worldwide. Famous examples include:
- Brig-Visp-Zermatt Railway, Switzerland: multiple spiral tunnels in the Matterhorn approach
- Canadian Pacific Railway, British Columbia: the Spiral Tunnels at Field, which use an identical loop-under-itself geometry
- Darjeeling Himalayan Railway, India: Z-reversal switchbacks (a related but different solution to the same gradient problem)
The Demodara Loop is distinctive because it combines the spiral tunnel with the Nine Arch Bridge crossing in a single integrated engineering sequence — the bridge is not merely decorative but part of the functional spiral geometry. Without the bridge, the loop cannot work; the bridge height creates the vertical separation that allows the lower exit track to clear the upper approach track.
This integration of bridge and tunnel as a single engineering feature is unusual and accounts for why the Demodara Loop is considered more visually dramatic than comparable spirals elsewhere.
The historical record
Construction of the Badulla extension (including the Demodara Loop) was completed in 1922. The engineering was led by British engineers working under the Ceylon Government Railway, with a workforce of approximately 2,000 laborers recruited from the surrounding hill country.
The Nine Arch Bridge, built immediately before the Demodara Loop section, was constructed using granite blocks quarried from the local hillside. The original bridge design called for steel construction, but World War I-era metal shortages forced the substitution of stone — a substitution that ultimately produced a more visually distinctive structure than the original steel plan would have.
The Demodara Loop remained the eastern terminus of the line’s highest-altitude section until the Badulla extension was completed. Today the full Colombo-Badulla line (328km) runs without major alteration to the 1920s alignment through the Ella section.
Practical information
Station: Demodara station (not Ella) is the station immediately after the loop when travelling from Ella toward Badulla. It is a small, staffed station with no facilities beyond platform and ticket office.
Ticket for short section: a ticket from Ella to Demodara (one stop) is available at Ella station for approximately 30-50 LKR unreserved. This is a viable option if you want to experience the loop without committing to a longer journey.
Return from Demodara to Ella: by tuk-tuk (15-20 minutes, 400-600 LKR) or by waiting for the next train back toward Ella (check timetable — frequency is 3-4 trains per day in each direction). Most visitors take a tuk-tuk return.
Combining with the Nine Arch Bridge: the natural combination is to walk to the Nine Arch Bridge viewpoint in the morning (5 minutes from Ella town), photograph trains crossing, then take a tuk-tuk to Demodara in the afternoon for the loop ground view. This covers both engineering features in a half-day without requiring a train ticket. If you want a fuller morning of it, our best photo spots along the Kandy–Ella train guide sequences several viewpoints beyond just Demodara and the Nine Arch Bridge.
Second-class train Kandy to Ella — experience the loop en route Third-class Kandy to Ella — open-door experience through the loopIf you’d rather build a full day around the railway rather than just the loop, the Pekoe Trail’s introduction and best stages guide covers how Stage 16 (mentioned above) fits into the wider trail, and our Ella Rock sunrise hike is the standard pairing for visitors spending a full day around Ella beyond the train itself.
FAQ
Can I walk through the Demodara Tunnel?
No — the tunnel is an active railway tunnel and walking through it is neither permitted nor safe. Trains pass through with limited clearance on each side. The tunnel is not a pedestrian route.
Is the loop visible from Ella town?
Partially. From elevated points in Ella town (behind the main street, looking south-southwest), you can see the Nine Arch Bridge and the direction of the loop geometry. But the tunnel entrance and the dual-level track simultaneously visible from Demodara station viewpoint are not visible from Ella town itself.
How long does the loop take when you’re on the train?
The Nine Arch Bridge crossing and full Demodara Tunnel passage (from bridge entry to tunnel exit) takes approximately 4-6 minutes total. The arrival at Demodara station is 3-5 minutes after tunnel exit.
Is the Demodara Loop the only one in Sri Lanka?
Yes — there are no other spiral-tunnel features on Sri Lanka’s rail network. The closest structural equivalent is the reversing station at Kandy, where the main line performs a directional reversal, but this is a different engineering solution.
What time of day is best for ground photography at Demodara?
Morning light (08:00-11:00) illuminates the Nine Arch Bridge from the east and gives the best lighting for the upper track level. The Demodara station viewpoint faces roughly northwest, making morning light generally better for the bridge section and afternoon light workable for the lower exit track. Check the train timetable for which trains pass at what times — the 09:00-11:00 window typically has at least two services.