Skip to main content

AI Debt Calculator

Last updated . Sources are named and dated inline - how we source claims.

Estimate the hidden technical debt from AI-generated code in your codebase with our interactive risk assessment tool

A mechanical adding machine merged with a server rack, paper tape unrolling, a gauge in the red and a robot pressing keys

Why Measuring AI-Specific Debt Matters

AI coding assistants are transforming software development, but they are also introducing a new category of hidden technical debt. Unlike traditional shortcuts that developers consciously choose, AI-generated debt accumulates silently -- accepted suggestions pile up, untested patterns spread, and codebases drift from their intended architecture.

The problem is not the AI itself. It is the gap between how fast code can now be produced and how fast it can be read, understood, and tested by the people who will own it for the next several years. Generation speed changed; review capacity did not. Anything that clears review without actually being read is debt nobody chose, and it arrives in volume.

This calculator helps you estimate your AI debt exposure based on your team's actual practices. Answer six questions about your AI usage patterns and get an actionable risk assessment with specific recommendations.

The AI Debt Calculator

Fill in the details below based on your team's current AI coding practices. All calculations happen in your browser -- no data is sent anywhere.

Number of developers using AI coding assistants

Estimated percentage of your codebase written or heavily assisted by AI

30%

How thoroughly does your team review AI-generated code before merging?

How long has your team been actively using AI coding assistants?

What percentage of AI suggestions does your team accept without significant modification?

50%

What percentage of AI-generated code is covered by automated tests?

40%

What the Calculator Reports

Submitting the form fills four figures. The AI Debt Score is a weighted composite of your six answers on a zero to one hundred scale, where higher is worse. The Risk Level puts that score into a named band. Est. Hidden Bugs projects how many defects per ten thousand lines of AI-generated code are likely to escape review. Review Hours Needed estimates the weekly review time, across the whole team, that would keep the score from climbing.

The bands are fixed cut points on the same zero to one hundred scale. A score of 0 through 25 is Low: AI code is reviewed and tested well enough that little debt is hiding in it, so the job is monitoring for drift. 26 through 50 is Medium: debt is accumulating but is still cheap to unwind, and the fix is a review checklist plus better coverage on AI-heavy modules. 51 through 75 is High: bugs, debug cycles, and maintenance cost are already growing, and remediation needs dedicated sprint capacity rather than spare time. 76 through 100 is Critical: expect escalating defect rates, security exposure, and architectural decay, and treat an audit plus a process overhaul as urgent.

A single score matters less than its direction. Rerun this monthly, or after any change to team size, tooling, or review policy, and watch whether the number is rising or falling - a climbing score signals process erosion long before the band changes.

Getting the Inputs Right

The output is only as honest as the six answers, and four of them are estimates that people reliably get wrong in the same direction. Volume and acceptance rate get guessed low, because nobody counts the suggestions they took without thinking. Review thoroughness gets picked one level above what actually happens on a Friday afternoon with a release pending. Coverage of AI code gets confused with overall repository coverage, which is a friendlier number.

A few things make the inputs sturdier. Answer for the last month, not for how the team intends to work. Pick the review level that describes your median pull request rather than your best one - if any meaningful share of AI-generated code merges on a quick scan, that is the level you are operating at. For test coverage, look specifically at the modules where AI assistance is heaviest rather than at the repository total, because those are usually the newest files and the ones least likely to have been backfilled with tests.

It is worth answering as a group, because the argument is more informative than the score. When a tech lead says review is thorough and three engineers say it is basic, you have learned something no calculator was going to tell you. Write down what you settle on, including the disagreement, so the next run has something to compare against.

What Each of the Six Inputs Is Really Asking

Each field on the form is a short label standing in for a longer question. Two of them describe how much AI-assisted code exists, three describe what happens to that code before it is trusted, and one describes how long the pattern has been running. The inputs do not count equally: the two review-side answers and the volume answer carry most of the score, while team size barely moves it.

Diagram of six weighted inputs - AI Code Volume, Review Thoroughness, Acceptance Rate, Test Coverage Gap, Time Accumulation, Team Scale - feeding one AI Debt Score and a Risk Level.
Six answers of unequal weight combine into one AI Debt Score, which is then placed in a Risk Level band.

Use the table below while you fill in the form. The third column is the useful one: every input has some piece of evidence you can look at instead of guessing, and ten minutes spent looking usually changes at least one answer.

InputThe question behind itEvidence to check firstCommon misreading
Team SizeHow many people are producing AI-assisted code that someone else has to review and own?The assistant seat or license list, cross-checked with who actually uses it week to week.Entering total engineering headcount, or counting only the enthusiasts and missing the quiet daily users.
Percentage of Code AI-GeneratedHow large is the surface where hidden debt could be sitting?Your assistant's usage reporting if it has any, plus a sample of recent pull requests where you ask the authors directly.Mixing two definitions. Recent work is usually far more AI-heavy than the codebase as a whole, so decide which one you are answering for and keep it the same on every run.
AI Code Review ThoroughnessWhat happens to a typical AI-assisted change between "opened" and "merged"?The review comments on a handful of recently merged pull requests. Large diffs approved with no comments are a quick scan, whatever the policy says.Describing the written review policy rather than the observed practice.
Months Since AI AdoptionHow long have unexamined patterns had to spread and be copied?The date the first people on the team started using an assistant for real work.Counting from the official rollout when individuals had been using their own tools well before it.
Average AI Acceptance RateHow much generated code goes in as written, without a person reshaping it?Assistant telemetry where it exists. Otherwise ask each developer privately and take the middle answer.Confusing it with the volume input. Volume is how much of the code is AI-assisted; acceptance is how much of what the assistant offered was kept untouched.
Test Coverage of AI CodeIf the generated code is wrong, will anything automated notice?A coverage report filtered to the directories where AI assistance is heaviest.Counting tests the same assistant generated to mirror its own implementation. They raise the percentage and confirm the code does what it does, not what it should do.

If you only verify one input: make it review thoroughness. It is tied for the heaviest weight, it is the answer people most often round up, and unlike volume it is something the team can change next week. The AI code review guide describes what a thorough pass actually looks at.

Understanding Your Score

Low Risk (0-25)

Your team has strong AI governance practices. AI-generated code is well-reviewed, adequately tested, and unlikely to harbor significant hidden debt. Continue your current practices and monitor for drift.

Medium Risk (26-50)

Some AI debt is accumulating but it is manageable. Focus on improving code review processes for AI-generated code and increasing test coverage. Schedule quarterly audits of AI-heavy modules.

High Risk (51-75)

Significant AI debt is building up. Your team is likely experiencing more bugs, longer debug cycles, and growing maintenance costs from AI-generated code. Immediate process improvements are recommended.

Critical Risk (76-100)

Your codebase likely contains substantial hidden debt from AI-generated code. Expect escalating bug rates, security vulnerabilities, and architectural decay. A comprehensive audit and process overhaul is urgently needed.

A Worked Example: Reading One Result End to End

Illustrative scenario. The team below is hypothetical and its inputs are simply the values the form starts with. Every figure is this calculator's own arithmetic applied to those inputs. None of it is a benchmark, a survey result, or a measurement of any real codebase.

Step 1: The answers

Picture a product team of 5 developers, 6 months into using an assistant. They estimate that 30 percent of the codebase is AI-assisted, that review is Basic, that 50 percent of suggestions are accepted without significant modification, and that 40 percent of the AI-heavy code is covered by tests. Nothing here looks alarming on its own, which is exactly why it makes a useful example.

Step 2: Where the points come from

Each answer is converted to a risk value from zero to one hundred, then multiplied by its weight. The right-hand column is what the doughnut chart draws.

FactorAnswerRisk valuePoints shown in the chart
AI Code Volume30 percent308
Review ThoroughnessBasic6516
Acceptance Rate50 percent5010
Test Coverage Gap40 percent covered609
Time Accumulation6 months253
Team Scale5 developers101

The calculator reports a score of 46 for these answers, in the Medium band. If you add the chart segments yourself you get 47. That is not a bug: the total is rounded once from the unrounded sum, while each segment is rounded separately for display. Expect the segments to disagree with the headline score by a point now and then, and trust the headline.

Step 3: Reading the other three figures

Alongside the score, this run shows an estimate of 14 hidden bugs per ten thousand lines of AI-generated code and 6 review hours per week across the team. Both are derived directly from the score and the team size, so they add no new information - they restate the same risk in units that are easier to argue about in a planning meeting. The summary names Review Thoroughness as the top risk contributor, because 16 is the largest segment. That one line is the most actionable thing on the results panel.

Step 4: Testing the levers before you commit to one

Before choosing what to change, move one input at a time on the form and resubmit. For this illustrative team, the reruns look like this:

Single change from the starting answersNew scoreWhat it would take in practice
Review moves from Basic to Thorough37Line-by-line reading and tested key paths on the typical pull request, not only the risky ones.
Test coverage of AI code rises from 40 to 70 percent41Backfilling tests on the AI-heavy modules, written against intended behavior.
Acceptance rate falls from 50 to 30 percent42Developers reshaping suggestions to fit the codebase instead of keeping them as offered.
AI code volume falls from 30 to 20 percent43Using the assistant less, which gives up the benefit to buy the smallest improvement.
All three process changes together29A sustained change in how the team works, over more than one cycle.
No change at all, six months later48Nothing. The score climbs on its own because time is a weighted factor.

Three things stand out. Review is the strongest single lever for this team, which matches the top risk contributor. Cutting AI usage is the weakest, so the tool is not arguing for less AI - it is arguing for more attention on what the AI produces. And even with all three process changes in place the result is still Medium, because the bands are wide. A drop from 46 to 29 is a large, real improvement that the band label hides completely, so report the score and its direction rather than the label.

What to Do Next

Score 0-25: Maintain & Monitor

  • Document your current AI review process as a team standard
  • Set up automated metrics to track AI code quality over time
  • Share your practices with other teams as a model
  • Recalculate quarterly to catch any process drift early

Score 26-50: Improve Processes

  • Implement mandatory code review checklists for AI-generated code
  • Increase test coverage targets for AI-heavy modules by 20%
  • Train the team on identifying common AI code antipatterns
  • Schedule monthly AI debt review sessions

Score 51-75: Take Immediate Action

  • Conduct a focused audit of the highest-churn AI-generated modules
  • Reduce AI acceptance rate targets -- aim for under 40% unmodified acceptance
  • Dedicate 15-20% of sprint capacity to AI debt remediation
  • Implement pair review for all AI-generated business logic

Score 76-100: Emergency Response

  • Pause new AI code generation until review processes are established
  • Run static analysis and security scans on all AI-generated modules
  • Dedicate 25-30% of sprint capacity to immediate debt reduction
  • Present findings to leadership with a remediation roadmap and budget request

Turning the Number Into a One-Change Plan

The action lists above tell you what kind of response each band calls for. This is the smaller, repeatable routine that sits underneath them: one pass through the calculator, one change to how the team works, one honest check on whether it held. It fits inside a normal planning cycle and needs no budget approval.

1. Answer together

Put the form on a shared screen with the people who write and review the code. Where two people disagree on an input, enter the less flattering answer and note the disagreement.

2. Record the inputs

Nothing is saved by this page, so copy the six answers, the score, and the date into wherever your team keeps decisions. A line in the team wiki is enough.

3. Find the top risk contributor

Read the last line of the summary and the largest chart segment. If the top contributor is one you cannot act on, such as time or team scale, take the largest one that you can.

4. Change one thing

Phrase the change as something a stranger could observe, not as an intention. "Every AI-assisted pull request states which paths were tested by hand" can be checked. "We will review more carefully" cannot.

5. Re-measure

Before rerunning the form, pull a small sample of recently merged pull requests and check whether the change from step 4 is visible in them. Only move the input if the evidence moved. Then start the loop again with whichever factor is now on top.

Cycle diagram with five stages in a loop: Answer Together, Record Inputs, Top Risk Contributor, Change One Thing, Re-Measure, then back to the start.
The calculator is one stage of a loop: answer, record, pick the top contributor, change one practice, and measure again.

Questions Teams Ask After the First Run

Should we answer per team or for the whole organization?

Per team. Review habits and test coverage vary far more between teams than within one, and an organization-wide answer averages a disciplined team and a struggling one into a middling score that describes neither. Run it once per team that shares a review process, then compare the inputs, not the totals.

Our score is Low, but the code still feels fragile. Which do we believe?

Believe the code. A Low score says your current process is sound; it says nothing about boilerplate bloat or Copilot clutter that merged before that process existed. Treat the mismatch as a prompt to audit older AI-heavy modules, and see AI slop for the patterns worth searching for.

Which of the four figures should we show leadership?

The score, its direction since the last run, and the single change you are making. Leave the hidden bug estimate out unless you explain that it is a projection from the score rather than a count of defects anyone found. A modeled number presented as a measured one is the fastest way to lose the room when someone asks where it came from. The measuring tech debt guide covers metrics that are observed directly.

We changed our process and the score did not move. Why?

Usually because the change was real but too small to shift a coarse input: review has only four settings, so an improvement inside "Basic" is invisible to the form. Keep the evidence from your pull request sample as the primary record, and let the score catch up when the practice has clearly crossed into the next level.

Re-Measuring Without Fooling Yourself

Monthly suits a team actively changing its practices; quarterly is enough for one that is not. Re-run it immediately after anything that alters the inputs: a new assistant rolled out, a review policy changed, several people joining or leaving. More often than monthly mostly measures how you felt on the day you filled in the form.

Record the six inputs every time, not only the resulting score. A score on its own is unreadable three months later, because two teams can arrive at the same number by opposite routes - one with heavy AI use and disciplined review, one with light AI use and no review at all - and those two teams need opposite fixes. The inputs tell you which factor moved. The score just tells you that something did.

Keep the estimator stable. Have the same person or the same group answer each time, working from the same interpretation of what "thorough" means, and note it in your record when that changes. A consistent bias is harmless because it cancels out across runs; a bias that drifts quietly turns a real improvement into a flat line, or invents one that never happened.

Change one thing at a time between runs. Tightening review standards and mandating coverage on AI-heavy modules in the same month leaves you unable to say which one paid. Expect movement to be slow, too: the bands are deliberately wide, so drops inside a band are the real signal, and a team waiting for the band label to change before claiming progress usually gives up first.

A score can also rise with no change in behavior, because time under AI adoption is one of the weighted factors. That is intentional. Holding your practices constant while AI-assisted code keeps accumulating is not a neutral position, and a flat process against a rising score is exactly the picture that should prompt action.

One thing to avoid entirely: do not attach this score to a performance review or a team goal. Every input is self-reported, and the quickest way to move a self-reported number is to change the reporting rather than the practice.

How the Score Is Calculated

The AI Debt Score is a weighted composite of six factors. We believe in transparent methodology -- here is exactly how your score is computed so you can evaluate and adapt it to your context.

1

AI Code Volume (25% weight)

Higher percentages of AI-generated code increase the surface area for hidden debt. Scales linearly from 0% to 100% AI code.

2

Review Thoroughness (25% weight)

The most impactful factor. Minimal review scores highest risk; comprehensive review dramatically reduces debt. Values: Minimal=100, Basic=65, Thorough=30, Comprehensive=10.

3

Acceptance Rate (20% weight)

Teams that accept a higher percentage of AI suggestions without modification accumulate more unvetted code. Maps directly from the 0-100% input.

4

Test Coverage Gap (15% weight)

Inverted test coverage: lower coverage means higher risk. 0% coverage scores 100 risk; 100% coverage scores 0 risk. Untested AI code is where bugs hide longest.

5

Time Accumulation (10% weight)

Debt compounds over time. Longer AI adoption periods without process improvement increase risk. Scales up to 24 months then caps at maximum risk contribution.

6

Team Scale Factor (5% weight)

Larger teams using AI tools have more variance in review quality and coding standards. Risk increases with team size up to 50 developers, then levels off.

Note: This calculator provides a directional estimate based on industry research and common risk patterns. Every codebase is unique -- use this score as a conversation starter and prioritization tool, not as an absolute measurement.

What This Score Deliberately Does Not Capture

This is a process assessment wearing a number. Here is what it is blind to by construction.

It never looks at your code

Nothing is parsed, scanned, or uploaded. The result comes from six answers about how your team works, so a team with disciplined practices and a genuinely troubled codebase will still score well. Static analysis and a real audit answer a different question, and this tool is meant to tell you where to point them first.

It cannot tell which code the AI wrote

Neither can most tooling, once generated code has been edited, reformatted, reviewed, and merged alongside everything else. Your volume figure is an estimate that will drift as the boundary blurs, which is another reason to record the input rather than trusting your memory of it next quarter.

It treats all AI code as equally risky

A generated test fixture and a generated authorization check are not the same exposure, and the score weighs them identically. Scaffolding and format translation are low-consequence uses where a mistake surfaces immediately; business rules, concurrency, and error handling are not, because a plausible wrong answer there can sit undetected for a long time. When you audit, start with whatever touches money, identity, permissions, or personal data.

It ignores the debt you already had

AI assistance built on top of an unclear architecture inherits the unclarity and reproduces it faster, but the score would read the same on a clean codebase with identical practices. For everything that predates your AI adoption, use the general tech debt calculator alongside this one.

It has no external benchmark

There is no published distribution of these scores, so no result here is "average" or "above average" for the industry. The only valid comparison is against your own earlier runs. Presenting your score to leadership as a standing next to peers would be inventing a comparison that does not exist.

It does not know what has a future

Debt inside a feature you are retiring next quarter is cheaper to tolerate than to repair, and debt in the part of the system every new capability has to pass through is worth fixing well before the score demands it. Roadmap knowledge lives with you, and it should override this ranking whenever the two disagree.

It is not a security assessment

Review thoroughness is a weak proxy for security at best. A careful human reviewer reading for correctness will still miss classes of problem that a dedicated scanner catches in seconds, and the reverse is also true. Run both, and treat a high score here as a reason to schedule the scan rather than a substitute for it.

Those gaps are why the actions attached to each band are process changes rather than a remediation estimate in hours or dollars: six self-reported answers cannot honestly be converted into a budget. What the score can do is tell you which conversation to have this month, and whether last month's change helped. For what AI-generated debt looks like once it is in the codebase, see AI slop and managing AI code quality.

Frequently Asked Questions

The calculator provides a directional estimate based on industry research and common risk factors. It is designed to highlight areas of concern rather than provide an exact measurement. Real-world debt depends on many additional factors like language, framework maturity, and the specific AI tools used. Use this as a starting point for deeper investigation -- not as a definitive audit result.

An AI Debt Score specifically measures risk from AI-generated code patterns that traditional tech debt metrics miss. Regular metrics like cyclomatic complexity or code coverage do not capture AI-specific issues such as hallucinated API usage, context-unaware implementations, or the "looks correct but is subtly wrong" pattern common in AI-generated code. This score fills that gap by focusing on the human-AI interaction factors that drive hidden debt.

Not necessarily, but statistically teams that accept a higher percentage of AI suggestions without modification tend to accumulate more technical debt. The key factor is the combination of acceptance rate and review thoroughness. A team with a 70% acceptance rate but comprehensive reviews may have less debt than a team with 40% acceptance rate but minimal reviews. The calculator weighs both factors together to give a more nuanced picture.

Reassess monthly or after significant changes such as onboarding new AI tools, changing review processes, adding team members, or major project milestones. Tracking the score over time reveals trends that are more valuable than any single measurement. A score that is rising month-over-month signals process erosion even if the absolute number looks acceptable.

No. This calculator identifies risk areas and provides estimates, but a thorough code audit with static analysis tools and human review is essential for accurate debt measurement. Think of this tool as triage -- it helps you decide where to focus your audit resources first. Pair the results with tools like SonarQube, Qlty (formerly Code Climate Quality), or manual architecture reviews for a complete picture.

Related Resources

Ready to Take Action on Your AI Debt?

Use our general Tech Debt Calculator to assess your full codebase, or explore strategies for managing AI code quality effectively.