ISO/IEC 25010:2023 lists modularity, reusability, analysability, modifiability and testability under maintainability, and all five survived the November 2023 revision that grew the product quality model to nine characteristics.
Maintenance is the work done after release. Maintainability is a property of the code that sets what that work costs, and teams put numbers on it with cyclomatic and cognitive complexity, plus the technical debt ratio.
What Is Software Maintainability?

The working definition comes down to how effectively and efficiently the intended maintainers can modify a system, whether that means correcting faults, improving it or adapting it to a changed environment.
ISO/IEC 25010 frames it the same way, as a question of effectiveness and efficiency for the people who maintain the product. Chen, Alfayez and colleagues (ICSE-C 2017) use the older IEEE wording, which names faults, performance or other attributes, and a changed environment as the triggers.
Keep the two terms apart. Maintainability sits in the code and design before any change request exists. Maintenance only starts after release, and it gets cheaper or costlier depending on what the code looks like.
The effort also depends on who does the work. Kazman et al., as quoted by arc42, tie the measure to the skill and knowledge of the person making the change, so the same codebase rates differently for its authors and for a team that inherited it.
Definitions vary by organization too. Broy and colleagues (TU Munich, 2006) observed that large software companies tend to hold their own meaning of the term, and Pizka and Deissenboeck found the criteria in use ranged from object orientation to cyclomatic complexity.
Nobody files a ticket asking for maintainability. That is why it erodes quietly.
Sub-Characteristics in ISO/IEC 25010

The standard breaks maintainability into modularity, reusability, analysability, modifiability and testability. Each one answers a different question, and each one fails in a recognizable way.
| Sub-characteristic | Question it answers | Typical failure sign |
|---|---|---|
| Modularity | Can one component change without disturbing the others? | A fix in billing breaks reporting |
| Reusability | Can an existing asset serve a second purpose? | The same logic copied into three services |
| Analysability | Can maintainers locate a fault or judge the impact of a change? | Hours of tracing before the first edit |
| Modifiability | Can a change go in without new defects or quality loss? | Every edit adds side effects |
| Testability | Can the change be verified? | Behavior checkable only by clicking through the UI |
The ISO 25010 quality model was revised in November 2023. Maintainability kept its sub-characteristics while the model around it grew from eight characteristics to nine.
Safety is the new one, according to arc42’s summary of the revision. Two others were renamed: usability became interaction capability, and portability became flexibility.
Software Improvement Group (SIG) turns the abstract list into measurement. Its TUViT-certified model ties the sub-characteristics to source code properties such as volume, duplication, unit size, unit complexity and module coupling.
Not everyone takes the list as given. The TMAP team advises choosing the characteristics that matter for the system at hand instead of working through a standard list.
Corrective, Adaptive, Perfective and Preventive Maintenance

ISO/IEC 14764, the maintenance standard, sorts post-release work into corrective, adaptive, perfective and preventive types.
A hotfix that restores broken behavior is the textbook case of corrective work, which covers any fault found after delivery. Adaptive work is what you do when the environment moves under the software, an operating system or dependency upgrade for example.
Perfective changes improve a product that already works, through performance work and usability changes as well as whatever new capabilities users asked for. Preventive work goes after latent faults before they fail in operation, and refactoring to clear code smells is the typical form.
All four start after release, so they fall under post-deployment maintenance planning and budgeting.
Skipping preventive work has a documented price. The SEC’s 2013 order against Knight Capital faulted the firm for leaving retired code on its production servers and for not retesting it after a 2005 change.
A 2012 rollout reactivated that code, and it sent millions of unintended orders into the market.
Labels are not fixed. Arc42 notes that a change can be classified differently depending on the maintainer’s intention.
The IEEE Technology Navigator describes ISO/IEC/IEEE 14764 as grouping adaptive and perfective changes in one set and corrective and preventive changes in another, which the standard names enhancements and corrections. The split matters for cost accounting.
In practice, corrective work comes from defect tracking records, and the label assigned there decides which budget pays for the fix.
Effort splits unevenly across the four types. Lientz, Swanson and Tompkins’ 1978 survey put 60.3% of maintenance effort into perfective work and 17.4% into corrective work.
Measurement contradicted the survey. Schach and colleagues (2003) analyzed the Linux kernel and GCC along with a commercial real-time product, and corrective work came out at more than twice the survey figure in every case.
Measure the split from your own ticket history. Published ratios are a starting point at best.
How Much Does Poor Software Maintainability Cost?
Maintenance consumes 40% to 80% of total software lifecycle cost, according to Jack Ganssle’s 2007 review of studies going back to the 1970s.
The studies behind that range are decades old. Treat it as an order of magnitude, not a budget line.
A few other numbers help with scale. The maintenance phase of a system often runs 10+ years (O’Reilly, Building Maintainable Software). Developers in one survey estimated that 17.3 of 41.1 hours each week went to maintenance such as debugging, refactoring and modifying (Stripe and Harris Poll, 2018). And CISQ’s 2022 report puts accumulated US technical debt at $1.52 trillion, naming it the biggest obstacle to changing existing code.
Stripe’s survey question framed that time as waste, so read the figure as developer perception, not an audit.
The spread across studies comes from how each defines maintenance, which systems it covers and how long the lifecycle runs. A cloud service that ships weekly and an embedded product that ships once do not share a cost curve.
Maintainability is the property that stops technical debt from compounding. The lower the score, the more every later change costs.
It also gates the other qualities. A defect that hurts software reliability, or a security fix, ships only as fast as the team can change and verify the code. That is why O’Reilly’s chapter treats maintainability as the thing that makes the other quality characteristics reachable.
What Lowers Software Maintainability in a Codebase
Tangled dependencies, duplicated logic, oversized units, missing tests and stale documentation do most of the damage, and they tend to show up together.
Lehman’s second law of software evolution explains why none of them fix themselves. As a system evolves, its complexity increases unless work is done to reduce it (Lehman, 1997).
Structural causes
SIG derived its guidelines from analyzing hundreds of real systems and states them as numeric limits (Building Maintainable Software, O’Reilly, 2016).
The limits are blunt. A method above 15 lines counts as oversized, and more than 4 branch points in one method makes the unit hard to modify and test. Copied code multiplies every fix, including fixes to buggy code. Tight coupling is the same problem at the architecture level, where components cannot change independently.
A modular software architecture limits that coupling, though SIG ranks its unit-level guidelines above the component-level ones.
Process and knowledge causes
Clean code still turns hard to maintain when the people around it cannot explain it.
Typical versions: no automated tests around the code that keeps changing, or documentation that describes last year’s design. Sometimes it’s one developer who understands the module and nobody else.
Ward Cunningham spotted that last problem in 1992. Too much immature code, he wrote, makes a program unmasterable and pushes programmers toward extreme specialization (OOPSLA experience report on WyCash).
Stale technical documentation hurts analysability first, because readers trust a description the code no longer matches.
Technical debt and maintainability
Cunningham compared shipping first-time code to taking on debt in the same 1992 report. A little debt speeds development when it is repaid promptly with a rewrite, and the danger is debt left unpaid.
In tooling, the debt items are maintainability issues such as code smells, each carrying an estimated fix time.
Debt taken on knowingly and repaid on schedule is a trade-off. Debt nobody tracks is decay.
How to Measure Software Maintainability

No single score covers it. The Maintainability Index, cyclomatic complexity, cognitive complexity and the technical debt ratio each answer a different question, so read them together.
| Metric | What it counts | Scale or threshold | Reported by |
|---|---|---|---|
| Maintainability Index | Halstead volume, cyclomatic complexity and lines of code in one value | 0 to 100 (Visual Studio rescaling) | Visual Studio |
| Cyclomatic complexity | Independent paths through code | 10 (NIST SP 500-235) | Visual Studio, MATLAB Code Analyzer |
| Cognitive complexity | Control flow breaks plus nesting penalties | 15 default in SonarQube (25 for C-family) | SonarQube, Code Climate |
| Technical debt ratio | Fix cost divided by development cost | A at 5% or less, E at 50% or more (SonarQube) | SonarQube, Code Climate |
What Counts as a Good Maintainability Index Score
Oman and Hagemeister introduced the index in 1992, combining Halstead volume, cyclomatic complexity and lines of code in one formula.
Visual Studio rescaled it to 0 to 100 and set conservative bands, red from 0 to 9, yellow from 10 to 19 and green from 20 to 100 (Microsoft Learn). Microsoft tuned them to keep noise low.
So in Visual Studio, a score of 20 or higher counts as green. DCM sets its documented default threshold at 0.5 on a normalized index that its examples report as a percentage, which works out to roughly 50 on the 0 to 100 scale and sits well above Visual Studio’s green line of 20.
A 2020 study of maintainability in evolving open-source software, posted to arXiv, notes that tools compute the index differently and that its thresholds are not very accurate.
Compare modules inside one project and watch the trend. A cutoff borrowed from another codebase or language does not transfer.
Tools That Report Maintainability Scores
SonarQube sums the estimated fix minutes of every maintainability issue as technical debt, divides it by development cost to get the ratio, and maps the ratio to an A to E rating. The cost of developing one line of code defaults to 30 minutes in the SonarQube Server 2026.5 documentation.
Visual Studio is the simpler case. It reports the Maintainability Index next to cyclomatic complexity, depth of inheritance, class coupling and lines of code.
Over at Code Climate, files get graded A to F by total remediation time, while repositories are graded by technical debt ratio. Its documentation says Code Climate Quality is being replaced with Qlty Cloud.
SonarSource staff recommend a quality gate on the maintainability rating, not on raw debt, because a larger system always carries more of it. Teams usually run that gate in continuous integration, scoped to new code.
Start with whichever tool already sits in your pipeline, and read its rating next to complexity, not instead of it.
When Maintainability Scores Mislead
Scores mislead when teams read them as absolute grades. The formulas were fitted to old data and the thresholds were tuned by feel, and one number can’t say what to fix.
The Maintainability Index was fitted by regression to C and Pascal systems, according to NDepend’s history of the metric, and SIG researchers listed several problems with it in 2007 (Heitlager, Kuipers and Visser).
The Teamscale team does not compute the index at all. A developer cannot predict how an edit moves it, and regression test coverage is missing from the formula. A value of 57 doesn’t say which aspect is weak, either.
SonarSource’s cognitive complexity limit began at 10, borrowed from cyclomatic complexity, and rose to 15 once the rule proved noisy on open-source projects. Ann Campbell says no scientific formula sits behind it.
Derek Jones objects on The Shape of Code blog that SIG’s 15-line limit leans on a 28,000-line Java sample.
Sources also split on what cyclomatic complexity measures. The Maintainability Index takes it as an input, while SonarSource argues it measures testability, not maintainability.
Scores say nothing about code with no future. A throwaway prototype never repays refactoring, so its debt never comes due.
Treat a score as a prompt to read the code, not a verdict on it.
How to Improve Software Maintainability Step by Step

The order matters here. Tests go in first, automated checks second, small refactorings third, and review runs alongside all of it.
- Add tests around the code you are about to change. Martin Fowler calls the practice self-testing code. The catch is that tests pin current behavior, bugs included, so they protect a refactoring without proving the design is sound.
- Run static analysis in the pipeline and gate on new code. Google’s Tricorder admits a new check only when fewer than 10% of its results are effective false positives, and the platform’s overall rate sits just below 5% (Software Engineering at Google, 2020). A noisy rule gets ignored, so tune it or drop it.
- Refactor the lowest-scoring modules in small steps. Fowler defines refactoring as a change to internal structure that makes software easier to understand and cheaper to modify while observable behavior stays the same, and his online catalog names the individual moves. Reworking code that runs fine and rarely changes adds risk for little return, which is the argument Google’s engineers make about old static analysis warnings.
- Use review to check understanding. Bacchelli and Bird found at Microsoft (2013) that defect-finding is the main motivation, yet knowledge transfer and team awareness are common outcomes, and understanding the change is the key activity. Their study also found that most of the mechanisms reviewers use to understand a change are not met by current tools.
Tests come first because code refactoring is defined by unchanged behavior, and only a test suite can show that.
Most of those tests should be unit tests, which run fast enough to execute on every commit.
Design rules guide where to refactor. Robert C. Martin introduced the principles behind SOLID in his 2000 paper Design Principles and Design Patterns, with single responsibility aimed at cohesion and dependency inversion aimed at lowering coupling.
Sandi Metz warns about the cost (The Wrong Abstraction, 2016): duplication is far cheaper than the wrong abstraction, so extract only once the pattern is clear.
Software Maintainability FAQ
What is a good cyclomatic complexity threshold?
A common cap is 10. That is the limit NIST SP 500-235 discusses (it notes that limits up to 15 have been used successfully), and the point above which MATLAB’s documentation calls files candidates for simplification (above 50 counts as untestable).
SIG is stricter. Its limit of 4 branch points per method equals a cyclomatic complexity of 5.
Is maintainability the same as readability?
No. Readability feeds analysability, but maintainability also asks whether a change can be made safely and verified, which brings in modularity, modifiability, reusability and testability.
Readable code with tight coupling is still hard to change.
Does high test coverage guarantee maintainable code?
Not on its own. Coverage reports which lines ran, not whether assertions verify behavior, so a high percentage can sit on weak tests.
It speaks only to testability, one of the five sub-characteristics, and ignores coupling and complexity entirely.
How do you write a maintainability requirement?
Pair a change scenario with a measurable limit. For example, adding a payment provider should touch one module, and new code should hold a maintainability rating of A in SonarQube.
A requirement that says only “the code must be maintainable” cannot be tested.
Choosing Which Module to Fix First
Maintainability work pays back fastest in modules that score low and change often, since weak structure costs a team on every edit.
Code Climate’s Churn vs. Maintainability view plots exactly this pair and flags code that changes regularly with a low grade as a prime refactoring target.
Low-scoring modules with high churn go first. High-scoring modules that change a lot are better protected with tests, and low-scoring ones that rarely change can be left alone.
The order needs change history, so a codebase with no commits yet falls back to the score alone. The trade-off is that stable, low-scoring modules stay red on the dashboard.
This advice was checked on 8 November 2026. Code Climate Quality is being replaced by Qlty Cloud, so confirm that your tool still offers a churn view.
New modules stay off the queue when tests come first, the core rule of test-driven development.
- PyCharm vs VS Code for Python: Speed, Debugging, Cost - December 1, 2026
- How to Choose a Digital Transformation Consulting Partner - November 30, 2026
- Is Notepad++ Safe? Official Download, Updates, CVEs - November 29, 2026



