Up to a million people in the UK have "completely preventable" severe headaches caused by taking too many painkillers, doctors have said.

They said some were trapped in a "vicious cycle" of taking pain relief, which then caused even more headaches.

The warning came as part of the National Institute for Health and Clinical Excellence's (NICE) first guidelines for treating headaches.

It is also recommending acupuncture in some circumstances.

This can end up getting into a vicious cycle where your headache gets worse, so you take more painkillers, so your headache gets worse and this just becomes worse and worse and worse Prof Martin Underwood, Warwick Medical School

"Medication overuse headaches" feel the same as other common headaches or migraines.

There is no definitive UK data on the incidence of the condition, but studies in other countries suggest 1-2% of people are affected, while the World Health Organization says figures closer to 5% have been reported.

While painkillers would be many people's instant response, they could be making sufferers feel even worse.

Prof Martin Underwood, from Warwick Medical School, who led the NICE panel, said: "This can end up getting into a vicious cycle where your headache gets worse, so you take more painkillers, so your headache gets worse and this just becomes worse and worse and worse.

"It is such an easy thing to prevent."

'Tipping point'

Exactly how painkillers have this effect on the brain is unknown.

Most of the people affected are thought to have started with either everyday, tension-type headaches or migraines. The headaches then became worse as they treated themselves at home.

Main types of headache Tension - the common "everyday" headache most people will experience at some point in their lives. In some cases people have tension headaches on most days of the month.

Migraine - severe headache that can last for several days. It gets worse with activity and often comes with nausea as well as sensitivity to light and sound.

Cluster - extremely severe pain around the eye and side of the face, also includes swelling and a red watery eye. Some people report eight attacks a day, which can last up to three hours.

Medication overuse - feels like a tension headache or a migraine, but is due to taking too many painkillers.

However, there are more than 200 types of headache.

Manjit Matharu, a consultant neurologist at the National Hospital for Neurology and Neurosurgery, said there was a tipping point at 10 to 15 days of using pain relief each month when the drugs became the issue.

He said: "This is a huge problem in the population. The figures in terms of the number of people who have medication overuse headache are one in 50, so that is approximately a million people who have headaches on a daily or near daily basis because they're using painkillers."

Media playback is unsupported on your device Media caption Dr Brian Hope: 'Brain gets used to painkillers'

People with a family history of tension-type headaches or migraine may also be genetically more vulnerable to medication overuse headaches. They could be susceptible when taking pain relief even if it is not for headaches.

The new guidelines for doctors in England and Wales advise telling sufferers to immediately stop taking all pain relief. However, this will lead to about a month of agony as patients contend with regular headaches without pain relief, until symptoms eventually improve.

The panel said other options for controlling any underlying headaches, such as preventative treatments, could be considered.

Acupuncture

The guidelines also include a recommendation for acupuncture in patients susceptible to migraine and tension headaches.

Drugs causing overuse headaches Paracetamol, aspirin and non-steroidal anti-inflammatory drugs on 15 or more days per month

Triptans, opioids, ergots or combination analgesic medications on at least 10 days per month Source: NICE

"We would expect that to lead to more people getting acupuncture, but given there is good evidence to show this is effective for the prevention of both tension-type and migraine-type headaches then that is a good thing because people are getting access to an effective treatment," Prof Martin Underwood said.

Doctors have also been asked not to refer patients for brain scans "solely for reassurance" that they do not have a brain tumour. The NICE panel said a tumour would come with other symptoms such as a change in behaviour or epilepsy.

The chief executive of the Migraine Trust, Wendy Thomas, said: "The guideline will assist with accurate diagnosis, appropriate referral and evidence-based information for those with troublesome and disabling headaches.

"It will also raise awareness of medication overuse, which can be an issue for those with severe headaches.

"People with disabling migraine will experience improved quality of life as a result of this guideline."

Dr Fayyaz Ahmed, the chair of British Association for the Study of Headache, welcomed the guidelines.

He said: "Headache is the most prevalent condition and one in seven of the UK population has migraine.

"The condition puts an enormous burden on the healthcare resources and the economy in general."