In a recent study, hikers preparing for a high-altitude journey were given doses of ibuprofen in the 24 hours prior to their journey. A little over 40% of hikers who took ibuprofen developed altitude-related headaches and nausea. In the control group, where hikers did not take ibuprofen, almost 70% experienced headaches, nausea, and other symptoms. [2] X Research source If you’re going to be flying, try taking 600 milligrams of ibuprofen sometime during the 24 hours leading up to the flight. Ibuprofen can be purchased at most drug stores and supermarkets and comes under a variety of names, such as Advil or Motrin. [3] X Research source

You will need a prescription for acetazolamide. Talk to your doctor about your headaches during flying and ask them if they think the medication would be safe for you. Acetazolamide is prescribed in different doses with different instructions depending on why you’re taking it and your medical history. Follow the instructions on your prescription and do not hesitate to ask a doctor or pharmacists if you have any questions. [6] X Research source Acetazolamide can cause nausea, dizziness, and loss of appetite. These are normal side effects that should pass. If you experience more serious side effects, like fever, rash, or blood in your urine, stop using the medication and talk to your doctor. [7] X Research source

Altitude changes can prompt changes in your oxygen levels, causing your head’s blood vessels to compensate by contracting and expanding. This change in your blood vessels can trigger a migraine. [8] X Research source Booking a non-stop flight can be difficult and costly. However, see if you live within driving distance of a location that provides non-stop flights to your end location. It might be worth it to take a road trip to an airport and take a non-stop flight from there if your migraines or headaches are particularly severe.

Aircrafts only have a humidity level of 15%, which is on par with some of the driest climates on earth. Make sure you bring a water bottle on the plane and stay hydrated prior to boarding. Remember, drinks are not usually offered on a plane until well after take-off. Bringing your own water on board will make it easier for you to stay hydrated while you wait for in-flight service. If you forgot your water bottle and are feeling thirsty as the plane takes off, it’s fine to ask the flight attendant for a water bottle before the plane takes off.

Purchase high-fiber and high-protein snacks, like nuts, dried fruits, and granola bars. Put them in your carry-on bag. Avoid salty or overly sugary snacks, which can worsen dehydration.

Alcohol is one of the biggest triggers for migraines. It also contributes to dehydration that can exacerbate jet lag and cause headaches. Red wine, in particular, is known to cause headaches if drunk in excess. Consuming a glass or two of red wine before or after boarding could lead to a headache after flight. If you really want a preflight alcoholic beverage, stick to white wine as it’s less likely to cause headaches.

Herbal supplements, like melatonin, can be purchased at drug stores and supermarkets. In small doses, they can promote sleep. Many people also take Dramamine while flying as it reduces nausea. It also causes drowsiness and may help you sleep through a long flight. Test any medications you’re trying at home before a fight. If they have any adverse side effects for you, you want to know ahead of time. Bring an in-flight pillow to avoid straining your neck while flying.

Familiarize yourself with the routines of flying and airplane noises before leaving for the airport. Anxiety is often rooted in the unexpected or unknown, so having as much information as you can beforehand can reduce fear. [12] X Research source Keep a picture of your destination on hand. If you start to become anxious during the flight, reminding yourself what you have to look forward to can help ease that anxiety. If your fear of flying is particularly bad, talk to a doctor or therapist about an anti-anxiety medication you can take as needed before flight.

It might not be a good idea to drive right away. Take a cab home from the airport or have a trusted friend pick you up. Do not expose yourself to stimulants that can normally induce headaches. Caffeine, loud music, and alcohol should be avoided in the hours after a flight until you’ve readjusted.

Most flight-related headaches go away within 30-60 minutes after they start. If your headache lasts longer than that, talk to your doctor.