Retained Foreign Body: T81.5 Left During a Procedure, Z18 Fragment Status, or T15–T19 Through an Orifice
Part ofMusculoskeletal and injuries · step 2 of 6 · Read nextVenomous Insect Sting or Bite: A T63 Toxic-Effect Code, Not an Injury Code — and No W57
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
Three code families describe a foreign body in a patient, and they exclude each other. T81.5- is a complication of care: something accidentally left in the body during a procedure. Z18 is a status code: a fragment that remains embedded, usually from an injury, and is not being treated as a complication. T15–T19 is an injury: a foreign body that entered through a natural orifice — eye, ear, airway, gut, genitourinary tract — with a W44 external cause code.
Jump to the decision rule ↓What decides the answer?
- How the object entered: left during a procedure (T81.5-), through an orifice (T15–T19), or from an injury
- Whether it is treated as a complication now or noted as a retained fragment (Z18.-)
- The material of a retained fragment, which Z18 subdivides
- Removal, which ends the status (Z87.821)
Why it matters
Three families for one phrase
“Retained foreign body” in a record can mean three different things, and the classification keeps them in three different places.
| What happened | Family | Codes | What it is |
|---|---|---|---|
| Something was accidentally left in the body during a procedure | Complication of care | T81.5-, with 7th character A, D or S (T81.500- after a surgical operation; T81.509- after an unspecified procedure) | Chapter 19 complication |
| A fragment remains embedded, typically from a past injury, and is not being treated as a complication | Status | Z18.- by material — Z18.10 metal, unspecified; Z18.9 unspecified material | Z code; Includes “embedded fragment (status),” “embedded splinter (status),” “retained foreign body status” |
| A foreign body entered through a natural orifice — eye, ear, nose, airway, gut, genitourinary tract | Injury | T15–T19 by site, e.g. T18.9XXA for a swallowed foreign body, part unspecified, with a W44 external cause code | Chapter 19 injury; the section asks by Use Additional Code note for W44.- |
The notes make the three mutually exclusive. Category Z18 carries an Excludes1 for “foreign body accidentally left during a procedure (T81.5-)” and for “foreign body entering through orifice (T15-T19).” The T15–T19 section carries an Excludes2 for “foreign body accidentally left in operation wound (T81.5-).” One foreign body, one family — decided by how it got there and whether it is being treated as a problem now.
The edges: injuries that leave fragments, splinters, and removal
An injury that leaves a fragment behind takes both an injury code and Z18. Chapter 19 opens with a Use Additional Code note: “code to identify any retained foreign body, if applicable (Z18.-).” Z18 is a status code — Section I.C.21.c.3 lists it among the status Z categories — and status codes are informative because “the status may affect the course of treatment and its outcome.” A fragment that stays after a wound has been treated is exactly that.
Not every foreign body in tissue is Z18. Z18’s own Excludes1 sends a “superficial foreign body (non-embedded splinter)” to the superficial-injury codes by site, and the T15–T19 section sends “residual foreign body in soft tissue” to M79.5 and “splinter, without open wound” to the superficial-injury codes. Z18 is for the embedded, remaining fragment; a splinter being removed is an injury.
Once it is out, the status ends. Z18 excludes “personal history of retained foreign body fully removed (Z87.821)” — Z87.821 takes over after removal, on the same logic the Guidelines use for every status-to-history handoff: “The history code indicates that the patient no longer has the condition.”
Devices intentionally left in place are none of these. Z18 excludes joint prostheses (Z96.6-), in situ cardiac devices (Z95.-) and replaced organs or tissue (Z94.-, Z96.-, Z97.-) — those have their own status codes — and T81.59 excludes obstruction or perforation due to prosthetic devices “intentionally left in body,” which are the T82–T85 device complications.
Examples
Worked examples
- A surgical sponge is found on imaging after an abdominal operation; the patient returns for removal.T81.500A, Unspecified complication of foreign body accidentally left in body following surgical operation, initial encounter. No Z18 — its Excludes1 names T81.5- — and no T18 code, because nothing entered through an orifice.
- A patient with shrapnel embedded from an injury years ago is seen for an unrelated condition; the fragment is noted and unchanged. The reason for the visit first, then Z18.10, Retained metal fragments, unspecified, as a status code.
- A child swallowed a coin; it is in the digestive tract, site not specified.T18.9XXA, Foreign body of alimentary tract, part unspecified, initial encounter — the inclusion term is “Swallowed foreign body NOS” — with a W44.- code for the object entering through a natural orifice, as the T15–T19 section directs.
How to apply it
How to apply the rule
- Determine how the foreign body got there and whether it is being treated as a complication.
- Accidentally left during a procedure → T81.5- with the 7th character; no Z18, no T15–T19.
- Entered through a natural orifice → the T15–T19 code by site with the encounter 7th character, plus W44.-.
- An embedded fragment remaining from a past injury, reported as a status → Z18.- by material, as an additional code; Chapter 19 asks for it after an injury.
- Superficial non-embedded splinter → the superficial-injury code; residual foreign body in soft tissue → M79.5.
- Fully removed → Z87.821 thereafter.
Common mistakes
Common mistakes
- Z18 for an object left during surgery.
- T81.5- for a swallowed object.
- Z18 beside T81.5- or a T15–T19 code — Z18 excludes both.
- Z18 for a splinter being removed — an injury code.
- Z18 after the foreign body has been removed — Z87.821.
Documentation matters
Documentation that changes the coding
- How the object came to be in the body: a procedure, an orifice, an injury.
- Whether it is being treated as a complication now, or noted as a retained fragment.
- The material of a retained fragment (Z18’s subdivisions).
- Removal, which ends the status.
Decision rule
Decision framework
| IF… | THEN… |
|---|---|
| Object accidentally left during a procedure | T81.5- (+ 7th character) |
| Object entered through a natural orifice | T15–T19 by site + W44.- |
| Fragment embedded from a past injury, reported as status | Z18.- (additional code) |
| Non-embedded splinter / residual soft-tissue foreign body | Superficial injury code / M79.5 |
| Foreign body fully removed | Z87.821 |
FAQ
Is a surgical sponge left after an operation coded to Z18?
No. Z18 carries an Excludes1 for “foreign body accidentally left during a procedure (T81.5-).” A sponge, instrument or other object accidentally left in the body during a procedure is a complication of care, T81.5-, with the 7th character for the encounter — T81.500A for the initial encounter after a surgical operation.
When is Z18 the right code?
When a fragment remains embedded and is being reported as a status rather than treated as a complication or an injury — typically shrapnel, a bullet fragment or an embedded splinter from a past injury. Z18 is a status Z category under Section I.C.21.c.3, and Chapter 19 asks for it as an additional code whenever an injury leaves a retained foreign body.
How is a swallowed or inhaled foreign body coded?
With a T15–T19 code by site — T18 for the alimentary tract, T17 for the respiratory tract, and so on — plus a W44 external cause code for the object entering through a natural orifice, which the T15–T19 section requests by Use Additional Code note. Z18 excludes this family, and the section excludes T81.5-.
What code is used after a retained foreign body has been removed?
Z87.821, Personal history of retained foreign body fully removed. Z18 carries an Excludes1 for it: the status code applies while the fragment remains, and the history code once it is gone.
Code set release
This guide was verified against ICD-10-CM FY2027, effective October 1, 2026.
Code relationships
| Relationship | At | Names | Note |
|---|---|---|---|
| excludes1 | Z18 | T81.5- (foreign body accidentally left during a procedure); T15-T19 (foreign body entering through orifice); Z87.821; superficial foreign body — code by site | |
| excludes2 | T15-T19 section | T81.5- (foreign body accidentally left in operation wound); M79.5 (residual foreign body in soft tissue) | |
| use-additional | T15-T19 section | W44.- (foreign body entering into or through a natural orifice) | |
| use-additional | Chapter 19 (S00-T88) | Z18.- (retained foreign body), if applicable | |
| includes | Z18 | embedded fragment (status); embedded splinter (status); retained foreign body status |
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.
Authoritative sources
Applies to FY2027 ICD-10-CM
Verified against the FY 2027 ICD-10-CM tabular entries for T81.5, Z18, the T15–T19 section, M79.5, W44 and Z87.821, the Chapter 19 instructional note, and the FY 2027 Official Guidelines (Section I.C.21.c.3).
- FY 2027 ICD-10-CM Tabular List (T81.5; Z18; T15–T19 section notes; Chapter 19 Use Additional Code note; M79.5; W44; Z87.821)
- ICD-10-CM Official Guidelines for Coding and Reporting, FY 2027 (Section I.C.21.c.3, Status)
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.21.c.3 — Status
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: Left during a procedure is T81.5-; embedded from an old injury and reported as a status is Z18; entered through an orifice is T15–T19 plus W44 — and the three exclude each other.
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.