Headache and stomach pain are two symptoms of a wide range of medical conditions. Causes can include stress, migraines, and some infections.

This article looks at different causes of a headache and stomach pain, and when to seek medical help.

a man holding his face because he has a headache and stomach pain from stress at workShare on Pinterest
Stress is a possible cause of stomach pain and a headache.

Stress can have physical effects on the body and can affect mood and emotions. Symptoms vary from person to person.

According to the National Center for Complementary and Integrative Health, long-term stress can lead to:

  • digestive disorders
  • headaches
  • sleep disorders

Learn more about how stress can affect the body here.

Treatment

Different people can manage stress in different ways.

Some may make changes to their diet, exercise, and sleeping habits.

A person may seek professional help to treat severe or long-term stress. These techniques can include therapies and medication.

Learn more about how to treat and manage stress here.

Influenza, or flu, is a respiratory illness that occurs due to influenza viruses.

The Centers for Disease Control and Prevention (CDC) state that a person can experience headaches, while other symptoms could include diarrhea and vomiting. However, these appear to be more common in children.

Other flu symptoms include:

  • cough
  • sore throat
  • muscle and body aches
  • fatigue
  • chills
  • runny nose
  • stuffy nose

A person may also experience a fever.

Treatment

Flu is contagious, so a person with this condition should stay home and avoid contact with other people if possible.

They should also:

  • rest
  • drink plenty of fluids
  • take OTC painkillers

Some people have a higher risk for complications of flu, including young children, older adults, pregnant women, and people with an underlying health condition.

Antiviral drugs can help reduce symptoms and prevent complications.

Viral gastroenteritis, also known as stomach flu, is a gut infection that occurs due to a virus.

According to the National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK), common viruses that cause viral gastroenteritis include:

Symptoms can include:

  • abdominal cramps and pain
  • nausea
  • vomiting
  • diarrhea
  • fever

The CDC state that the norovirus can cause headaches, while symptoms typically begin 12–48 hours after contact with the virus.

Viral gastroenteritis can also lead to dehydration, which can result in a headache. According to the United Kingdom’s National Health Service (NHS), other symptoms of dehydration include:

  • dizziness
  • tiredness
  • dry mouth
  • infrequent urination

Treatment

Most cases of stomach flu improve on their own without medical treatment.

However, a person can take over-the-counter (OTC) medications, such as loperamide and bismuth subsalicylate.

To avoid dehydration, a person should drink plenty of liquids.

Salmonella is a bacterial infection that a person can contract by consuming contaminated food or water, or touching infected animals.

The CDC state that symptoms typically begin within 6 hours to 6 days and can last for 4–7 days.

Most people experience:

  • diarrhea that may be bloody
  • fever
  • stomach cramps

They may also experience headaches, nausea, and vomiting.

Treatment

Most people recover without specific treatment. People with salmonella should drink plenty of fluids to stay hydrated.

In severe cases, a doctor may prescribe antibiotics.

Epstein-Barr virus, infectious mononucleosis, and mono are all names for a common virus. Mono spreads through bodily fluids.

Symptoms can include:

  • a sore throat
  • rash
  • tiredness
  • fever
  • headache
  • muscle aches

In some cases, a person’s spleen or liver may swell. This can cause pain or a feeling of fullness in the upper left belly.

Treatment

A person can help treat this condition by:

  • taking OTC painkillers to help ease a fever
  • getting plenty of rest
  • drinking plenty of fluids

Migraine is a neurological condition that causes a moderate to severe headache.

A person may describe migraine as an intense pulsating or throbbing pain.

There are a few types of migraine:

  • Migraine with aura: An aura is a series of sensory disturbances. They typically occur shortly before or during a migraine attack. A person may experience visual disturbances, sensory changes, or speech and language problems.
  • Migraine without aura: This migraine can occur without any warning signs.
  • Migraine aura without headache: This is when a person experiences an aura or other symptoms without a headache.

According to the NHS, other symptoms include:

  • nausea and vomiting
  • sensitivity to light and sound
  • sweating
  • diarrhea
  • poor concentration
  • feeling very hot or very cold
  • abdominal pain

Treatment

Treatment typically includes medications to help ease or prevent migraines. Examples include:

  • OTC painkillers
  • triptans
  • ditans
  • gepants
  • antiemetics, to help reduce nausea

Learn more about migraine treatment options here.

Meningococcal disease refers to an illness that occurs due to a bacterium called Neisseria meningitis. The CDC state that these types of infections can be deadly in a few hours.

There are two common types of meningococcal infections:

Meningococcal meningitis

This occurs when the bacteria infects the lining of the brain and spinal cord, which can cause swelling.

Symptoms include:

  • fever
  • stiff neck
  • headache
  • vomiting
  • nausea
  • light sensitivity
  • confusion

Meningococcal septicemia

This occurs when the bacteria enter the bloodstream, then multiply and damage the blood vessel walls.

Alongside severe aches and pains in the stomach, chest, joints, and muscles, other symptoms include:

  • fever
  • chills
  • fatigue
  • vomiting
  • rapid breathing
  • diarrhea
  • a dark purple rash that occurs in the later stages

If a person experiences the symptoms for either type of meningococcal infection, they should seek emergency medical help.

Treatment

To treat meningococcal disease, a doctor will prescribe antibiotics immediately.

A person may also require:

Women can experience high blood pressure and headaches during pregnancy. The NHS state that headaches are common during early pregnancy.

However, a more serious blood pressure disorder is preeclampsia.

Symptoms include:

  • a lasting headache
  • pain in the upper belly
  • a swollen face or hands
  • vision changes
  • difficulty breathing

A person should seek medical help if they experience any symptoms of preeclampsia.

Treatment

Those with mild symptoms will need to monitor their blood pressure, keep track of how the fetus moves, and go to regular medical appointments.

More serious preeclampsia will require treatment in hospital, and sometimes early delivery.

A person should see a doctor if a headache and stomach pain are severe or if these symptoms persist.

If a person has any symptoms of preeclampsia, meningococcal disease, or dehydration, they should seek medical help.

Headaches and stomach pain can indicate an infection.

In most cases, a person can treat a mild infection at home with rest, fluids, and pain medication.

People may experience a headache and stomach pain during stressful periods or with a migraine. They can help manage symptoms with lifestyle changes.

In some cases, headaches and stomach pain could signify a more serious medical condition. Make a note of any other symptoms and seek medical attention for suspected preeclampsia, dehydration, or meningococcal disease.