Purpose: The objective of our project is to use the National Inpatient Sample Database to identify risk factors for endophthalmitis in cases of open-globe injury (OGI). Methods: This is a cross-sectional observational study of 48 627 cases of OGI from the National Inpatient Sample Database. We performed regression analysis using IBM SPSS Statistics 23. Codes from the International Classification of Disease, Ninth Revision were used to identify ocular findings and conditions. Variables with P values less than .05 on univariate analysis were included in the multivariable regression model; Bonferroni correction was applied to these results. Results: Of the 48 627 cases of OGI, 37 440 (77.0%) occurred in the adult group (21 years and older). Overall, 1018 (2.1%) cases developed posttraumatic endophthalmitis, with 74.5% cases in the adult group. Endophthalmitis developed in 293 (4.5%) eyes with an intraocular foreign body (IOFB). Results of binary logistic regression showed the clinical findings of traumatic cataracts, hypopyon, vitreous inflammation, corneal ulcers, or IOFBs were associated with an increased risk of developing endophthalmitis after OGI. Conversely, orbital fractures, rupture-type injuries, and intraocular tissue prolapse were associated with a decreased likelihood of being diagnosed with endophthalmitis. Conclusions: Endophthalmitis developed in 2.4% of pediatric OGIs and 2.0% of adult OGIs. Traumatic cataract, hypopyon, vitreous inflammation, corneal ulcer, keratitis, retinal detachment, IOFB, and diabetes increased the risk of post-open-globe endophthalmitis.