This document provides guidance on coding respiratory failure. It defines the types of respiratory failure coded in ICD-10 category J96 based on whether it is acute, chronic, or unspecified and whether there is accompanying hypercapnia or hypoxia. It also outlines the official guidelines for coding acute respiratory failure as the principal or secondary diagnosis depending on the circumstances of admission. Two case examples are provided to demonstrate how to determine if respiratory failure should be coded as hypercapnic or hypoxic based on the documented clinical findings.