If you have continued stress in your life this can affect your body in many different ways. One of those ways is to cause you to have unexpected panic attacks. Even if you don't feel stressed at the time a panic attack can strike. Panic attacks can happen any place, at anytime, even while you are doing things that aren't even stressful. It's because we are under stress it seems everywhere we go, we begin to desensitize ourselves to it and don't realize that we are even under stress anymore. But our body does and it reacts by throwing itself into a panic attack.
If you want to be able to better cope with a panic attack it will help if you learn how to recognize the symptoms as being simply panic attacks and know that it is nothing that is going to kill you. You need to realize that you are not having a heart attack or a stroke. Knowing this will make it easier to cope with an attack if it should happen.
If you take some time and patience as well as practice you should be able to learn how to relax yourself. You will need to mentally will yourself to take some deep and slow breaths which in turn is going to let your body relax. Don't allow the pain from the panic to overwhelm you, you need to concentrate only on your breathing.
If you find this difficult to do or you simply don't believe it's a panic attack, then you need to go to your doctor and make sure that you get a clean bill of health from him. Since a panic attacks symptoms can be similar to a heart attack, if you know that there is nothing wrong with your heart you will be able to learn how to get over the attacks easier.
Once you are assured that there is nothing wrong with your heart you should feel relieved and if another attack comes you should be able to concentrate on good thoughts, add your deep and slow breathing and this should help the pain of the attack to simmer down within a few minutes.
The most important thing you can do is to think positive thoughts. Imagine you are walking on the beach listening to the waves come crashing down on shore. Or imagine that you are sitting quietly somewhere out in the mountains, anything that brings you peace and joy. If praying or talking to God is something that brings you peace, then by all means do this when you are having a panic attack. Whatever brings calmness and peace to you is what you need to include with your breathing technique.