Skip to main content

Special Coding Situations

How Do I Code Diabetes With Chronic Kidney Disease?

Diabetes with chronic kidney disease takes two codes as a minimum: the diabetes combination code for CKD — E11.22 for type 2, or the .22 code of the applicable E08–E13 category — followed by the N18 code for the documented stage. The Index links the two through “with,” so the relationship is presumed unless the provider says the CKD has another cause. Add a Z79 code for the control agent, and if hypertension is also documented, the CKD is coded through I12 or I13 as well.

Why: three conventions meet at one pair of codes

Section I.C.4.a describes what the diabetes codes are: “The diabetes mellitus codes are combination codes that include the type of diabetes mellitus, the body system affected, and the complications affecting that body system. As many codes within a particular category as are necessary to describe all of the complications of the disease may be used. They should be sequenced based on the reason for a particular encounter.” E11.22 is one of those combination codes — type 2, kidney, CKD.

The combination code does not carry the stage, so the tabular asks for it: E11.22 carries “Use additional code to identify stage of chronic kidney disease (N18.1-N18.6),” and category N18 answers from the other end with “Code first any associated: diabetic chronic kidney disease (E08.22, E09.22, E10.22, E11.22, E13.22) | hypertensive chronic kidney disease (I12.-, I13.-).” The pair is written at both codes, the way the Code First / Use Additional Code convention always is.

The link between the diabetes and the CKD is the “with” convention. The Index entry “Diabetes, diabetic › type 2 › with › chronic kidney disease” gives E11.22 directly, and Section I.A.15 says conditions listed under “with” in the Index are presumed related “unless the documentation clearly states the conditions are unrelated.” The provider does not have to write “due to diabetes”; the provider would have to write that it is not. Section I.C.14.a.3 confirms the sequencing question is settled by the tabular: “The sequencing of the CKD code in relationship to codes for other contributing conditions is based on the conventions in the Tabular List.”

How to apply the rule

  1. Confirm both diagnoses are documented — diabetes (with its type, if stated) and chronic kidney disease with a stage. Type not documented defaults to type 2 (E11.-) per I.C.4.a.2; insulin use alone does not make it type 1 (I.C.4.a.3).
  2. Take the Index route: Diabetes › [type] › with › chronic kidney disease. Type 2 gives E11.22; type 1 E10.22; due to an underlying condition E08.22; drug-induced E09.22; other specified E13.22.
  3. Verify in the Tabular and read E11.22’s Use Additional Code note: the N18 stage code follows.
  4. Pick the stage from the documentation (I.C.14.a.1): stage 1 N18.1, stage 2 N18.2, stage 3 N18.30/N18.31/N18.32 (3a and 3b are distinct codes), stage 4 N18.4, stage 5 N18.5, ESRD N18.6. “If both a stage of CKD and ESRD are documented, assign code N18.6 only.” N18.6 asks for Z99.2 if the patient is on dialysis.
  5. Check for hypertension. If it is also documented, I.C.9.a.2 assigns category I12 (or I13 when heart disease is present too), with N18 as the secondary code; the diabetes code and the hypertension code both sit above the single N18 code, as N18’s Code First note lists both.
  6. Add the control agent from Z79 — Z79.4 insulin, Z79.84 oral hypoglycemics, Z79.85 injectable non-insulin — following the E11 category note and I.C.4.a.3, including both when both are used. Not Z79.4 for insulin given temporarily during the encounter.
  7. Sequence by the reason for the encounter (I.C.4.a) — the diabetes code leads when the diabetes is why the patient is seen; the N18 code never precedes it.

Coding examples

  1. Type 2 diabetes with CKD stage 3a, on metformin; seen for diabetes management.E11.22N18.31Z79.84. The “with” subterm presumes the relationship; the stage is a separate code; the oral agent is the Z79 code the category asks for.
  2. Type 2 diabetes, hypertension, and CKD stage 4; both conditions documented, neither stated as unrelated.E11.22 and I12.9 — order by the reason for the encounter — then N18.4 once. N18’s Code First note names both the diabetic and the hypertensive combination codes; the stage is reported a single time.
  3. Type 2 diabetes with ESRD on hemodialysis; documentation also says “CKD stage 5.”E11.22N18.6Z99.2, plus the Z79 code. N18.6 only, per I.C.14.a.1, when both a stage and ESRD are documented; N18.5 carries an Excludes1 for CKD requiring chronic dialysis (N18.6).
  4. Type 2 diabetes; CKD stage 3b; the nephrologist documents the CKD as due to polycystic kidney disease, not diabetes. The provider has stated the conditions are unrelated, so the “with” presumption does not apply: the diabetes is coded without the kidney complication (E11.9 if no other complication, or the applicable E11.- code), the polycystic disease is coded, and N18.32 follows the kidney disease it is associated with. Section I.A.15 reasoning; when the record is ambiguous rather than explicit, query.

Common mistakes

  • Reporting E11.22 without the N18 stage code — the combination code lacks the stage; the Use Additional Code note is not optional when the stage is documented.
  • Sequencing N18 first — N18 carries a Code First note for the diabetic CKD code; it is never the lead of that pair.
  • Coding E11.9 plus N18.x because the note does not say “due to diabetes” — the “with” convention presumes the link; only a statement that the conditions are unrelated breaks it.
  • Confusing E11.21 with E11.22 — E11.21 is diabetic nephropathy (inclusion terms include Kimmelstiel-Wilson disease); E11.22 is diabetic chronic kidney disease. They are different documented conditions, not synonyms.
  • Reporting N18.5 with N18.6, or a stage code with N18.6 — N18.6 alone when ESRD is documented.
  • Dropping the hypertension combination code when hypertension is also documented — I12 (or I13) is assigned alongside the diabetes code, with one N18 code for both.
  • Assigning Z79.4 for a temporary insulin course during the encounter — I.C.4.a.3 excludes it.

Documentation that changes the coding

  • Type of diabetes. Absent, the default is type 2; “insulin-dependent” does not mean type 1. A documented underlying cause (pancreatic disease, Cushing’s, a drug) moves the code to E08, E09 or E13.
  • CKD stage, or ESRD. The stage code is taken from the provider’s documentation; 3a and 3b are separate codes. ESRD outranks any stage.
  • A statement that the CKD is unrelated to the diabetes (or, for I12, unrelated to the hypertension). This is the only thing that removes the combination code; clinical plausibility is not a coding rule in either direction.
  • Dialysis dependence — adds Z99.2 with N18.6.
  • Control agents in current use — determines which Z79 codes apply.
  • Kidney transplant status. CKD after a transplant is N18 stage + Z94.0, and is not itself a transplant complication (I.C.14.a.2).

Decision framework

IF…THEN…
Diabetes and CKD both documented; no statement that they are unrelatedE11.22 (or the .22 code of the documented type) + N18 stage
Provider states the CKD is not due to the diabetesDiabetes code without the kidney complication + the CKD’s documented cause + N18 stage
Hypertension also documentedAdd I12.- (or I13.- with heart disease); one N18 code for both combination codes
ESRD documented (with or without a stage)N18.6 only; Z99.2 if dialysis-dependent
Patient uses insulin, oral agents, or injectable non-insulin drugs long-termZ79.4 / Z79.84 / Z79.85, including two when two are used
Diabetes is a documented secondary diabetesE08.22 / E09.22 / E13.22 with the tabular’s Code First / Use Additional instructions for the cause

FAQ

Does the provider have to document that the CKD is due to the diabetes?

No. The Alphabetic Index lists chronic kidney disease under “Diabetes › with,” and Section I.A.15 presumes a causal relationship for conditions linked by “with” unless the documentation clearly states they are unrelated. E11.22 is assigned on the two diagnoses alone.

Which code goes first, E11.22 or N18?

E11.22. Category N18 carries a Code First note for diabetic chronic kidney disease (E08.22, E09.22, E10.22, E11.22, E13.22), and E11.22 carries the matching Use Additional Code note for the N18 stage.

How is diabetes with CKD and hypertension coded?

With the diabetes combination code (E11.22), the hypertensive CKD combination code (I12.-, or I13.- when heart disease is present), and a single N18 stage code after them. N18’s Code First note names both combination codes, and Section I.C.9.a.2 assigns I12 whenever hypertension and CKD are both present unless the provider says they are unrelated.

What is coded when both “stage 5” and “ESRD” are documented?

N18.6 only, per Section I.C.14.a.1. N18.5 carries an Excludes1 for chronic kidney disease requiring chronic dialysis (N18.6), and N18.6 asks for Z99.2 to identify dialysis status.

Is E11.21 the same as E11.22?

No. E11.21 is type 2 diabetes with diabetic nephropathy (its inclusion terms include Kimmelstiel-Wilson disease); E11.22 is type 2 diabetes with diabetic chronic kidney disease and is the only one of the two that asks for an N18 stage code. The documented condition decides.

Code relationships

RelationshipAtNamesNote
use-additionalE11.22N18.1-N18.6 (stage of chronic kidney disease)
code-firstN18E08.22, E09.22, E10.22, E11.22, E13.22 (diabetic CKD); I12.-, I13.- (hypertensive CKD)
use-additionalN18.6Z99.2 (dialysis status)
excludes1N18.5N18.6 (CKD stage 5 requiring chronic dialysis)
use-additionalE11Z79.4, Z79.84, Z79.85 (control agents)
use-additionalN18E88.A (cachexia); Z94.0 (kidney transplant status), if applicable
hccE11.22HCC 37 — Diabetes with Chronic ComplicationsCMS-HCC V28, payment year 2026 mapping file
hccE11.9HCC 38 — Diabetes with Glycemic, Unspecified, or No ComplicationsCMS-HCC V28, payment year 2026 mapping file
hccN18.31HCC 329 — Chronic Kidney Disease, Moderate (Stage 3, Except 3B)CMS-HCC V28, payment year 2026 mapping file
hccN18.4HCC 327 — Chronic Kidney Disease, Severe (Stage 4)CMS-HCC V28, payment year 2026 mapping file
hccN18.6HCC 326 — Chronic Kidney Disease, Stage 5CMS-HCC V28, payment year 2026 mapping file
ms-drgE11.22Pre-MDC — MS-DRG 008Definitions of MS-DRGs v43, Appendix B (diagnosis / MDC / MS-DRG index)
ms-drgE11.22non-CC as a secondary diagnosisDefinitions of MS-DRGs v43, Appendix C Part 1
ccsrE11.22END003 — Diabetes mellitus with complicationAHRQ CCSR v2026-1 default inpatient category
ms-drgE11.9MDC 10 — MS-DRG 637-639Definitions of MS-DRGs v43, Appendix B (diagnosis / MDC / MS-DRG index)
ms-drgE11.9non-CC as a secondary diagnosisDefinitions of MS-DRGs v43, Appendix C Part 1
ccsrE11.9END002 — Diabetes mellitus without complicationAHRQ CCSR v2026-1 default inpatient category
ms-drgN18.4Pre-MDC — MS-DRG 008Definitions of MS-DRGs v43, Appendix B (diagnosis / MDC / MS-DRG index)
ms-drgN18.4CC as a secondary diagnosis (299 principal-diagnosis exclusions)Definitions of MS-DRGs v43, Appendix C Part 1
ccsrN18.4stage 4 (severe)" — GEN003AHRQ CCSR v2026-1 default inpatient category
ms-drgN18.6Pre-MDC — MS-DRG 008Definitions of MS-DRGs v43, Appendix B (diagnosis / MDC / MS-DRG index)
ms-drgN18.6MCC as a secondary diagnosis (153 principal-diagnosis exclusions)Definitions of MS-DRGs v43, Appendix C Part 1
ccsrN18.6GEN003 — Chronic kidney diseaseAHRQ CCSR v2026-1 default inpatient category

Relationships are quoted from the FY tabular notes and Official Guidelines the guide cites; none are inferred.

Sources

Verified against the FY 2026 ICD-10-CM Official Guidelines (Sections I.A.15, I.C.4.a, I.C.9.a.2–3 and I.C.14.a), the FY 2026 tabular entries at E11.22, N18, N18.6, I12 and Z99.2, and the FY 2026 Alphabetic Index entry “Diabetes, type 2, with, chronic kidney disease.”

  • ICD-10-CM Official Guidelines for Coding and Reporting, FY 2026 (Section I.C.4.a, Diabetes mellitus; I.C.14.a, Chronic kidney disease; I.C.9.a.2–3, Hypertensive CKD; I.A.15, “With”)
  • FY 2026 ICD-10-CM Tabular List (E08.22, E09.22, E10.22, E11.22, E13.22; N18; N18.6; I12; I13; Z99.2; Z79)
  • FY 2026 ICD-10-CM Alphabetic Index (“Diabetes, diabetic › type 2 › with › chronic kidney disease E11.22”)

Coder Takeaway: E11.22 (or the .22 code of the documented category) first, then one N18 stage code; add I12/I13 when hypertension is documented and Z79 for the control agent; N18.6 alone when ESRD is documented.

Applicable code set: FY 2026. Published September 3, 2026; last updated September 3, 2026; last reviewed September 3, 2026.