The encyclopedia · Software & IT · Technical decision · 1985
The Therac-25 killed patients — software replaced the hardware safety interlock
The Therac-25 radiation therapy machine delivered lethal radiation overdoses in 1985-87. A software race condition was the cause. At least 3 patients died.
Atomic Energy of Canada Limited · 1985-06
What happened
The Therac-25, a radiation therapy machine manufactured by Atomic Energy of Canada Limited (AECL), was used to treat cancer patients. Between 1985 and 1987, the machine delivered massive radiation overdoses to at least six patients, killing at least three. The overdoses were caused by a software race condition that allowed the electron beam to fire without the proper shielding in place.
The Therac-25's predecessors (Therac-6 and Therac-20) had hardware interlocks that prevented the beam from firing without shielding. The Therac-25 removed these hardware interlocks and relied entirely on software checks. When the software failed — due to a race condition that occurred when operators typed commands too quickly — there was no hardware backup to prevent the overdose.
The case became a landmark in software engineering and medical device safety. It demonstrated that software-only safety systems are insufficient for life-critical applications: hardware interlocks must provide a backup. The Therac-25 is taught in every software engineering course as the definitive example of why safety-critical systems require defense in depth.
Why it happened
- The Therac-25 removed hardware interlocks and relied entirely on software checks for safety.
- A software race condition allowed the electron beam to fire without proper shielding.
- At least 3 patients died from radiation overdoses; at least 6 were affected.
- The predecessors had hardware interlocks that would have prevented the overdoses.
The lesson
Software-only safety is not safety. The Therac-25 removed hardware interlocks and relied on code. When the code failed, nothing stood between the patient and the beam.
Aftermath
AECL was fined and the Therac-25 was recalled. The case led to stricter FDA regulations on medical device software and became the foundational case study in software safety engineering. It is cited in every discussion of defense-in-depth for life-critical systems.
Sources
- Therac-25 — Wikipedia
- Leveson & Turner — An Investigation of the Therac-25 Accidents (IEEE Computer, 1993)
spotted an error? The club wants to know.
More like this
Microsoft 365 falls for five hours after a maintenance bug cut West US off the network
Zimmer Biomet's botched SAP rollout ended in a $172 million claim against Deloitte
Rackspace let a known Exchange bug take down its hosted email for thousands of customers
Somewhere, someone solved the problem this company failed at. 2nd Opinion →

Comments · 0
Sign in to join the comments.