On this page
- What is the technical debt quadrant?
- The four quadrants, with an example of each
- Reckless and deliberate
- Prudent and deliberate
- Reckless and inadvertent
- Prudent and inadvertent
- What each quadrant looks like in a repository
- Reckless and deliberate debt shows up as hot, unhealthy files
- Prudent and deliberate debt should be written down
- Reckless and inadvertent debt shows up as unplanned structure
- Prudent and inadvertent debt shows up as leftovers
- How to score each quadrant from data
- Which quadrant should you fix first?
- Quadrant vs a simple intentional/unintentional split
- Using the quadrant with a measurement
- FAQ
The technical debt quadrant (also called the tech debt quadrant) is Martin Fowler's way of sorting technical debt on two axes: deliberate or inadvertent, and reckless or prudent. That gives four kinds of debt, and each one calls for a different response. This guide defines each quadrant, gives an example of each, and shows the signals in a repository that point to where your debt sits.
What is the technical debt quadrant?
The technical debt quadrant is a 2x2 grid from Martin Fowler's 2009 TechnicalDebtQuadrant post. It builds on Ward Cunningham's debt metaphor: shipping code you do not yet fully understand is like borrowing money. Fine if you pay it back, costly if you only ever pay the interest.
Fowler noticed that people use "tech debt" for very different things, and that one label hides the difference. A team that skips tests to hit a launch date and a team that wrote a clean design that later turned out to be wrong are both "in debt". They are not in the same situation. The grid separates them.
| Reckless (poor judgment) | Prudent (sound judgment) | |
|---|---|---|
| Deliberate (the team knew) | Reckless deliberate. "We don't have time for design." | Prudent deliberate. "We must ship now and deal with consequences." |
| Inadvertent (the team did not know) | Reckless inadvertent. "What's layering?" | Prudent inadvertent. "Now we know how we should have done it." |
Scroll the table sideways to see every column.
Read the grid by row first: the top row is debt you can find by asking the team, the bottom row is debt you have to find in the code.
The two axes ask different things. Deliberate or inadvertent is about awareness: did the team know it was taking a shortcut? Reckless or prudent is about judgment: was the shortcut a sound decision given what the team knew?
The four quadrants, with an example of each
Each quadrant has a different cause and a different fix. Read them as a diagnosis of how the debt got there, not as a ranking of how bad it is.
Reckless and deliberate
This is debt taken on knowingly, with no plan to repay it. The team knows the design is wrong and ships anyway because design feels like a luxury. A payment handler with business rules copied into three controllers, written under a deadline with "we'll tidy it after launch" and no ticket, is the textbook case.
The fix is cultural before it is technical. Make the shortcut visible, put it on the backlog with an owner, and stop treating "no time" as a design strategy.
Prudent and deliberate
This is debt taken on knowingly, as a trade you can defend. A team hard-codes a single payment provider to hit a partner date, writes down that a provider interface will be needed, and schedules it for the next quarter. The debt has a reason, a recorded cost and a repayment plan.
This is the quadrant Cunningham's metaphor describes best. Nothing is wrong with it as long as the repayment actually happens. Record the decision where the next engineer will find it: an architecture decision record, or a ticket linked from the code.
Reckless and inadvertent
This is debt the team did not know it was taking on, because it lacked the skill or the context. "What's layering?" is Fowler's line for it. A team new to a framework spreads data access across view code, and nobody notices until every change touches six files.
The fix is learning plus review: pairing, design review before the code lands, and a way to see the structure of what exists. Blame does not help here, because nobody chose it.
Prudent and inadvertent
This is debt that only appears after you did a good job. The team built the best design it knew, shipped it, learned how the domain really works, and now sees a better design. Fowler's phrasing is "now we know how we should have done it."
Fowler notes that even the best teams end up here. You cannot learn the domain without building the first version. Repay it as part of nearby feature work, when you are already changing the area.
What each quadrant looks like in a repository
Intent is not stored in git, but each quadrant leaves different traces in the code. Mapping the grid to measurable signals gives you a way to find debt without a survey. Treat the mapping as a starting hypothesis: the signal tells you where to look, and the people who wrote the code tell you which quadrant it was.
| Quadrant | What it tends to leave behind | Signal to check |
|---|---|---|
| Reckless, deliberate | Complex files that keep changing and keep breaking | Low code health in hotspot files, bug-fix concentration |
| Prudent, deliberate | A known compromise in a few places | Decision records, TODOs with owners, files with a documented plan |
| Reckless, inadvertent | Structure that nobody planned | Circular import groups, one file imported by a quarter of the codebase |
| Prudent, inadvertent | Code that outlived its design | Unused exports, unreachable files, single-author files |
Scroll the table sideways to see every column.
The numbers below come from our own study: we analysed 195 of the most-starred public repositories indexed on repowise.dev (1,000+ GitHub stars each, 253,688 production source files, November 2026). Every figure counts production code only, so check each against your own repo.
Reckless and deliberate debt shows up as hot, unhealthy files
Files that change constantly and score poorly are where rushed work accumulates. In the median repo in our cohort, 10% of production files absorb 68% of all line churn over 90 days. Median code health is 7.1 out of 10, but median hotspot health is 4.9, and in 174 of 186 repos (94%) the hotspot files score below the repo average.
The consequence is measurable. In the median repo, the least-healthy 20% of files hold 60% of the files that needed a bug fix in the last 180 days (173 repos with enough fix history). That is an association on history, not a prediction, but it makes the shortlist easy: sort files by churn, then by code health, and read the top ten.
uv tool install repowise # or pipx / pip install repowise
repowise init # indexes the repo, no LLM key needed
repowise health # Fix first, KPIs, lowest-scoring files
See git hotspot analysis for the method and how to prioritize technical debt for turning the list into a plan.
Prudent and deliberate debt should be written down
The only reliable trace of deliberate debt is a record. Code cannot tell you a shortcut was a conscious trade. A decision record, a ticket reference next to a TODO, or a commit message that names the compromise can.
repowise reads the reasoning your team already wrote down (ADR files, # WHY: comments, commit messages, pull request bodies) and ties it to the files it governs. An agent can ask get_why on a file and get the reason for an odd structure back. A deliberate trade you can find in thirty seconds stays prudent. One nobody can find drifts toward reckless. See architectural decisions in the docs.
Reckless and inadvertent debt shows up as unplanned structure
Structure nobody designed usually appears as import cycles and over-central files. In our cohort, 173 of 195 repos (89%) have at least one circular import group, and in the median repo 9% of production files sit inside one. Every Python repo in the cohort has one; 12 of 22 Go repos do.
Centrality is the second sign. In the median repo, a single hub file is imported by 20% of production files. In grafana/grafana, packages/grafana-data/src/index.ts is imported by 3,178 of 10,090 production files (31%, indexed 2026-10-28). In keycloak/keycloak, KeycloakSession.java is imported by 1,690 of 6,626 (26%, indexed 2026-11-04). Those are deliberate public surfaces in mature projects. In a young codebase, the same shape usually means nobody decided where the boundary goes.
These are file-level import cycles, and Python __init__.py re-exports and TypeScript barrel files create cycles that are often harmless at runtime. Use the counts to find where to look. For the fix, see finding circular dependencies in a monorepo.
Prudent and inadvertent debt shows up as leftovers
Code that outlived its design leaves dead code and single-owner knowledge. 182 of 190 repos with dead-code data (96%) have at least one dead code finding in production code, and 170 of 190 (89%) contain at least one source file that nothing imports. In the median repo, flagged unreachable files are 3.2% of production files. These are engine findings, not verified deletions, so review them before removing anything.
Knowledge concentration belongs here too. In the median repo, 60% of production files have a bus factor of 1, meaning one person made 80% or more of the commits, and 34% of the 20,941 hotspot files in the cohort do. When that person leaves, the design rationale leaves with them and a prudent decision turns into an unexplained one.
repowise dead-code --safe-only # deletion-ready findings only
repowise risk --target src/auth/session.py # owner, recent owner, bus factor
More on both: find dead code in your repository and what is bus factor.
How to score each quadrant from data
You can place a file in a quadrant with two questions, and both have an answer in your repository. Is there a record that the shortcut was a choice (deliberate or inadvertent)? And is the file healthy now (prudent or reckless)? The classification is a heuristic, since only the authors know what they intended, but it turns a workshop debate into a ranked list.
The inputs map to signals repowise already computes:
| Question | Signal | Where it comes from |
|---|---|---|
| Which files matter? | Hotspots: files in the top 25% of a repo by recency-weighted churn that clear activity floors | git history, repowise health |
| Is it healthy? | Code health, 1 to 10 per file: Excellent 8.5 and above, Good 7.0 to 8.5, Fair 5.5 to 7.0, Needs work 4.0 to 5.5, At risk under 4.0 | parse tree, dependency graph and git history, no LLM key |
| Was it a choice? | A recorded decision tied to the file (ADR, # WHY: comment, commit or pull request text) | get_why |
| Is it still paying interest? | Bug-fix history and the Fix first rank | repowise health, get_health |
| Is the knowledge thin? | Bus factor per file | repowise risk |
Scroll the table sideways to see every column.
Per the code health layer docs, the bands are absolute, so a 6.2 means the same in every repo, and on the benchmark corpus files under 4.0 carry many times the per-file defect rate of files at 8.0 and above. That is why the health axis is a fair stand-in for "reckless": the low band is where defects concentrate.
To score your own repo, take the top twenty files by churn, read each one's health band, and check each for a recorded decision. Four counts come out, one per quadrant, and the size of the reckless counts tells you whether the problem is discipline (reckless deliberate), skill and visibility (reckless inadvertent) or neither. The same data answers the next question.
Which quadrant should you fix first?
Fix by interest paid, not by quadrant. The grid explains how debt arose. It does not tell you what to repay first. A prudent, inadvertent leftover in a file that changes every week costs more than a reckless shortcut in a file nobody has opened in two years.
A workable order:
- Start with reckless debt in hotspots. It is the most likely to cause bugs and the most likely to repeat.
- Make deliberate debt visible next. Record it, give it an owner and a date.
- Pay prudent, inadvertent debt when you are already changing the area.
- Prevent reckless, inadvertent debt with review and a view of the structure, since you cannot repay what you cannot see.
For the ranking method, see how to prioritize technical debt. For how quickly debt can build when agents write the code, see debt at agent speed.
Quadrant vs a simple intentional/unintentional split
A two-way split into intentional and unintentional debt covers the deliberate and inadvertent axis alone. Fowler's second axis adds the quality of the decision, so "deliberate" is no longer one bucket. A reckless shortcut and a prudent trade are both intentional, and only one of them is defensible.
Using the quadrant with a measurement
The quadrant describes debt after the fact: it classifies, it does not rank. Fowler's post names the four kinds and stops there. Teams that stop at labeling debt tend to end up with a well-organized backlog nobody works, so pair the grid with numbers. Technical debt measurement tools compared covers the options, what is tech debt covers the signals in more depth, and the code quality hub links the rest of the cluster.
FAQ
- What is the technical debt quadrant?
- The technical debt quadrant is a 2x2 model by Martin Fowler that classifies technical debt as deliberate or inadvertent and as reckless or prudent. It gives four types: reckless deliberate, prudent deliberate, reckless inadvertent and prudent inadvertent. Each has a different cause and a different remedy.
- What is a technical debt quadrant example?
- A team hard-codes one payment provider to hit a partner launch, records that a provider interface is needed, and schedules it for next quarter: prudent and deliberate. A team new to a framework scatters data access across view code without noticing: reckless and inadvertent. Each quadrant has an example in the guide above.
- What are the 4 quadrants of tech debt?
- Reckless deliberate, prudent deliberate, reckless inadvertent and prudent inadvertent. The columns are judgment (reckless or prudent) and the rows are awareness (deliberate or inadvertent).
- Who created the technical debt quadrant?
- Martin Fowler published it on his bliki in 2009. The underlying technical debt metaphor comes from Ward Cunningham, who used it in the early 1990s to explain why shipping an incomplete understanding of a problem has a cost that grows until you refactor.
- What are the four types of technical debt in the quadrant?
- Reckless and deliberate ("we don't have time for design"), prudent and deliberate ("we must ship now and deal with consequences"), reckless and inadvertent ("what's layering?"), and prudent and inadvertent ("now we know how we should have done it").
- What is the difference between deliberate and inadvertent debt?
- Deliberate debt is a shortcut the team knew it was taking. Inadvertent debt is a problem the team did not know it was creating, either because it lacked experience or because it only learned the better design later. Deliberate debt can be recorded when it is taken; inadvertent debt has to be found.
- Is all technical debt bad?
- No. Prudent deliberate debt is a legitimate trade: you ship sooner and pay a known cost later. It becomes a problem when it is undocumented, has no owner or never gets repaid. Prudent inadvertent debt is also normal, since you cannot learn the domain without building a first version.
- How do you tell which quadrant a piece of debt belongs to?
- Ask the people who wrote it whether they knew about the shortcut, and whether it was a sound call at the time. Then use the repository to find candidates: hot, low-scoring files for reckless debt, import cycles and over-central files for unplanned structure, and unused exports and single-author files for leftovers.
- How do you score the technical debt quadrant with data?
- Take the files that change most, read each one's code health band, and check whether a decision record explains it. A record plus Good or better health is prudent deliberate, a record plus a low band is reckless deliberate, no record plus a low band is reckless inadvertent, and no record plus a healthy file is prudent inadvertent. The scoring section above has the flow.
- How do you measure technical debt?
- Measure where change and risk concentrate: churn, code health or complexity, bug-fix history, dependency reach, dead code and ownership. The guide to technical debt lists the signals, and
repowise healthranks files by them from your repo's own history. - What is considered technical debt?
- Any shortcut or design choice in code that makes later change slower or riskier than it needs to be. That covers rushed code, missing tests, tangled structure and outdated design, whether you chose it or discovered it later. The quadrant sorts those cases by intent and judgment.
- How much technical debt is acceptable?
- Enough that you can name it, rank it and repay it on a plan. Prudent deliberate debt with an owner and a date is acceptable. Debt that sits in hotspot files, grows each quarter or has no record is not, whatever its total size.
- How do you address technical debt?
- Rank it by interest paid: churn, bug history and how many files depend on it. Repay reckless debt in hotspots first, record deliberate debt with an owner, and fold prudent inadvertent debt into nearby feature work. Add review and a structural view to stop new reckless debt.



