What Does It Mean to Get Hard? Erections Explained

Getting hard refers to the process of a penile erection, where the penis fills with blood, stiffens, and stands away from the body. It happens through a coordinated sequence involving your brain, nerves, blood vessels, and hormones. The penis typically increases to about three times its soft (flaccid) volume, though the range varies from less than double to five times the resting size.

What Happens Inside the Penis

The penis contains two columns of spongy tissue called the corpora cavernosa, which run along its length. This tissue is made up of tiny, interconnected chambers surrounded by smooth muscle fibers. When you’re not aroused, these chambers are mostly collapsed and blood flows through the penis at a low, steady rate. The smooth muscle stays contracted, keeping the tissue compact.

When arousal begins, nerve signals trigger the release of a gas called nitric oxide inside the smooth muscle cells. Nitric oxide sets off a chemical chain reaction that causes those muscles to relax. As they relax, the tiny chambers open up like small sponges and fill rapidly with blood. The tissue expands against a tough outer sheath (the tunica albuginea), which acts like a pressure jacket. As the expanding tissue presses outward, it compresses the veins that normally drain blood away from the penis. This trapping mechanism is what keeps the blood inside and maintains firmness. The result is a rigid, erect penis.

When arousal fades, the smooth muscles contract again, blood flow slows, the veins reopen, and the penis returns to its soft state.

Two Ways Erections Start

There are two distinct pathways that trigger an erection, and they use different sets of nerves.

Psychogenic erections start in the brain. Visual stimulation, sounds, fantasies, or even a stray thought can send signals down the spinal cord to the penis. These signals travel through nerves that exit the spine in the mid-to-lower back region.

Reflexogenic erections happen from direct physical touch to the genitals. The sensory nerves involved connect to the lower part of the spinal cord, near the tailbone. This type of erection can occur even without any mental arousal, which is why it’s possible to get hard from friction or pressure alone.

Most erections in everyday life involve both pathways working together. You might be mentally aroused and also receiving physical stimulation, so both sets of nerve signals reinforce each other.

Why You Get Hard in Your Sleep

Men typically experience up to five erections per night during REM sleep, each lasting 20 to 30 minutes. These aren’t caused by sexual dreams. They happen because the part of the nervous system that normally suppresses erections (the sympathetic nervous system, your “fight or flight” wiring) goes quiet during REM sleep. With that brake released, the body’s pro-erection signals take over by default.

Morning erections are simply the last of these nighttime erections, caught as you wake up during or just after a REM cycle. They’re a sign that the blood vessel and nerve mechanisms are working properly.

The Role of Testosterone

Testosterone is central to sexual desire and plays a role in the physical mechanics of erections. Men with low testosterone often notice reduced interest in sex first, and erection difficulties may follow. Testosterone replacement can improve erections in a majority of men with low levels.

That said, testosterone isn’t the whole picture. One study found that adding testosterone gel to an erection medication didn’t improve erections beyond what the medication achieved on its own. This suggests testosterone’s biggest contribution may be fueling the desire that gets the process started, rather than directly powering the blood flow mechanics.

What Can Prevent or Interrupt an Erection

The erection process depends on a balance between two branches of the nervous system. The parasympathetic branch (your “rest and digest” system) promotes erections, while the sympathetic branch (activated by stress, anxiety, or fear) suppresses them. This is why performance anxiety, work stress, or even being startled can cause an erection to fade quickly or prevent one from forming.

Adrenaline, the hormone released during stress, directly counteracts the relaxation of smooth muscle that erections require. It’s essentially the chemical opposite of what the body needs to get hard. This is also why erections are difficult when you feel nervous, rushed, or under pressure.

Beyond stress, common physical factors that interfere with erections include poor cardiovascular health (since erections depend entirely on blood flow), nerve damage from diabetes or surgery, heavy alcohol use, smoking, and certain medications like antidepressants or blood pressure drugs. Because the blood vessels in the penis are smaller than those in the heart, erection problems sometimes show up years before cardiovascular disease becomes apparent.

Degrees of Hardness

Erections aren’t simply on or off. Doctors use a straightforward 0-to-4 scale to describe firmness:

  • 0: No enlargement at all
  • 1: The penis gets larger but stays soft
  • 2: Partially hard, but not firm enough for penetration
  • 3: Hard enough for penetration, but not fully rigid
  • 4: Completely hard and fully rigid

Not every erection reaches a 4, and that’s normal. Firmness can vary with arousal level, fatigue, alcohol intake, or how recently you last ejaculated. Consistently reaching only a 1 or 2 when you want a full erection is what typically qualifies as erectile dysfunction.

How Erections Change With Age

Erections gradually shift as men get older. They tend to take longer to develop, may not feel as firm at their peak, and the refractory period (the time needed before another erection is possible) gets longer. These changes are normal and happen because blood vessels lose some elasticity over time, testosterone levels slowly decline, and nerve sensitivity decreases. Older men are also more likely to have conditions like high blood pressure or diabetes that affect blood flow.

The changes are gradual rather than sudden. Most men notice them across decades rather than from year to year. Occasional difficulty getting or keeping an erection is common at any age and doesn’t necessarily indicate a medical problem.

When an Erection Becomes Dangerous

An erection that lasts longer than four hours and won’t go away, called priapism, is a medical emergency. After that threshold, the trapped blood becomes oxygen-starved, similar to a compartment syndrome. Without treatment, the smooth muscle tissue inside the penis can die and be replaced by scar tissue, leading to permanent erectile dysfunction. Priapism is rare but requires emergency care, not a wait-and-see approach.