The penis has two jobs: passing urine and delivering semen during sex. Its best-known feat, getting hard, isn’t done by a muscle or a bone but by blood held under pressure.1Anatomy and Physiology. The Urinary System Because erections depend on healthy blood vessels and nerves, the penis often signals problems elsewhere in the body.
The Penis Handles Both Urine and Semen
Both fluids leave through one tube, the urethra. It runs the length of the penis, carrying urine from the bladder and semen from the reproductive glands.1Anatomy and Physiology. The Urinary System It starts at the bladder, passes through the prostate, then runs through spongy tissue under the shaft to the tip. Semen picks up fluid from the glands along that route.
Only one fluid uses the tube at a time, because the body switches between a urination mode and an ejaculation mode. A ring of muscle around the urethra keeps urine in when you cough, laugh or lift.2PubMed. The male urethral sphincter complex revisited: an anatomical concept and its physiological correlate The same muscle helps push semen forward during ejaculation.2PubMed. The male urethral sphincter complex revisited: an anatomical concept and its physiological correlate
Semen comes from the prostate and seminal vesicles, not the bladder, and arousal reflexes shut the bladder outlet before semen enters the urethra. When the outlet fails to close, semen can flow back into the bladder instead.
That same closing explains why it’s hard to urinate with a full erection. The bladder neck tightens during arousal to keep semen from flowing backward, and the tightening blocks urine too. Men often have to wait for the erection to fade, and morning erections commonly make the first urination slow or awkward.
Control differs as well. Urination is mostly a relaxed, voluntary act, while ejaculation is a reflex. That’s why you can start and stop a urine stream but can’t easily halt ejaculation once it begins.
What Is Inside the Penis
Most of the penis is two side-by-side chambers filled with spongy tissue that can hold blood. They lie along the top of the shaft. A third, smaller tube of spongy tissue runs underneath, surrounds the urethra and widens into the head, or glans. This third tube stays softer than the other two during an erection. If it were as rigid, it would pinch shut and semen couldn’t pass. The head stays softer during erection because its spongy tissue fills less tightly, which cushions it during sex.
The spongy tissue is lined with smooth muscle, the kind you can’t move by will. The visible part of the penis is also only some of the whole organ. The base extends inside the body, and those hidden roots anchor it to the pelvic bones.
Each chamber is wrapped in a tough sheath built in two layers.3PubMed. The anatomy of the tunica albuginea in the normal penis and Peyronie’s disease Its inner fibers run around the chamber and its outer fibers run lengthwise.3PubMed. The anatomy of the tunica albuginea in the normal penis and Peyronie’s disease Pillars of fibrous tissue run inside the chambers like struts and support the erectile tissue.3PubMed. The anatomy of the tunica albuginea in the normal penis and Peyronie’s disease A fine fibrous framework attaches throughout the chambers and helps keep them firm and straight during erection.4PubMed. The fibrous skeleton of the corpora cavernosa and its probable function in the mechanism of erection
There’s no bone in the human penis, though many mammals, including most other primates, have one. In humans, all firmness comes from blood pressure and tissue. That’s also why injury or scar tissue in the sheath can change the penis’s shape or firmness.
How an Erection Happens
An erection is basically a blood-flow event switched on by nerves.5PubMed. Neural control of erection First comes a trigger, such as a thought or touch. Nerve endings and the lining of blood vessels in the chambers then release a gas called nitric oxide.6PubMed Central. The Role of Nitric Oxide in Erectile Dysfunction: Implications for Medical Therapy Nitric oxide raises the level of a messenger chemical, cGMP, inside the muscle cells.7PubMed. Nitric oxide-cyclic GMP pathway with some emphasis on cavernosal contractility As a result, calcium drains out of the muscle cells and the smooth muscle relaxes.7PubMed. Nitric oxide-cyclic GMP pathway with some emphasis on cavernosal contractility The spongy spaces open and arteries let much more blood in.
Within seconds the penis lengthens and widens, and it keeps firming up over a minute or more. Firmness isn’t all-or-nothing. It rises as pressure builds, so a partial erection is simply pressure that hasn’t reached its peak.
As the chambers swell against the tough outer sheath, they press on the small veins that drain them. Blood then comes in faster than it leaves, and pressure builds. The firm chambers behave like a pressurized tube, and the higher the pressure, the more force it takes to bend them.8PubMed. Biomechanical analysis of penile erections: penile buckling behaviour under axial loading and radial compression Squeezing the pelvic floor muscles can briefly make an erection harder.5PubMed. Neural control of erection
A pressurized tube resists bending until the force is too great. A sudden hard bend can tear the sheath, an injury called a penile fracture. A pop, rapid loss of the erection and swelling mean urgent care.
Erections end when the process reverses. An enzyme called PDE5 breaks down cGMP, which lets the muscle tighten again and the erection fade.7PubMed. Nitric oxide-cyclic GMP pathway with some emphasis on cavernosal contractility After orgasm, the nerve signals switch to the anti-erection side, and blood drains out through the veins as the penis softens over a few minutes. Stress or distraction can do the same before orgasm.
Erection pills such as sildenafil (Viagra) work at this last step. They block PDE5 so cGMP lasts longer. They don’t create an erection on their own, because arousal must first start the nitric oxide signal. That’s why they work only with sexual stimulation.
How the Brain and Nerves Control Erections
Two opposing nerve systems decide whether an erection happens. Nerves from the lower spinal cord promote it, while the “fight or flight” nerves work against it.5PubMed. Neural control of erection In a relaxed, safe setting the accelerator wins. In a tense or frightening one, the brake keeps the muscle tight and blood out, so fear or stress can make an erection hard to get or keep. The fight-or-flight nerves also keep the penis soft most of the time, which is why the resting state is flaccid rather than partly erect.
Touch on the genitals is a strong trigger and can cause a reflex erection on its own.5PubMed. Neural control of erection Signals from the brain can start an erection or stop one already under way.5PubMed. Neural control of erection A nerve from the genitals carries sensation and links with signals coming down from the brain.9PubMed. Neuroanatomy and neurophysiology related to sexual dysfunction in male neurogenic patients with lesions to the spinal cord or peripheral nerves
Erections from thoughts and from touch use partly different pathways that meet in the spinal cord. Some men with spinal cord injury keep touch erections but lose thought-driven ones.
In the brain, arousal activates a network that includes areas tied to emotion, body awareness and drive.10PubMed. Dynamics of male sexual arousal: distinct components of brain activation revealed by fMRI Even looking at sexual pictures can produce a partial erection through frontal and other brain areas.11PubMed. Neuroanatomical correlates of penile erection evoked by photographic stimuli in human males During genital stimulation, the brain’s alarm center quiets down, matching a drop in vigilance.12PubMed. Human brain activation during sexual stimulation of the penis
Worry activates the stress nerves that tighten erection muscle, and a bad experience can create fear that repeats the problem. This is common and often improves when pressure eases. Because so many brain and spinal sites work together, erections are also easily affected by nerve injury or disease.13PubMed. Neural pathways and central sites involved in penile erection: neuroanatomy and clinical implications
How Ejaculation Works
Ejaculation is a reflex with two coordinated phases, emission and expulsion.14PubMed Central. Neurons for Ejaculation and Factors Affecting Ejaculation In emission, nerves from the upper part of the lower back move sperm and fluid from the prostate and other glands into the urethra.15PubMed. Central nervous system control of ejaculation Semen collects near the base of the penis, and the man often feels a deep sense that climax is coming.
In expulsion, nerves from the lower spinal cord trigger rhythmic pelvic muscle contractions that push semen out.15PubMed. Central nervous system control of ejaculation The contractions are often a few seconds apart at first and then space out. Small nerve-cell groups in the spinal cord act like pattern generators, one for each phase.15PubMed. Central nervous system control of ejaculation Once triggered, ejaculation runs largely on its own.
Once emission starts, ejaculation usually can’t be stopped. Orgasm is the brain’s sensation, while ejaculation is the physical event.
Semen volume and force vary from person to person and from one occasion to the next, which is normal. Afterward, the erection fades and a recovery period follows before another is possible. That period tends to lengthen with age, and it’s not a sign of a problem.
Where Sensation Comes From
Simple free nerve endings make up 80–90% of nerve endings in the glans.16PubMed Central. Histological Correlates of Penile Sexual Sensation: Does Circumcision Make a Difference? These are bare nerve tips that detect temperature, light touch, pain and pressure rather than a single fine sensation. That makes the glans especially sensitive to temperature,16PubMed Central. Histological Correlates of Penile Sexual Sensation: Does Circumcision Make a Difference? and very responsive to firm stroking as well. The same endings can make the glans uncomfortable if it’s touched too hard or is dry or irritated.
In uncircumcised men, the foreskin is more sensitive to light touch than other areas, but not to other kinds of stimulation.17PubMed. Examining Penile Sensitivity in Neonatally Circumcised and Intact Men Using Quantitative Sensory Testing
Sensitivity isn’t even across the organ. The underside near the head is often most responsive. It can drop with age or with nerve damage from diabetes, and sudden numbness deserves a doctor’s check.
Why the Penis Shrinks in the Cold and Grows at Night
A thin layer of muscle under the skin contracts and pulls the penis inward.18Sexual Medicine Reviews. Application of Botulinum Neurotoxin in Male Sexual Dysfunction: Where Are We Now? Cold, exercise or stress can trigger it.18Sexual Medicine Reviews. Application of Botulinum Neurotoxin in Male Sexual Dysfunction: Where Are We Now? The same reflex pulls the testicles up and wrinkles the scrotum.19PubMed Central. Dartos reflex as autonomic assessment in persons with spinal cord injury That helps keep the testicles near the body in cold, which protects them. In the penis, pulling in reduces the surface area exposed to cold and so limits heat loss. The reflex is automatic, like goosebumps, so it happens whether or not the man notices.
Cold shrinkage is temporary and normal. It doesn’t reflect erect size, and length returns once the man is warm and relaxed.
Erections during sleep are thought to bring oxygen-rich blood to the chambers.20PubMed. Testosterone and sleep-related erections: an overview They may help prevent scarring of the tissue, a common root of erection problems.20PubMed. Testosterone and sleep-related erections: an overview Nitric oxide from nerves appears to trigger them.20PubMed. Testosterone and sleep-related erections: an overview
Healthy men usually have several each night. Waking with one often signals that the nerves and blood vessels work. If night erections still occur when sexual erections fail, stress may be one factor, though this isn’t a reliable test on its own. Losing them altogether is worth mentioning to a doctor.
Testosterone, Aging and Erection Problems
Male hormones are needed for the penis to develop and keep its structure.21PubMed. Androgens play a pivotal role in maintaining penile tissue architecture and erection: a review Before birth, testosterone converted to a stronger form shapes the external genitals.22PubMed. Development of the genital ducts and external genitalia in the early human embryo In animals, removing testosterone weakens erections and reduces nitric-oxide nerves, and replacing it reverses this.23PubMed. The effects of testosterone on the cavernous tissue and erectile function Low testosterone is checked with a blood test, and replacement helps only if levels are low.
With age, the chambers lose smooth muscle and gain collagen.24PubMed. Age-related morphological changes in smooth muscle and collagen content in human corpus cavernosum The chambers become stiffer and less able to stretch and fill, so erections tend to be less firm even with strong arousal. Veins also don’t close as well, so blood leaks out, a common cause of erection problems.25PubMed. Long-term continuous treatment with sildenafil ameliorates aging-related erectile dysfunction and the underlying corporal fibrosis in the rat Erections may need more direct touch, take longer to start, and fade sooner, which many men notice gradually in their forties and beyond. This is a common change with age, not an on-off switch, and many men remain sexually active well into old age.
Erection problems also become more common with diabetes, high blood pressure, high cholesterol, heart disease and kidney failure.26PubMed. The pathophysiology of erectile dysfunction related to endothelial dysfunction and mediators of vascular function These conditions damage the lining of blood vessels and its nitric oxide signal.26PubMed. The pathophysiology of erectile dysfunction related to endothelial dysfunction and mediators of vascular function Penile arteries are small, so they show damage early, and erection problems can come years before heart symptoms. A new problem is a reason to check blood pressure, sugar and cholesterol.
Exercise, not smoking and weight control protect blood vessels, and treating diabetes and blood pressure protects erections too. Separately, injury to the sheath can lead to scar plaques that bend the penis, a condition called Peyronie’s disease.27Journal of Clinical Imaging Science. US Imaging in Peyronie’s Disease

