Suggestion acceptance rate is the share of code suggestions shown by an AI coding assistant that a developer accepts, usually by pressing a key such as Tab. Also called code acceptance rate, it is one of the most widely reported metrics in AI for coding, used by vendors and engineering teams to judge whether completions are relevant enough to keep.
The metric is easy to collect and easy to compare over time, which explains its popularity. It is also easy to misread: an accepted suggestion may later be edited or deleted, and a low rate can reflect a cautious developer rather than a weak model. Experienced teams therefore treat it as a leading indicator of fit, not as proof of productivity or code quality.
How suggestion acceptance rate is calculated
The basic formula divides accepted suggestions by shown suggestions over a defined period. A suggestion counts as shown when it is rendered in the editor for a minimum time, often a few hundred milliseconds, so that flickering completions the developer never saw do not inflate the denominator.
Details of the definition matter more than the formula. Tools differ in whether partial acceptance of a single word or line counts, whether multiline completions count once or per line, and whether suggestions from inline chat or next edit suggestion features are included. Comparing rates across vendors without aligning these definitions is a common analytical error.
The table lists the main variants of the metric and what each one captures.
| Variant | Definition | What it captures |
|---|---|---|
| Suggestion-level rate | Accepted suggestions divided by shown suggestions | How often completions are relevant |
| Character or line rate | Accepted characters or lines divided by shown ones | Volume of code taken from the model |
| Partial acceptance rate | Share of suggestions accepted word by word | Usefulness of the first tokens |
| Retention rate | Accepted code still present after a set time | Durability of accepted code |
| Share of AI-written code | AI-originated characters in committed code | Contribution to the final codebase |
Typical values and what influences them
Reported suggestion-level rates for inline completion tools commonly fall in the range of roughly 20 to 40 percent, with wide variation between teams, languages and products. Published figures are rarely comparable because each vendor applies its own telemetry rules, so a single number says little without its definition.
Several factors move the rate in predictable directions. The following table summarizes the most important ones and their usual effect.
| Factor | Typical effect | Reason |
|---|---|---|
| Suggestion length | Shorter suggestions are accepted more often | Less room for a wrong token |
| Language and framework | Higher in popular, boilerplate-heavy stacks | More training data and patterns |
| Codebase context | Higher with codebase indexing | Suggestions match local conventions |
| Developer experience | Varies by task and seniority | Experts reject more but accept larger blocks |
| Trigger policy | Higher when fewer suggestions are shown | Low-confidence completions are suppressed |
| Latency | Lower when suggestions arrive late | The developer has already typed ahead |
The trigger policy effect is especially important. A tool that shows suggestions only when its confidence is high will report a higher acceptance rate while possibly helping less, because fewer opportunities are offered in the first place.
How it compares with other productivity metrics
Acceptance rate measures momentary relevance, while engineering leaders usually care about outcomes such as delivery speed, quality and developer satisfaction. Research on coding assistants has found that acceptance rate correlates with perceived productivity better than many other telemetry signals, yet it still does not measure delivered value directly.
The table places acceptance rate alongside other metrics that teams combine in a balanced evaluation.
| Metric | Question it answers | Main blind spot |
|---|---|---|
| Suggestion acceptance rate | Are completions relevant in the moment? | Ignores later edits and defects |
| Code retention | Does accepted code survive? | Survival does not mean correctness |
| Pull request cycle time | Is work delivered faster? | Influenced by many non-AI factors |
| Change failure rate | Does quality hold up in production? | Lagging and noisy at small scale |
| Developer survey score | Do developers find the tool helpful? | Subjective and prone to bias |
Using the metric well in engineering teams
Acceptance rate is most useful for comparing configurations under controlled conditions, for example two model versions, two context strategies or two trigger thresholds tested on the same group of developers. In that setting, a change of a few percentage points can be a meaningful signal.
- Fix the metric definition before collecting data and keep it stable.
- Segment results by language, repository and task type rather than reporting one average.
- Pair the rate with retention and quality metrics to detect accepted but discarded code.
- Use A/B tests or staged rollouts instead of before-and-after comparisons.
- Report the rate to teams as a tool health signal, never as an individual performance target.
Limitations and common misinterpretations
The most serious limitation is that acceptance does not guarantee correctness. Developers sometimes accept a suggestion to inspect it in place and then rewrite it, and they may accept plausible code that contains subtle bugs, insecure patterns or a package hallucination that references a library that does not exist.
Turning the rate into a target invites Goodhart’s law: once teams are rewarded for high acceptance, behavior adapts to the number rather than to quality. The metric also says little about agentic coding workflows, where an agent edits many files and the developer reviews a whole diff instead of individual completions, so acceptance of the final change set becomes the more relevant unit.
Put simply
An AI coding assistant keeps offering bits of code while a programmer types. Suggestion acceptance rate counts how often the programmer says yes. If the tool offers ten suggestions and the programmer takes three, the rate is 30 percent.
A higher number usually means the suggestions fit the work better. However, a yes is not the same as good code. People sometimes accept a suggestion and then change or delete it. So the number is a helpful clue, not the full story.
In practice
A platform team at a mid-sized software company rolls out an AI coding assistant to 200 developers and wants to decide whether to enable repository-wide context retrieval. It splits developers into two groups for four weeks, keeps the same model and trigger threshold, and measures the suggestion-level rate, 30-minute retention and pull request review comments.
The group with codebase context shows an acceptance rate about six percentage points higher, and retention rises as well, mainly in the internal service framework where local conventions matter most. Review comments do not increase. Based on these combined signals, the team enables context retrieval for everyone and keeps acceptance rate on a dashboard as a tool health indicator, explicitly excluded from individual performance reviews.