ICD-9 codes can contain between three and five digits, but ICD-10 codes can be anywhere from three to seven digits long. This is done in order to create codes that are more specific, in addition to accounting for diseases and conditions not covered under ICD-9.