Skip to content
MedicalCoreCoding

Try a topic like assisted living, critical care or a code like 99214.

ICD-10-CM

Chapter 4: Diabetes Mellitus (E08–E13)

How to pick the diabetes category, code every complication, and add the right long-term drug code.

  • 8 min read
  • Updated
On this page · 10 sections

Part 1 of 7

The six places diabetes can land

Diabetes mellitus codes live in E08 to E13. The category you use is the type of diabetes. The picture shows what the note says and where it points.

Picture it · what the note says, which category you land in

  • Type 1, juvenile, brittle, ketosis-proneE10.-
  • Type 2, or no type stated at allE11.-
  • Caused by another disease (cystic fibrosis, pancreatic cancer)E08.-
  • Caused by a drug or chemical (steroids)E09.-
  • After pancreas surgery, genetic forms, other named typesE13.-
  • Pregnancy-only (gestational) diabetesO24.4-
Insulin use alone does not make it type 1. If only insulin is mentioned, the default is still E11.
CategoryMeaningStart with this when
E10Type 1 diabetes mellitusThe note says type 1, juvenile onset, brittle, or ketosis-prone
E11Type 2 diabetes mellitusThe note says type 2, or no type is stated
E08Diabetes due to an underlying conditionA disease such as cystic fibrosis or pancreatic disease caused it
E09Drug or chemical induced diabetesA drug caused it, for example steroid-induced diabetes
E13Other specified diabetesPostpancreatectomy, postprocedural, or other named types
O24.4-Gestational diabetes (Chapter 15)Diabetes that began in pregnancy

No type stated: the default is E11

If the type of diabetes is not documented, the default is E11.- (I.C.4.a.2). The Index agrees: the main term Diabetes, diabetic itself points to E11.9.

Similarly, the terms "insulin dependent" and "non-insulin dependent" do not choose the type. The Index tells you to code to type of diabetes.

Two newer subcodes to know

  • E10.A-: type 1 diabetes, presymptomatic. This is for early-stage type 1 diabetes before symptoms appear (I.C.4.a.1.a).
  • E11.A: type 2 diabetes in remission. Use it only when the provider documents remission. If it is unclear, query. The word "resolved" is not the same as remission (I.C.4.a.1.b).

Part 2 of 7

Diabetes codes are combination codes

A diabetes code holds three facts in one: the type, the body system affected, and the complication. For example, E11.22 means type 2 diabetes with diabetic chronic kidney disease.

I.C.4.a says you may use as many codes from E08 to E13 as needed to describe all the patient's complications. Sequence them by the reason for the encounter.

Picture it · where diabetes does its damage

123456patient's left
  1. Eyes E11.3-

    Retinopathy, cataract (E11.36)

  2. Kidneys E11.2-

    Nephropathy, chronic kidney disease (E11.22 + N18.-)

  3. Blood sugar itself E11.6-

    Hyperglycemia E11.65, hypoglycemia E11.649

  4. Nerves E11.4-

    Neuropathy, gastroparesis (E11.43)

  5. Blood vessels E11.5-

    Peripheral angiopathy (E11.51), with gangrene (E11.52)

  6. Foot skin and joints E11.6-

    Foot ulcer E11.621 + L97.- for the site

Every group exists for each type: swap E11 for E10, E08, E09 or E13 and the last digits stay the same.

The presumption: "with" means linked

Under the main term Diabetes in the Alphabetic Index, there is a subterm with. It lists the conditions the classification assumes are linked to diabetes.

I.A.15 says "with" or "in" is interpreted as "associated with" or "due to." The classification presumes a causal relationship between the two conditions linked by these terms in the Alphabetic Index or Tabular List. They are coded as related even when the provider does not write the link, unless the documentation clearly states they are unrelated.

Some of the conditions listed under Diabetes, with in the FY2027 Index:

ConditionCode for type 2
Chronic kidney diseaseE11.22
NephropathyE11.21
Retinopathy (unspecified, without macular edema)E11.319
CataractE11.36
Neuropathy (unspecified)E11.40
PolyneuropathyE11.42
GastroparesisE11.43
Peripheral angiopathyE11.51
GangreneE11.52
Foot ulcerE11.621
HyperglycemiaE11.65
Hypoglycemia (no coma)E11.649
Example

Diabetic kidney disease

A patient with type 2 diabetes has chronic kidney disease stage 3b. The provider does not write that the kidney disease is from diabetes.

  • E11.22: the Index presumes the link (CKD is listed under Diabetes, with)
  • N18.32: CKD stage 3b. The Tabular List note under E11.22 says to use an additional code for the stage (N18.1 to N18.6).

If the patient also has documented hypertension, Chapter 9 presumes that link to the kidney disease too (the I12.- codes), so check that lesson for the combined coding.

Example

Several complications, several codes

Type 2 diabetes with polyneuropathy and unspecified diabetic retinopathy without macular edema.

  • E11.42: with diabetic polyneuropathy
  • E11.319: with unspecified diabetic retinopathy without macular edema

You need no extra "link" statement for either. Sequence them by what the visit is about.

Example

Diabetic foot ulcer: a second code for the site

A patient with type 2 diabetes has a foot ulcer on the top of the right foot limited to breakdown of skin.

  • E11.621: type 2 diabetes mellitus with foot ulcer
  • L97.511: non-pressure chronic ulcer of other part of right foot limited to breakdown of skin

The Tabular List note at E11.621 tells you to use an additional code to identify the site of the ulcer (L97.4-, L97.5-).

Other complications that need a second code

  • E11.69 (with other specified complication) has a note: use an additional code to identify the complication.
  • E11.8 (with unspecified complications) is for a note that says only that the patient has complications, without naming them. Ask the provider for the specific one when you can.

Part 3 of 7

Z79: how the patient controls diabetes

The Tabular List notes at E08, E09, E11 and E13 say to use an additional code to identify control using insulin, oral hypoglycemic drugs, or injectable non-insulin antidiabetic drugs. The guideline (I.C.4.a.3) gives the rules.

Patient takesAdd
InsulinZ79.4 Long term (current) use of insulin
Oral hypoglycemic drugsZ79.84 Long term (current) use of oral hypoglycemic drugs
An injectable non-insulin antidiabetic drugZ79.85 Long-term (current) use of injectable non-insulin antidiabetic drugs
Oral drugs and insulinZ79.4 and Z79.84
Insulin and an injectable non-insulin drugZ79.4 and Z79.85
Oral drugs and an injectable non-insulin drugZ79.84 and Z79.85
Example

Insulin and metformin

A patient with type 2 diabetes without complications takes metformin and also injects insulin glargine each night.

  • E11.9
  • Z79.4: long-term insulin
  • Z79.84: long-term oral hypoglycemic
Example

Insulin mentioned, no type given

The note says "diabetes mellitus, on insulin" and the type is never stated.

  • E11.9: the default, because the type is not documented
  • Z79.4

Part 4 of 7

Hyperglycemia and hypoglycemia

These are written into the diabetes codes as complications.

Provider writesIndex guidanceType 2 code
Diabetes with hyperglycemiaDiabetes, with, hyperglycemiaE11.65
"Poorly controlled," "out of control," "inadequately controlled"Index sends you to by type, with hyperglycemiaE11.65
"Uncontrolled," meaning hyperglycemiaIndex: uncontrolled, meaning hyperglycemia sends you to with hyperglycemiaE11.65
"Uncontrolled," meaning hypoglycemiaSends you to with hypoglycemiaE11.649
Hypoglycemia, no comaDiabetes, with, hypoglycemiaE11.649
Hypoglycemia with comaDiabetes, with, hypoglycemia, with comaE11.641
Ketoacidosis, no comaDiabetes, with, ketoacidosisE11.10

"Uncontrolled" alone is not enough: the provider needs to say whether it means high or low sugar. Query if it does not.

For other types, replace the E11 with the matching category: type 1 hyperglycemia is E10.65, and diabetes due to an underlying condition with hyperglycemia is E08.65.

Part 5 of 7

E08, E09 and E13: the cause comes with a code

Secondary diabetes is always caused by another condition or event, such as cystic fibrosis, pancreatic cancer, removal of the pancreas, or a drug (I.C.4.a.6). These categories cover the complications as well, so the same with codes exist for each.

CategoryCauseSequencing
E08An underlying diseaseCode first the underlying condition (Tabular note). Examples listed there: cystic fibrosis E84.-, Cushing's syndrome E24.-, malignant neoplasm, pancreatitis K85-K86.-.
E09A drug or chemicalCode first the poisoning if one applies. For a correctly taken drug, add the adverse effect T-code (5th or 6th character 5).
E13Postpancreatectomy, postprocedural, other namedNo code-first note. See below for pancreatectomy.
Example

Steroid-induced diabetes

A patient taking prednisone correctly for asthma develops high blood sugar and is diagnosed with steroid-induced diabetes with hyperglycemia.

  • E09.65: drug or chemical induced diabetes mellitus with hyperglycemia
  • T38.0X5A: adverse effect of glucocorticoids, initial encounter
Example

Diabetes after the pancreas was removed

For postpancreatectomy diabetes, I.C.4.a.6.b gives these steps: assign E89.1 (postprocedural hypoinsulinemia), assign a code from E13 as the first-listed code, and add Z90.41- for the missing pancreas.

For example, diabetes after a total pancreatectomy, managed with insulin:

  • E13.9
  • E89.1
  • Z90.410: acquired total absence of pancreas
  • Z79.4: the secondary diabetes rules for long-term insulin apply

Part 6 of 7

Problems with an insulin pump

When an insulin pump fails and the patient gets too little insulin (I.C.4.a.5.a):

  1. First-listed: a code from T85.6- that names the type of pump problem (for example T85.614A, breakdown of insulin pump)
  2. Then T38.3X6-: underdosing of insulin and oral hypoglycemic drugs
  3. Then the diabetes type and any complications caused by the underdose

When a malfunction causes too much insulin (I.C.4.a.5.b), first-list T85.6- and then add T38.3X1-: poisoning by insulin, accidental.

Example

Pump breakdown with hyperglycemia

A patient with type 1 diabetes arrives with a high blood sugar. The insulin pump tubing had broken down, so the patient got less insulin than needed.

  • T85.614A: breakdown (mechanical) of insulin pump, initial encounter
  • T38.3X6A: underdosing of insulin
  • E10.65: type 1 diabetes with hyperglycemia

Pregnancy and diabetes: look in Chapter 15

  • Gestational diabetes (began in pregnancy) goes to O24.4-, such as O24.414 (insulin controlled). The O24.4 codes already include diet-controlled, insulin-controlled, or oral-hypoglycemic-controlled (I.C.15.i). No other O24 code is used with an O24.4 code.
  • Diabetes the patient already had when she became pregnant: a code from O24.- goes first, then the diabetes code (E08 to E13) (I.C.15.g). For example, type 2 diabetes in the first trimester starts with O24.111.

The E11 category has an Excludes1 note for gestational diabetes (O24.4-), so the two never go together.

Part 7 of 7

Practice cases

Pick the codes, then read why each answer is right or wrong.

questions
10questions
exam time
15 minexam time
to pass
70%to pass
Choose a mode

End of the chapter: check what you remember

  • Which category: E10, E11 (the default), E08, E09, E13, or pregnancy codes in Chapter 15
  • Diabetes is linked to many conditions by the word 'with', so no link statement is needed for those
  • Combination codes, and why you may use as many E codes as the patient needs
  • Long-term drug codes Z79.4, Z79.84 and Z79.85, hyperglycemia, hypoglycemia and insulin pump problems
Take the ICD-10-CM practice test12 questions on the ICD-10-CM guidelines