Robert Stirling Scottish minister and inventor of the Stirling engine
Engineering & Power1816

Stirling Engine

by Robert Stirling

Introduction — A Minister Who Designed the Perfect Engine

Robert Stirling is one of the most extraordinary figures in the history of Scottish engineering — and the most unlikely. He was not a professional engineer, nor a university physicist, nor a foundry man. He was a Church of Scotland minister, ordained at Kilmarnock in 1816 and settled in the Ayrshire parish of Galston, where he preached for over half a century. And yet, eight days after his ordination, he walked into a patent office and lodged the specification for an engine so thermodynamically elegant that science would need another generation to catch up with what he had drawn.

He called it an 'air engine.' The world would, much later, call it the Stirling engine. Beaten by steam in his own century and almost forgotten by the next, the device he conceived in 1816 has been triumphantly revived in our own — propelling stealth submarines beneath the Pacific, powering NASA's deep-space generators, and turning concentrated sunlight into record-breaking electricity. It is, in a quiet and very Scottish sense, the perfect engine.

Early Life and the Path to the Manse

Robert Stirling was born on 25 October 1790 at Cloag Farm, near Methven in Perthshire, the third of eight children of Patrick (also recorded as 'Peter') Stirling, a farmer and inveterate improver of farm machinery. His grandfather, Michael Stirling, was renowned in the district for an early threshing machine. Mechanical ingenuity ran in the blood.

On paper, however, Robert was destined for the manse rather than the workshop. From the age of 15 he studied classics at the University of Edinburgh, then divinity at Glasgow and Edinburgh, and was licensed to preach by the Presbytery of Dumbarton on 4 July 1815. Presented to the charge by the commissioner for the Duke of Portland, he was ordained on 19 September 1816 as the second-charge minister of the Laigh Kirk in Kilmarnock. In 1824 he was translated to the parish of Galston, just up the Irvine valley, where he would remain until his death.

Stirling was devout, learned and intensely practical — a man whose neighbours, according to one contemporary memoir, were 'sometimes surprised at midnight by the hammering resounding from the anvil in his little smithy adjoining the manse.' He married Jane Rankine in July 1819. Of their seven children, an extraordinary number went on to become distinguished engineers: Patrick and James became celebrated railway locomotive engineers, and William a civil engineer in South America. His younger brother James — a trained professional engineer — became Robert's indispensable collaborator on the engine itself.

The Problem — Why Steam Engines Were Dangerous

The early 19th century was the high noon of steam. Steam engines drove mills, mines, foundries and pumping stations across industrialising Scotland. But the high-pressure boilers that powered them were lethally dangerous. Built from imperfect wrought iron, only dimly understood, and routinely operated beyond safe limits, they exploded with terrifying regularity, scalding and killing the workers who tended them.

As the minister of an industrial Ayrshire parish, Stirling would have buried parishioners and comforted maimed and bereaved families. It is widely held — and explicitly stated in the historical record by his brother James in an 1845 address to the Institution of Civil Engineers — that this human cost helped motivate his search for a safer 'air engine,' one that could not explode and could not scald. Hot air, sealed in a strong vessel and heated externally, could simply not blow up the way a high-pressure steam boiler could.

Steam boiler explosion illustrating the dangers that inspired Robert Stirling
Boiler explosions regularly killed and injured workers, inspiring Stirling's search for a safer engine.

The Invention — What the Stirling Engine Is

On 27 September 1816 — just eight days after his ordination — Stirling applied for British Patent No. 4081, with the wonderfully grandiose title 'Improvements for Diminishing the Consumption of Fuel, and in particular an Engine capable of being Applied to the Moving of Machinery on a Principle Entirely New.' The specification was signed and sealed on 20 January 1817.

The patent described two linked inventions that together constitute the Stirling engine: an 'economiser' — what we now call a regenerative heat exchanger, or regenerator — and an 'air engine' that used it. As the American Society of Mechanical Engineers' own history puts it, Stirling 'not only described the construction and use of a regenerator for the first time in history, but also foresaw its principal applications, such as for glass furnaces or iron smelting,' along with 'a description of the first closed-cycle hot-air engine.'

Robert Stirling developing the Stirling engine and regenerator in 1816
The regenerator, or 'economiser,' became the secret to the engine's remarkable efficiency.

A Stirling engine is an external combustion engine operating on a closed thermodynamic cycle. A fixed quantity of working gas — originally air — is permanently sealed inside the engine. It is shuttled back and forth between a hot space (heated by an external flame, kept entirely outside the working gas) and a cold space (cooled, typically by water). As the trapped gas is heated it expands and pushes a piston; as it is cooled it contracts. By repeating that heating and cooling in a cycle, the engine turns heat into continuous mechanical motion. Crucially, the gas is never exhausted or replaced — the same gas is reused indefinitely, unlike a steam engine that boils and vents water.

The stroke of genius is the regenerator — Stirling's 'economiser.' It sits between the hot and cold spaces. As hot gas rushes toward the cold side, it passes through the regenerator — typically a fine metal mesh or wound wire — and dumps much of its heat there, like a sponge soaking up warmth. When the gas later flows back toward the hot side, it passes through the same mesh and reclaims that stored heat. The external flame, therefore, doesn't have to reheat the gas from cold every cycle. The result is a dramatic reduction in fuel use and a startling jump in efficiency.

How the Stirling Engine Works

Closed cycle

A fixed quantity of working gas — originally air — is permanently sealed inside the engine and reused indefinitely; nothing is ever exhausted or replaced.

External heat

The flame stays outside the working gas. Heat is transferred through the cylinder wall, so any heat source — wood, gas, sunlight, plutonium, waste heat — will do.

Hot and cold spaces

Pistons shuttle the trapped gas between a hot chamber and a cold chamber, expanding it when it is hot and compressing it when it is cold.

The 'economiser' (regenerator)

A fine metal mesh between the chambers absorbs heat from gas flowing toward the cold side and gives it back when the gas flows back, drastically cutting how much fuel must be burnt.

Continuous, near-silent motion

Without combustion shocks or exhaust strokes, the engine runs smoothly and quietly — the property that turned it into the heart of modern stealth submarines.

Carnot-limit efficiency

In its ideal form the Stirling cycle reaches the theoretical maximum efficiency allowed by the second law of thermodynamics — the same ceiling as the Carnot cycle.

Stirling's Engine in Practice — Early Applications

The first practical Stirling engine was built in 1818 to pump water at a quarry in Ayrshire. It produced about 2 horsepower and, by a contemporary account in The Engineer, 'continued to work for some time, until a careless attendant allowed the heater to become overheated.' That single sentence captures the engine's whole 19th-century tragedy: it worked, but its materials could not take the punishment.

Robert and James took out improved patents in 1827 and 1840, adding pressurisation to boost power. The high point came at the Dundee Foundry Company, where James installed a large engine — a 16-inch cylinder with a four-foot stroke producing around 45 horsepower. Commissioned in March 1843, it drove all of the foundry's machinery and was for a time the establishment's only motive power. But the story ended as it always did: the bottom of a hot air vessel failed in December 1845, another in May 1846, and a third in December 1847. After Stirling left, the new management replaced it with a steam engine.

That was the engine's fundamental 19th-century problem. To be powerful and efficient, a Stirling engine must run very hot, and the cast iron of Stirling's day melted, crept or cracked under the strain. Meanwhile steam technology was rapidly maturing, getting steadily safer and more efficient. Steam won the century. Smaller, cooler-running hot-air engines did find a niche from around 1860 — pumping water, driving small fans, even blowing air for church organs — but the dream of a steam-beating industrial prime mover faded into obscurity.

Thermodynamic Significance

Here is the twist that makes Stirling a genuine prophet of physics. The Stirling cycle is, in theory, the most efficient thermodynamic cycle possible. It achieves the same maximum theoretical efficiency as the Carnot cycle — the absolute ceiling on efficiency for any heat engine working between a given hot and cold temperature, set by the second law of thermodynamics. As one engineering reference puts it: 'the Carnot efficiency at a given hot section and cold section temperature is equal to the Stirling efficiency between the same hot and cold sections.' Not even a theoretically perfect petrol or diesel engine can match that ceiling.

Educational diagram explaining how the Stirling engine operates
By recycling heat through a regenerator, the Stirling engine approaches the maximum efficiency allowed by physics.

This was utterly unknown in Stirling's own time. Sadi Carnot only published his foundational work in 1824, and its implications took decades to sink in. Stirling, working from mechanical intuition and a minister's concern for thrift and safety, had stumbled onto the most thermodynamically elegant engine concept there is.

The invention was so much in advance of scientific knowledge at the time that at least 30 years passed before anyone was in a position to understand what made the engine work at all.
ASME history of the Stirling engine

Why does this matter today? Real engines never reach their theoretical ceiling, but the closer you get, the less fuel you burn and the less carbon you emit for the same work. Conventional petrol and diesel engines convert only a modest fraction of their fuel's energy into useful motion. A Stirling engine, because it runs on a closed cycle with heat recovery, can in principle squeeze far more work out of every unit of heat — and it can use any heat source at all. In an age of climate change and energy efficiency, an engine that is intrinsically frugal and fuel-agnostic is suddenly very interesting indeed.

The Modern Stirling Engine — 20th and 21st Century Revival

The engine's resurrection began in the late 1930s at the Philips research laboratories in Eindhoven, which spent nearly 40 years systematically developing modern, high-speed Stirling engines using alloys and seals Stirling himself could only have dreamed of. From that foundation, the engine has found a series of high-value modern niches where its three superpowers — near-silence, high efficiency, and the ability to run on any heat source — are decisive.

Modern uses of Stirling engines in submarines spacecraft solar power and cryogenic cooling
Once dismissed by the steam age, Stirling's engine now powers submarines, spacecraft and advanced energy systems.

Submarines are the most spectacular comeback. Because a Stirling engine has no explosive combustion and few vibrating parts, it runs almost silently — exactly what a submarine needs to stay hidden. Sweden's Gotland-class submarines, built by Kockums (HSwMS Gotland commissioned in 1996, with sisters Uppland and Halland following in 1997), were the world's first operational submarines to use Stirling-engine Air-Independent Propulsion (AIP). Each carries two Kockums V4-275R Stirling units driving a 75-kilowatt generator, burning diesel with stored liquid oxygen. The system, according to The National Interest, 'permits the vessel to stay submerged for 14 days while traveling at 5 knots — good for a range of 1,700 nautical miles' without ever surfacing to recharge batteries. In 2005, under a US Navy lease arrangement, HSwMS Gotland slipped through the screen of a US carrier group during a Pacific exercise and 'snapped several pictures of USS Ronald Reagan,' demonstrating that it was in a position to sink the supercarrier undetected. Japan's Sōryū-class submarines, in service from 2009, used the same Kockums Stirling units licence-built by Kawasaki Heavy Industries.

In space, NASA developed the Advanced Stirling Radioisotope Generator (ASRG), which used the heat of decaying plutonium-238 to drive a free-piston Stirling converter and generate electricity for deep-space missions. Its great attraction was efficiency: NASA Glenn Research Center reports that Stirling radioisotope systems achieve 'a conversion efficiency of approximately 20%, more than three times higher than previous NASA RPS (~6%),' potentially cutting the amount of scarce plutonium fuel required by a factor of four. The flight development contract was cancelled in 2013 on budget grounds, but Stirling work continues at NASA Glenn — its Technology Demonstration Convertor #13 has run continuously since 2003, accumulating over 110,000 hours, which NASA Glenn has called 'the longest-running heat engine in the history of civilization.'

In solar power, dish-Stirling systems hold records as the most efficient solar-to-electricity conversion of any solar technology: on 31 January 2008, Sandia National Laboratories and Stirling Energy Systems set a record 31.25% net solar-to-grid efficiency on their 'Serial #3' dish at Sandia's National Solar Thermal Test Facility. Domestic micro-CHP units in Europe use small Stirling engines to make electricity while their waste heat warms the house. And run the engine backwards — drive it with a motor instead of heat — and it becomes a superb cryocooler, used to chill the infrared detectors in thermal-imaging cameras, satellites and night-vision systems down to cryogenic temperatures.

Legacy and Honours

Robert Stirling lived to 87, dying at Galston on 6 June 1878 after a ministry of over fifty years. His foundational insight — the regenerator — went on to influence furnace and steel-making technology, and in an 1876 letter Stirling himself expressed the hope that Henry Bessemer's new process for making steel would finally yield metals strong enough for a proper air engine. He was, in a sense, waiting on the materials science of the next century.

His commemorations include a fine new gravestone in Galston Cemetery, erected by public subscription in December 2014 after the original had crumbled, and rededicated on 3 May 2015 in a service organised by Galston Parish Church; the new stone carries a line drawing of the engine that bears his name. In 2014 he was inducted into the Scottish Engineering Hall of Fame. The engine was only generically christened the 'Stirling engine' long after his death — Fleeming Jenkin championed the name from 1884, but it was the Philips company that fixed it in April 1945.

For a humble parish minister to leave behind not just a working engine but an entire idealised thermodynamic cycle that bears his name in physics textbooks — and that now hides inside submarines, spacecraft and solar dishes two centuries later — is a legacy of which Scotland can be immensely proud.

Frequently Asked Questions

Who was Robert Stirling? Robert Stirling (1790–1878) was a Church of Scotland minister, born at Cloag Farm in Perthshire and ordained at Kilmarnock in 1816. He served the parish of Galston, Ayrshire, for over fifty years and, on the side, invented the closed-cycle hot-air engine that bears his name.

What is a Stirling engine? It is a closed-cycle external combustion engine. A fixed quantity of gas, sealed inside the machine, is alternately heated and cooled by an external heat source. As it expands and contracts it drives pistons and produces continuous mechanical motion. A regenerator (Stirling's 'economiser') stores and reuses heat between cycles, making the engine remarkably efficient.

How does a Stirling engine work? Gas is shuttled between a hot chamber and a cold chamber. Heating expands the gas and pushes a piston; cooling contracts it. A regenerative heat exchanger between the chambers captures heat from gas moving to the cold side and gives it back to gas returning to the hot side, dramatically cutting fuel use.

Why was the Stirling engine invented? Stirling lived through the deadliest years of high-pressure steam, when boiler explosions regularly killed and injured workers. As both his brother's 1845 address to the Institution of Civil Engineers and family tradition record, the engine was intended to be a safer, more fuel-efficient alternative to steam.

What is a regenerator? A regenerator (Stirling's 'economiser') is a heat-storing element — typically a fine metal mesh — placed between the engine's hot and cold spaces. It absorbs heat from gas flowing one way and returns it to gas flowing the other, recycling thermal energy that would otherwise be wasted.

Why is the Stirling cycle important? The ideal Stirling cycle reaches the Carnot limit — the maximum efficiency allowed by the second law of thermodynamics for any heat engine working between a given hot and cold temperature. No conventional petrol or diesel cycle can match that theoretical ceiling.

Where are Stirling engines used today? They power Swedish Gotland-class and Japanese Sōryū-class submarines as near-silent Air-Independent Propulsion; NASA Stirling radioisotope and free-piston power systems for deep-space missions; record-setting dish-Stirling solar generators; micro-CHP units for homes; and cryocoolers for thermal cameras, satellites and night-vision systems.

Can a Stirling engine power submarines? Yes. The Stirling AIP system in Sweden's Gotland-class submarines (commissioned from 1996) lets the boat stay submerged for around 14 days at 5 knots — about 1,700 nautical miles without surfacing. In 2005 a leased HSwMS Gotland 'sank' the US carrier USS Ronald Reagan in a Pacific exercise by slipping through its defensive screen undetected.

Share:

Related Inventions

Paddle Steamer collectible card — Scottish Inventions Collection
Europe's First Passenger Steamboat (Comet) collectible card — Scottish Inventions Collection
First Oil Refinery collectible card — Scottish Inventions Collection

Weekly Scottish Innovation Facts

Delivered to your inbox every Sunday. No spam, just brilliance.