Erectile dysfunction (impotence) is very common, particularly in men over 40. It's usually nothing to worry about, but see a GP if it keeps happening.
Erectile dysfunction is when you are either:
Depending on the cause, you may still be able to get an erection at other times, such as when you wake up.
Sometimes you might also have low sex drive (loss of libido).
Most men occasionally fail to get or keep an erection.
This is usually caused by stress, tiredness or drinking too much alcohol, and it's nothing to worry about.
It can also be a side effect of some medicines.
If erectile dysfunction happens often, it may be caused by a condition such as:
Healthy lifestyle changes can sometimes help with erectile dysfunction.
If you see someone about erectile dysfunction, the doctor or nurse may:
If you have symptoms like needing to pee more often than usual, you may also have an examination of your prostate (rectal examination).
Treatment can usually help improve erectile dysfunction.
The main treatments are medicines that increase the blood flow to your penis, called PDE-5 inhibitors.
These include:
You can get sildenafil on prescription or you can buy it from a pharmacy. You need a prescription for the other types.
Vacuum pumps encourage blood to flow to the penis, causing an erection.
They work for most men and can be used if medicine is not suitable or does not work.
They're not always available on the NHS. Speak to a doctor about where to get a vacuum pump.
There are also treatments for some of the causes of erectile dysfunction.
For example: