What is the ICD‑10‑CM diagnosis code for a fungal skin infection of the leg presenting with black and white spots and being treated with ketoconazole?

Medical Advisory BoardAll articles are reviewed for accuracy by our Medical Advisory Board
Educational purpose only • Exercise caution as content is pending human review
Article Review Status
Submitted
Under Review
Approved

Last updated: November 26, 2026 • View editorial policy

Have a follow-up question?

Our Medical A.I. is used by practicing medical doctors at top research institutions around the world. Ask any follow up question and get world-class guideline-backed answers instantly.

ICD-10-CM Diagnosis Code for Fungal Skin Infection of the Leg

The appropriate ICD-10-CM diagnosis code for this presentation is B36.9 (Superficial mycosis, unspecified) or more specifically B36.8 (Other specified superficial mycoses) if tinea nigra or pityriasis versicolor is suspected based on the black and white spot presentation.

Clinical Context and Coding Rationale

The description of "black spots with white spots" on the leg being treated with ketoconazole suggests a superficial fungal infection. The pigmentation pattern is clinically significant:

Most Likely Diagnoses Based on Presentation:

Tinea (Pityriasis) Versicolor - This condition characteristically presents with hyperpigmented (black/brown) and hypopigmented (white) patches and is specifically indicated for ketoconazole treatment 1. The appropriate code would be:

  • B36.0 (Pityriasis versicolor) - This is the most specific code given the black and white spot description

Alternative considerations:

  • Tinea Nigra - Presents with brown to black macules, typically on palms/soles but can occur elsewhere 2. Would also code as B36.1 (Tinea nigra)
  • Dermatophytosis of leg - If this is tinea corporis or tinea pedis extending to leg: B35.4 (Tinea corporis) or B35.3 (Tinea pedis)

Coding Algorithm:

  1. If hyperpigmented AND hypopigmented patches present together → Use B36.0 (Pityriasis versicolor)

  2. If only dark/black macules without white areas → Use B36.1 (Tinea nigra)

  3. If scaling, erythematous patches with variable pigmentation → Use B35.4 (Tinea corporis) for leg involvement

  4. If diagnosis uncertain but fungal infection confirmed → Use B36.9 (Superficial mycosis, unspecified)

Important Coding Considerations:

The FDA-approved indications for topical ketoconazole specifically include tinea corporis, tinea cruris, tinea pedis, tinea (pityriasis) versicolor, and cutaneous candidiasis 1. The black and white spot presentation most strongly suggests pityriasis versicolor, which is caused by Malassezia furfur and characteristically produces both hyper- and hypopigmented lesions.

Critical caveat: While ketoconazole was historically used for various fungal infections 3, current guidelines explicitly state that ketoconazole "should no longer be used" for systemic treatment of endemic mycoses like sporotrichosis due to poor efficacy and adverse effects 3. However, topical ketoconazole remains appropriate for superficial infections 1.

Documentation Requirements:

Ensure the medical record specifies:

  • Exact location (leg)
  • Clinical appearance (pigmentation pattern)
  • KOH preparation or culture results if available
  • Response to ketoconazole therapy

The most appropriate code is B36.0 (Pityriasis versicolor) given the characteristic black and white spot presentation and ketoconazole treatment.

Professional Medical Disclaimer

This information is intended for healthcare professionals. Any medical decision-making should rely on clinical judgment and independently verified information. The content provided herein does not replace professional discretion and should be considered supplementary to established clinical guidelines. Healthcare providers should verify all information against primary literature and current practice standards before application in patient care. Dr.Oracle assumes no liability for clinical decisions based on this content.