How a Cogwheel Railway Works: the Gornergrat and Switzerland's Rack Railways
How a cogwheel (rack) railway climbs and brakes on slopes no ordinary train can manage: the Abt, Riggenbach, Strub and Locher systems, how the Gornergrat keeps running in deep snow, and which Swiss cog trains run in winter 2026/27.
A cogwheel railway, also called a rack railway or cog railway, has a toothed rail, the rack, laid between the two ordinary rails. Under the train, one or more powered cogwheels (pinions) mesh with that rack like a bicycle chain on a sprocket. The train pulls itself up by its teeth instead of relying on wheel grip, so it can climb gradients of 20 to 48% and brake safely on the way down. The Gornergrat Bahn above Zermatt is a textbook case: Abt rack the whole way, a maximum gradient of 20%, three-phase electric power since 20 August 1898, and trains every 24 minutes all winter from 28 November 2026.
Check Availability
Below, the engineering comes first in plain English, then how the Gornergrat runs in snow and which Swiss rack railways you can ride in winter 2026/27. Timetable dates come from Gornergrat Bahn’s 2026/27 timetable and the other operators’ own sites, checked on 6 November 2026.
What is a cogwheel railway, in plain English?
A cogwheel railway is a train that climbs with gears instead of grip. A normal train moves because its steel wheels grip steel rails through friction. That works well on the flat, but friction runs out quickly as a slope steepens. A rack railway adds a third, toothed rail in the middle of the track and fits the train with a matching cogwheel, so every turn of the motor pushes the train a fixed distance uphill, slippery rails or not.
The terms are used interchangeably:
- Cogwheel railway / cog railway: common in the US (Pikes Peak, Mount Washington) and in Swiss tourist English.
- Rack railway / rack-and-pinion railway: the engineering term, and the usual British one (Snowdon).
- Zahnradbahn (German) and chemin de fer à crémaillère (French): what you will see on Swiss signs.
Why can’t ordinary trains climb steep mountains?
Steel on steel is slippery. Friction-based (adhesion) railways top out at around 10%, and mainline railways are built far gentler than that: on the Matterhorn Gotthard Bahn’s line from Visp to Zermatt, the adhesion sections stay at about 2.5% and the rack takes over on anything steeper. Rack railways routinely climb 20 to 25%, and the Pilatus Railway near Lucerne reaches 48%, the steepest rack railway in the world.
A 20% gradient means the line rises 20 m for every 100 m travelled horizontally. On the Gornergrat, that is enough to lift you from the valley station in Zermatt (1,604 m) to 3,089 m in 9.3 km of track.
How does a cogwheel railway work, step by step?
- The rack: a toothed steel bar (or a ladder, depending on the system) is bolted to the sleepers midway between the running rails.
- The pinion: a powered cogwheel is mounted on the bogie under the train, with its teeth sitting in the gaps of the rack.
- Climbing: the motor turns the pinion and, because the teeth cannot slip, the train “walks” up the rack. The ordinary wheels carry the weight and keep the train on the track.
- Descending: the same gear engagement holds the train back. On electric lines the motors work as generators; on the Gornergrat they feed power back into the overhead wires.
- Safety braking: rack vehicles carry several independent brakes, and many have automatic brakes that apply if the train goes too fast. On rack-only lines, locomotives are traditionally placed at the downhill end of the train.
Pure rack vs rack-and-adhesion lines
- Pure rack lines (Gornergrat, Pilatus, Rigi, Jungfraubahn) have rack along the whole route, and the cogwheel always does the driving.
- Rack-and-adhesion lines (the Matterhorn Gotthard Bahn, the Brünig line used by the Luzern–Interlaken Express, the Bernese Oberland Railway) run as normal trains on gentle sections and engage the rack only on steep ones. Trains enter the rack through a spring-mounted entry section that eases the pinion teeth into mesh, an idea from Roman Abt, the engineer behind the Abt rack.
How do points (switches) work on a rack railway?
It depends on the rack system, and it is one of the trickiest parts of the engineering. Where the rack sits above the running rails (Abt, Strub), points need moving rack sections as well as moving rails. The Locher rack on Pilatus cannot use conventional points at all, so the line uses transfer tables and rotating track sections instead. On the Gornergrat, around 80% of the points have heating that responds to humidity and temperature, which matters a great deal in winter.
How fast do cogwheel trains go?
Slowly, by design. Rack trains usually run at somewhere between 10 and 30 km/h, depending on gradient and traction. The Gornergrat is at the brisk end: line speed is about 30 km/h uphill, with slower descents, which is why the 9.3 km climb takes about 33 minutes and the trip down about 44. The first Gornergrat trains in 1898 managed little more than a brisk walking pace, at around 7 km/h.
What are the main rack systems? (Marsh, Riggenbach, Abt, Locher, Strub, Von Roll)
Six designs matter for travellers, and you can still ride every one of them. They differ in the shape of the rack and how the pinion grips it.
| System | Inventor and date | How it works | Pros | Cons | Where to ride it |
|---|---|---|---|---|---|
| Marsh | Sylvester Marsh (1860s) | Ladder rack: round rollers between two iron rails | First mountain rack system | Complex points | Mount Washington Cog Railway, USA |
| Riggenbach | Niklaus Riggenbach (Rigi, 1871) | Ladder rack of steel plates joined by rungs | Very hard-wearing | Expensive; complicated points | Rigi, Brünig line, Bernese Oberland Railway, Bavarian Zugspitze Railway |
| Abt | Carl Roman Abt (first used 1885) | Two or three solid bars with offset teeth, so a pinion tooth is always engaged | Cheaper; smooth running; simpler points | Wears faster than Riggenbach | Gornergrat, Matterhorn Gotthard Bahn, Brienz Rothorn, Rochers-de-Naye, Snowdon (UK) |
| Locher | Eduard Locher (Pilatus, 1889) | Horizontal teeth on both sides of a central bar, gripped by two horizontal cogwheels | Cannot ride out of the rack; works at 48% | Standard points impossible | Pilatus only |
| Strub | Emil Strub (1896) | Teeth machined into the head of a flat-bottomed rail; safety jaws grip the underside | Simple to maintain | – | Jungfraubahn |
| Von Roll (Lamella) | Von Roll company (20th century) | A single wide toothed blade, compatible with Riggenbach and Strub pinions | Cheap and robust; standard for most new rack lines | Not compatible with Abt or Locher pinions | Most modern rack lines and renewals |
The very first rack railway was not in the mountains at all. John Blenkinsop’s Middleton Railway in Leeds, England, used a side-mounted rack from 1812, because engineers doubted smooth wheels could grip even on the flat.
How did steam, electricity and three-phase power change rack railways?
Steam made rack railways possible, and electricity made them practical. A steam boiler has to stay roughly level so water covers the firebox, which is why classic rack locomotives have forward-tilted boilers that look lopsided on flat ground. Steam survives today mainly as a heritage ride: Brienz Rothorn, Furka, Mount Washington and Snowdon, all in summer.
What is three-phase electric power, and why does the Gornergrat have two overhead wires?
Three-phase alternating current needs three conductors. On the Gornergrat, two are overhead wires and the third is the rail itself, which is why Gornergrat trains carry two pantographs side by side. The line chose 725-volt three-phase current in 1898 and has kept it ever since.
The pioneers liked it for three reasons. Three-phase induction motors are simple and rugged, they deliver steady power at a near-constant speed (ideal for a slow, even climb), and, on a mountain, they generate electricity when braking downhill. The Gornergrat has done this since its first trip: according to the operator, three downhill trains produce enough electricity for one or two uphill trains.
Which railways still use three-phase power?
Only four remain in the world, and all are rack railways:
| Railway | Country | Notes |
|---|---|---|
| Gornergrat Bahn | Switzerland | 725 V, 50 Hz; Abt rack; opened 1898; highest open-air railway in Europe |
| Jungfraubahn | Switzerland | Strub rack; reached the Jungfraujoch in 1912; Europe’s highest railway station (3,454 m) |
| Corcovado Rack Railway | Brazil | Rio de Janeiro; electrified in 1910 |
| Petit train de la Rhune | France | Basque Country, on the Spanish border |
Most modern rack trains, including those of the Matterhorn Gotthard Bahn and the Rigi, use a single overhead wire, with on-board electronics converting the power for modern motors.
How does the Gornergrat cogwheel railway work?
It is a pure Abt rack railway, electrically driven, climbing 9.3 km from Zermatt to 3,089 m at up to 20%. Every metre of track carries rack, the cogwheels drive and brake the train the whole way, and the motors return power to the grid on the way down.
Gornergrat technical specifications
| Spec | Figure | Note |
|---|---|---|
| Opened | 20 August 1898 | Operator |
| Status at opening | First electric rack railway in Switzerland; third in the world | Operator wording |
| Length | 9.3 km (9,339 m) | Operator |
| Double track | About 3.8 km | |
| Vertical gain | 1,484 m, from the valley station (1,604 m) to the summit (3,089 m) | Published figures vary by a metre or two |
| Summit station | 3,089 m, the highest open-air railway station in Europe | |
| Gauge | Metre gauge | |
| Rack system | Abt, throughout (pure rack line) | |
| Maximum gradient | 20% | |
| Power supply | 725 V, 50 Hz three-phase AC; two overhead wires plus the rail | |
| Braking | Regenerative (since 1898), plus mechanical and rack brakes | |
| Line speed | About 30 km/h uphill, slower downhill | |
| Journey time | About 33 min up, 44 min down | Timetable |
| Capacity | About 2,500 passengers per hour | Zermatt Tourism |
| Newest trains | Stadler “Polaris” trains (from 2022/23), styled by Pininfarina; more units on order for delivery from 2028 | Operator / Stadler |
| Winter operation | Lower section from 1929; winter trains to Riffelberg from 1940/41 | Operator history |
A short history of the Gornergrat Bahn
- 1896–1898: two years of construction; the first train reaches the original summit station on 20 August 1898.
- 1909: a new summit station opens about 71 m higher than the original, today’s 3,089 m terminus.
- 1929–1941: winter operation begins on the lower section; an avalanche gallery between Riffelboden and Riffelberg was approved in 1938, and winter trains reached Riffelberg in 1940/41.
- Late 20th and early 21st centuries: successive generations of railcars raise speed and capacity.
- 2022–2023: the Pininfarina-styled “Polaris” trains arrive, with further units ordered since.
How does a cogwheel railway run in snow?
The rack helps, because teeth do not slip on ice the way wheels do. Snow packed into the rack and the points still has to come out, by machine and by hand.
How the Gornergrat clears snow
According to the operator:
- The summit is under snow for around eight months a year, and the snow team carries out around 90 clearance operations a season.
- In the record winter of 2017/18, almost 13 m of new snow fell and the snow-blower worked on more than 90 days.
- That winter showed the limits of the old 1970s snow-blower, so a new snow-clearing vehicle entered service in 2023. It is electrically powered, pushed by a railcar, and can move around 3,000 tonnes of snow an hour across a 3.6 m width.
- Machines cannot do everything. A small crew rides along and splits into pairs at Riffelberg, Rotenboden and Gornergrat to dig ice and snow out of the points and rack with pickaxes and shovels.
- In heavy snowfall, the first track can be buried again by the time both are clear.
Heated points, a warm tunnel and avalanche galleries
- Most of the points have heating that responds to humidity and temperature, which stops switches freezing and uses much less electricity than older systems.
- Overnight, the trains stand in a tunnel depot that stays at a mild, constant temperature all year, so they shed their snow without extra heating.
- Winter running needed avalanche protection: galleries were built from the late 1930s so trains could run safely through the season.
Why does the train run when cable cars stop for wind?
A train sitting on rails and gripping a rack does not swing on a cable. Aerial cableways have wind limits and close in storms, while a rack railway can usually keep running in strong wind and falling snow, subject to avalanche risk and track clearance. That makes the Gornergrat one of Zermatt’s more dependable winter outings. It still closes for safety in extreme conditions, so check the live status on the morning you travel. See our Gornergrat train timetable and Gornergrat vs Matterhorn Glacier Paradise.
What does riding a cogwheel train feel like?
Steady, quiet and smoother than most people expect. Modern electric rack trains do not clank: you hear a low electric hum, a faint whine from the gears and the occasional clunk over points. The floor tilts noticeably on the steepest stretches, and the slow pace gives you time to photograph the Matterhorn.
Passenger tips for the Gornergrat:
- Sit on the right going up for the Matterhorn views.
- Look for the two pantographs on the roof, the giveaway of the three-phase system.
- Look down at Riffelberg or Rotenboden in winter: you may see crews with shovels clearing the rack.
- Notice the descent: your train is generating electricity for the trains climbing past you.
If you want a fixed date booked ahead, the From Zermatt: Cogwheel Train Ticket to Mount Gornergrat (from about $258, 4.4/5 from 39 reviews) gives you a dated return with free cancellation; it costs more than the operator’s own fare, which you can also buy at the station.
Rack railway vs funicular vs cable car: what’s the difference?
A rack railway drives itself up a toothed rail, a funicular is hauled up by a cable, and a cable car hangs from one.
| Rack (cogwheel) railway | Funicular | Aerial cable car / gondola | |
|---|---|---|---|
| How it moves | A motor on the train turns a pinion that meshes with a rack | Two counterbalanced cars on rails, pulled by a cable from a winding house | Cabins hang from cables and are pulled by them |
| Typical gradient | Up to about 25%; 48% at Pilatus | Much steeper possible: Stoos reaches 110% | Not limited by gradient |
| Length | Long routes possible (Wengernalpbahn about 19 km) | Usually short | Spans valleys and cliffs |
| Wind | Generally unaffected | Generally unaffected (often in tunnels) | Closes in high wind |
| Intermediate stops | Many (the Gornergrat has four on the way up) | Few or none | Usually few |
| Swiss example | Gornergrat, Pilatus, Rigi, Jungfraubahn | Stoos (world’s steepest, 110%); Sunnegga, Zermatt | Matterhorn Glacier Paradise, Zermatt (cable car ticket, 4.8/5 from 1,331 reviews) |
Two common mix-ups:
- Stoos is not a cog railway. The Stoosbahn, opened in December 2017, is a cable-hauled funicular with rotating barrel-shaped cabins that keep passengers level on gradients of up to 110%. Pilatus, at 48%, is still the world’s steepest rack railway.
- Zermatt’s Sunnegga Express is a funicular too, an underground one that climbs to Sunnegga in a few minutes.
Cogwheel railway records: firsts, steepest, highest and longest
| Record | Railway | Key figure | Runs in winter? |
|---|---|---|---|
| First rack railway of any kind | Middleton Railway, Leeds, UK | Blenkinsop rack, 1812 | Heritage line with seasonal running days |
| World’s first mountain cog railway | Mount Washington Cog Railway, USA | Summit reached 1869; Marsh rack | Partly (to a mid-mountain station) |
| Europe’s first mountain railway | Vitznau–Rigi, Switzerland | Opened May 1871; Riggenbach | Yes, all year |
| Steepest rack railway | Pilatus, Switzerland | 48% maximum; Locher | No, closed from 30 November 2026 until spring |
| Highest cog railway in the world | Pikes Peak, Colorado, USA | About 4,300 m; reopened 2021 | Most of the year, weather permitting |
| Highest railway station in Europe | Jungfraubahn, Switzerland | Jungfraujoch, 3,454 m; Strub | Yes, every day of the year |
| Highest open-air railway in Europe | Gornergrat Bahn, Switzerland | 3,089 m; Abt; 20% maximum | Yes, every 24 minutes from 28 November 2026 |
| Longest continuous rack railway | Wengernalpbahn, Switzerland | About 19 km | Yes (with autumn maintenance closures) |
| UK’s only public rack railway | Snowdon Mountain Railway, Wales | About 7.6 km; Abt; opened 1896 | No, closed in winter |
Some American sources call Pikes Peak the world’s longest cog railway; by continuous rack length, the Wengernalpbahn is longer.
Where can you ride a cogwheel train in Switzerland in winter 2026/27?
The Gornergrat, Jungfraubahn, Wengernalpbahn, Rigi, Rochers-de-Naye, the Matterhorn Gotthard Bahn and the Brünig line all run this winter. Pilatus, Brienz Rothorn, Schynige Platte and the Furka steam railway do not. For the scenic routes ranked side by side, see the best Swiss Alps train rides in winter.
| Railway | Rack system | Max gradient | Winter 2026/27 status | Good to know |
|---|---|---|---|---|
| Gornergrat Bahn (Zermatt) | Abt | 20% | Open: every 24 min from 08:24, 28 Nov 2026 to 29 Mar 2027 | Closed 2–14 Nov 2026 for works; every 48 min from 15 to 27 Nov |
| Jungfraubahn | Strub | 25% | Open every day | The access lines have autumn maintenance closures |
| Wengernalpbahn | Riggenbach-type | 25% | Open | Check autumn maintenance closures before early December |
| Rigi (Vitznau and Arth-Goldau) | Riggenbach | About 25% | Open all year | Free with the Swiss Travel Pass |
| Rochers-de-Naye (Montreux) | Abt | About 22% | Open | Check the winter timetable for quieter weekdays |
| Matterhorn Gotthard Bahn (Visp–Zermatt, Oberalp), including the Glacier Express | Abt | About 12.5% between Visp and Zermatt | Open | Your train to Zermatt is itself a rack railway |
| Brünig line (Luzern–Interlaken Express) | Riggenbach | About 12% | Open | Hourly |
| Pilatus | Locher | 48% | Closed after 29 Nov 2026 until spring 2027 | The cable cars from Kriens run in winter |
| Brienz Rothorn | Abt (steam) | 25% | Closed | Summer only |
| Schynige Platte | Riggenbach | 25% | Closed | Summer only |
| Furka Cogwheel Steam Railway | Abt | About 12% | Closed | Summer only |
Our pick for winter is the Gornergrat. It is the only one that combines a pure rack line, the rare three-phase system, Europe’s highest open-air summit station, a Matterhorn view and a one-minute walk from Zermatt station. Add the rack sections of the train to the Matterhorn from Visp and you have ridden two rack railways in a day.
Want a second rack railway on the same trip? From Interlaken, the From Interlaken: Guided Tour to Jungfraujoch - Top of Europe (from about $318, 4.8/5 from 1,903 reviews) includes the Eiger Express and the Jungfraubahn up to 3,454 m. From Lucerne, the From Lucerne: Classic Rigi Round Trip (from about $168, 4.6/5 from 418 reviews) combines the lake boat to Vitznau, the Riggenbach cogwheel railway to Rigi Kulm and the cable car down to Weggis; Swiss Travel Pass holders can ride the same route on their pass. The Glacier Express from Zermatt to St. Moritz runs its winter timetable from 5 December 2026 to 7 May 2027; reserve seats with the operator, because no GetYourGuide or Viator listing covers the full route.
How much does a cogwheel train ticket cost?
Mountain rack railways are priced at a premium in Switzerland, and passes cut the cost sharply. The Gornergrat is one of the pricier summit trips in the Alps, though winter fares are lower than summer ones: the operator’s adult return is CHF 102 from November 2026 to April 2027, against CHF 132 in summer. The Swiss Travel Pass and the Half Fare Card halve it, and Zermatt ski passes include it for skiers. For current fares and how the passes apply, see Gornergrat tickets and prices and Swiss Travel Pass vs Half Fare Card for Zermatt.
Frequently asked questions
How does a cog railway climb so steeply?
A powered cogwheel under the train meshes with a toothed rack between the rails, so the train climbs by gear engagement instead of wheel friction. That allows gradients of 20 to 48%, against around 10% at most for ordinary railways.
What is the steepest cog railway in the world?
The Pilatus Railway near Lucerne, with a maximum gradient of 48%, using its own Locher rack system. It runs from spring to late November only.
Is the Stoos railway a cog railway?
No. The Stoosbahn (110%, opened December 2017) is a funicular hauled by a cable, and the steepest funicular in the world.
What rack system does the Gornergrat use?
The Abt system throughout: two toothed bars with offset teeth, so a cogwheel tooth is always engaged. The line is metre gauge, with a maximum gradient of 20%.
Why does the Gornergrat train have two pantographs?
It runs on three-phase alternating current. Two phases come from the two overhead wires and the third from the rails, so the train needs two current collectors. Only four railways in the world still use the system.
Does the Gornergrat railway generate its own electricity?
Partly. Its motors act as generators on the way down: according to the operator, three downhill trains produce enough electricity for one or two uphill trains.
Does the cogwheel train to Gornergrat run in winter?
Yes. In winter 2026/27, trains run every 24 minutes from 08:24 between 28 November 2026 and 29 March 2027. The line is closed from 2 to 14 November 2026 for works and runs every 48 minutes from 15 to 27 November.
What happens to a cog railway when it snows?
Snow-blowers clear the track, heated points stop the switches freezing, and crews dig ice out of the rack and points by hand. The Gornergrat’s 2023 snow-clearing vehicle can move around 3,000 tonnes of snow an hour.
Is a cogwheel train the same as a funicular?
No. A cogwheel train drives itself with a motor and a pinion on a toothed rail; a funicular has no engine on board and is pulled by a cable.
What was the first cog railway in the world?
The Middleton Railway in Leeds used a rack in 1812, but the first mountain cog railway was the Mount Washington Cog Railway in New Hampshire, which reached the summit in 1869. Europe’s first mountain railway was Vitznau–Rigi, opened in May 1871.
Is the train from Zermatt to the Matterhorn a cog railway?
No train goes up the Matterhorn itself, but the Gornergrat cog railway is the classic train ride with Matterhorn views. The Matterhorn Gotthard Bahn line from Visp to Zermatt also uses rack sections. See train to the Matterhorn.
Can I use the Swiss Travel Pass on cogwheel trains?
Many Swiss rack lines are included or discounted. Rigi is free with the Swiss Travel Pass (4.8/5 from 2,192 reviews on GetYourGuide); on the Gornergrat, pass holders get 50% off instead of free travel. See Swiss Travel Pass vs Half Fare Card for Zermatt.
The bottom line
A cogwheel railway is a simple idea, teeth instead of grip, and it opened up Swiss summits from the Rigi to the Jungfraujoch. To see it working hardest, ride the Gornergrat in winter, when a snow-blower, heated points and a three-phase system from 1898 keep trains climbing towards the Matterhorn every 24 minutes. Check the live line status on the morning you go, because storms and avalanche risk can still close the top section.
Read next: Gornergrat in winter · Gornergrat train timetable · Gornergrat vs Matterhorn Glacier Paradise · Best Swiss Alps train rides in winter · Snow trains in Switzerland
Ride to 3,089 m Above Zermatt
Round-trip cogwheel train ticket, stopovers at Riffelberg and Rotenboden included, and free cancellation up to 24 hours before you travel.
Check Availability & Book