Medical coding is the work of turning a provider’s notes into standard codes. Each diagnosis gets an ICD-10-CM code, and each service gets a CPT or HCPCS code. Those codes go on the claim, and the insurer uses them to decide what to pay. Here is how it works in practice, using one simple visit traced from the exam room to the claim form.
In brief: Coders read the documentation, pick diagnosis codes (why the patient came) and procedure codes (what was done), link each procedure to the diagnosis that justifies it, and add modifiers when the rules call for them. A wrong choice usually comes back as a denial with a reason code, such as CO-11 or CO-4.
Written by Manikandan J, CPC, CRCR, a certified coder and revenue cycle specialist who has worked at Athena, Omega, UHC, BCBS and Access Healthcare. Published 26 October 2026. Last updated: 26 October 2026.
Read about the author and our editorial policy, or contact us to report an error. Methodology: every figure on this page comes from the sources listed at the end, each checked on 23 October 2026.
The four code sets you will use
| Code set | What it describes | Who maintains it | What a code looks like |
|---|---|---|---|
| ICD-10-CM | Diagnoses, symptoms and reasons for a visit, in every setting | CDC’s National Center for Health Statistics, with CMS | 3 to 7 characters, letter first (for example J20.9) |
| ICD-10-PCS | Procedures for hospital inpatient stays only | CMS | Exactly 7 characters |
| CPT | Services and procedures by physicians and other providers, plus outpatient services | American Medical Association | 5 characters, usually all digits (for example 99213) |
| HCPCS Level II | Supplies, equipment, drugs, ambulance and some services not in CPT | CMS | A letter followed by 4 digits (for example a J code for a drug) |
CMS maintains ICD-10-PCS and HCPCS Level II, and the AMA owns CPT. A code set is an official list of codes with its own rules and yearly updates. Most new coders start in physician-office (professional) coding, which uses ICD-10-CM, CPT and HCPCS Level II. Hospital inpatient coders add ICD-10-PCS. If CPT is new to you, our guide to what CPT codes are explains how the code book is organized.
Walkthrough: one visit, coded
This is a teaching example with a made-up patient. The codes are real, but always check the current code books and payer rules before using them on an actual claim.
The provider’s note (simplified)
New patient, age 34, seen in a physician office. She rolled her right ankle playing basketball yesterday. Swelling and pain on the outer ankle, able to bear weight with pain. Provider orders and reviews an ankle X-ray, three views, taken on the office’s own machine: no fracture. Assessment: sprain of right ankle, ligament not specified. Plan: rest, ice, compression, over-the-counter pain relief, recheck in two weeks if not improving.
Medical decision making documented as low.
A coder reads that note and asks three questions, in this order.
1. Why was the patient seen? (diagnosis)
The assessment is a right ankle sprain with no specific ligament named, on the first visit for it. In ICD-10-CM that is S93.401A: sprain of unspecified ligament of right ankle, initial encounter. The seventh character “A” means the patient is getting active treatment for the injury. A recheck visit later would still be “A” if treatment is active, and “D” for routine healing follow-up. Coders also check whether the payer wants optional external cause codes for how and where the injury happened.
2. What was done? (procedures)
- The visit itself. A new patient office visit with low medical decision making is CPT 99203. Office visit levels are chosen by either medical decision making or total time on the date of service, so the coder confirms which one the note supports.
- The X-ray. An ankle X-ray with at least three views is CPT 73610. Because the office owns the machine and the provider read the film, it is billed globally, with no modifier.
3. Does each procedure point to a diagnosis that justifies it?
Both services link to S93.401A. An ankle sprain supports an ankle X-ray and a visit to evaluate it. That link is called the diagnosis pointer. A diagnosis pointer is the letter on each claim line that ties the service to a diagnosis listed in Box 21. Getting it right matters more than beginners expect.
Where the codes go on the claim
For a physician office, the codes go on the CMS-1500 form (or its electronic version, the 837P). The relevant boxes are:
| CMS-1500 box | What goes there | In our example |
|---|---|---|
| 21 (A) | Diagnosis code | S93.401A |
| 24D, line 1 | Procedure code and any modifiers | 99203 |
| 24E, line 1 | Diagnosis pointer | A |
| 24D, line 2 | Procedure code and any modifiers | 73610 |
| 24E, line 2 | Diagnosis pointer | A |
The billing team adds charges, units and payer details, then submits the claim. When the payer responds, the result shows on the remittance and on the patient’s explanation of benefits. To see how coding fits into the bigger payment cycle, read what medical billing is.
What happens when a code is wrong
Payers explain every denied or reduced line with a Claim Adjustment Reason Code from the X12 CARC list. A CARC is a standard code that says why a claim line was paid differently from what was billed. It is often paired with a Remittance Advice Remark Code. Our guide to CARC and RARC codes explains how to read them. Here is how small changes to our example would come back:
| Coding change | Likely reason code | Why |
|---|---|---|
| X-ray pointed to an unrelated diagnosis, such as a headache code | CO-11 | The diagnosis does not support the procedure |
| The X-ray was taken at a hospital and the provider only read it, but no modifier 26 was added | CO-4 | A required modifier is missing |
| The seventh character was left off (S93.401) | CO-16 | The diagnosis is incomplete, so the claim lacks required information; it usually comes with a remark code naming the problem |
I spent years on the payer side, at UHC and BCBS, and these patterns are the everyday reality of claims. Most coding errors are not dramatic. They are one missing character, one wrong pointer, one forgotten modifier. That is why the job rewards careful reading over speed in the first year. The most common denial reasons page shows which errors cost practices the most.
What this tells you about the job
That single visit used three skills: reading clinical notes, finding codes with their guideline rules, and thinking about how the payer will see the claim. If that walkthrough felt interesting rather than tedious, coding may suit you. The Start Here hub (linked in the breadcrumb above) has an honest fit check and the pay ranges from BLS and AAPC data.
Related guides in this stage: Is Medical Coding Right for Me? · Medical Coding vs Medical Billing · Medical Coding Glossary for Beginners (publishing soon). When you are ready to pick a credential, go to Choose Your Path, the next stage of this roadmap.
FAQ
What is medical coding in simple terms?
It is translating a provider’s notes into standard codes: ICD-10-CM codes for diagnoses and CPT or HCPCS codes for services. Insurers use those codes to process and pay claims.
How does medical coding work step by step?
A coder reads the documentation, assigns diagnosis codes, assigns procedure codes and any modifiers, links each procedure to a supporting diagnosis, and checks the codes against guidelines and payer rules before the claim is billed.
What is the difference between ICD-10 and CPT codes?
ICD-10-CM codes describe why the patient was seen, such as a sprain. CPT codes describe what the provider did, such as an office visit or an X-ray. Most claims need both.
Is medical coding the same as medical billing?
No. Coding assigns the codes from documentation. Billing turns those codes into a claim, submits it, follows up on payment and works denials. In small offices one person may do both.
What happens if a medical code is wrong?
The payer may deny or reduce the line and explain why with a reason code, such as CO-11 when the diagnosis does not support the procedure. The claim then has to be corrected and resubmitted or appealed.
Sources
Code set definitions come from CMS and the AMA. Claim box numbers come from the CMS-1500 form. Reason code meanings follow the X12 CARC list. The example codes were checked against the 2026 code sets.
- CMS, ICD-10 code sets. Accessed 23 Oct 2026.
- CMS, HCPCS Level II. Accessed 23 Oct 2026.
- American Medical Association, CPT overview. Accessed 23 Oct 2026.
- CMS, Form CMS-1500 (02/12). Accessed 23 Oct 2026.
- X12, Claim Adjustment Reason Codes. Accessed 23 Oct 2026.
Last updated: 26 October 2026 · Educational content for U.S. readers; pay and fees change, so check the source before you rely on a number.
Previous step: Start Here: Is Medical Coding Right for You? | Next step: Is Medical Coding Right for Me? 12-Question Self-Assessment