Matterhorn Gotthard Bahn AG (MGB)

Matterhorn Gotthard Bahn AG is a metre-gauge alpine railway. Its operation is a textbook example of how vehicles switch between friction and rack drive.

Also known as: MGB · Matterhorn Gotthard Bahn

SwitzerlandSwitzerlandLocal & regional services8 min read

MGB

commonly used letter code

Metre gauge

network character

Rack

drive type on the steep sections

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
  1. 1.What is the Matterhorn Gotthard Bahn?
  2. 2.The explainer: mixed adhesion and rack operation
  3. 3.Reading vehicle codes
  4. 4.Observing in the mountains
  5. 5.Common mix-ups
  6. 6.Conclusion

Fact file

Business areaRegional and tourist passenger services in the Alps
Legal formAG – a public limited company under Swiss law
Railway typeMetre-gauge railway with adhesion and rack sections
Name formTwo geographic terms, shortened to the letter code MGB
Role in operationsPrivate 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)?

Tick off everything that applies to the train you are looking at right now.

  • 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.

Download Traintrack on the App Store4.8(23 ratings) Get Traintrack on Google Play4.4(35 ratings)

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.

Download Traintrack on the App Store4.8(23 ratings) Get Traintrack on Google Play4.4(35 ratings)

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?

Tick off what applies to you – with four ticks or more you are realistically prepared.

  • 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.

Your alpine railway sightings in one place

Vehicle numbers, stations and dates collected together – and you see what you are still missing.

Download Traintrack on the App Store4.8(23 ratings) Get Traintrack on Google Play4.4(35 ratings)

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.

Download Traintrack on the App Store4.8(23 ratings)Get Traintrack on Google Play4.4(35 ratings)

Vehicles in the rolling stock database

More operators

Who is behind it

Groups, brands, manufacturers and operators – who owns whom and how to recognise them out in the field.

All railway companies →

Where to see Matterhorn Gotthard Bahn AG (MGB)

Spotting locations where this operator can be seen regularly – with viewpoints, light conditions and coordinates.

All spotting locations in Europe →

Related guides from the blog

TT

Traintrack editorial team

The railway operator database is built from operational observation, community sightings and publicly available sources. Service contracts, fleets and owners change all the time – confirmed details are in the fact file, and anything subject to change is marked as such.

← All Swiss railway operators