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.

Updated November 2026

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

Pоwered by GetYourGuide

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.

Other Experiences

Other experiences you might enjoy

Ride a rack railway yourself: the Gornergrat cogwheel train above Zermatt, the Matterhorn Glacier Paradise cable car for comparison, Swiss rail passes and day trips to the Matterhorn.

How does a cogwheel railway work, step by step?

  1. The rack: a toothed steel bar (or a ladder, depending on the system) is bolted to the sleepers midway between the running rails.
  2. The pinion: a powered cogwheel is mounted on the bogie under the train, with its teeth sitting in the gaps of the rack.
  3. 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.
  4. 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.
  5. 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.

SystemInventor and dateHow it worksProsConsWhere to ride it
MarshSylvester Marsh (1860s)Ladder rack: round rollers between two iron railsFirst mountain rack systemComplex pointsMount Washington Cog Railway, USA
RiggenbachNiklaus Riggenbach (Rigi, 1871)Ladder rack of steel plates joined by rungsVery hard-wearingExpensive; complicated pointsRigi, Brünig line, Bernese Oberland Railway, Bavarian Zugspitze Railway
AbtCarl Roman Abt (first used 1885)Two or three solid bars with offset teeth, so a pinion tooth is always engagedCheaper; smooth running; simpler pointsWears faster than RiggenbachGornergrat, Matterhorn Gotthard Bahn, Brienz Rothorn, Rochers-de-Naye, Snowdon (UK)
LocherEduard Locher (Pilatus, 1889)Horizontal teeth on both sides of a central bar, gripped by two horizontal cogwheelsCannot ride out of the rack; works at 48%Standard points impossiblePilatus only
StrubEmil Strub (1896)Teeth machined into the head of a flat-bottomed rail; safety jaws grip the undersideSimple to maintain–Jungfraubahn
Von Roll (Lamella)Von Roll company (20th century)A single wide toothed blade, compatible with Riggenbach and Strub pinionsCheap and robust; standard for most new rack linesNot compatible with Abt or Locher pinionsMost 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:

RailwayCountryNotes
Gornergrat BahnSwitzerland725 V, 50 Hz; Abt rack; opened 1898; highest open-air railway in Europe
JungfraubahnSwitzerlandStrub rack; reached the Jungfraujoch in 1912; Europe’s highest railway station (3,454 m)
Corcovado Rack RailwayBrazilRio de Janeiro; electrified in 1910
Petit train de la RhuneFranceBasque 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

SpecFigureNote
Opened20 August 1898Operator
Status at openingFirst electric rack railway in Switzerland; third in the worldOperator wording
Length9.3 km (9,339 m)Operator
Double trackAbout 3.8 km
Vertical gain1,484 m, from the valley station (1,604 m) to the summit (3,089 m)Published figures vary by a metre or two
Summit station3,089 m, the highest open-air railway station in Europe
GaugeMetre gauge
Rack systemAbt, throughout (pure rack line)
Maximum gradient20%
Power supply725 V, 50 Hz three-phase AC; two overhead wires plus the rail
BrakingRegenerative (since 1898), plus mechanical and rack brakes
Line speedAbout 30 km/h uphill, slower downhill
Journey timeAbout 33 min up, 44 min downTimetable
CapacityAbout 2,500 passengers per hourZermatt Tourism
Newest trainsStadler “Polaris” trains (from 2022/23), styled by Pininfarina; more units on order for delivery from 2028Operator / Stadler
Winter operationLower section from 1929; winter trains to Riffelberg from 1940/41Operator 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) railwayFunicularAerial cable car / gondola
How it movesA motor on the train turns a pinion that meshes with a rackTwo counterbalanced cars on rails, pulled by a cable from a winding houseCabins hang from cables and are pulled by them
Typical gradientUp to about 25%; 48% at PilatusMuch steeper possible: Stoos reaches 110%Not limited by gradient
LengthLong routes possible (Wengernalpbahn about 19 km)Usually shortSpans valleys and cliffs
WindGenerally unaffectedGenerally unaffected (often in tunnels)Closes in high wind
Intermediate stopsMany (the Gornergrat has four on the way up)Few or noneUsually few
Swiss exampleGornergrat, Pilatus, Rigi, JungfraubahnStoos (world’s steepest, 110%); Sunnegga, ZermattMatterhorn 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

RecordRailwayKey figureRuns in winter?
First rack railway of any kindMiddleton Railway, Leeds, UKBlenkinsop rack, 1812Heritage line with seasonal running days
World’s first mountain cog railwayMount Washington Cog Railway, USASummit reached 1869; Marsh rackPartly (to a mid-mountain station)
Europe’s first mountain railwayVitznau–Rigi, SwitzerlandOpened May 1871; RiggenbachYes, all year
Steepest rack railwayPilatus, Switzerland48% maximum; LocherNo, closed from 30 November 2026 until spring
Highest cog railway in the worldPikes Peak, Colorado, USAAbout 4,300 m; reopened 2021Most of the year, weather permitting
Highest railway station in EuropeJungfraubahn, SwitzerlandJungfraujoch, 3,454 m; StrubYes, every day of the year
Highest open-air railway in EuropeGornergrat Bahn, Switzerland3,089 m; Abt; 20% maximumYes, every 24 minutes from 28 November 2026
Longest continuous rack railwayWengernalpbahn, SwitzerlandAbout 19 kmYes (with autumn maintenance closures)
UK’s only public rack railwaySnowdon Mountain Railway, WalesAbout 7.6 km; Abt; opened 1896No, 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.

RailwayRack systemMax gradientWinter 2026/27 statusGood to know
Gornergrat Bahn (Zermatt)Abt20%Open: every 24 min from 08:24, 28 Nov 2026 to 29 Mar 2027Closed 2–14 Nov 2026 for works; every 48 min from 15 to 27 Nov
JungfraubahnStrub25%Open every dayThe access lines have autumn maintenance closures
WengernalpbahnRiggenbach-type25%OpenCheck autumn maintenance closures before early December
Rigi (Vitznau and Arth-Goldau)RiggenbachAbout 25%Open all yearFree with the Swiss Travel Pass
Rochers-de-Naye (Montreux)AbtAbout 22%OpenCheck the winter timetable for quieter weekdays
Matterhorn Gotthard Bahn (Visp–Zermatt, Oberalp), including the Glacier ExpressAbtAbout 12.5% between Visp and ZermattOpenYour train to Zermatt is itself a rack railway
Brünig line (Luzern–Interlaken Express)RiggenbachAbout 12%OpenHourly
PilatusLocher48%Closed after 29 Nov 2026 until spring 2027The cable cars from Kriens run in winter
Brienz RothornAbt (steam)25%ClosedSummer only
Schynige PlatteRiggenbach25%ClosedSummer only
Furka Cogwheel Steam RailwayAbtAbout 12%ClosedSummer 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