What is the ICD‑10‑CM code for a history of suicidal ideation?

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 13, 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 Code for History of Suicidal Ideation

The ICD-10-CM code for a history of suicidal ideation is Z91.5 (Personal history of self-harm).

Code Selection and Clinical Context

The appropriate code depends on whether you're documenting current versus past suicidal ideation:

  • Current suicidal ideation: Use R45.851 (Suicidal ideation)
  • History of suicidal ideation (resolved, not currently present): Use Z91.5 (Personal history of self-harm)

Important Coding Considerations

The distinction between active and historical suicidal ideation is clinically critical. Research demonstrates that R45.81 (suicidal ideation) accounts for approximately 79% of suicide and self-harm-related emergency department presentations when using standard ICD-10 coding 1. However, this represents only current, active ideation.

Common Coding Pitfalls

  • Do not use R45.851 for past suicidal ideation - this code indicates current, active thoughts requiring immediate clinical assessment
  • Z91.5 encompasses broader self-harm history - this includes past suicidal ideation, suicide attempts, and non-suicidal self-injury
  • Standard ICD-10 codes significantly underreport suicidality - detecting less than half of actual presentations in some healthcare systems 1

Related Codes You May Need

Depending on the clinical scenario, consider these additional codes:

  • T14.91 (Suicide attempt) - for history of actual attempts
  • X60-X84 series - for specific methods of intentional self-harm (historical)
  • Y87.0 - Sequelae of intentional self-harm

Clinical Documentation Tips

When documenting history of suicidal ideation, specify:

  • Time frame (when the ideation occurred)
  • Whether there were associated suicide attempts
  • Current mental status and absence of active ideation
  • Any ongoing psychiatric treatment or monitoring

This documentation clarity helps distinguish patients with resolved historical ideation from those requiring acute suicide risk assessment, which research shows involves evaluation across multiple domains including self-directed violence history, psychiatric conditions, and social determinants of health 2.

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.