In a cross-sectional study of Youth Risk Behavior Survey data from 338 324 students from 2017 to 2023, total abortion bans were associated with a statistically significant 4.3–percentage point increase in suicidal ideation among female students. No significant differences were observed among male students.