Software maintenance

On this page 7

Software maintenance is the set of activities that modify a software product after delivery to correct faults, adapt it to a changing environment, improve its performance or maintainability, and prevent future problems. Within the software lifecycle, it is the longest phase: a product that ships once may be maintained for ten, twenty or more years until it reaches end of life.

The international standard ISO/IEC/IEEE 14764 defines the maintenance process and its categories, and industry studies consistently attribute the majority of total lifetime cost, commonly estimated at 60 to 80 percent, to maintenance rather than initial development. The exact share varies with system size, age and how well the code was designed for change.

The four categories of software maintenance

Software maintenance is classified by the reason for the change, not by its size. The classic model, introduced by E. Burton Swanson in 1976 and later refined in ISO/IEC/IEEE 14764, distinguishes corrective, adaptive, perfective and preventive maintenance. Corrective work is reactive, while the other three are planned improvements.

CategoryTriggerTypical changePlanning style
CorrectiveReported defect or failureBug fix, hotfix, data repairReactive
AdaptiveChange in environmentNew operating system, library or regulationScheduled
PerfectiveUser request or performance goalNew feature, faster query, usability tweakPlanned in releases
PreventiveDetected latent riskRefactoring, dependency upgrade, added testsPlanned, often deferred
Maintenance categories and their triggers

In practice, perfective and adaptive work dominate the maintenance budget, often accounting for around three quarters of effort, while pure bug fixing is a smaller share than most stakeholders assume. This finding matters because maintenance is not only fixing errors: it is continued development of a living product.

How the maintenance process works

A disciplined maintenance process turns each change request into a controlled, traceable modification. ISO/IEC/IEEE 14764 describes the activities from process implementation through problem analysis, modification, review and acceptance, migration and retirement. Most organizations implement them through an issue tracker, version control and a release pipeline.

  1. Request intake: a defect report, feature request or vulnerability notice is logged with severity and affected versions.
  2. Impact analysis: engineers identify affected modules, interfaces, data and documentation, and estimate effort and risk.
  3. Modification: the change is implemented on the correct branch, often on several supported release lines.
  4. Regression testing: automated and manual tests confirm that existing behavior still works.
  5. Release and deployment: the change ships as a hotfix, maintenance release or regular feature release.
  6. Retirement: when the product reaches end of life, data migration and user transition close the cycle.

Impact analysis is the step most often skipped under time pressure, and it is the main source of regressions. A small fix in a shared utility can alter behavior in dozens of call sites that nobody reviewed.

Software maintenance across lifecycle stages

Maintenance intensity changes as a product ages, and release policy determines how long each version is supported. Vendors usually define an active support window, a security-only window and an end-of-life date, which is how LTS editions differ from short-lived releases.

PhaseWhat is deliveredTypical duration
Active supportBug fixes, minor features, security patchesMonths to several years
Security maintenanceCritical and security fixes onlyOne to five years
Extended supportPaid security fixes for large customersVaries by contract
End of lifeNo further changes of any kindPermanent
Support phases of a released version

Related concepts sit at specific points of this timeline. A hotfix is an urgent corrective change, a maintenance release bundles accumulated fixes without breaking changes, and deprecation announces that a feature will be removed in a later version. Semantic versioning signals these intentions: patch numbers mark fixes, minor numbers mark compatible additions.

Factors that drive maintenance cost

Maintenance cost depends far more on code quality and architecture than on the number of reported defects. Lehman’s laws of software evolution describe the underlying pattern: a system in real use must keep changing or become less useful, and its complexity grows unless work is done to reduce it.

FactorEffect on maintenanceMitigation
Technical debtEach change takes longer and breaks moreScheduled refactoring budget
Test coverageLow coverage raises regression riskAutomated tests before modifying code
Dependency ageOutdated libraries block security patchesRegular, small upgrades
DocumentationMissing knowledge slows impact analysisArchitecture records kept with the code
Staff turnoverLost system knowledgeCode review and shared ownership
Number of supported versionsFixes must be backported to each lineShorter support windows, fewer branches
Cost drivers and their effect

Backporting deserves special attention. When a vendor supports three release lines, a single security fix may need three different implementations and three test cycles, which is why many projects limit the number of concurrently supported versions.

Common mistakes in maintaining software

Most maintenance failures come from treating maintenance as a low-status afterthought rather than a planned engineering activity. The following mistakes recur across organizations of every size.

MistakeConsequenceBetter practice
No maintenance budget after launchAccumulating vulnerabilitiesFund maintenance as an ongoing cost
Fixing symptoms onlySame defect returns in new formsRoot cause analysis for serious incidents
Skipping regression testsNew releases break old featuresAutomated test suite in the pipeline
Postponing all upgradesLarge, risky migrations laterContinuous small dependency updates
Frequent mistakes and corrective practices

A related misconception equates legacy software with bad software. A legacy system is simply one that remains valuable but is difficult to change safely; the remedy is usually gradual modernization behind stable interfaces, not an immediate rewrite, which carries high risk of losing hidden business rules.

Stripped to the essentials

Software maintenance is everything that happens to a program after it is released. Bugs get fixed, the program is adjusted when the computers or rules around it change, new features are added, and old parts are cleaned up so that future changes stay easy.

It resembles looking after a house. Building it is only the start; the roof needs repairs, the wiring must meet new codes, and rooms get renovated. Most of the money spent on software goes into this care, not into the first version.

Where it is applied

A regional hospital runs a patient scheduling application built eight years ago. In one quarter, its two-person maintenance team handles four kinds of work: a corrective fix for appointments that disappear when a time zone changes, an adaptive update because the server operating system reaches end of life, a perfective feature that sends text-message reminders, and preventive refactoring of a fragile billing module.

The team first adds automated tests around the billing module, then refactors it in small steps across two maintenance releases. The operating system migration ships with no unplanned downtime, and reported scheduling defects fall noticeably over the following six months because the corrected time-zone logic is now covered by tests.