N39.0 — what it is and when it actually applies
N39.0 is the ICD-10-CM code for a urinary tract infection when the anatomical site of the infection has not been identified or documented by the provider. It is one of the most frequently used codes in primary care — and also one of the most frequently miscoded.
The label "site not specified" is clinical, not stylistic. N39.0 applies when the provider genuinely has not identified where in the urinary system the infection is located. The moment a provider documents "cystitis," "bladder infection," "pyelonephritis," or "kidney infection," N39.0 is no longer appropriate — regardless of how often it gets defaulted to.
Three types of UTI, three different code families
Urinary tract infections are classified by anatomical site. Each site has its own code family:
- Bladder infection (cystitis) → N30.x family
- Kidney infection (pyelonephritis) → N10 (acute) or N11.x (chronic)
- Urethral infection (urethritis) → N34.x family
- Site not documented → N39.0
The distinction matters beyond coding accuracy. Site-specific codes carry stronger medical necessity support for associated lab work and higher-level E&M services. A pattern of N39.0 claims where documentation supports N30.00 or N10 can trigger payer scrutiny and reduce reimbursement on associated services.
Cystitis — N30.00 vs N30.01 and the hematuria distinction
When the provider documents a bladder infection or cystitis, the N30 family applies. The key distinction is whether hematuria is present:
- N30.00 — Acute cystitis without hematuria
- N30.01 — Acute cystitis with hematuria
These are not interchangeable. When a urinalysis documents blood alongside cystitis, N30.01 is accurate. When no hematuria is documented, N30.00 applies. The documentation must support whichever code is assigned — hematuria cannot be inferred from symptoms alone.
Chronic and interstitial cystitis
- N30.10 — Interstitial cystitis (chronic) without hematuria
- N30.11 — Interstitial cystitis (chronic) with hematuria
- N30.20 — Other chronic cystitis without hematuria
- N30.21 — Other chronic cystitis with hematuria
Pyelonephritis — N10 and when the code changes
N10 (Acute pyelonephritis) applies when the provider documents a kidney infection. Clinically this typically presents with fever, flank pain, and costovertebral angle tenderness — but the provider's diagnosis drives code selection, not the symptom pattern.
Organism codes — when to add B95–B97
When laboratory results (urine culture) identify the causative organism, add a code from B95–B97 as a secondary code. Common examples:
- B96.20 — Unspecified Escherichia coli (E. coli) — most common UTI organism
- B96.21 — Shiga toxin-producing E. coli
- B96.1 — Klebsiella pneumoniae
- B95.1 — Streptococcus, group B
The organism code is always secondary — never the principal diagnosis. Sequence N39.0 (or the site-specific code) first, then the B96.x organism code. Only add organism codes when confirmed by culture results — never based on a pending culture or presumed organism.
Recurrent UTI — N39.0 plus Z87.440
When a patient has an active UTI in the context of a documented recurrent pattern, code the active infection first, then add Z87.440 (Personal history of urinary tract infections) as a secondary code.
Z87.440 requires provider documentation of prior UTIs — not just a patient's verbal report. The word "recurrent" in the assessment or problem list supports it. When there is no active infection and the encounter is only about the recurrence history, Z87.440 can be used as the principal code.
Special populations — pregnancy and CAUTI
Pregnancy
UTIs during pregnancy are excluded from N39.0 by an Excludes1 note. Use the O23.x series instead:
- O23.40 — Unspecified infection of urinary tract in pregnancy, unspecified trimester
- O23.41 — First trimester
- O23.42 — Second trimester
- O23.43 — Third trimester
Catheter-associated UTI (CAUTI)
When the UTI is associated with an indwelling urinary catheter, add T83.511A (Infection and inflammatory reaction due to indwelling urethral catheter, initial encounter) alongside the infection code. Sequencing depends on whether the catheter complication or the infection is the primary reason for the encounter.
Complete UTI code reference table
| Code | Description | Use when... |
|---|---|---|
| N39.0 | Urinary tract infection, site not specified | Infection site genuinely not documented |
| N30.00 | Acute cystitis without hematuria | Bladder infection documented, no blood in urine |
| N30.01 | Acute cystitis with hematuria | Bladder infection + hematuria both documented |
| N30.10 | Interstitial cystitis (chronic) without hematuria | Chronic bladder condition, no hematuria |
| N30.11 | Interstitial cystitis (chronic) with hematuria | Chronic bladder condition + hematuria |
| N10 | Acute pyelonephritis | Kidney infection documented |
| N11.9 | Chronic tubulo-interstitial nephritis, unspecified | Chronic kidney infection documented |
| N34.1 | Nonspecific urethritis | Urethral infection documented |
| Z87.440 | Personal history of urinary tract infections | Add as secondary when recurrent UTI documented |
| B96.20 | E. coli as cause (unspecified) | Add as secondary when E. coli confirmed by culture |
| O23.40 | UTI in pregnancy, trimester unspecified | Use instead of N39.0 during pregnancy |
| T83.511A | Infection due to indwelling urethral catheter, initial | Add when UTI is catheter-associated |
Common coding mistakes
Mistake 1 — Using N39.0 when cystitis or pyelonephritis is documented
This is the most common and most consequential error. When a provider's note says "acute cystitis," the code is N30.00 or N30.01 — not N39.0. When it says "pyelonephritis," the code is N10. Defaulting to N39.0 when site-specific documentation exists violates ICD-10-CM guidelines and is flagged by payer edit logic.
Mistake 2 — Missing the hematuria distinction in cystitis
N30.00 and N30.01 are not the same code. If a urinalysis shows blood and the provider documents cystitis, N30.01 applies. Using N30.00 when the chart documents hematuria is a specificity error that affects medical necessity documentation.
Mistake 3 — Sequencing organism codes as principal diagnosis
B95–B97 organism codes are always secondary. Some coders list E. coli (B96.20) as the primary diagnosis when a culture identifies the organism. N39.0 or the site-specific infection code always sequences first.
Mistake 4 — Using N39.0 for pregnancy-related UTI
The Excludes1 note under N39.0 prohibits its use during pregnancy. UTIs during pregnancy require O23.x codes with trimester specification. Using N39.0 on an obstetric claim will generate an edit error.
Mistake 5 — Not adding Z87.440 for documented recurrent UTI
When the provider documents recurrent UTIs, Z87.440 should be added as secondary alongside the active infection code. This supports clinical documentation and may affect which preventive services are billable alongside the encounter.
Look up related codes
Search all 98,186 ICD-10-CM codes instantly — free
Search ICDwise →Prepare for your CPC or CCS certification
AAPC offers comprehensive medical coding courses covering ICD-10-CM, CPT, and compliance. Genitourinary coding including UTI specificity is regularly tested on the CPC exam.
Explore AAPC Coding Courses →