Opioid and nonopioid analgesics are commonly prescribed to young people to alleviate pain. Even short-term prescriptions increase the risk of persistent use and future misuse of potent analgesics, such as opioids. Childhood trauma exposure has been found to be related to pain conditions and to using more prescription analgesics. This large, prospective cohort study aimed to investigate the association of a broad range of childhood trauma exposures with prescription rates for opioid and nonopioid analgesics in adolescence and young adulthood. Self-reported data on childhood trauma exposures from adolescents (aged 13-19 years) who participated in the Young-HUNT3 Study (2006-2008, n = 8199) were linked to data from the Norwegian Prescription Database (NorPD, 2004-2021). We found that exposure to childhood trauma was consistently associated with higher prescription rates for opioids throughout adolescence and young adulthood. The highest incidence rate ratio (IRR) in adolescence was observed for sexual abuse (IRR 1.63, confidence interval [CI] 1.19-2.23). In young adulthood, the highest IRR was observed for physical violence (2.66, CI 2.27-3.12). The same overall pattern was observed for nonopioid analgesics. The more frequent prescriptions of opioid and nonopioid analgesics to participants exposed to childhood trauma suggests a higher symptom load of pain causing them to seek professional help with pain relief. Receiving potent analgesics is not without risk, and the likelihood of misuse may be elevated among trauma-exposed individuals. A trauma-informed approach to pain could be vital for guiding clinicians to the most effective and least harmful treatment for each patient.Copyright © 2023 The Author(s). Published by Wolters Kluwer Health, Inc. on behalf of the International Association for the Study of Pain.