Spiegato, Home

Technology and Gadgets · Software

What Is Software Evolution? Lehman's Laws and Why Software Changes

  • Published by Spiegato
  • Updated
  • 10 min read

The short answer

Software evolution is the way a program keeps changing after its first release: bugs get fixed, features are added, and the code is adapted to new hardware, operating systems and security threats. Research since the 1970s, summed up in Lehman's eight laws, shows that real-world software that stops changing becomes progressively less useful.

What does software evolution actually mean?

Think about the apps on your phone. Almost every week one of them asks to update. That constant stream of changes is software evolution in action: the long process by which a program is fixed, extended and adapted after it first ships, often for many years, until it's finally replaced or retired.

It happens for a simple reason. Useful software is built around assumptions about the world: the hardware it runs on, the operating system, the laws and business rules it follows, what users expect. Once the software is out there, the world moves on and some of those assumptions stop being true, so the code has to change to keep up [1]. The software engineering reference guide published by the IEEE Computer Society sums it up this way: large programs are never complete, and they keep evolving [2].

Here's the part people often miss: most of that work isn't fixing bugs. Studies and surveys over the years have found that more than 80% of software maintenance effort goes into enhancing and adapting software, not correcting faults [2].

Why does software have to keep changing?

The SWEBOK Guide lists the everyday reasons a program gets changed after release [2]:

  • to correct faults and hidden defects;
  • to improve its design or performance;
  • to add enhancements users ask for;
  • to adapt to changes in the systems and infrastructure it connects to;
  • to head off security threats;
  • to replace parts that have become technically obsolete;
  • and, eventually, to retire it.

Security deserves a special mention. Most programs ship with flaws nobody has found yet, and when one turns out to be exploitable, the producer has to respond with a fix. NIST's Secure Software Development Framework treats this as part of the job: producers should reduce vulnerabilities in what they release, limit the damage from ones they missed, and fix root causes so the same problems don't come back [8]. That's why a software patch can turn up at any time, not just with a big new version.

What are the types of software maintenance?

Engineers sort changes into categories, which helps them plan and budget. The SWEBOK Guide describes five standard categories, plus a sixth for emergencies defined in the international maintenance standard ISO/IEC/IEEE 14764 [2]. The standard groups them into two families: corrections and enhancements [2].

The kinds of change that drive software evolution, with everyday examples
TypeWhat it meansWhat it looks like to you
CorrectiveRepairs made after delivery to fix problems that were discovered"Fixed a crash when opening large files"
PreventiveFixes latent faults before they show up in live useOften invisible: a quiet bug-fix release
AdaptiveKeeps the software usable in a changing environment, such as a new operating system"Now supports the latest version of your OS"
AdditiveAdds new functions or features, often with relatively large changesA new feature announced with fanfare
PerfectiveImproves performance, maintainability or documentation"Faster startup, lower battery use"
EmergencyAn unscheduled change that keeps a system running until a proper fix is readyAn urgent same-day update

The definitions above follow the SWEBOK Guide [2]; the right-hand column shows typical release-note wording. If you'd like to go deeper into the day-to-day side, see our guide to software maintenance.

How version numbers tell you what kind of change it is

Many projects follow Semantic Versioning, which uses a MAJOR.MINOR.PATCH number. You bump the PATCH number for backward-compatible bug fixes, MINOR for new features that stay backward compatible, and MAJOR for changes that break compatibility [7]. So going from 4.2.1 to 4.2.2 is usually a small fix, 4.2 to 4.3 adds features, and 4 to 5 may mean things that worked before need changes. It's a handy way to read evolution at a glance, though not every company uses this scheme.

What are Lehman's laws of software evolution?

The best-known theory of software evolution comes from Meir M. Lehman. A 1968 study of IBM's programming process led to measurements of how the OS/360 operating system grew across some 26 releases [1]. The patterns were surprisingly regular, even though nobody was deliberately controlling them, and Lehman captured them as "laws". The first three were published in 1974, three more in 1980, and the last two were formalized in 1996 [1]. They apply to what Lehman called E-type systems: software that addresses a real-world problem or application [1].

Lehman's eight laws of software evolution in plain English
Law (year)What it saysIn everyday terms
I. Continuing Change (1974)A system must be continually adapted, or it becomes progressively less satisfactoryStop updating and the software slowly falls behind
II. Increasing Complexity (1974)Complexity grows as the system evolves, unless work is done to maintain or reduce itEvery change makes the code a bit messier unless someone tidies up
III. Self Regulation (1974)The evolution process is self-regulating, with product and process measures close to a normal distributionGrowth follows recognizable, fairly stable trends
IV. Conservation of Organizational Stability (1980)The average effective rate of work stays roughly constant over the product's lifeOver the years, the pace of real progress tends to stay fairly steady
V. Conservation of Familiarity (1980)Everyone involved must keep mastering the system, so average growth per release stays about the sameReleases that change too much at once cause trouble
VI. Continuing Growth (1980)Functional content must keep increasing to maintain user satisfactionUsers keep wanting more features
VII. Declining Quality (1996)Quality will appear to decline unless the system is rigorously maintained and adapted to its environmentSoftware "rots" relative to a changing world
VIII. Feedback System (1996)Evolution processes are multi-level, multi-loop, multi-agent feedback systemsUsers, developers and managers all push back on each other

The statements in the middle column summarize the 1997 paper by Lehman and colleagues [1] and the wording repeated in the SWEBOK Guide [2]. Law II is the reason teams set aside time for code refactoring: cleanup work that doesn't add features but keeps complexity under control.

What does software evolution look like in real life?

Two well-documented examples show the full arc, from launch to end of life.

Windows 10. Windows 10 Home and Pro first became available on July 29, 2015. Over the next seven years Microsoft shipped 14 versions, from 1507 to 22H2, each supported for a limited time, and 22H2 was the final one. Support for the product ended on October 14, 2025 [4]. That's a little over 10 years of continuous change for one product name. The arithmetic: 14 versions between mid-2015 and late 2022 works out to about two a year. Microsoft also recommends installing security updates as soon as they're released [5].

Python. The Python programming language publishes a support schedule for every release. Recent versions get roughly five years: Python 3.12, for example, came out on October 2, 2023 and is scheduled to reach end of life in October 2028 [6]. Python 2.7 is a famous case of a long goodbye: released on July 3, 2010, it reached end of life on January 1, 2020 [6], almost a decade, while the community moved to the incompatible Python 3 line.

Both cases fit Lehman's first law. The products didn't stop changing until they were retired, and when the changes stopped, the clock started running on their usefulness. If you're wondering whether to upgrade your own computer, our piece on how important it is to have the latest operating system walks through the trade-offs.

Common myths about software evolution

Myth check: what people often get wrong
MythWhat the evidence says
Maintenance is mostly bug fixingOver 80% of maintenance effort goes to enhancing and adapting software [2]
Finished software can be left aloneReal-world software must be continually adapted or it becomes less satisfactory [1]
Lehman's eight laws date from the 2010sThe full set of eight was in place by 1996 [1]
"Declining Quality" means software hits a feature ceilingIt means quality appears to decline unless the software is maintained and adapted to a changing environment [1]
Packing more change into each release always speeds things upExcessive growth erodes everyone's mastery of the system, so average growth per release tends to stay about the same [1]

For the curious: do Lehman's laws still hold?

The laws grew out of data from large commercial systems, starting with IBM's OS/360 [1]. In the 1990s Lehman's team tested them on a newer system, Logica's Fastwire financial transaction software, installed at about one hundred sites. Their conclusion was cautious: the new data "supports, or better does not contradict" the laws [1].

The debate didn't end there. A 2013 systematic review in ACM Computing Surveys found that the laws were last revised in the late 1990s, and that most of the studies questioning their validity appeared after that, so many research questions remain open [3]. Modern practices such as agile development and distributed version control change how evolution is managed, but the core idea, that large programs are never complete and keep evolving, is still part of the IEEE Computer Society's software engineering reference guide [2].

Frequently asked questions

What is the difference between software evolution and software maintenance?

They overlap heavily. Maintenance is the work done on a program after delivery: fixing faults, adapting it and enhancing it [2]. Software evolution is the bigger picture of how the program changes across its whole life as a result of that work. Lehman's research proposed that maintenance is really evolutionary development [2].

Who was Meir Lehman?

Meir M. Lehman was a computer scientist whose work on IBM's programming process, starting with a 1968 study, led to metric-based studies of the OS/360 operating system [1]. He later worked at Imperial College London, where he and colleagues continued testing the laws of software evolution on industrial systems in the 1990s [1].

What is an E-type system?

In Lehman's terms, an E-type program is software that solves a problem or serves an application in the real world [1]. Because the world it models keeps changing, the software has to be updated again and again to stay a faithful model of it [1]. Lehman's laws are stated for this kind of software.

Why do software updates take up so much space and time?

One reason is the law of Continuing Growth: the functional content of real-world software has to keep increasing to keep users satisfied [1]. Each release usually adds features and code on top of what's already there. Security fixes add to the stream too: Windows 10 Home and Pro, for example, received monthly security update releases until support ended [4].

Is it safe to keep using software after its end of support?

It keeps working, but it stops receiving security fixes, so new vulnerabilities stay open. Windows 10 Home and Pro, for example, received monthly security updates only until October 14, 2025 [4]. For anything connected to the internet, moving to a supported version is the safer choice.

Sources

  1. Metrics and Laws of Software Evolution: The Nineties View (Lehman, Ramil, Wernick, Perry, Turski). Proceedings of the Fourth International Software Metrics Symposium, IEEE, 1997
  2. Guide to the Software Engineering Body of Knowledge (SWEBOK Guide), Version 4.0, Chapter 7: Software Maintenance. IEEE Computer Society
  3. The Evolution of the Laws of Software Evolution: A Discussion Based on a Systematic Literature Review (Herraiz, Rodriguez, Robles, Gonzalez-Barahona). ACM Computing Surveys, Vol. 46, No. 2, 2013
  4. Windows 10 Home and Pro: Microsoft Lifecycle. Microsoft
  5. Modern Lifecycle Policy. Microsoft
  6. Status of Python versions. Python Software Foundation, Python Developer's Guide
  7. Semantic Versioning 2.0.0. Semantic Versioning specification
  8. SP 800-218, Secure Software Development Framework (SSDF) Version 1.1. National Institute of Standards and Technology (NIST)

Topics

Related articles