AI for Medical Coding: What It Can Do and How to Use It Well
If you code for a living, you've probably heard two stories about AI. In one, it's about to replace you. In the other, it's a toy that makes up codes. Neither is quite right.
AI is very good at some parts of medical coding: explaining dense guidelines in plain English, walking through modifier logic, drafting a provider query, or giving a claim a second look before it goes out. It's unreliable at others, especially anything that depends on exact code descriptors, payer-specific rules, or the latest edit tables. The coders who get the most out of it treat it like a sharp, fast colleague who sometimes speaks with too much confidence. It's great for thinking things through. It's never the final word.
This guide covers how AI and medical coding fit together today, what to use it for, what to keep away from it, and prompts you can copy. Each section is a short overview. We go deeper on each topic in its own guide.
Medical Coding with AI (Without the Compliance Risk): Use AI as a second set of eyes on your coding, without letting it make the call.
See the courseFirst, a word on patient privacy
Before anything else: don't paste protected health information (PHI) into a general-purpose AI chatbot unless your organization has a business associate agreement (BAA) with the vendor and has approved that tool for PHI. Consumer versions of ChatGPT, Claude, Gemini and similar tools aren't set up for HIPAA by default.
That doesn't make them useless. Most of what's in this guide works fine with de-identified details. Strip names, dates of birth, medical record numbers, account numbers, addresses, exact dates of service and anything else that could identify a patient. "A 67-year-old established patient seen for a follow-up of type 2 diabetes who also had a lesion removed" tells the AI everything it needs.
If your employer offers an approved, HIPAA-compliant AI tool or a coding platform with AI built in, use that for anything involving real records.
Can AI do medical coding?
Yes, partly, and the "partly" matters.
There are two broad kinds of AI in medical coding:
- Computer-assisted coding (CAC) and autonomous coding platforms. These are purpose-built systems that read clinical documentation and suggest codes, or assign them outright for simpler, high-volume encounters like certain radiology, emergency department or outpatient visits. They're trained on large volumes of coded charts, connect to the EHR, and use current code sets. Many organizations route the confident cases straight through and send the rest to human coders.
- General-purpose AI assistants like ChatGPT. These are language models that can reason about coding questions, explain guidelines and draft text. They aren't connected to your code books or your payers' policies, and they can state an outdated or nonexistent code with total confidence.
Even the best dedicated platforms work best with coders reviewing their output, handling complex cases, and auditing for accuracy. AI tends to struggle with the things that make coding a skill: conflicting documentation, sequencing judgment, medical necessity, payer quirks, and knowing when the record simply doesn't support a code and a query is needed.
So the honest answer to "can AI do medical coding?" is that it can do a lot of the routine work and speed up the rest, but a certified coder is still responsible for what goes on the claim. For coders, AI changes the job more than it removes it: less hunting through manuals, more reviewing, auditing and handling exceptions.
Using ChatGPT for medical coding
ChatGPT and similar assistants are most useful as a thinking partner and an explainer. Here's where they earn their keep:
- Explaining a guideline or coding convention in plain language
- Talking through the logic of a tricky scenario
- Comparing two codes or two modifiers and when each applies
- Drafting provider queries, appeal letters and internal education notes
- Spotting gaps between documentation and the codes you've chosen
And here's where to be careful:
- Exact codes and descriptors.
- Always verify every code it gives you in your current code book or encoder. AI may cite a code that's been deleted, revised, or never existed.
- CPT wording.
- CPT descriptors are copyrighted by the AMA, and general AI tools often paraphrase or misremember them.
- Current edits and policies.
- NCCI tables, MUE values, LCDs and payer policies change on a schedule. The AI's training data won't always reflect the latest version.
The best habit you can build: ask the AI to show its reasoning and name the guideline it's relying on, then check that source yourself.
A good general-purpose starting prompt looks like this:
You are an experienced, certified medical coder. Below is a de-identified encounter scenario. Walk me through how you would code it.
Use only the details in the scenario. If something you need isn't there, write "Not found" and say what you'd need to know. Flag anything ambiguous instead of guessing.
For each coding decision (diagnosis, procedure, sequencing, modifier), give:
1. The decision
2. Your reasoning, step by step
3. The specific guideline or convention you're relying on, with its section
4. Whether it needs a provider query, and why
Don't guess at codes you're unsure of; tell me what to look up instead. End with a list of every code and rule I should verify in my code book or encoder. Keep it under 400 words.
Scenario: [setting, patient type (new or established), chief complaint, services performed and key documentation details, all de-identified]That last line ("tell me what to look up instead") makes a real difference. It pushes the AI to admit uncertainty rather than fill gaps with something that sounds right.
Researching CPT, HCPCS and ICD-10-CM guidelines
Coding guidelines are long, cross-referenced and written in language that rewards careful reading. AI is excellent at turning them into something you can actually use on a busy day.
Use it to:
- Explain an ICD-10-CM Official Guideline, such as sequencing rules, "code also" versus "use additional code" notes, or Excludes1 versus Excludes2
- Clarify CPT section guidelines, like what counts toward E/M medical decision making or how add-on codes work
- Understand how HCPCS Level II codes for supplies, drugs and services fit alongside CPT
- Build quick study notes before a certification exam or a new specialty assignment
The most reliable approach is to paste in the actual guideline text you're working from and ask the AI to explain it. That keeps it anchored to the real source instead of its memory.
Here is the text of an official coding guideline I'm trying to apply, from [source and section, e.g., ICD-10-CM Official Guidelines Section I.B.12]: [paste the guideline text] Use only this text. If it doesn't answer something, write "Not found". Flag any wording that's unclear instead of guessing what it means. Give me: 1. Plain-English explanation: under 150 words, citing the section or paragraph behind each point. 2. Two short, de-identified examples: one where the guideline applies and one where it doesn't, each with one line on why. 3. Common mistakes: up to five bullets on errors coders make with this guideline.
When you don't have the text handy, ask the AI to point you to where the answer lives, not just to give you the answer:
I'm coding [type of encounter or condition] in a [setting, e.g., physician office / hospital outpatient / inpatient] setting. Which sections of the ICD-10-CM Official Guidelines, CPT guidelines or HCPCS instructions should I review? Answer as a table with these columns: Source | Section number and title | What it covers | Why it matters for this case. List up to eight sections. Don't quote CPT descriptors or invent section numbers: if you aren't sure of a section number, write "Verify" in that cell. Flag anything about my case that's too vague to point you to the right section.
Modifier questions: 25, 59 and the X modifiers
Modifiers are where a lot of denials and audit findings start, and they're a perfect fit for AI because the questions are mostly about logic.
A quick refresher:
- Modifier 25
- indicates a significant, separately identifiable E/M service by the same physician or other qualified health professional on the same day as a procedure or other service. The E/M has to go beyond the usual pre- and post-procedure work.
- Modifier 59
- indicates a distinct procedural service: one that's normally bundled but is separate in this case, such as a different session, site, lesion or encounter.
- The X modifiers
- are more specific alternatives to 59: XE (separate encounter), XS (separate structure or organ), XP (separate practitioner) and XU (unusual non-overlapping service). Medicare and many payers prefer them when one fits, and some require them.
AI is good at walking through whether documentation supports a modifier and which one is most precise. Give it the facts and ask it to argue both sides:
Act as a coding auditor. Based only on the de-identified scenario below, tell me whether modifier [25 / 59 / XE / XS / XP / XU] is supported. If the modifier isn't supported, say so plainly. If a fact you need isn't in the scenario, write "Not found". Flag anything unclear instead of assuming. Answer in this format: - Verdict: Supported / Not supported / Can't tell from this documentation - What supports it: the specific documentation details - What's missing or weak: the gaps an auditor would question - Better fit: a more specific modifier, if one applies, and why (or "None") - Documentation that would settle it: what the record would need to show Keep it under 250 words. Scenario: [services performed, same-day details, anatomic sites, separate sessions or providers, and the relevant documentation, all de-identified]
Asking it to say plainly when a modifier isn't supported matters. Without that, AI can lean toward telling you what you seem to want to hear. Always confirm payer-specific modifier policies, since commercial payers don't all follow Medicare's preferences.
AI can help you code. It can't sign off for you.
This course shows you how to use AI to look up codes, check documentation against guidelines, and spot missed modifiers, while keeping you, the coder, firmly in charge of every final decision.
NCCI edits and bundling
National Correct Coding Initiative (NCCI) edits decide which code pairs can be billed together and how many units of a service are reasonable. There are procedure-to-procedure (PTP) edits, which flag code pairs that shouldn't usually be reported together, and medically unlikely edits (MUEs), which cap units per day. PTP edits carry a modifier indicator that tells you whether a modifier can ever bypass them: 0 means never, 1 means allowed when documentation supports it, and 9 means the edit isn't active.
Here's the catch: AI doesn't reliably know the current edit tables. CMS updates them quarterly, and a general AI tool may be working from an older version or simply guess. Use your encoder, claim scrubber or the CMS NCCI files for the actual lookup.
Where AI shines is explaining why an edit exists and what to do about it:
My claim scrubber flagged an NCCI procedure-to-procedure edit between CPT [column 1 code] (column 1) and [column 2 code] (column 2), with a modifier indicator of [0 / 1]. Don't tell me whether the edit exists; I've already confirmed it. Take the codes and indicator as given and focus on the reasoning and documentation. Answer under these headings, in under 300 words total: 1. Why these services are typically bundled (plain English) 2. Documentation that would support reporting them separately 3. Appropriate modifier, if any: if the indicator is 0, say plainly that no modifier bypasses the edit; if it's 1, name the most specific modifier that could fit and what must be documented for it Flag anything you're unsure of instead of guessing.
Notice that prompt hands the AI the facts it can't be trusted to look up and asks only for reasoning. That split works well for most coding tasks.
Writing compliant, non-leading provider queries
When documentation is unclear, incomplete or conflicting, a provider query is how you get clarity without putting words in the physician's mouth. A compliant query presents the clinical indicators from the record, offers reasonable options (including "other" and "unable to determine" in multiple-choice formats), and never suggests a diagnosis will affect payment or quality scores. The industry standard here is the joint AHIMA and ACDIS guidance on compliant query practice.
AI is a big time saver for query drafting because it can turn your notes into a clean, neutral draft in seconds. The risk is that it writes leading questions if you don't tell it not to. Be explicit:
Draft a compliant, non-leading provider query following AHIMA/ACDIS query practice guidance. Rules: - Present only the clinical indicators I list below, worded neutrally. Don't add any. - Use a multiple-choice format with clinically reasonable options, plus "other (please specify)" and "unable to determine." - Don't introduce a diagnosis that isn't supported by the indicators. - Don't mention reimbursement, DRGs, quality measures or financial impact, and don't imply which answer is preferred. - If the indicators are too thin to support a query, say so instead of drafting one. Flag any indicator that's unclear. Output: the query only, under 200 words, with a short opening line, the indicators as bullets, the question, and the answer options. Clinical indicators (de-identified): [lab values, vital signs, medications, imaging findings, provider notes] Documentation question: [what's unclear, conflicting or missing]
After it drafts the query, read it as if you were the provider. If any option feels like the "right" answer, or if the wording nudges toward a more specific or higher-severity diagnosis, revise it. You can also ask the AI to audit its own draft:
Review the provider query below for anything that could be considered leading, suggestive or tied to reimbursement, measured against AHIMA/ACDIS compliant query practice.
Answer as a table with these columns: Exact phrase | Why it's a problem | Neutral rewrite.
Also check that the options include "other (please specify)" and "unable to determine" and that no option looks preferred. Then give the full revised query. If you find no problems, say so plainly.
[paste the draft query]Catching coding errors before claims go out
A second set of eyes before submission is one of the most practical ways to use AI in medical coding. It won't replace your claim scrubber, but it catches a different kind of problem: mismatches between the story in the documentation and the codes on the claim.
Ask it to look for things like:
- Diagnosis codes that don't support the procedures billed (medical necessity gaps)
- Missing specificity, such as laterality, episode of care or type of condition
- Sequencing problems, like a manifestation code listed before its underlying condition
- Modifiers that are missing, unsupported or less specific than they could be
- E/M levels that don't line up with the documented medical decision making or time
Act as a pre-bill coding auditor. Review the de-identified encounter and the codes I've assigned below. Use only the documentation summary I give you; if something you'd need to check isn't there, write "Not found". Flag anything unclear instead of guessing, and don't suggest replacement codes you aren't sure exist. Check for: diagnosis codes that don't support the procedures, missing specificity, sequencing issues, missing or unsupported modifiers, and E/M level mismatches with the documented MDM or time. Answer as a table with these columns: Issue type | Code(s) involved | What's wrong and why | Documentation that would resolve it | Confidence (High / Medium / Low). If everything looks correct, say so. Documentation summary: [de-identified summary of the note] Codes assigned: [ICD-10-CM codes, CPT/HCPCS codes, modifiers and units] Payer type: [Medicare / Medicaid / commercial]
This works especially well for spot-checking your own work on unfamiliar specialties, or for building a list of common error patterns to share with your team. Treat every flag as a lead to check, not a verdict.
Keeping up with annual code updates
Code sets change on a predictable schedule, and every update brings new codes, deleted codes, revised descriptors and guideline changes:
- ICD-10-CM
- updates take effect October 1, with a possible April 1 update as well.
- CPT
- updates take effect January 1, with some codes, like Category III codes and vaccine codes, released on other schedules.
- HCPCS Level II
- codes are updated quarterly.
- NCCI edits
- are updated quarterly.
AI can't tell you reliably what's in the latest release, since its training data may not include it. What it can do is help you digest the official update documents once you have them. Download the addendum or change summary from CMS, the CDC or the AMA, then let AI help you turn it into something useful:
Here is a section of the official code update document for [ICD-10-CM / CPT / HCPCS], [release, e.g., FY 2027 addendum], pages [page range]: [paste the relevant section] Summarize the changes that matter for a [specialty, e.g., cardiology / orthopedics / primary care] practice. Use only this text: don't add codes or changes from memory. Write "Not found" where the text doesn't say, and flag anything unclear. Answer as a table with these columns: Change type (New / Deleted / Revised / Guideline change) | Code or guideline | What changed | What coders need to do differently | Documentation changes providers should know about | Page and section. Group the rows by change type. Leave out changes that don't affect this specialty.
You can also use it to build training materials, quizzes for your team, or a short tip sheet for providers about documentation that the new codes require. Just double-check every code against the official files before anything gets shared.
Once you have the update section in hand, a prompt like this turns it into a provider tip sheet and a team quiz in one pass:
Here is a section of the official code update document for [ICD-10-CM / CPT / HCPCS], pages [page range]: [paste the relevant section] Use only this text. Don't add codes or rules from memory, write "Not found" if the text doesn't cover something I ask for, and flag anything unclear. Create two things for a [specialty] practice: 1. Provider tip sheet: under 250 words, as bullets, covering only the documentation providers now need to include. No coding jargon. Cite the page and section for each bullet. 2. Team quiz: five multiple-choice questions for coders, four options each, followed by an answer key that explains each answer and cites the page and section.
A few habits that make AI more reliable for coding
- Give it the source. Paste guideline text, policy language or update documents whenever you can. AI is much more accurate explaining text in front of it than recalling from memory.
- Ask for reasoning, not just answers. "Explain your reasoning and cite the guideline" surfaces weak logic fast.
- Invite it to disagree. Phrases like "say so plainly if this isn't supported" cut down on agreeable but wrong answers.
- Verify every code. Check codes, descriptors, edits and payer policies in your official resources every time.
- Keep PHI out of any tool your organization hasn't approved for it.
Frequently asked questions about AI for Medical Coding
Will AI replace medical coders?
Not anytime soon. AI handles more of the routine, high-volume coding and speeds up research, but organizations still need certified coders to review output, handle complex cases, run audits, write queries and stay accountable for compliance. The role shifts toward review, auditing and exception handling, and coders who know how to work with AI tools are in a stronger position.
Can ChatGPT do medical coding accurately?
It can reason through coding scenarios and explain guidelines well, but it isn't reliable as a standalone coder. It may cite outdated or invented codes, misstate CPT descriptors, and doesn't know current NCCI edits or payer policies. Use it to think and draft, then verify everything in your code books or encoder.
Is it HIPAA compliant to use ChatGPT for medical coding?
Not by default. Consumer AI chatbots generally aren't covered by a business associate agreement, so you shouldn't enter PHI into them. Use de-identified details, or use an AI tool your organization has approved for PHI under a BAA.
What is AI medical coding software?
It's software that reads clinical documentation and suggests or assigns codes automatically, often called computer-assisted coding (CAC) or autonomous coding. These tools integrate with the EHR and use current code sets, and they're typically paired with human review for accuracy and compliance.
How accurate is AI medical coding?
It varies a lot by tool, specialty and documentation quality. Dedicated platforms can be highly accurate on straightforward, high-volume encounters and less so on complex cases. General-purpose chatbots are much less reliable for assigning final codes. Any AI coding workflow should include regular audits by certified coders.
How do I start using AI for medical coding?
Start small with low-risk tasks: ask an AI assistant to explain a guideline you find confusing, walk through a modifier scenario, or draft a provider query, all using de-identified details. Compare its answers with your own references. Once you know where it's strong and where it slips, build it into your daily workflow for research and pre-bill review.
Should medical coders learn to use AI?
Yes. Knowing how to prompt AI tools well, check their output, and spot their mistakes is quickly becoming part of the job. It saves time on research and drafting, and it makes you more valuable as organizations adopt AI-assisted coding. If you'd like a structured way to learn, see our guide to AI medical coding courses.
Code with more confidence, and stay compliant
Medical Coding with AI shows you where AI fits in coding work and where it doesn't belong. It covers:
- Using AI to research ICD-10-CM, CPT and HCPCS codes
- Checking documentation for gaps before you assign codes
- Catching modifier and bundling issues
- Why AI suggestions can be wrong, and how to verify them against official sources
- Compliance risks, including upcoding, and how to avoid them
$19.99 a month after a 3-day free trial. Cancel anytime.
Sources
All checked 2026-11-29.
- CMS, Medicare NCCI Procedure to Procedure (PTP) Edits
- CMS, Medicare NCCI Medically Unlikely Edits
- CMS, Medicare NCCI FAQ Library
- CMS, HCPCS Quarterly Update
- CMS, ICD-10 Codes
- AMA, CPT
- AMA, CPT Category III Codes
- ACDIS, Guidelines for Achieving a Compliant Query Practice (2022 update)
- OpenAI Help Center, How can I get a Business Associate Agreement (BAA) with OpenAI?