Do the headaches follow a specific activity?
Sometimes exercise, sex, bouts of coughing or other activities trigger headaches. An exercise-induced headache may last from five minutes to 48 hours. Most sex headaches last a few minutes, but others may linger for a few hours. Primary cough headaches typically last a few seconds to a few minutes. These types of headaches are unusual. They’re usually short-lived, making treatment unnecessary. When acute treatment is needed, nonsteroidal anti-inflammatory drugs — such as aspirin and ibuprofen — may be effective. Your doctor may recommend various tests to help detect any underlying conditions.