Chronology · Industrials · Machinery
The history of the railway locomotive
In 1804 a locomotive hauled ten tons of iron nine and a half miles and cracked the road beneath it. A hundred and twenty years later the world's railways ran on machines a hundred times more powerful. The locomotive's history runs in three ages - steam, electric and diesel - and each was decided less by invention than by arithmetic.
From the book The Railway LocomotiveThe whole book, Parts I to X. Read the full book free as a PDF.
The steam century, 1804-1930
The first age began with Trevithick's Penydarren engine of 21 February 1804, matured in the Northumberland collieries through Puffing Billy and Stephenson's Killingworth engines, and went public on the Stockton and Darlington Railway in 1825. The Rainhill trials of 1829 fixed the design - multi-tubular boiler, direct drive, exhaust blast - and Robert Stephenson's Newcastle works became the locomotive shop of the world. For a century after, the machine refined itself at a pace no machinery had ever shown: inside cylinders and the Planet type by 1830, the American 4-4-0 with its swivelling leading truck by the 1850s, superheating and piston valves at the century's turn, and ever more giant freight engines. The age's certified summit came on 3 July 1938, when the LNER's A4 Pacific Mallard touched 126 miles an hour down Stoke Bank - still the world speed record for steam - and its summit of bulk was the Union Pacific's 4-8-8-4 Big Boy of 1941, among the largest steam locomotives ever built and the largest still operating (Union Pacific).
Standards and false starts
The steam century's first systems lesson was the gauge war. Stephenson had laid his lines at four feet eight and a half inches - the gauge of the Killingworth waggonways - and because his railways became the trunk lines, that gauge became the standard of most of the world. Brunel, engineering the Great Western, chose seven feet and a quarter inch on sound physical reasoning: a broader gauge allowed larger boilers, steadier riding, faster trains. He was right in physics and wrong in economics; the cost was paid at every break of gauge, where every wagon's load had to be transshipped by hand, and a royal commission in 1846 read the numbers and chose the majority. In a connected system, the value of a standard outweighs the merit of an improvement.
The second lesson was Brunel's atmospheric railway on the South Devon coast: a continuous pipe laid between the rails, a piston inside it connected to the train, stationary engines pumping the air out ahead so the atmosphere itself pushed the train. It ran from 1847, silent and smokeless, and was abandoned in 1848 after leakage and deterioration of the leather seal, pumping inefficiency and high running and repair costs undermined the system - while the pumping engines burned coal on the timetable whether or not a train came. A locomotive carries its power plant and pays for it only when it works; a line-side power plant is paid for always. Electrification later made the same trade successfully, because electricity, unlike pumped air, is cheap to hold ready.
Current on rails
The second age arrived quietly, in the cities. Electric traction, proven on streetcars in the 1880s and 1890s, offered everything steam could not: no smoke, no fire, instant power and full torque from a standstill. Main-line electrification followed where traffic was dense and power cheap - Baltimore's first main-line electric operation in 1895, the great suburban and mountain electrifications of the early twentieth century, then the long trunk-line programmes of Europe, Japan and India. An electric locomotive carries no fuel at all; it is a transformer and a set of motors, drawing power from a wire that somebody else must build and maintain. Where the traffic justifies the wire, nothing beats it; where it does not, the wire never pays.
The diesel takeover, 1934-1960
The third age was the fastest industrial displacement on record. Rudolf Diesel patented his compression-ignition engine in 1892, but it took the electric streetcar's traction motor to make it useful on rails: the diesel-electric, in which the engine drives a generator and motors drive the wheels, solved the transmission problem in one stroke. The Pioneer Zephyr's dawn-to-dusk dash of 26 May 1934 - 1,015.4 miles from Denver to Chicago non-stop in just over thirteen hours - announced the machine to the public, and Electro-Motive's FT demonstrator of 1939 proved it to the freight accountants. Within about ten years of 1948, America's Class I railroads had replaced nearly all of their steam locomotives with diesels. By 1960 the steam locomotive had effectively ceased to exist on American main lines, and China ended main-line steam-locomotive production at Datong in 1988; production of industrial SY locomotives continued until 1999.
The modern machine
Today's locomotive is a standardised product, built on assembly lines from platforms that serve whole continents: a three-phase AC electric for wired territory, a diesel-electric for the rest, both increasingly computer-controlled and emissions-regulated. The industry's centre of gravity has moved with the century - Newcastle in 1825, Philadelphia in 1900, La Grange in 1950 - and it has moved again. In the financial year 2024-25 the locomotive works of Indian Railways turned out 1,681 locomotives, more than the United States, Europe, South America, Africa and Australia combined, on a broad-gauge network reported as 99.2 per cent electrified at the end of 2025. The machine that began as a Welsh ironmaster's wager is now built, in the largest numbers on earth, in India. And the steam age never entirely ended: the preservation movement that began with the Talyllyn's volunteers in 1951, and survivors like Union Pacific's restored Big Boy 4014 touring America today, keep the first age running as living history.
Quick answers
When was the first railway locomotive built?
In 1804, by Richard Trevithick at the Penydarren Iron Works in South Wales. It hauled ten tons of iron and seventy men nine and a half miles on 21 February 1804.
What is the fastest steam locomotive ever built?
The LNER A4 Pacific Mallard, which reached 126 miles per hour on 3 July 1938 - a dynamometer-car-verified world record for steam traction that still stands.
When did steam locomotives disappear?
From American main lines by 1960, from British Railways in 1968, and from China's main-line production in 1988, when Datong ended main-line steam-locomotive production (industrial SY locomotives continued until 1999). China ran steam in ordinary service into the 2000s.
Sources
- Guinness World Records, "First steam locomotive to run on rails"
- Historic England, "A Brief Overview of the Stockton & Darlington Railway"
- ASME landmark brochure, "The Rainhill Trials" (PDF)
- National Railway Museum, "Mallard: the world's fastest steam locomotive"
- Guinness World Records, "Fastest steam locomotive"
- Guinness World Records, "Largest steam locomotive"
- National Park Service, Steamtown Special History Study, chapter 5
- craigtouchton.com, "Steam's Last Stand"
- Press Information Bureau, Government of India, locomotive production release, 2 April 2025
- Press Information Bureau, Government of India, electrification release, 17 December 2025
