DxMedical Coding HubLearn · Research · Share

ICD-10 code structure, one character at a time

By Medical Coding Hub · Published

An ICD-10-CM code is not a serial number. It is a sentence written left to right: a letter for the chapter, three characters for the category, then one detail per character after the decimal point, up to seven. Once you can read the positions, an unfamiliar code stops being something to memorise and becomes something to parse. Click through the codes below to see it happen.

Not billing, coding or legal advice.This page is a learning aid built from the public sources listed below. Payers, contracts and code sets change; check the current official guidelines and your payer’s policy before you bill. It stores nothing you enter, and you should never type real patient information into it.

Pick a code, then click each character

Arrow keys move between characters.

7th character · 7th character: episode of care

For this subcategory the 7th character choices are A (initial encounter for closed fracture), D (subsequent, routine healing), G (delayed healing), K (nonunion), P (malunion) and S (sequela). "Initial encounter" means the patient is receiving active treatment, not that it is the first visit.

So far
S52.521A Torus fracture of lower end of right radius, initial encounter for closed fracture

The same breakdown as a table: S52.521A

S52.521A is Torus fracture of lower end of right radius, initial encounter for closed fracture. Each row is one character.

PositionCharacterJobCode so far
1stSLetter: where in the book—
2nd5Category—
3rd2CategoryS52 Fracture of forearm
4th5Subcategory: anatomic siteS52.5 Fracture of lower end of radius
5th2Subcategory: typeS52.52 Torus fracture of lower end of radius
6th1LateralityS52.521 Torus fracture of lower end of right radius
7thA7th character: episode of careS52.521A Torus fracture of lower end of right radius, initial encounter for closed fracture

The rules behind the positions

Characters 1 to 3: the category

The official guidelines (section I.A.2) say that all categories are three characters and that a character may be either a letter or a number. In the code set itself the first character is always a letter. Most third characters are digits, but not all: C4A (Merkel cell carcinoma) and Z3A (weeks of gestation) end in a letter. The letter roughly tracks the chapter, so S and T are injuries, O is pregnancy, and Z is factors influencing health status. A three-character category with no subdivisions, such as I10, is a complete code.

Characters 4 to 6: the detail

After the decimal point, subcategories add etiology, anatomic site, severity, laterality or other clinical detail. There is no fixed meaning per position across the whole book: the 6th character is the side in a forearm fracture and the intent in a poisoning. What is fixed is the rule of specificity. A code is invalid if it has not been carried to the full number of characters its category requires, so S52.52 will be rejected where S52.521A is accepted.

The placeholder X

X does two jobs. In some categories it reserves a position for future expansion, as in the poisoning codes T36 to T50, where the 5th character is X so the 6th can carry the intent. In others it pads a short code: when a category requires a 7th character and the code has fewer than six, X fills the gap so the 7th character still sits in the 7th place. Dropping the X does not shorten the code; it makes it a different, invalid string.

The 7th character

Only certain categories take a 7th character, and the tabular list says which. For most injury codes the choice is A (initial encounter), D (subsequent encounter) or S (sequela). The guidelines tie A to active treatment, not to the first visit: a patient seen by a new physician while still under active treatment is still an initial encounter. D is for routine care during healing or recovery, and S is for a complication or condition that arises as a direct result of the injury, such as a scar. Fracture categories extend the list to record open or closed fracture and routine healing, delayed healing, nonunion or malunion.

ICD-10-CM, ICD-10-PCS and the WHO original

The World Health Organization’s ICD-10 mostly stops at four characters. The United States adds a clinical modification, ICD-10-CM, maintained by the National Center for Health Statistics, which extends codes to as many as seven characters for laterality, episode of care and other detail. Hospital inpatient procedures use a separate system, ICD-10-PCS, maintained by CMS. Select 0DTJ4ZZ in the explorer to see how different it is: seven characters every time, no decimal point, and each position a fixed axis from section to qualifier.

ICD-10-CMICD-10-PCS
ReportsDiagnoses, all care settingsHospital inpatient procedures
Length3 to 7 charactersAlways 7 characters
Decimal pointAfter the 3rd characterNone
Meaning of a positionVaries by categoryFixed axis per position within a section
PlaceholderXZ means none (no device, no qualifier)

Questions people ask

How many characters does an ICD-10-CM code have?

Three to seven. Every category is three characters, the first always a letter, and a decimal point follows the third. A code is valid only when it is carried to the highest number of characters available for it, so a three-character category is reportable only if it has no subdivisions.

What does the X mean in an ICD-10 code?

X is a placeholder with no clinical meaning. Some codes use it to hold a position open for future expansion (the 5th character in T36-T50). Others need it to pad a shorter code so that a required 7th character lands in the 7th position, as in W55.01XA.

What is the 7th character in ICD-10-CM?

Certain categories, mostly injuries and external causes, require a 7th character. For most injuries it is A for an initial encounter (active treatment), D for a subsequent encounter (routine care during healing) or S for sequela. Fractures have a longer list that also records open or closed and how healing is going.

How is ICD-10-PCS different from ICD-10-CM?

ICD-10-CM codes diagnoses in every U.S. care setting and has 3 to 7 characters with a decimal point. ICD-10-PCS codes hospital inpatient procedures: always 7 characters, no decimal, each position a fixed axis (section, body system, root operation, body part, approach, device, qualifier).

Sources

How this page was made: written with AI assistance from the sources above and checked against them on December 5, 2026. It has not been reviewed line by line by a certified coder. CPT is a registered trademark of the American Medical Association; code descriptions here are paraphrased, not the official text.

Keep going