PTSD and substance use can occur together, but that does not mean one directly caused the other.
Trauma exposure, stress, biology, environment, mental health, and access to support may all shape what you are experiencing. A thoughtful assessment should consider both concerns rather than treating substance use as a failure of willpower or assuming every difficult feeling comes from trauma. You can share what feels relevant without telling your entire story immediately.
