Key Takeaways
K27.1 is a billable ICD-10-CM code for acute peptic ulcer, site unspecified, with perforation, valid for FY2026 reimbursement claims.
Use K27.1 only when the ulcer site is unspecified – if gastric or duodenal origin is documented, codes K25 or K26 apply instead.
K27.1 covers perforation only; code K27.0 when hemorrhage is present, and K27.2 when both hemorrhage and perforation are documented.
Pabau’s claims management software supports ICD-10-CM diagnosis code entry and structured patient record documentation to reduce claim errors.
ICD-10 Code K27.1 is a billable ICD-10-CM code for an acute peptic ulcer, site unspecified, with perforation. Coders use it when the record documents an acute peptic ulcer with perforation but does not confirm whether the ulcer is gastric or duodenal in origin.
ICD-10 Code K27.1: definition and billable status
K27.1 is a billable/specific ICD-10-CM code valid for reimbursement claims with dates of service on or after October 1, 2015, when CMS replaced ICD-9-CM with ICD-10-CM for all US payers. It is active and valid for FY2026.
The code belongs to Chapter 11 (Diseases of the Digestive System, K00-K95), subcategory K20-K31 (Diseases of esophagus, stomach and duodenum), and sits within the K27 parent category for peptic ulcer, site unspecified.
The parent code K27 is non-billable. Only the more specific child codes (K27.0 through K27.9) can be submitted on a claim. K27.1 is one of those billable specificity levels. This article covers what the code describes, when to use it versus adjacent codes, documentation requirements, and MS-DRG grouping implications.
Clinical description of acute peptic ulcer with perforation
A peptic ulcer is an erosion through the mucosal lining of the gastrointestinal tract caused by the corrosive action of gastric acid and pepsin. When perforation occurs, the erosion breaches the full thickness of the gut wall, allowing gastric contents to spill into the peritoneal cavity.
The clinical picture is typically acute: sudden-onset severe abdominal pain, rigidity, and signs of peritonitis. Perforation carries significant morbidity and requires urgent surgical or endoscopic intervention. Helicobacter pylori infection and chronic NSAID use are the two most common precipitating factors, though K27.1 does not encode either causal element – those require additional codes.
- Acute designation: K27.1 applies when the episode is classified as acute by the treating provider.
- Site unspecified: The ulcer location is not documented as gastric (stomach) or duodenal. If site is known, use K25 (gastric) or K26 (duodenal) series instead.
- Perforation only: No hemorrhage is documented. Hemorrhage changes the code entirely.
- Billable: This is a valid specificity level for claim submission under ICD-10-CM.
Understanding these four defining features prevents the most common coding errors: selecting K27.1 when the site is actually documented, or using it when the record also documents hemorrhage alongside perforation.
ICD-10 Code K27.1 in the K27 code group: related codes at a glance
The K27 category covers all peptic ulcers where the site is unspecified. Each child code refines two variables: acuity (acute vs. chronic or unspecified) and complication type (hemorrhage, perforation, both, or neither). Selecting the wrong child code is one of the most common sources of claim denials in gastroenterology and general surgery billing. The table below maps the full K27 group to help coders orient quickly.
Note that K27.9 should be used sparingly. When a provider can document whether the ulcer is acute or chronic, that documentation drives selection of a more specific code. Defaulting to K27.9 when more clinical detail exists is a coding compliance risk and may invite payer scrutiny.
When to use K27.1 vs. adjacent peptic ulcer codes
Three decision points determine whether K27.1 is the right code. Work through them in order before final code assignment.
Decision 1: Is the ulcer site specified?
If the provider documents the ulcer as gastric (stomach), use the K25 series. If documented as duodenal, use K26. K27.1 applies only when the record is silent on site, or when the ulcer is described as “peptic” without anatomical specificity. Intraoperative or endoscopic findings frequently clarify site; if those reports are in the record, the coder must use K25 or K26 accordingly.
Decision 2: Is hemorrhage also present?
K27.1 encodes perforation without hemorrhage. When the record documents both active bleeding and perforation, the correct code is K27.2.
Never assign K27.1 alongside K27.0 to represent both complications separately – K27.2 is the single code that captures both. This is a common dual-coding error flagged on payer audits, particularly for inpatient surgical encounters.
Decision 3: Is the ulcer acute or chronic/unspecified?
K27.1 is reserved for acute presentations. When the record describes a chronic ulcer with perforation, or when acuity is not specified, use K27.5 instead. Most perforated peptic ulcer presentations at the emergency or inpatient level will be documented as acute given the sudden clinical onset, but coders should confirm acuity language in the attending’s notes rather than inferring it from the surgical report alone.
Pro Tip
Before assigning K27.1, run a three-point check: confirm the site is unspecified (not gastric or duodenal), confirm perforation is documented without concurrent hemorrhage, and confirm the provider has characterized the episode as acute. All three must be true. A single mismatch routes the claim to a different K27 code – or to K25/K26 entirely.
Documentation requirements for ICD-10 Code K27.1
Accurate code assignment depends entirely on what the treating provider documents. Coders cannot infer clinical details from test results or procedure reports alone without corresponding provider attestation. The ICD-10-CM Official Guidelines for Coding and Reporting (FY2026) make clear that the principal diagnosis is what the provider establishes after study during the encounter.
For K27.1 to be supportable on audit, the clinical record should contain the following elements.
- Ulcer acuity: The attending or operating surgeon must document the ulcer as “acute.” Look for language such as “acute perforation,” “acute ulcer with perforation,” or similar phrasing.
- Perforation confirmation: Operative notes, radiology reports showing free air, or endoscopy findings documenting breach of the gut wall are standard supporting evidence – but the provider’s attestation in the H&P or discharge summary carries the coding weight.
- Site ambiguity: There must be no documentation of gastric or duodenal origin. If the operative report identifies the ulcer location, site-specific K25 or K26 codes should be used, overriding K27.1.
- Hemorrhage absence: The record should be silent on active bleeding, or explicitly note perforation without hemorrhage. If any mention of hemorrhage appears, query the provider before finalizing code selection.
- Causal factors coded separately: When H. pylori infection is identified, assign B96.81 (Helicobacter pylori) as an additional code. NSAID use as an external cause requires an appropriate external cause code from the Y40-Y59 range.
Practices using digital intake forms and structured clinical documentation templates can build these documentation prompts directly into the encounter workflow, reducing the frequency of provider queries at the coding stage. Structured patient record management that captures acuity, site, and complication fields explicitly helps coders work from complete records rather than incomplete notes.

MS-DRG grouping and reimbursement context for K27.1
For inpatient Medicare claims, K27.1 as a principal diagnosis triggers specific MS-DRG assignments under the CMS MS-DRG v43.0 grouper. Peptic ulcer perforation cases typically group within the gastrointestinal hemorrhage or ulcer DRG family, with the precise grouping depending on whether major complications or comorbidities (MCCs) or complications or comorbidities (CCs) are documented.
Higher-weighted DRGs translate directly into higher base payment rates. This makes MCC and CC documentation critical alongside the principal diagnosis. Common MCCs for a perforated peptic ulcer encounter include sepsis (arising from peritonitis), respiratory failure, or acute kidney injury. These are legitimate, frequently present – and frequently underdocumented.
Consult the CMS ICD-10 codes and MS-DRG definitions directly for the current v43.0 grouping tables. MS-DRG assignments change annually and should always be verified against the most current CMS publication before finalizing inpatient coding.
Practices running claims management software that integrates diagnosis code entry with billing workflows can flag incomplete documentation earlier in the revenue cycle, reducing the need for late-stage appeals.

Simplify your ICD-10 billing workflows
Pabau's claims management tools support structured diagnosis code entry, digital documentation, and cleaner claim submission – helping your team reduce denials and spend less time on rework.
Coding guidelines and sequencing rules
The ICD-10-CM Official Guidelines for Coding and Reporting govern sequencing for peptic ulcer encounters. The following rules apply directly to K27.1 use cases.
Principal diagnosis: inpatient encounters
For inpatient stays, the principal diagnosis is the condition established after study to be chiefly responsible for the admission. In a perforated peptic ulcer case, K27.1 typically serves as the principal diagnosis when perforation is the reason for the surgical intervention. If the patient was admitted for a related condition (such as NSAID toxicity) and the perforation was discovered secondarily, sequencing logic shifts – always follow the Uniform Hospital Discharge Data Set (UHDDS) definitions.
Additional codes for causal factors
K27.1 does not encode etiology. Assign additional codes for:
- H. pylori infection: B96.81 – Helicobacter pylori as the cause of diseases classified elsewhere
- NSAID use: Appropriate external cause codes from the Y40-Y59 range, identifying the adverse effect of the specific drug class
- Peritonitis: When documented, K65.9 (peritonitis, unspecified) or a more specific peritonitis code may be appropriate as an additional diagnosis
Outpatient encounters
In outpatient settings, coders follow the first-listed diagnosis convention rather than principal diagnosis rules. A perforated peptic ulcer presenting to an emergency department typically converts quickly to an inpatient admission, making outpatient-only coding for K27.1 uncommon. When it does occur (e.g., a follow-up evaluation after surgical repair), assign the most specific, relevant diagnosis supported by the record.
For broader diagnostic code framework guidance, the CDC/NCHS ICD-10-CM web tool provides the official US code lookup searchable by year, index, and tabular list. You can also use the AAPC Codify ICD-10-CM lookup for crosswalk references and coding notes.
Pro Tip
Check your EHR’s ICD-10-CM code lookup against the current FY release before submitting claims. CMS publishes annual updates effective October 1 each year. A code valid in FY2025 may carry revised guidelines or a new exclusion note in FY2026 – verify at the CDC/NCHS ICD-10-CM tool or the AAPC Codify database before year-end transitions.
Synonyms and clinical terms mapped to K27.1
ICD-10-CM coding tools index multiple clinical terms to K27.1. Knowing these synonyms helps coders search efficiently and ensures they do not miss the correct code when provider documentation uses non-standard terminology.
- Acute peptic ulcer with perforation
- Acute peptic ulcer, site unspecified, perforated
- Perforated acute peptic ulcer
- Acute peptic ulceration with perforation, site not specified
Terms that do NOT map to K27.1 and are common sources of confusion:
- Acute gastric ulcer with perforation – maps to K25.1 (gastric site documented)
- Acute duodenal ulcer with perforation – maps to K26.1 (duodenal site documented)
- Acute peptic ulcer with hemorrhage and perforation – maps to K27.2 (both complications present)
- Chronic peptic ulcer with perforation, site unspecified – maps to K27.5 (chronic acuity)
Cross-check synonym lists against the official ICD-10-CM tabular list and the current-year code release, as inclusions can be updated in annual CMS revisions. Good clinical documentation workflows that capture the provider’s own terminology make it easier to map accurately to the correct code without a provider query.
Conclusion
Peptic ulcer perforation claims are high-acuity, high-value encounters where coding precision directly affects reimbursement and audit risk. K27.1 applies in a specific and narrow clinical scenario: an acute peptic ulcer with perforation, no hemorrhage, and no documented anatomical site. When any of those three conditions shift, the code changes.
Practices that invest in structured documentation workflows, complete clinical record capture, and integrated practice management software catch these coding distinctions at the point of care rather than during a payer audit. Pabau’s built-in diagnosis code workflows and claims management tools support cleaner documentation from encounter to submission. Book a demo to see how Pabau handles clinical documentation and billing workflows for your practice.
Continue your research
Need to streamline ICD-10 documentation across your practice? EHR integration workflows explains how to connect diagnosis coding tools with your existing clinical and billing systems.
Handling complex billing denials and rework? HIPAA compliance practices covers the compliance documentation requirements that underpin clean claim submission.
Looking for patient data security guidance alongside coding workflows? Patient data security tools outlines how practices protect clinical records at every stage of the care and billing cycle.
Frequently asked questions
K27.1 is a billable ICD-10-CM diagnosis code for acute peptic ulcer, site unspecified, with perforation. It belongs to Chapter 11 (Diseases of the Digestive System) and is valid for FY2026 reimbursement claims with dates of service on or after October 1, 2015.
K27.1 applies when only perforation is documented and no hemorrhage is present. K27.0 applies when hemorrhage is the sole complication, and K27.2 applies when both hemorrhage and perforation are documented in the same encounter.
Yes. K27.1 does not encode etiology. When H. pylori is documented, assign B96.81 as an additional code. When NSAID use is the precipitating cause, assign the appropriate external cause code from the Y40-Y59 range alongside K27.1.
K27.1 describes an acute peptic ulcer with perforation. K27.5 describes a chronic or unspecified peptic ulcer, site unspecified, with perforation. The distinction rests on whether the provider documents the ulcer as acute or as chronic/unspecified acuity.
No. If the provider or operative report identifies the ulcer as gastric, use K25.1 (acute gastric ulcer with perforation). If identified as duodenal, use K26.1. K27.1 is restricted to encounters where site remains genuinely unspecified in the clinical record.