erectile at night
Informed by recognized medical guidance
Overview
An erection at night, also called a nocturnal erection or nocturnal penile tumescence, is a natural, automatic erection that happens during sleep. It is a sign that the nerves and blood vessels in the penis are working as they should.
Key facts
- Most men have 3 to 5 erections during the night while sleeping.
- These erections mostly occur during the REM (dreaming) stage of sleep.
- Waking up with an erection is normal and healthy at any age.
Yes. Every male who is biologically capable of erections gets them during sleep, often starting before birth and continuing into old age.
It affects all males, from infants to older men. The strength and frequency may decrease with age, but it remains a normal event.
Symptoms
- An erection that lasts longer than 4 hours and is painful (a condition called priapism) is a medical emergency. Call your local emergency number immediately.
- ⚠Sudden loss of all erections — both at night and during the day — along with chest pain, shortness of breath, or weakness in your arms or legs, needs same-day urgent care.
Common symptoms
- You wake up with an erection.
- You notice an erection when you wake briefly during the night.
- No pain or discomfort accompanies the erection.
Symptoms in children
- It is normal for baby boys and young boys to have erections while sleeping, and they usually go away on their own.
Symptoms in older adults
- Older men may notice fewer or less firm erections at night, which can be a normal sign of ageing or a hint of an underlying health issue.
Causes
Main causes
- During deep, dream-filled (REM) sleep, the brain sends chemical signals that relax the muscles and increase blood flow into the penis, causing an erection.
- This process is automatic and does not require sexual thoughts or stimulation.
- Healthy nerves, hormones, and blood vessels are needed for these erections to happen.
Risk factors
- Conditions that affect blood vessels, such as diabetes, high blood pressure, and heart disease.
- Neurological conditions like Parkinson's disease or nerve damage.
- Low testosterone or thyroid problems.
- Smoking, heavy alcohol use, and drug misuse.
- Stress, anxiety, and poor sleep.
When to see a doctor
See a doctor urgently if:
- If your erection is painful and lasts more than 4 hours.
- If you lose all erections suddenly and have symptoms like chest pain, dizziness, or numbness.
Book a routine appointment if:
- If you rarely or never have erections at night and you also have trouble getting or keeping erections during sexual activity.
- If you have an underlying health condition like diabetes or heart disease and notice a change in nighttime erections.
- If you are over 40 and have any risk factors for heart disease — this can be a good chance to give a thorough check-up.
Diagnosis
A doctor can assess your nighttime erections by taking your history and asking about your sleep, stress, and sexual function. In some cases, they may use a simple home test to check whether erections occur during sleep.
Tests that may be done
- Physical examination of the genitals and pulse in the legs.
- Blood tests to check testosterone, blood sugar, and cholesterol levels.
- An overnight test using a small, portable monitor worn around the penis (nocturnal penile tumescence test).
- A simple 'stamp test' or 'snap gauge' placed around the penis before sleep to detect erections — less high-tech but can be done at home.
What to expect at your appointment
The doctor will explain the results. If normal nighttime erections happen, it usually points to psychological factors rather than a physical cause. If they are absent, further tests may look at blood flow and nerve function.
Treatment
No treatment is needed if you have no symptoms or concerns. If you are worried about erectile function, your doctor will look for the underlying cause and build a treatment plan with you.
Self-care at home
- Get enough quality sleep — aim for 7 to 8 hours per night.
- Manage stress with relaxation exercises, meditation, or counselling.
- Limit alcohol and avoid smoking.
- Avoid drinking large amounts of fluids close to bedtime to reduce sleep interruptions.
Medical treatments
If a physical issue is found, your doctor may talk about medications that help relax blood vessels, hormone therapy if your testosterone is low, or psychological counselling if anxiety is a factor. There are also non-drug options like vacuum devices. Always discuss treatments with a qualified healthcare professional; do not self-prescribe.
When is surgery considered?
Surgery is very rarely needed for erectile problems. It is only considered when other treatments have not worked and there is a clear, correctable physical cause. A specialist surgeon will give you detailed advice about benefits and risks.
Living with this condition
Try not to focus too heavily on every night's erection. If you are curious or worried, keeping a loose diary of your morning erections can give you and your doctor useful information. Just don't let it become an added source of stress.
Lifestyle tips
- Exercise most days of the week to improve blood flow and heart health.
- Maintain a healthy weight.
- Keep blood pressure, blood sugar, and cholesterol in a healthy range.
- Build good sleep habits — a regular bedtime and a cool, dark bedroom.
Diet and exercise
Eat a varied diet with plenty of fruits, vegetables, whole grains, and lean proteins. Limit saturated fats and added sugar. Regular aerobic exercise, such as brisk walking or cycling, has been shown to improve erectile function by keeping blood vessels healthy.
Mental health and emotional wellbeing
Feeling anxious about erections can actually reduce them, because stress and anxiety interfere with deep sleep and the nerve signals that trigger nighttime erections. If you feel down, anxious, or obsessive about this, talk to your GP or a mental health professional. You are not alone, and help is available.
Prevention
You cannot directly prevent or force nighttime erections, but you can reduce the chance of losing them by keeping your heart, blood vessels, and nerves healthy.
Vaccines
There is no vaccine that prevents erectile problems. However, certain infections like COVID-19 or influenza can affect circulation, so staying up to date with routine vaccines is a reasonable part of overall health.
Screening programmes
There is no routine screening test specifically for nocturnal erections. However, if you have diabetes, high blood pressure, or high cholesterol, your doctor will monitor those conditions regularly, which can help protect erectile function.
Complications
If left untreated
- If an underlying medical condition such as diabetes or heart disease is left uncontrolled, it can continue to damage nerves and blood vessels, potentially worsening erectile function.
- A rare but serious complication is priapism — a prolonged, painful erection — which needs urgent treatment to avoid permanent damage.
Long-term outlook
The outlook is very good for most men. Nocturnal erections are a normal sign of health, and even if they change with age, it doesn't mean you will develop erectile dysfunction. When problems appear, most can be successfully managed with the right support.
Find support
International organisations
Local organisations
External links open third-party websites. Ruqelo Health is not responsible for external content. Listing an organisation does not imply endorsement.
Always verify with your doctor
Health guidelines vary by country and region. The information in this article is based on international clinical guidelines but may not reflect the specific guidelines, medications, or practices in your country. Always discuss your health concerns with your own doctor or healthcare provider, and refer to your local national health guidelines where available.
Important notice This information is for educational purposes only. It does not replace professional medical advice, diagnosis, or treatment. Always consult a qualified healthcare provider about your specific situation. If you are experiencing a medical emergency, call your local emergency services immediately.
Related conditions
Sources and guidance
This article is educational and is prepared with reference to recognized health information and clinical guidance sources where available. Specific source links may vary by topic.
Last updated: July 31, 2026
Educational note: This information is for education only and is not a diagnosis.
Use it to support, not replace, advice from a licensed clinician.
If symptoms are severe, worsening, or urgent, call your local emergency number or seek emergency care.