Coding Guidelines
12 min read

ICD-10 Diabetes Coding: Complete Guide to E10, E11, E13 Codes

Diabetes mellitus is one of the most frequently coded conditions in medical billing, affecting over 37 million Americans. Accurate ICD-10-CM coding for diabetes is essential for proper reimbursement, quality reporting, and patient care documentation. This comprehensive guide covers everything medical coders need to know about diabetes coding, from basic E10-E13 categories to complex complications and Excludes1 conflicts.

1. Overview of Diabetes ICD-10 Codes

According to the official CMS ICD-10-CM Guidelines (Section I.C.4), diabetes codes require careful attention to type, complications, and associated conditions. ICD-10-CM organizes diabetes codes into five main categories based on the underlying cause and type of diabetes:

Diabetes Code Families

  • E08: Diabetes mellitus due to underlying condition
  • E09: Drug or chemical induced diabetes mellitus
  • E10: Type 1 diabetes mellitus
  • E11: Type 2 diabetes mellitus (most common)
  • E13: Other specified diabetes mellitus

Each category follows the same structure for 4th, 5th, and 6th characters to specify complications and affected body systems. Understanding this consistent pattern is key to accurate diabetes coding.

Important: Per CMS guidelines, you must code the diabetes type first, then add additional codes for manifestations, complications, or insulin use as directed by "Use additional code" notes in the Tabular List.

2. Type 1 Diabetes (E10)

Type 1 diabetes mellitus (E10) is characterized by the body's inability to produce insulin due to autoimmune destruction of pancreatic beta cells. This condition typically develops in childhood or adolescence but can occur at any age.

Common E10 Codes

  • E10.9 — Type 1 diabetes without complications
  • E10.10 — Type 1 diabetes with ketoacidosis, without coma
  • E10.65 — Type 1 diabetes with hyperglycemia
  • E10.319 — Type 1 diabetes with unspecified diabetic retinopathy

Key Coding Rule: Type 1 diabetes patients almost always require insulin. However, do NOT automatically assign Z79.4 (long-term insulin use) for Type 1 diabetes unless specifically documented. The insulin dependence is inherent to the Type 1 diagnosis.

Alternative terms for Type 1 diabetes include juvenile diabetes, insulin-dependent diabetes mellitus (IDDM), and autoimmune diabetes. All should be coded to the E10 category unless documentation specifies otherwise.

3. Type 2 Diabetes (E11)

Type 2 diabetes mellitus (E11) is the most common form of diabetes, accounting for approximately 90-95% of all diabetes cases. It results from insulin resistance combined with relative insulin deficiency.

Common E11 Codes

  • E11.9 — Type 2 diabetes without complications (most frequently used)
  • E11.65 — Type 2 diabetes with hyperglycemia
  • E11.21 — Type 2 diabetes with diabetic nephropathy
  • E11.40 — Type 2 diabetes with diabetic neuropathy, unspecified

Insulin Use in Type 2 Diabetes: When a Type 2 diabetic patient uses insulin for long-term management (not just temporarily during an acute episode), you must add code Z79.4 (Long-term current use of insulin) as an additional code. This is a critical distinction from Type 1 diabetes coding.

Per CMS guidelines, if the documentation states "diabetes" without specifying type, and the medical record does not indicate Type 1, default to Type 2 diabetes (E11).

Example: Patient with Type 2 diabetes on insulin with diabetic neuropathy → Code E11.40 (Type 2 with neuropathy) + Z79.4 (long-term insulin use).

4. Secondary Diabetes (E08, E09, E13)

Secondary diabetes occurs as a result of another condition or external factor, rather than being a primary diagnosis. These categories require careful sequencing and additional coding.

E08: Diabetes Due to Underlying Condition

This category includes diabetes caused by conditions such as:

  • Chronic pancreatitis
  • Cystic fibrosis
  • Malignant neoplasm of pancreas
  • Cushing's syndrome

Coding Sequence for E08

Code first the underlying condition (e.g., K86.1 for chronic pancreatitis), then assign the appropriate E08 code. This sequence is mandatory per CMS guidelines.

E09: Drug or Chemical Induced Diabetes

Use E09 when diabetes is caused by medications or toxic substances, such as:

  • Corticosteroids (prednisone, dexamethasone)
  • Antipsychotic medications
  • Thiazide diuretics
  • HIV medications

Required Additional Code

Use additional code for adverse effect to identify the drug (T36-T50 with 5th or 6th character 5). For example, steroid-induced diabetes requires both E09.9 and T38.0X5A (adverse effect of glucocorticoids).

E13: Other Specified Diabetes Mellitus

This is a catch-all category for diabetes that doesn't fit E08-E11 classifications. Use E13 only when documentation clearly indicates a type that doesn't meet criteria for the other categories. Examples include genetic defects in insulin action or diseases of the exocrine pancreas not classified elsewhere.

5. Coding Diabetes with Complications

Diabetes complications are organized by body system affected. The 4th character in diabetes codes indicates the complication category:

4th CharacterComplication TypeExample Code
1KetoacidosisE11.10
2Kidney complicationsE11.21
3Ophthalmic complicationsE11.311
4Neurological complicationsE11.40
5Circulatory complicationsE11.51
6Other complicationsE11.65

Key CMS Guideline: When a patient has multiple diabetic complications, code each complication separately. For example, a Type 2 diabetic with both nephropathy and retinopathy requires two codes: E11.21 (nephropathy) and E11.3xx (retinopathy with appropriate specificity).

Always check for "Use additional code" notes in the Tabular List. Many diabetes complication codes require additional codes to fully describe the condition. For instance, E11.21 (diabetic nephropathy) includes a note to "Use additional code to identify stage of chronic kidney disease (N18.1-N18.6)."

6. Understanding 5th and 6th Characters

Diabetes codes often require 5th and 6th characters to specify the exact nature and laterality of complications. Let's examine how these characters work using diabetic retinopathy as an example.

Diabetic Retinopathy (E11.3x)

Code Structure Example

E11.311 — Type 2 diabetes with unspecified diabetic retinopathy with macular edema

E11.319 — Type 2 diabetes with unspecified diabetic retinopathy without macular edema

E11.3291 — Type 2 diabetes with mild nonproliferative diabetic retinopathy without macular edema, right eye

5th Character: Severity and Type

The 5th character typically indicates severity or type of complication:

  • 0: Unspecified
  • 1: With macular edema (for retinopathy)
  • 2-5: Varying degrees of severity
  • 9: Without macular edema (for retinopathy)

6th Character: Laterality

For conditions affecting eyes, the 6th character specifies which eye is affected:

  • 1: Right eye
  • 2: Left eye
  • 3: Bilateral (both eyes)
  • 9: Unspecified eye

Common Mistake

Using E11.319 (without 6th character for laterality) when the specific eye is documented. Always code to the highest level of specificity available in the documentation. If the record states "right eye," use E11.3191, not E11.319.

7. Insulin Use and Z Codes

Documenting insulin use correctly is critical for accurate diabetes coding. The rules differ based on diabetes type and duration of insulin therapy.

Z79.4: Long-term (current) use of insulin

Use Z79.4 as an additional code when:

  • A Type 2 diabetic patient uses insulin for ongoing management
  • A secondary diabetes patient (E08, E09, E13) uses insulin long-term
  • Insulin has been prescribed for routine home use (not just temporary during hospitalization)

When NOT to Use Z79.4

Do NOT use Z79.4 for Type 1 diabetes (E10). Type 1 diabetes is inherently insulin-dependent by definition. The insulin use is already implied in the E10 code.

Also do NOT use Z79.4 for temporary insulin given during an acute episode if the patient doesn't normally use insulin at home.

Z79.84: Long-term (current) use of oral hypoglycemic drugs

Use Z79.84 as an additional code when a diabetic patient uses oral medications (such as metformin, glipizide, or glyburide) for diabetes management. This can be coded alone or with Z79.4 if the patient uses both insulin and oral medications.

Coding Examples

Scenario 1: Type 2 diabetes, on insulin

Codes: E11.9 + Z79.4

Scenario 2: Type 2 diabetes, on metformin only

Codes: E11.9 + Z79.84

Scenario 3: Type 2 diabetes, on both insulin and metformin

Codes: E11.9 + Z79.4 + Z79.84

Scenario 4: Type 1 diabetes

Code: E10.9 only (Z79.4 NOT needed)

8. Common Excludes1 Conflicts

Understanding Excludes1 notes for diabetes codes is essential to avoid claim denials. According to CMS guidelines, Excludes1 indicates mutually exclusive conditions that cannot be coded together.

Critical Excludes1 Rules

❌ E10 + E11 = CANNOT code together

A patient cannot have both Type 1 and Type 2 diabetes simultaneously. Choose one based on documentation.

❌ E11 + E08 = CANNOT code together

Type 2 diabetes cannot be coded with diabetes due to underlying condition.

❌ E11 + E09 = CANNOT code together

Type 2 diabetes cannot be coded with drug-induced diabetes.

Common Scenario: A patient with Type 2 diabetes develops steroid-induced hyperglycemia while on prednisone. This is NOT coded as both E11 and E09. Instead:

  • If steroids are temporarily worsening existing Type 2 diabetes → Code E11.65 (Type 2 with hyperglycemia)
  • If the patient had no diabetes before steroids → Code E09 (drug-induced diabetes)

Use our free ICD-10 Excludes Checker to validate your diabetes code combinations and catch Excludes1 conflicts before claim submission.

Diabetes in Pregnancy

Gestational diabetes (O24.-) and pre-existing diabetes complicating pregnancy have special coding rules. Per CMS guidelines:

  • Pregnancy codes (O24.-) take precedence over E08-E13 during pregnancy encounters
  • Code first the O24 category, then add E codes for the type of diabetes
  • Gestational diabetes that persists after delivery is reclassified to E11 (Type 2) if it continues beyond the postpartum period

9. Common Coding Mistakes to Avoid

Based on CMS audit findings and common claim denials, here are the most frequent diabetes coding errors and how to prevent them:

Mistake #1: Using Unspecified Codes When Details Are Available

Wrong: E11.9 when documentation states "Type 2 diabetes with peripheral neuropathy"

Correct: E11.40 (Type 2 diabetes with diabetic neuropathy, unspecified) or more specific if documented

Mistake #2: Missing Required 5th/6th Characters

Wrong: E11.32 for diabetic retinopathy

Correct: E11.3291 (with specific severity, macular edema status, and laterality)

Mistake #3: Incorrect Z79.4 Usage

Wrong: E10.9 + Z79.4 (adding insulin code to Type 1 diabetes)

Correct: E10.9 only (insulin use is implied in Type 1 diagnosis)

Mistake #4: Missing "Code First" Requirements

Wrong: E08.9 without coding the underlying condition

Correct: K86.1 (chronic pancreatitis) + E08.9 (in that sequence)

Mistake #5: Coding Type 1 When Documentation Says "IDDM"

Caution: "Insulin-dependent" doesn't always mean Type 1

Solution: Check physician documentation. Many Type 2 patients become insulin-dependent. Code based on the physician's specification of diabetes type, not just insulin use.

Mistake #6: Forgetting "Use Additional Code" Notes

Wrong: E11.21 only for diabetic nephropathy with Stage 3 CKD documented

Correct: E11.21 + N18.3 (Stage 3 chronic kidney disease)

10. Real-World Coding Examples

Let's walk through complete coding scenarios to demonstrate proper diabetes code assignment:

Example 1: Simple Type 2 Diabetes

Documentation: "Patient has Type 2 diabetes mellitus, well-controlled on metformin 1000mg twice daily. No complications noted."

Codes:

  • E11.9 — Type 2 diabetes mellitus without complications
  • Z79.84 — Long-term (current) use of oral hypoglycemic drugs

Example 2: Type 1 with Ketoacidosis

Documentation: "15-year-old with Type 1 diabetes presents to ED with DKA without coma. Blood glucose 480. Started on insulin drip."

Code:

  • E10.10 — Type 1 diabetes mellitus with ketoacidosis without coma

Note: Z79.4 is NOT coded because Type 1 diabetes inherently requires insulin.

Example 3: Type 2 with Multiple Complications

Documentation: "68-year-old with Type 2 diabetes on insulin. Has diabetic nephropathy with Stage 4 CKD and mild nonproliferative diabetic retinopathy with macular edema in both eyes."

Codes:

  • E11.21 — Type 2 diabetes mellitus with diabetic nephropathy
  • E11.3213 — Type 2 diabetes with mild nonproliferative diabetic retinopathy with macular edema, bilateral
  • N18.4 — Chronic kidney disease, stage 4
  • Z79.4 — Long-term (current) use of insulin

Example 4: Steroid-Induced Diabetes

Documentation: "Patient developed hyperglycemia secondary to chronic prednisone therapy for rheumatoid arthritis. No prior history of diabetes. Started on sliding scale insulin."

Codes:

  • E09.65 — Drug or chemical induced diabetes mellitus with hyperglycemia
  • T38.0X5A — Adverse effect of glucocorticoids and synthetic analogues, initial encounter
  • M06.9 — Rheumatoid arthritis, unspecified (reason for steroid use)
  • Z79.4 — Long-term (current) use of insulin

Example 5: Diabetes Due to Chronic Pancreatitis

Documentation: "Patient with chronic alcohol-related pancreatitis developed secondary diabetes. Now insulin-dependent."

Codes (in sequence):

  • 1. K86.1 — Other chronic pancreatitis (code first per guidelines)
  • 2. E08.9 — Diabetes mellitus due to underlying condition without complications
  • 3. Z79.4 — Long-term (current) use of insulin

Note: Sequence matters! The underlying condition (K86.1) must be coded first per CMS "Code first" instruction.

💡 Pro Tip for Coders

Always read the complete clinical documentation before coding. Look for complications, medication lists (insulin, oral agents), and any underlying conditions. Check for "Code first," "Use additional code," and Excludes notes in the Tabular List. When in doubt, query the physician for clarification on diabetes type and complications.

Conclusion

Mastering diabetes coding requires understanding the structure of E08-E13 code families, recognizing when to use additional Z codes, following CMS sequencing guidelines, and avoiding common Excludes1 conflicts. With proper attention to documentation and adherence to official coding guidelines, medical coders can ensure accurate claim submission and appropriate reimbursement for diabetes care.

Remember to always consult the ICD-10-CM Official Guidelines for Coding and Reporting (current edition) and your facility's coding policies when assigning diabetes codes. Use our free Excludes Checker tool to validate your code combinations before submission.

For more ICD-10 coding guidance, explore our other articles on Excludes1 vs Excludes2 and common ICD-10 coding errors.

References

This article references the ICD-10-CM Official Guidelines for Coding and Reporting, FY 2026 (effective October 1, 2025 - September 30, 2026), published by the Centers for Medicare & Medicaid Services (CMS) and the National Center for Health Statistics (NCHS).

All code examples and coding rules are based on official CMS documentation and industry best practices. For the most current coding guidelines, visit www.cms.gov.