Skip to main content

Sequencing

FY2027 · CURRENT

Advanced

Reviewed October 1, 2026

Sepsis, Severe Sepsis, and Septic Shock: How Many Codes, and Which Goes First

Part ofRespiratory and infections · step 4 of 4 · Read firstPrincipal Diagnosis vs First-Listed Diagnosis: Which Term Applies, and How Each Is Chosen

Editorial explanation — not an official CMS/CDC rule. Official coding instructions and source material are identified below. How to read the labels

Current data releases:ICD-10-CM FY2027 · ICD-10-PCS FY2027 · HCPCS October 2026 · MS-DRG v44 · Medicare Code Editor v44.0 · NCCI PTP Q4 2026 · MUE Q4 2026 · NCD code lists 2026-01 · LCD export September 28, 2026 · All releases and sources

Quick answer · MedCoder editorial

Sepsis alone takes one code, for the underlying systemic infection — A41.9 when the organism is not specified. Severe sepsis takes at least two: the infection first, then a code from R65.2-, plus a code for each associated acute organ dysfunction. Septic shock is severe sepsis with R65.21. A code from R65.2- can never be the principal diagnosis.

Jump to the decision rule ↓

What decides the answer?

  • Whether sepsis, severe sepsis or septic shock is documented
  • Acute organ dysfunction and whether the provider links it to the sepsis
  • Present-on-admission status, which sets the principal diagnosis
  • A localized infection and which came first
  • A procedural cause, which moves the coding to T81

Why it matters

Three diagnoses, three code patterns

Section I.C.1.d of the Official Guidelines treats sepsis, severe sepsis and septic shock as three different coding problems, and the number of codes changes at each step.

Sepsis: one code

Official source

“For a diagnosis of sepsis, assign the appropriate code for the underlying systemic infection. If the type of infection or causal organism is not further specified, assign code A41.9, Sepsis, unspecified organism.”

There is no separate “sepsis” code added on top of the infection — the infection code is the sepsis code. A41.9 is the default only when nothing more specific is documented; a streptococcal sepsis belongs in A40.-, and category A41 carries an Excludes1 sending it there.

Severe sepsis: at least two codes

Official source

“The coding of severe sepsis requires a minimum of 2 codes: first a code for the underlying systemic infection, followed by a code from subcategory R65.2, Severe sepsis. If the causal organism is not documented, assign code A41.9, Sepsis, unspecified organism, for the infection. Additional code(s) for the associated acute organ dysfunction are also required.”

The tabular writes the same instruction into R65.2 itself: a Code First note for the underlying infection, and a Use Additional Code note listing the organ-dysfunction codes — acute kidney failure (N17.-), acute respiratory failure (J96.0-), critical illness myopathy and polyneuropathy, DIC (D65), septic encephalopathy (G93.41), hepatic failure (K72.0-). The threshold for using R65.2- at all is documentation: “A code from subcategory R65.2, Severe sepsis, should not be assigned unless severe sepsis or an associated acute organ dysfunction is documented.”

Septic shock: severe sepsis plus R65.21

Official source

“Septic shock generally refers to circulatory failure associated with severe sepsis, and therefore, it represents a type of acute organ dysfunction. For cases of septic shock, the code for the systemic infection should be sequenced first, followed by code R65.21, Severe sepsis with septic shock or code T81.12, Postprocedural septic shock. Any additional codes for the other acute organ dysfunctions should also be assigned. As noted in the sequencing instructions in the Tabular List, the code for septic shock cannot be assigned as a principal diagnosis.”

Sequencing and present-on-admission

The sequencing rule is the same for every tier, and it is absolute for R65.2-:

Official source

“If severe sepsis is present on admission, and meets the definition of principal diagnosis, the underlying systemic infection should be assigned as principal diagnosis followed by the appropriate code from subcategory R65.2 as required by the sequencing rules in the Tabular List. A code from subcategory R65.2 can never be assigned as a principal diagnosis. When severe sepsis develops during an encounter (it was not present on admission), the underlying systemic infection and the appropriate code from subcategory R65.2 should be assigned as secondary diagnoses.”

So present-on-admission status decides whether the infection is principal or secondary, but never whether R65.2- leads — it cannot. When the record does not say whether severe sepsis was present on admission, the Guidelines say to query, noting that “the diagnosis may not be confirmed until sometime after admission.”

Sepsis with a localized infection

Official source

“If the reason for admission is sepsis or severe sepsis and a localized infection, such as pneumonia or cellulitis, a code(s) for the underlying systemic infection should be assigned first and the code for the localized infection should be assigned as a secondary diagnosis. … If the patient is admitted with a localized infection, such as pneumonia, and sepsis/severe sepsis doesn’t develop until after admission, the localized infection should be assigned first, followed by the appropriate sepsis/severe sepsis codes.”

Timing, again, is what moves the order: sepsis on admission puts the systemic infection first; pneumonia on admission with sepsis developing later puts the pneumonia first.

Examples

Worked example

Discharge documentation: sepsis, organism not identified, with acute kidney failure attributed to the sepsis, both present on admission. No shock.

  1. A41.9 — Sepsis, unspecified organism (principal)
  2. R65.20 — Severe sepsis without septic shock (secondary; R65.2’s Code First note points back to A41.9)
  3. N17.9 — Acute kidney failure, unspecified (secondary; the organ dysfunction R65.2’s Use Additional note asks for)

Change one fact and the codes change. If the kidney failure is documented as due to something other than the sepsis, R65.20 is not assigned at all — “An acute organ dysfunction must be associated with the sepsis in order to assign the severe sepsis code,” and if the relationship is unclear, query. If shock is documented, R65.21 replaces R65.20. If the sepsis developed after admission for something else, A41.9 and R65.20 both become secondary and the admitting condition is principal.

Practice

Practice scenarios

Scenario 1

Discharge documentation: sepsis, organism not identified, with acute kidney failure attributed to the sepsis; both present on admission; no shock.

Coding question
How many codes, and which is principal?
Decision
Three: A41.9 as principal, then R65.20, then N17.9 for the organ dysfunction. R65.20 can never be principal.
Why
Severe sepsis is the systemic infection code followed by a code from R65.2-, plus a code for each associated acute organ dysfunction; R65.2 carries Code First for the infection.
Documentation check
The word sepsis, the organ dysfunction and the provider’s link between them, present-on-admission status, and whether shock is documented.

Scenario 2

Same record, but the nephrologist documents the kidney failure as due to a cause other than the sepsis.

Coding question
Is R65.20 still assigned?
Decision
No. Without an organ dysfunction associated with the sepsis, the severe-sepsis code is not assigned; if the relationship is unclear, query.
Why
The Guidelines require the acute organ dysfunction to be associated with the sepsis for the severe-sepsis code, and direct a query when the association is unclear.
Documentation check
A provider statement linking, or not linking, the organ dysfunction to the sepsis.

Each scenario restates one of the worked examples above in decision form; none adds a clinical fact or a code the example does not already assign.

Sepsis after a procedure — a different first code, and a different shock code

Postprocedural sepsis reverses the usual order: the complication code leads, and the sepsis is added to it.

Official source

“For sepsis following a postprocedural wound (surgical site) infection, a code from T81.41 to T81.43, Infection following a procedure, T81.49, Infection following a procedure, other surgical site, or a code from O86.00 to O86.03 … that identifies the site of the infection should be sequenced first, if known. Assign an additional code for sepsis following a procedure (T81.44) or sepsis following an obstetrical procedure (O86.04). Use an additional code to identify the infectious agent. If the patient has severe sepsis, the appropriate code from subcategory R65.2 should also be assigned with the additional code(s) for any acute organ dysfunction.”

T81.44 carries its own Use Additional Code note “to identify the sepsis,” and categories A40 and A41 carry the reciprocal Code First for postprocedural sepsis (T81.44-). Code assignment here rests on the provider documenting the relationship between the infection and the procedure.

Shock after a procedure has its own code, and the Guidelines forbid the general one:

Official source

“If a postprocedural infection has resulted in postprocedural septic shock, assign the codes indicated above for sepsis due to a postprocedural infection, followed by code T81.12-, Postprocedural septic shock. Do not assign code R65.21, Severe sepsis with septic shock.”

The tabular enforces the same thing from the other side — R65.21 carries an Excludes1 for postprocedural septic shock (T81.12-). The pair R65.21 with T81.12 is one Claim Check users bring, and the answer is never “both”: shock following a procedure is T81.12-, and R65.21 comes off.

The documentation traps the Guidelines name

  • “Urosepsis.” “The term urosepsis is a nonspecific term. It is not to be considered synonymous with sepsis. It has no default code in the Alphabetic Index. Should a provider use this term, he/she must be queried for clarification.” There is no code to assign from the word alone.
  • Negative blood cultures. “Negative or inconclusive blood cultures do not preclude a diagnosis of sepsis in patients with clinical evidence of the condition; however, the provider should be queried.”
  • Bacteremia is not sepsis.R78.81, Bacteremia, carries an Excludes1 reading “sepsis-code to specified infection,” and A41 excludes bacteremia NOS in return. The two are mutually exclusive by note; the documentation decides which one the patient has.
  • Only one R65 code. When a noninfectious condition such as trauma or a burn leads to an infection and then to severe sepsis, “assign the appropriate code from subcategory R65.2, Severe sepsis. Do not additionally assign a code from subcategory R65.1, Systemic inflammatory response syndrome (SIRS) of non-infectious origin.” R65.1 carries the matching Excludes1 for sepsis and severe sepsis. Which condition is principal — the noninfectious one or the infection — follows the ordinary principal-diagnosis test, and “when both … meet the definition of principal diagnosis, either may be assigned.”
  • Hemolytic-uremic syndrome. When the reason for admission is HUS associated with sepsis, D59.31 is principal and the infection and severe-sepsis codes are secondary.
  • Newborn and obstetric sepsis have their own chapters: P36.- (bacterial sepsis of newborn, with its own Use Additional note for R65.2-) and O85 (puerperal sepsis). A41 excludes both.

Decision rule

Decision framework

IF…THEN…
Sepsis documented, no organ dysfunctionOne code: the systemic infection (A41.9 if organism unspecified)
Severe sepsis, or sepsis with an associated acute organ dysfunctionInfection first, then R65.20, then a code for each organ dysfunction
Septic shock (not postprocedural)Infection first, then R65.21, then any other organ dysfunctions
Severe sepsis present on admission and it is why the patient was admittedInfection is principal; R65.2- is secondary — it can never be principal
Severe sepsis developed after admissionInfection and R65.2- both secondary; the admitting condition is principal
Sepsis plus a localized infection (pneumonia, cellulitis) on admissionSystemic infection first, localized infection secondary
Localized infection on admission, sepsis develops laterLocalized infection first, sepsis codes after
Sepsis following a surgical-site infectionT81.41–T81.43 / T81.49 site code first, then T81.44, then the agent, then R65.2- if severe
Septic shock following a procedureT81.12-, not R65.21
Organ dysfunction is due to something other than the sepsisNo R65.2- code
“Urosepsis,” or unclear whether organ dysfunction / POA / sepsis itself appliesQuery the provider — the Guidelines say so in each case

Coding vs. billing: the principal-diagnosis edit

The classification rule — R65.2- is never principal — has a payer echo. The Medicare Code Editor’s edit 09 (unacceptable principal diagnosis) lists R65.20, R65.21, R65.10, R65.11 and T81.12XA; it does not list A41.9 or T81.44XA. A Medicare inpatient claim that leads with a severe-sepsis or septic-shock code fails the edit, and it would also have been sequenced wrongly under the Guidelines. The edit is a consequence of the rule, not a second rule: sequence per Section I.C.1.d and the edit takes care of itself.

How to apply it

How to apply the rule

  1. Confirm the diagnosis: sepsis, severe sepsis, or septic shock — and remember “urosepsis” is not a diagnosis (query).
  2. Code the systemic infection; A41.9 if the organism is not documented.
  3. If severe sepsis or an associated acute organ dysfunction is documented, add R65.20 (R65.21 with shock) after the infection, then a code for each organ dysfunction.
  4. Sequence by present-on-admission status: infection principal when severe sepsis was present on admission and meets the definition; both secondary when it developed later. R65.2- is never principal.
  5. For a localized infection on admission with later sepsis, the localized infection leads; for postprocedural sepsis, the T81.4- site code leads and T81.12- replaces R65.21 for shock.
  6. Query when organ-dysfunction attribution, POA status, or the diagnosis itself is unclear.

Common mistakes

Common mistakes

  • R65.2- as principal diagnosis.
  • A code for “urosepsis.”
  • Omitting the organ-dysfunction codes required with R65.2-.
  • R65.21 for shock after a procedure — T81.12- instead.
  • Assigning R65.2- when the organ dysfunction is documented as due to another condition.
  • Assigning both R65.1- and R65.2- — only one R65 code.

Documentation matters

Documentation that changes the coding

  • The word “sepsis” (or a specific systemic infection), and the organism if known.
  • Severe sepsis, or an acute organ dysfunction linked to the sepsis.
  • Septic shock.
  • Present-on-admission status of the sepsis / severe sepsis.
  • A procedural cause and the surgical-site infection.
  • A localized infection and which came first.

FAQ

How many codes does severe sepsis require?

A minimum of two: the underlying systemic infection first (A41.9 if the organism is not documented), then a code from subcategory R65.2. The Guidelines add that codes for the associated acute organ dysfunction are also required, so a typical severe-sepsis case carries three or more.

Can R65.20 or R65.21 be the principal diagnosis?

No. Section I.C.1.d.3 states that a code from subcategory R65.2 can never be assigned as a principal diagnosis, and R65.2 carries a Code First note for the underlying infection. The infection is principal when severe sepsis is present on admission; both are secondary when it develops later.

What code is used for “urosepsis”?

None. The Guidelines call urosepsis a nonspecific term that is not synonymous with sepsis and has no default code in the Alphabetic Index. The provider must be queried for clarification — for example, whether the patient has a urinary tract infection, sepsis, or both.

Which code is used for septic shock after surgery?

T81.12-, Postprocedural septic shock, sequenced after the postprocedural infection codes — not R65.21. The Guidelines say explicitly not to assign R65.21 in this case, and R65.21 carries an Excludes1 note for T81.12-.

A patient is admitted with pneumonia and later develops sepsis — which goes first?

The pneumonia. Section I.C.1.d.4 says that when a patient is admitted with a localized infection and sepsis or severe sepsis does not develop until after admission, the localized infection is assigned first, followed by the sepsis codes. If sepsis and the pneumonia are both present on admission, the systemic infection is sequenced first.

Do negative blood cultures rule out coding sepsis?

No. The Guidelines state that negative or inconclusive blood cultures do not preclude a diagnosis of sepsis in patients with clinical evidence of the condition — but they also say the provider should be queried. Code assignment follows the provider’s diagnostic statement.

Code set release

This guide was verified against ICD-10-CM FY2027, effective October 1, 2026.

Code relationships

RelationshipAtNamesNote
code-firstR65.2underlying infection, such as A41.9, T81.4-, T80.2-, O85
use-additionalR65.2N17.-, J96.0-, G72.81, G62.81, D65, G93.41, K72.0- (acute organ dysfunction)
excludes1R65.21T81.12- (postprocedural septic shock)
excludes1R65.1sepsis — code to infection; R65.2 (severe sepsis)
excludes1A41R78.81 (bacteremia NOS); P36.- (neonatal); O85 (puerperal); A40.- (streptococcal)
code-firstA41T81.44- (postprocedural sepsis), T80.211-, O75.3, T88.0-, T80.22-/T80.29-, if applicable
use-additionalT81.44code to identify the sepsis
hccA41.9HCC 2 — Septicemia, Sepsis, Systemic Inflammatory Response Syndrome/ShockCMS-HCC V28, payment year 2026 mapping file
hccR65.20HCC 2 — Septicemia, Sepsis, Systemic Inflammatory Response Syndrome/ShockCMS-HCC V28, payment year 2026 mapping file
hccR65.21HCC 2 — Septicemia, Sepsis, Systemic Inflammatory Response Syndrome/ShockCMS-HCC V28, payment year 2026 mapping file
ms-drgA41.9MDC 15 — MS-DRG 791Definitions of MS-DRGs v44, Appendix B (diagnosis / MDC / MS-DRG index)
ms-drgA41.9MCC as a secondary diagnosis (46 principal-diagnosis exclusions)Definitions of MS-DRGs v44, Appendix C Part 1
ccsrA41.9INF002 — SepticemiaAHRQ CCSR v2026-1 default inpatient category
ms-drgR65.20MDC 18 — MS-DRG 870-872Definitions of MS-DRGs v44, Appendix B (diagnosis / MDC / MS-DRG index)
ms-drgR65.20MCC as a secondary diagnosis (46 principal-diagnosis exclusions)Definitions of MS-DRGs v44, Appendix C Part 1
ccsrR65.20XXX000 — Unacceptable PDXAHRQ CCSR v2026-1 default inpatient category
ms-drgR65.21MDC 18 — MS-DRG 870-872Definitions of MS-DRGs v44, Appendix B (diagnosis / MDC / MS-DRG index)
ms-drgR65.21MCC as a secondary diagnosis (48 principal-diagnosis exclusions)Definitions of MS-DRGs v44, Appendix C Part 1
ccsrR65.21XXX000 — Unacceptable PDXAHRQ CCSR v2026-1 default inpatient category

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

Relationships are quoted from the tabular notes and Official Guidelines sections the guide cites; the wording of each row is MedCoder’s.

Compare these pairs

Each pair below is one the tabular notes link; its Compare page quotes the note and says whether the two can be reported together.

Check these codes on a claim →

Authoritative sources

Applies to FY2027 ICD-10-CM

Verified against the FY 2027 ICD-10-CM Official Guidelines (Section I.C.1.d, subsections 1–6 and 9), the FY 2027 tabular notes at A41, R65.1, R65.2, R65.21, T81.44 and R78.81, and Definitions of Medicare Code Edits v44.0 (edit 09).

  • ICD-10-CM Official Guidelines for Coding and Reporting, FY 2027 (Section I.C.1.d, Sepsis, Severe Sepsis, and Septic Shock)
  • FY 2027 ICD-10-CM Tabular List (A41, R65.1, R65.2, R65.21, T81.44, R78.81)
  • Definitions of Medicare Code Edits v44.0 (edit 09, Unacceptable principal diagnosis)

Official guidance cited

The Official Guidelines sections this guide quotes or applies, by heading. Passages set as quotations above are the sections’ own words; the surrounding text is MedCoder’s reading of them.

  • Section I.C.1.d — Sepsis, Severe Sepsis, and Septic Shock
  • Section I.C.1.d.3 — Sequencing of severe sepsis
  • Section I.C.1.d.4 — Sepsis or severe sepsis with a localized infection

Source document (CMS PDF) · Release and checksum

Passages set as quotations are verbatim official text from the sources listed. Surrounding explanation, decision tables and examples are MedCoder’s editorial reading of those sources and are not official statements. Examples are illustrative; they assign no code to any real patient.

Coder Takeaway: Sepsis is the infection code; severe sepsis adds R65.2- second plus the organ-dysfunction codes; shock is R65.21 — or T81.12- after a procedure, never R65.21. R65.2- is never principal, and “urosepsis” is a query, not a code.

Real-world questions this guide answers

Coding questions

No community questions relate to this guide yet.

Ask a Coding Question about this guide.

Didn’t find your answer?

Ask a coding question and get help from the MedCoder community.

Applicable code set: FY2027. Published September 3, 2026; last updated October 1, 2026; last reviewed October 1, 2026.