Key takeaways
- The MGB is a metre-gauge railway in the Alps with passenger services as its business area.
- Mixed operation means: where friction is enough, the train runs by adhesion, otherwise the rack takes over.
- Vehicles need two separate drive systems for this – plus additional brakes for the rack sections.
- The entry point into the rack is its own piece of engineering and can be spotted in the track.
- Alpine hazards are real: rockfall, avalanches and sudden weather changes away from marked paths.
Contents
Fact file
| Business area | Regional and tourist passenger services in the Alps |
|---|---|
| Legal form | AG – a public limited company under Swiss law |
| Railway type | Metre-gauge railway with adhesion and rack sections |
| Name form | Two geographic terms, shortened to the letter code MGB |
| Role in operations | Private railway AG – with this type of railway, services and infrastructure are often combined in one company |
How to recognise this operator
Is this really Matterhorn Gotthard Bahn AG (MGB)?
- Metre-gauge dimensions – noticeably narrower and shorter vehicles than on the standard-gauge network
- Vehicle codes with a lower-case h for rack drive, such as ABeh or HGe
- On steep sections a rack rail sits in the middle of the track
- Markedly different speeds depending on the section of line
- Passenger operations with a high proportion of window area – the view is part of the product
- On Swiss-registered vehicles the data panel begins with CH-
Updated: August 2026 – The train moves briskly through the valley, then becomes noticeably slower, a short jolt runs through the carriages – and from here it climbs. Matterhorn Gotthard Bahn AG operates one of the alpine railways where this change is an everyday occurrence. This page explains what happens technically, why vehicles need two drive systems for it, and how to recognise such railways in the field.
Spotted an alpine railway? Log it straight away.
Vehicle number, station and date in one sighting – captured in seconds with Traintrack.
What is the Matterhorn Gotthard Bahn?
Matterhorn Gotthard Bahn AG is a Swiss public limited company that operates a metre-gauge railway in the Alps. Its business area is passenger transport – regional for people living along the line, touristic for travellers for whom the journey itself is the destination.
The company name places two geographic terms side by side and is almost always shortened in everyday use to the code MGB. It therefore follows neither the classic place-name-chain pattern of the Lugano–Ponte Tresa railway nor the pure destination name of the Gornergrat Bahn, but instead spans a geographic arc.
Metre gauge is the norm here
In the Swiss Alps, metre gauge is not a special-purpose alternative but the usual system. Tight curves, smaller structures and lower construction costs make it superior in the mountains. The result is a self-contained fleet of vehicles that is not interchangeable with standard-gauge stock – not even within Switzerland.
The explainer: mixed adhesion and rack operation
Most alpine railways are not pure rack railways. They run by friction wherever friction is enough, and only engage the rack rail on the steep sections. This mixed operation is the norm in the mountains – and technically more demanding than either pure form on its own.
The reason lies in the vehicle. A vehicle for mixed operation needs two power transmission paths: the adhesion drive via the driving wheels, and the rack drive via a separate driving cog wheel. Both have to serve very different gear ratios, because the operating speeds are far apart. On top of that come additional, independently acting brakes for the rack section, because the real danger does not lie uphill but downhill.
| Aspect | Adhesion section | Rack section |
|---|---|---|
| Power transmission | friction between wheel and rail | positive engagement via cog wheel and rack |
| Speed | comparatively high | markedly reduced, especially downhill |
| Brakes | standard operating brakes | additional, independently acting brakes |
| Train load | depends on friction coefficient, weather-sensitive | determined by the tooth engagement, less weather-dependent |
| Recognisable by | smooth track | third, toothed rail in the middle of the track |
The transition between the two modes of operation is a piece of engineering in its own right. At the start of the rack section sits an entry device: the first few metres of rack are mounted so they can move and are spring-loaded. As the cog wheel enters and tooth meets tooth, the rack briefly gives way until the engagement settles in. Entry therefore happens slowly and is felt in the carriage as a short jolt. In the track you can spot the point by its different construction.
Operationally this has consequences that reach far beyond the steep section: the rack line dictates how heavy a train may be overall and how long the whole journey takes. A timetable in the mountains is therefore never even – it consists of fast stretches and very slow ones.
Vehicles such as the ABeh 8/12 and the ABDeh 4/8 are built for exactly this dual task, as is the rack electric locomotive HGe 4/4.
Capture rare mountain railway vehicles
Small series, few numbers – log which vehicles you have already caught.
Reading vehicle codes
Swiss vehicle designations look cryptic at first but follow a clear logic of letters and an axle fraction. For alpine operation, three building blocks are enough: capital letters on coaches and railcars name the class of accommodation, lower-case letters name the technology – e for electric, h for rack –, and the fraction states powered axles against total axles.
A code such as ABeh 8/12 reads as an electric rack vehicle with compartments of two accommodation classes and eight powered axles out of twelve. The full designation system, including the speed classes used for locomotives, is set out in more detail on the Swiss Federal Railways page.
Check the track
Is there a toothed rail in the middle of the track? Then you are in a rack section – or right at its start.
Note the vehicle code
The lower-case h reveals rack drive, the lower-case e electric drive. The fraction states the axle ratio.
Record the vehicle number
Only the full number makes the sighting unambiguous. Its structure is explained in the guide to the UIC number.
Note the section
Record whether you saw the vehicle in the adhesion or in the rack section. That makes the sighting significantly more informative for others.
Observing in the mountains
Alpine railways are photographically rewarding and logistically demanding. The sun is only favourably placed in narrow valleys for a short time, the weather can turn quickly, and the last train down is a hard deadline.
If you want to practise these conditions on comparable metre-gauge lines, you will find them in the Grisons. The Albula line near Bergün shows the same building philosophy in spiral tunnels and viaducts, just without a rack. At the Landwasser Viaduct near Filisur the best-known motif of this style of construction is added. And in Tirano on the Bernina line a metre-gauge line ends that crosses the main Alpine ridge entirely without a rack – the direct counterpart to mixed operation. This Grisons metre-gauge network is operated by the Rhaetian Railway. How the line was once laid through the mountains is shown by the Albula Railway Museum in Bergün.
Are you ready for an alpine railway trip?
- I stay on marked paths and at official stations.
- I have checked the weather for the altitude, not just for the valley.
- I know the time of the last train down.
- I have warm clothing with me, even in summer.
- I have checked when the sun reaches the valley floor.
- My battery is protected from the cold and I have a spare.
For the photography side, the tips on winter railway photography are worthwhile, because snow fools every exposure automatic. Anyone who wants to know how to systematically identify companies will find the way in the guide Who actually runs it? Recognising railway operators.
Take alpine hazards seriously
Away from marked paths there is a risk of rockfall, avalanches, sheer drops and sudden changes in weather. Railway installations, track areas and tunnel portals are off limits; you only board mountain railways at official stations. Where something is closed off, there is a reason – barriers are not to be bypassed.
Common mix-ups
- Rack railway meaning rack everywhere – in mixed operation it only lies on the steep sections.
- Slow running meaning a fault – in the rack section low speed is the normal case.
- Metre gauge meaning branch line – in the Alps it is the standard system for main services.
- Code meaning vehicle type – ABeh describes class and technology, not a particular production series.
- Mountain railway meaning heritage railway – here regular services run to a timetable, not a heritage operation like a museum society.
Conclusion
The Matterhorn Gotthard Bahn stands for the most technically demanding form of operation in the Swiss railway landscape: metre gauge in the high mountains with the switch between friction and rack. Once you have understood this switch, you read alpine railways differently – and you know why a timetable in the mountains never looks even.
In short
Mixed operation means: run fast where you can, and climb rack-secured where you must. The lower-case h in the vehicle code is the most reliable way to spot it.
Summary
- A metre-gauge alpine railway with sections run under adhesion and under rack operation.
- Vehicles carry the lower-case h in their code and master both drive types.
- The rack sections limit the speed and train load of the entire journey.
- Timetables and vehicle rosters change with the season – note down what you actually saw.
Frequently asked questions
What is the Matterhorn Gotthard Bahn?
A Swiss public limited company that operates a metre-gauge railway in the Alps. Its business area is passenger transport, both regional and touristic. The company name combines two geographic terms and is shortened in everyday use to the code MGB.
What does mixed adhesion and rack operation mean?
The line alternates between two drive principles. Where the gradient is moderate, the train runs like any ordinary railway on friction between wheel and rail. Where it gets too steep, a cog wheel engages a rack rail and transmits power positively – both uphill and downhill.
How does a vehicle switch between the two modes of operation?
At an entry device: the start of the rack is mounted so it can move and is spring-loaded, so the cog wheel meshes cleanly even if tooth were to meet tooth exactly. Entry happens at greatly reduced speed; inside the vehicle it is felt as a brief jolt.
Why are rack sections so slow?
Because the meshing of the teeth places a mechanical load on the system, and because braking on the way down is the real challenge. Rack sections require additional, independently acting brakes, and the permitted downhill speed is well below that on adhesion sections. Safety comes before journey time here.
What do codes like ABeh 8/12 or HGe 4/4 mean?
In the Swiss designation scheme, capital letters on coaches and railcars denote the class of accommodation, while lower-case letters denote technical features: e for electric, h for rack. The fraction states powered axles against total axles. The full system is described in detail on its own page.
Can an MGB vehicle run on other rack railways?
Generally not. Gauge, rack system, tooth pitch and overhead line voltage all have to match. Rack vehicles are therefore procured specifically for one line and are effectively tied to their network. That is one reason why mountain railway fleets consist of small, highly individual series.
When is a visit worthwhile for photography?
That depends heavily on the season and the weather. In winter there are hard contrasts and lots of snow; in summer the light in narrow valleys is only usable for a few hours. Check the altitude separately from the valley – and always plan a way back, not just the way there.
What safety rules apply in the mountains?
Railway installations, tunnel portals and track areas are off limits. You only board mountain railways at official stations. Away from marked paths there is a risk of rockfall, avalanches and sheer drops, plus very rapid changes in weather. Barriers and closures point to real hazards and are not a formality.
Log a sighting of Matterhorn Gotthard Bahn AG (MGB)
Vehicle, location and date logged in seconds – and visible to the community.
Vehicles in the rolling stock database
MGB ABeh 8/12 (Orion)
ABeh 8/12 means: first and second class, electric, rack drive, eight of twelve axles powered. Here's how to read the designation of the Stadler-built Orion.
ClassMGB ABDeh 4/8 (Komet)
ABDeh 4/8 means: first and second class, luggage compartment, rack drive, electric, four of eight axles powered. Here's how to read the Komet's designation.
ClassHGe 4/4
The HGe 4/4 is an electric rack locomotive for Swiss metre-gauge railways. This page decodes the designation and shows what to look for in the field.
More operators
Gornergrat Bahn AG
Gornergrat Bahn AG is a narrow-gauge rack railway high in the mountains. This page explains how the different rack rail designs differ and how to reliably recognise rack-driven vehicles.
Local & regionalZentralbahn AG
Zentralbahn AG stands for rail services in the heart of Switzerland. Its most exciting feature for observers is mixed operation: vehicles that handle both adhesion and rack sections on the same run.
Local & regionalRhätische Bahn AG (RhB)
The Rhätische Bahn is Europe's best-known narrow-gauge railway. Its most striking feature isn't the vehicle but the route: spiral tunnels, viaducts and avalanche galleries.
Local & regionalRegionalverkehr Bern-Solothurn (RBS)
Regionalverkehr Bern-Solothurn (RBS) connects two cantons. That alone makes it a case study in how strongly cantonal borders shape Swiss local rail services.
Local & regionalSOB Südostbahn AG
SOB Südostbahn AG operates rail services in eastern Switzerland. To understand its network, you need to know how cantonal borders structure Swiss regional traffic.
Local & regionalThurbo AG
Thurbo AG runs regional passenger rail services. Its made-up name is a textbook case of how regional companies present themselves in rail operations – and why the data panel matters more than the lettering.
Who is behind it
Groups, brands, manufacturers and operators – who owns whom and how to recognise them out in the field.
Bahnmuseum Albula
The Bahnmuseum Albula in Bergün is an exception among heritage railways: it owns no line of its own and runs no trains of its own. The attraction is outside – the metre-gauge Albula line of the Rhaetian Railway runs past the building to a regular timetable, UNESCO World Heritage status included.
GroupRhätische Bahn (RhB)
The Rhaetian Railway is one of the few railways in Europe where network, operations and brand sit in a single hand. It combines several originally independent lines, runs on metre gauge with no rack, and operates two completely different electrification systems on the same network.
Where to see Matterhorn Gotthard Bahn AG (MGB)
Spotting locations where this operator can be seen regularly – with viewpoints, light conditions and coordinates.
Albula line near Bergün
Between Bergün and Preda, the metre-gauge Albula line climbs over 400 metres – with spiral tunnels, loops and viaducts packed into a tight space. A railway trail runs right through the middle, and in winter the closed pass road becomes a sledging run.
Photo spotLandwasser Viaduct near Filisur
A curved limestone viaduct that leads, without warning, into a rock tunnel 65 metres up: the Landwasser Viaduct on the Rhaetian Railway is Switzerland's best-known railway subject. An official platform makes it one of the few Alpine subjects that even beginners can get right.
Narrow gaugeTirano and the Bernina Railway
Two stations stand side by side in Tirano: the Italian standard-gauge station and the terminus of the Swiss Bernina Railway. Between them the metre-gauge line runs street-level through town – no rack system, but full UNESCO World Heritage status.
Related guides from the blog




