ICD-10-CM

How ICD-10-CM Codes Are Built — Letters, Numbers & Structure Explained

📅 March 2026 📖 12 min read ✍️ Clear CPC Team
How ICD-10-CM Codes Are Built — Letters, Numbers & Structure Explained

Every ICD-10-CM code follows a precise structural format. Understanding that format is not just an academic exercise — it is a practical coding skill that helps you navigate the code set faster, verify codes correctly, and answer CPC exam questions about code validity. When you know how codes are constructed, you can look at any code and immediately understand its chapter, category, and level of specificity.

This guide breaks down the ICD-10-CM code structure character by character, explains the rules that govern each position, and covers the structural elements most commonly tested on the CPC exam. If you are new to ICD-10-CM, start with What Is ICD-10-CM for the broader context.

The Basic Structure — Up to Seven Characters

ICD-10-CM codes are alphanumeric and can be 3 to 7 characters long. The structure follows this pattern:

Position Character Type Purpose Required?
1 Letter (A–Z, excluding U) Identifies the chapter/category group Yes
2 Number (0–9) Part of the category Yes
3 Number or letter Completes the category Yes
4 Number or letter Subcategory — etiology, site, or severity If available
5 Number or letter Further specificity — laterality, episode If available
6 Number or letter Additional detail or extension If available
7 Letter or number Extension — encounter type (A, D, S) or other If required by code

The minimum code length is 3 characters (the category level). You must always code to the highest level of specificity available — if a code has 4th, 5th, 6th, or 7th character options, you must include every applicable character. A 3-character code is only valid when no further characters exist for that category. This “code to the highest specificity” rule is one of the most fundamental rules in the ICD-10-CM coding guidelines.

A decimal point is placed after the first three characters for readability (e.g., E11.65), but this is a formatting convention — the decimal is not part of the code itself.

Character 1 — The Category Letter

The first character is always a letter and identifies the broad chapter or disease category. ICD-10-CM uses letters A through T and Z (U is reserved for future use). Each letter corresponds to one or more chapters:

Letter(s) Chapter Description
A, B 1 Certain infectious and parasitic diseases
C, D (D00–D49) 2 Neoplasms
D (D50–D89) 3 Diseases of the blood
E 4 Endocrine, nutritional, and metabolic diseases
F 5 Mental, behavioral, and neurodevelopmental disorders
G 6 Diseases of the nervous system
H (H00–H59) 7 Diseases of the eye
H (H60–H95) 8 Diseases of the ear
I 9 Diseases of the circulatory system
J 10 Diseases of the respiratory system
K 11 Diseases of the digestive system
L 12 Diseases of the skin
M 13 Diseases of the musculoskeletal system
N 14 Diseases of the genitourinary system
O 15 Pregnancy, childbirth, and the puerperium
P 16 Certain conditions originating in the perinatal period
Q 17 Congenital malformations
R 18 Symptoms, signs, and abnormal clinical findings
S, T 19 Injury, poisoning, and external causes
V, W, X, Y 20 External causes of morbidity
Z 21 Factors influencing health status and contact with health services

Notice that letters D and H each span two chapters, while Chapter 19 (Injury) uses two letters (S and T) and Chapter 20 (External Causes) uses four letters (V, W, X, Y). Knowing which letter belongs to which chapter lets you identify the general disease category of any code at a glance.

Characters 1–3 — The Category

The first three characters together form the category. The category is the foundation of every ICD-10-CM code. For example:

  • E11 — Type 2 diabetes mellitus
  • I10 — Essential hypertension
  • J18 — Pneumonia, unspecified organism
  • S52 — Fracture of forearm

Some categories are complete at 3 characters — meaning no further specificity is available or needed. For example, I10 (Essential hypertension) is a valid complete code at 3 characters. Most categories, however, require additional characters for a valid code.

Characters 4–6 — Subcategory and Specificity

Characters 4, 5, and 6 provide increasing levels of detail. What each character represents varies by chapter and category, but common uses include:

Character 4 typically specifies the anatomic site, type, or etiology. For example, in category E11 (Type 2 diabetes):
– E11.2 — with kidney complications
– E11.3 — with ophthalmic complications
– E11.4 — with neurological complications
– E11.5 — with circulatory complications
– E11.6 — with other specified complications

Character 5 adds further detail within the subcategory. Continuing with E11.3:
– E11.31 — with unspecified diabetic retinopathy
– E11.32 — with proliferative diabetic retinopathy
– E11.33 — with nonproliferative diabetic retinopathy
– E11.35 — with diabetic macular edema

Character 6 provides the most specific level before the 7th character. For E11.32:
– E11.321 — with proliferative diabetic retinopathy with macular edema, right eye
– E11.322 — same, left eye
– E11.323 — same, bilateral
– E11.329 — same, unspecified eye

This progressive specificity is what makes ICD-10-CM far more detailed than its predecessor ICD-9-CM. Understanding the pattern helps you navigate the Tabular List efficiently because you know what each character level is likely to describe.

Laterality — Left, Right, and Bilateral

Many ICD-10-CM codes include laterality — a character that specifies whether the condition affects the right side, left side, or both sides. Laterality is most commonly indicated at the 5th or 6th character position.

The standard laterality assignments are:
1 = Right
2 = Left
3 = Bilateral
9 = Unspecified

For example, in the musculoskeletal chapter:
– M17.11 — Primary osteoarthritis, right knee
– M17.12 — Primary osteoarthritis, left knee

Always code laterality when the documentation specifies a side. Using the “unspecified” laterality code (typically ending in 9) when the physician has documented the specific side is a coding error. On the CPC exam, answer choices frequently include both the laterality-specific code and the unspecified code — choosing the unspecified one when the side is documented is a common trap.

The 7th Character — Encounter Type and Episode of Care

The 7th character is required for certain code categories, most notably in Chapters 19 (Injury) and 20 (External Causes). The most common 7th character values are:

A — Initial encounter: The patient is receiving active treatment for the condition. This does not mean the patient’s first visit — it means the condition is in the active treatment phase. A patient can have multiple initial encounters across different providers as long as active treatment continues.

D — Subsequent encounter: The patient is in the healing or recovery phase and is receiving routine care. The active treatment is complete, and the patient is being monitored or receiving aftercare.

S — Sequela: The condition being treated is a late effect of a previously resolved condition. The sequela code identifies the original condition; an additional code identifies the specific late effect.

For fractures, additional 7th characters provide even more detail. See Injury Coding and 7th Characters for the complete fracture 7th character table.

CPC Exam Tip: The most common 7th character mistake is confusing “initial encounter” with “first visit.” A patient referred to a specialist for ongoing treatment of an acute fracture is still in the initial encounter phase — the 7th character is A, not D — because active treatment has not concluded.

The Placeholder X

ICD-10-CM uses the letter “X” as a placeholder character in two situations:

Situation 1 — Codes with fewer than 6 characters that require a 7th character. Some codes are only 4 or 5 characters long but require a 7th character. The placeholder X fills the empty positions between the last meaningful character and the 7th character.

Example: T60.91XA — Toxic effect of unspecified pesticide, accidental, initial encounter. The code has 5 meaningful characters (T60.91), then an X placeholder in position 6, then “A” in position 7.

Situation 2 — Codes with an embedded X as part of the code design. Some codes use X within the code structure itself. These are less common.

The placeholder X must be included when assigning the code. Omitting it — for example, writing T60.91A instead of T60.91XA — makes the code invalid. On the CPC exam, answer choices may include versions with and without the placeholder to test whether you know this rule.

How to Verify Code Validity

When you look up a code in the Tabular List, check these structural elements to confirm it is valid:

  1. Is the code at its highest specificity? If subcategory characters are available, a shorter version is invalid.
  2. Does the code require a 7th character? Look for the 7th character instruction at the category or subcategory level. If required, the code without it is invalid.
  3. Are placeholder X characters needed? If the 7th character is required and the code has fewer than 6 characters, X must fill the gap.
  4. Does the code match the documentation? Verify that every character — site, laterality, encounter type — matches what the physician documented.
  5. Are there instructional notes? Check for “Code first,” “Use additional code,” Excludes1 and Excludes2 notes, and sequencing instructions that affect how the code should be reported.

How the CPC Exam Tests Code Structure

The exam tests code structure knowledge in several ways:

Invalid code identification. A question presents a code without the required 7th character or placeholder X and asks which code is correct. The valid version includes all required characters.

Laterality selection. A scenario documents a specific side, and the answer choices include the correct laterality code alongside the unspecified version.

7th character application. A scenario describes an encounter, and you must determine whether it is initial (A), subsequent (D), or sequela (S). The key is identifying whether active treatment is ongoing.

Code length validation. A question asks which code is valid, offering both a truncated category code and the full-length code with all required characters.

For more study strategies, see the CPC Exam Cheat Sheet.

🧪 Test Yourself: ICD-10-CM Code Structure

5 quick questions drawn from this guide. Click an answer to check it — explanations appear as you go.

1. An ICD-10-CM code can contain up to how many characters?

ICD-10-CM codes are three to seven characters — category (3), etiology/site/severity (4-6), and an optional 7th character.

2. The first character of every ICD-10-CM code is:

Character 1 is always alphabetic; characters 2 and 3 are numeric, and 4-7 can be alpha or numeric.

3. The placeholder “X” is used to:

X is a dummy placeholder that holds a position (often characters 5-6) so the 7th character stays in the 7th slot.

4. In laterality, which digit typically indicates the RIGHT side?

In most paired-site codes, 1 = right, 2 = left, 3 = bilateral, and 0 or 9 = unspecified.

5. A 7th character on an injury code most often identifies:

For injuries, the 7th character captures the encounter type: A (initial), D (subsequent), or S (sequela), with expanded options for fractures.

Frequently Asked Questions

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

ICD-10-CM codes can have 3 to 7 characters. The first three characters form the category and are always required. Characters 4 through 6 add specificity for subcategory, site, laterality, and severity. The 7th character, when required, indicates the encounter type or episode of care.

What is the placeholder X in ICD-10-CM?

The placeholder X fills empty character positions in codes that require a 7th character but have fewer than 6 meaningful characters. For example, T60.91XA uses X in the 6th position so the 7th character A (initial encounter) falls in the correct position. The X must always be included — omitting it makes the code invalid.

What does the first character of an ICD-10-CM code tell you?

The first character is always a letter (A through T, or Z) and identifies the chapter or disease category. For example, E indicates endocrine/metabolic diseases, I indicates circulatory diseases, and S indicates injuries. Knowing the letter-to-chapter mapping helps you quickly identify what type of condition a code describes.

What is the difference between initial encounter (A) and subsequent encounter (D)?

Initial encounter (A) means the patient is receiving active treatment for the condition — not that it is the patient’s first visit. Subsequent encounter (D) means active treatment is complete and the patient is in the healing or recovery phase receiving routine care. A patient can have initial encounters across multiple providers as long as active treatment continues.

How does laterality work in ICD-10-CM codes?

Many ICD-10-CM codes include a character (usually at position 5 or 6) that specifies the affected side: 1 for right, 2 for left, 3 for bilateral, and 9 for unspecified. Always code the specific side when documented. Using the unspecified laterality code when the physician has documented a specific side is a coding error.