Real-world coding question · ICD-10-CM · FY2027 · IntermediateFY2027 · CURRENT
A patient is admitted with pneumonia and sepsis. Does A41.9 or the pneumonia code go first, and does the answer change if the sepsis develops after admission?
SequencingInfections and sepsisInpatient coding
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
Current reference — ICD-10-CM FY2027. Published October 11, 2026. Last verified October 11, 2026, reviewed before publication, against ICD-10-CM FY2027.
Short answer · MedCoder editorial
When sepsis is part of the reason for admission, the sepsis code goes first and the pneumonia is secondary. When the patient is admitted with pneumonia and the sepsis develops after admission, the pneumonia goes first and the sepsis codes follow.
Scenario
MedCoder explanation
Inpatient admission note: "Admitted with sepsis due to community-acquired pneumonia, organism not identified." The discharge summary confirms sepsis due to pneumonia, organism not identified, and documents no acute organ dysfunction.
The coding issue
MedCoder explanation
The pneumonia is the source of the infection, so leading with it can feel natural. Section I.C.1.d.4 orders the codes by timing instead: what was present as the reason for admission decides which comes first.
Analysis
MedCoder explanation
Coding decision:The deciding fact is when the sepsis was present. When the reason for admission is sepsis or severe sepsis together with a localized infection such as pneumonia, the code for the underlying systemic infection is assigned first and the localized infection is a secondary diagnosis. When the patient is admitted with the localized infection and sepsis or severe sepsis does not develop until after admission, the localized infection is assigned first, followed by the sepsis codes. For severe sepsis, a code from subcategory R65.2 is added as a secondary diagnosis, with codes for the associated acute organ dysfunction.
Based on:ICD-10-CM Official Guidelines FY2027, I.C.1.d.4; ICD-10-CM Official Guidelines FY2027, I.C.1.d.1.a
Applied to the scenario:Sepsis and a localized infection are together the reason for admission, which is the first case in Section I.C.1.d.4: the underlying systemic infection is assigned first. No organism is documented, so the sepsis code is A41.9 (Section I.C.1.d.1.a). No acute organ dysfunction is documented, so no code from R65.2 is added.
What the record must show:The record has to show whether the sepsis was present at admission or developed afterward, the causal organism if known (A41.9 is for an unspecified organism), and, for severe sepsis, the acute organ dysfunction the provider associates with it. Where the timing or the association is unclear, a provider query may be needed (Section I.C.1.d.1.b).
Applicable official guidance
Official text
The official text the answer rests on. A Guidelines section is quoted from the release its citation names; a Tabular or Index entry is quoted from its code page, which carries the release in effect. A citation with no quotation is one the registry does not carry as text; it is listed under the source references.
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 has severe sepsis, a code from subcategory R65.2 should also 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. For hemolytic-uremic syndrome associated with sepsis, see guideline I.C.1.d.9.
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. A code from subcategory R65.2, Severe sepsis, should not be assigned unless severe sepsis or an associated acute organ dysfunction is documented.
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. Due to the complex nature of severe sepsis, some cases may require querying the provider prior to assignment of the codes.
Conclusion
MedCoder explanation
In the scenario:A41.9, then J18.9.
Why:The sepsis was present as the reason for admission. Had it developed after an admission for pneumonia, J18.9 would come first.
Important caveats
MedCoder explanation
What this answer does not decide, and what would change it.
- Severe sepsis takes at least two codes: the systemic infection first, then a code from R65.2, plus codes for the associated acute organ dysfunction (Section I.C.1.d.1.b).
- A code from R65.2 is not assigned unless severe sepsis or an associated acute organ dysfunction is documented (Section I.C.1.d.1.a).
- Sepsis confirmed after admission but present when the patient was admitted is not the same as sepsis that develops after admission: the principal diagnosis is the condition established after study to be chiefly responsible for the admission (Section II).
- Sepsis due to a postprocedural infection, and sepsis in obstetric and newborn records, follow their own guidelines.
- Common mistake: Leading with the pneumonia because it caused the sepsis, when sepsis was part of the reason for admission. The order follows the reason for admission, not which condition caused which.
- This answer applies the ICD-10-CM rules of FY2027. Codes and instructions change with each release; the release in effect on the date of service governs.
- It explains the decision rule and the documentation element that settles it; it does not assign codes to any particular patient record.
- Payer-specific policies, coverage rules and claim edits are outside its scope.
- Where the record is ambiguous or contradicts itself, the provider is queried; a diagnosis is not inferred from findings (ICD-10-CM Official Guidelines, Section I.A.19).
Code set release
This answer applies ICD-10-CM FY2027, effective October 1, 2026.
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.
Run these codes through Claim Check
Claim Check reads the codes against the registry notes, the conventions and the Medicare Code Editor edits, and reports any edit or note that applies to them as entered. Codes this answer names as alternatives are not reported together.
Source references
Reviewed by MedCoder before publication in a reviewed change to the site; each cited guideline section is quoted from the Official Guidelines text the site carries.
- ICD-10-CM Official Guidelines FY2027 — I.C.1.d.4
- ICD-10-CM Official Guidelines FY2027 — I.C.1.d.1.a
- ICD-10-CM Official Guidelines FY2027 — I.C.1.d.1.b
Published October 11, 2026. Independently researched by MedCoder from official CMS/CDC sources. Where a coding-community discussion or a MedCoder search identified a question, only the question was taken; no community text is reproduced and no answer is drawn from it.