Skip to content
Clarity
Body & Anatomy

How Do Erections Work?

A clear, clinical guide to how erections work, from brain signals and nerve messages to blood flow through the penis and what counts as normal.

4 min read

Abstract topic illustration in the Clarity palette

By Clarity Editorial Team

Reviewed for clarity and accuracy by our editorial team.

Published June 5, 2026

This article is grounded in guidance from authorities such as the WHO, CDC, NHS, and ACOG (see references). Independent review by a named healthcare professional is part of our ongoing editorial process.

Advertisement

An erection happens when the brain and nerves signal the arteries in the penis to relax, allowing blood to rush into spongy erectile tissue. As this tissue fills, it traps the blood under pressure, making the penis firm. Understanding how erections work means following that flow of nerve signals and blood.

The anatomy behind an erection

The penis is built around erectile tissue designed to fill with blood. To understand how erections work, it helps to know the key structures involved. For a fuller overview, see our guide to male reproductive anatomy.

  • Corpora cavernosa: Two side-by-side chambers running the length of the penis. They contain sponge-like tissue with many small spaces that fill with blood during an erection.
  • Corpus spongiosum: A third chamber on the underside that surrounds the urethra, the tube that carries urine and semen. It keeps the urethra open during an erection.
  • Tunica albuginea: A tough, fibrous sheath wrapped around the corpora cavernosa. It plays a central role in trapping blood.
  • Arteries and veins: Arteries deliver blood into the erectile tissue, while veins normally carry it away.
  • Nerves: Nerves carry signals between the brain, spinal cord, and penis to start and maintain the process.

What happens step by step

An erection is a coordinated sequence rather than a single event. The main stages look like this:

  1. A trigger. Sensory input (touch, sight, or sound) or mental input (a thought or memory) prompts the brain to send signals. Erections can also begin through reflex pathways without conscious arousal.
  2. Nerve signals travel down. The brain and spinal cord send messages along nerves to the blood vessels and muscle tissue inside the penis.
  3. Arteries relax and blood flows in. The smooth muscle in the corpora cavernosa relaxes, and the arteries widen. Blood rushes into the spongy spaces, which can expand dramatically.
  4. Blood gets trapped. As the chambers swell, they press the draining veins against the firm tunica albuginea. This compresses the veins so blood cannot easily flow back out.
  5. Rigidity is maintained. With blood entering faster than it leaves, pressure builds and the penis becomes firm and stays that way while stimulation continues.

How an erection ends

An erection is reversible by design. After ejaculation, or once arousal and stimulation fade, the nerves stop sending the "relax" signal.

  • The smooth muscle in the corpora cavernosa contracts again.
  • The arteries narrow, reducing blood flow into the penis.
  • Pressure inside the chambers drops, the compressed veins reopen, and blood drains away.
  • The penis returns to its soft, or flaccid, state.

This return to flaccidity is a normal, healthy part of the cycle, not a sign that anything has gone wrong.

What counts as normal

Erections vary from person to person and across a lifetime. Several common experiences are entirely normal:

  • Spontaneous erections that happen without sexual thoughts or touch.
  • Nighttime and morning erections, which occur during sleep cycles and are signs that the underlying nerve and blood-flow systems are working.
  • Variation in firmness and timing, influenced by factors such as tiredness, stress, alcohol, and overall health.

The body relies on the same circulatory and nervous systems that support the rest of your health, including structures explored in our body and anatomy section.

When to talk to a healthcare provider

Occasional difficulty getting or keeping an erection is common and not usually a cause for concern on its own. It is worth speaking with a healthcare provider when the problem is frequent or persistent, because erection difficulties can be an early sign of conditions such as heart disease, diabetes, or hormone imbalances.

A provider can review your overall health, medications, and lifestyle, since many factors influence erections. This article is general education and is not a substitute for individualized medical advice.

The bottom line

So, how do erections work? They are a finely tuned partnership between the brain, nerves, blood vessels, and erectile tissue. Signals tell the arteries to relax, blood floods the corpora cavernosa, and the tunica albuginea traps it under pressure to create firmness, which reverses once stimulation ends. Because the process depends so much on circulation, healthy erections often reflect healthy blood vessels overall. To keep learning, explore related guides such as what is the prostate and the testicular self-exam guide.

Advertisement

Frequently asked questions

How long does a normal erection last?

There is no single 'correct' length of time. An erection lasts as long as arousal and blood flow are maintained, and it usually ends after ejaculation or once stimulation stops. An erection lasting longer than four hours is a medical emergency.

Why do erections happen without arousal?

Erections do not always require sexual stimulation. Spontaneous erections, including those during sleep or on waking, are normal and are driven by routine nerve and hormonal activity rather than conscious thought or arousal.

What controls whether an erection happens?

An erection depends on coordinated signals from the brain and nerves, healthy arteries that deliver blood, and erectile tissue that traps that blood. A problem with any of these systems can make erections harder to get or keep.

When should I see a doctor about erections?

Speak with a healthcare provider if you regularly struggle to get or keep an erection, as it can signal conditions such as heart disease or diabetes. Seek emergency care for any erection that lasts longer than four hours.

References

  1. Cleveland Clinic — Penile Erection: Function, Duration & How It Works
  2. Cleveland Clinic — Penis Corpus Cavernosum: Function, Anatomy & Conditions
  3. Cleveland Clinic — Male Reproductive System: Structure & Function
  4. Cleveland Clinic — Erectile Dysfunction (ED): Causes, Diagnosis & Treatment

Advertisement

Advertisement

Related reading

Part of our Body & Anatomy Education topic.