The cause of anxiety disorders is a combination of genetic and environmental factors.[47] Anxiety can stem itself from certain factors: genetics, medicinal side-effects, shortness of oxygen.[48] Risk factors include a history of child abuse, family history of mental disorders, and poverty. Anxiety disorders often occur with other mental disorders, particularly major depressive disorder, personality disorder, and substance use disorder.[49] To be diagnosed symptoms typically need to be present at least six months, be more than would be expected for the situation, and decrease functioning.[10][49] Other problems that may result in similar symptoms including hyperthyroidism, heart disease, caffeine, alcohol, or cannabis use, and withdrawal from certain drugs, among others.[49][7]

For example, once you notice you are scaring yourself with anxious thinking, you can change your thinking to calming thoughts, which will stop stress responses and their physiological, psychological, and emotional effects. As you calm yourself down, your body will follow by stopping the flow of stress hormones. As stress hormones are used up or expelled, the sensations, symptoms, and feelings of panic will subside…in time.
It is common for a person with one anxiety disorder to also have another anxiety disorder. Anxiety disorders are also frequently accompanied by depression or substance abuse. Anxiety disorders can coexist with physical health conditions as well. In such instances, these physical health conditions will also need to be treated. Before undergoing any treatment, it is important to have a thorough medical exam to rule out other possible causes.
Primarily, it is important to stay calm, patient, and understanding. Help your friend wait out the panic attack by encouraging them to take deep breaths in for four seconds and out for four seconds. Stay with them and assure them that this attack is only temporary and they will get through it. You can also remind them that they can leave the environment they are in if they would feel more comfortable elsewhere and try to engage them in light-hearted conversation.

People with panic disorder often worry about when the next attack will happen and actively try to prevent future attacks by avoiding places, situations, or behaviors they associate with panic attacks. Worry about panic attacks, and the effort spent trying to avoid attacks, cause significant problems in various areas of the person’s life, including the development of agoraphobia (see below).