
Erections work when arousal signals from your brain and nerves trigger the release of nitric oxide, which relaxes the muscle inside the penis so blood can rush in. The swollen tissue then presses on its own veins and slows blood from draining out, which keeps the erection firm.
During an erection, blood flows into the penis at about 20 to 40 times its resting rate (Panchatsharam et al., 2023). Because erections rely on brain signals and blood flow, erectile dysfunction (ED) can have physical causes, psychological causes or both (NIDDK, 2024).
Sexual stimulation starts the process. Thoughts, sights, sounds, or touch send signals through the brain, spinal cord, and nerves to the penis. Touch to the genitals can even trigger an erection through reflexes in the spinal cord, without the brain starting it (Dean & Lue, 2005).
Two parts of your nervous system play different roles. The parasympathetic nervous system helps an erection start and build. The sympathetic nervous system helps keep the penis soft and brings it back down afterward. Both systems are active at the same time and interact with each other (Panchatsharam et al., 2023).
As arousal builds, nerves and the cells lining the blood vessels in the penis release nitric oxide. Nitric oxide sets off a chain reaction that makes another chemical messenger, called cGMP, and cGMP relaxes the smooth muscle inside the penis. With that muscle relaxed, blood flows in through the arteries and fills the spongy tissue (Panchatsharam et al., 2023).
An erection stays firm mainly through a process called veno-occlusion. As the spongy tissue inside the penis fills with blood, it swells and squeezes the draining veins against a tough outer layer called the tunica albuginea. This restricts blood from flowing back out.
Muscles at the base of the penis also tighten to add extra firmness, but the blood held in the tissue does most of the work (Panchatsharam et al., 2023).
| Stage | What happens | Nervous system state |
|---|---|---|
| Stimulation | Arousal signals travel through the brain, spinal cord, and nerves | Parasympathetic activity rises. Both systems interact |
| Inflow | Nitric oxide relaxes smooth muscle, blood rushes in (20-40x resting flow) | Mainly parasympathetic |
| Rigidity | Veno-occlusion restricts blood outflow, muscle contraction adds firmness | Mainly parasympathetic, plus muscles at the base of the penis |
| Going soft (detumescence) | Sympathetic activity increases, smooth muscle contracts, blood drains | Mainly sympathetic |
Firmness comes in degrees, and there's a simple 0 to 4 scale for rating it called the Erection Hardness Score (EHS). You score your own erection. Using data from a study of 307 men across several countries, researchers found the scale was a reliable way to measure hardness (Mulhall et al., 2007).
The EHS is a quick, helpful tool to share with a doctor. Doctors also use a longer, more detailed questionnaire, so the EHS works best as one piece of the picture (Sexual Medicine Society of North America, n.d.).
| Score | What it means |
|---|---|
| 0 | Penis does not enlarge |
| 1 | Penis is larger, but not hard |
| 2 | Penis is hard, but not hard enough for penetration |
| 3 | Penis is hard enough for penetration, but not completely hard |
| 4 | Penis is completely hard and fully rigid |
Score wording from (Sexual Medicine Society of North America, n.d.).
Doctors describe 3 types of erections, based on what sets them off.
| Type | What triggers it | When it happens |
|---|---|---|
| Reflexogenic | Something touching the genitals. Signals can travel through reflexes in the spinal cord | During touch or sexual contact |
| Psychogenic | Sexual thoughts, memories, or fantasies, or things you see or hear | When something arousing catches your attention, without touch |
| Nocturnal (sleep-related) | Brain activity during sleep, mostly REM sleep | While you're asleep |
Types from (Cleveland Clinic, 2023) and (Dean & Lue, 2005).
Sleep erections happen mostly during REM (rapid eye movement) sleep (Dean & Lue, 2005). These erections are linked to activity in certain parts of the brain during REM, and they aren't caused by sexual stimulation (International Society for Sexual Medicine, n.d.-b).
Several can happen in a typical night, often around 3 to 5 over 8 hours of sleep (International Society for Sexual Medicine, n.d.-a). The number varies from person to person and night to night, so having fewer isn't automatically a problem.
Sleep erections also explain why you might wake up with one, often called morning wood (Cleveland Clinic, 2025).
Arousal involves your brain, hormones, emotions, nerves, muscles, and blood vessels (Mayo Clinic, 2025). Age and everyday habits both play a part in how well those systems work together.
As you get older, erections might take longer to start and might not be as firm, and you might need more direct touch to get and keep one (Mayo Clinic, 2025).
Blood flow to the penis may also decrease. It isn't clear whether that's down to aging itself or to health conditions that become more common as men get older. The refractory period, which is the wait after orgasm before you can get another erection, gets longer too (Jimbo, 2025). Morning erections may come less often and feel less stiff (Cleveland Clinic, 2025).
Even so, ED is not a typical part of aging (Mayo Clinic, 2025). If erections become a regular problem at any age, a doctor can help you work out why.
Here's what the evidence says about common everyday factors, and what helps with each one.
| Factor | What the evidence says | What helps |
|---|---|---|
| Smoking and nicotine | Tobacco lowers blood flow to the veins and arteries (Mayo Clinic, 2025). Nicotine itself, including from vapes and e-cigarettes, can change how well blood vessels widen (Whitehead et al., 2021) | Stop smoking, and cut back on nicotine in any form, including vapes and pouches |
| Alcohol | Drinking too much alcohol may contribute to ED (NIDDK, 2024) | Limit alcohol or don't drink |
| Exercise | Not getting enough physical activity may contribute to ED (NIDDK, 2024) | Exercise regularly |
| Emotional health | Feeling lonely, low self-esteem, or negative body image can cause ED or make it worse (NIDDK, 2024) | Find ways to ease stress, and get help for anxiety or depression |
| Long-term health | Conditions that affect blood vessels, nerves, or hormones, like diabetes, heart disease, and high blood pressure, can lead to ED (NIDDK, 2024) | Work with a doctor to manage ongoing conditions |
| Sleep | Sleep conditions are on the list of physical causes of ED (Mayo Clinic, 2025) | See a doctor about ongoing sleep problems. Frequent loud snoring and daytime sleepiness can be signs of sleep apnea (National Heart, Lung, and Blood Institute, 2025) |
Most tips in the last column come from (Mayo Clinic, 2025).
Erectile dysfunction (ED) can happen when any stage of this process gets disrupted. The cause can be physical, like a problem with blood flow or nerves, or psychological, like stress or anxiety. Often, it's a mix of both (NIDDK, 2024).
ED affects younger men too. Some studies estimate that as many as 30% of men under 40 have experienced it, though estimates vary a lot with the group studied and how ED is measured (Nguyen et al., 2017).
If stress, anxiety or mood seem to be playing a bigger role than anything physical, psychological erectile dysfunction explains how the mind affects the same process described above. For the physical causes a doctor may look at, erectile dysfunction basics is a good place to start.
Because an erection depends on both your brain and your blood flow, working on erection difficulties usually means looking at both. Mojo's Erection Reset is built around that idea.
Dr. Shannon Chavez is the expert behind the program. She is a licensed clinical psychologist, AASECT-certified sex therapist, and certified clinical sexologist. The program focuses on the mind side of the process, since stress and anxiety are common psychological causes of ED (NIDDK, 2024).
If erection difficulties keep happening, see a doctor. Physical and psychological factors often play a part in the same problem, so psychological support can go alongside a medical check or treatment. Medication can help some men, and a doctor can talk you through whether it's right for you.
Erectile dysfunction treatment options covers the medical side, and psychological ED treatment walks through what helps on the mental side.
This article is for general information. It should not replace advice from a qualified medical doctor. If you're worried about erection difficulties, talk to a doctor who can look at your specific situation.
Sympathetic nervous system activity increases and tells the smooth muscle to contract. This lets blood drain back out of the penis, and the erection goes down (Panchatsharam et al., 2023).
No. ED can come from physical causes, psychological causes, or a mix of both (NIDDK, 2024).
This varies a lot from person to person. It depends on things like arousal, age and stimulation, so there's no single "normal" length of time to aim for.
It's also common for an erection to fade sometimes. Most men occasionally can't get or keep an erection, usually because of stress, tiredness or alcohol, and it's nothing to worry about if it only happens now and then (NHS, 2023).
Not necessarily. Going without a morning erection isn't always a concern (International Society for Sexual Medicine, n.d.-b). Nighttime and morning erections are linked to sexual health, though, so if they stop as a regular pattern, it's worth talking to a doctor (Cleveland Clinic, 2025).
Mojo aims to provide useful wellbeing resources to its users; however, you should not solely rely on opinions or advice available on the Website or given by the Community. Always seek advice from a qualified medical doctor or other healthcare professional before acting.

A neurobiologist and science communicator, Paula turns research on the brain, behaviour and health into clear, evidence-based education about mental, physical, and sexual well-being.