Erectile function depends on a coordinated effort among three distinct sets of peripheral nerves, all regulated by descending signals from the brain. The parasympathetic fibers from the sacral spinal cord (the pelvic splanchnic nerves, often called the “erection nerves”), the sympathetic fibers from the thoracolumbar spine, and the somatic pudendal nerve each handle a different phase of the process. Damage to any one set, whether from surgery, injury, or chronic disease, can disrupt erections even when the others remain intact.
The Parasympathetic Nerves That Trigger Erection
The pelvic splanchnic nerves, which branch from sacral spinal segments S2 through S4, are the primary drivers of erection. These parasympathetic fibers carry the signals that relax smooth muscle inside the penis, allowing blood to flow in and engorge the erectile tissue. Surgeons who operate in the pelvis consider these the “erectile nerves” because inadvertent damage during procedures like prostate removal is a leading cause of post-surgical erectile dysfunction.1PubMed Central. The Pelvic and Sacral Splanchnic Nerves – Identification by Dissection, Trajectory
Once these parasympathetic signals reach the penis, they travel through the cavernous nerves, which run alongside the prostate gland as part of the neurovascular bundles. The cavernous nerves are the final relay point between the spinal cord and the erectile tissue itself. Their location hugging the prostate is precisely why radical prostatectomy poses such a risk to erections: the nerves sit millimeters from tissue that needs to be removed.2PubMed. Functional recovery of injured cavernous nerves achieved through endogenous nerve growth factor-containing bioactive fibrous membrane
The Sympathetic Nerves That Maintain Flaccidity
Erection gets most of the attention, but the default resting state of the penis, flaccidity, is itself an active process maintained by sympathetic nerves. These fibers originate from the thoracolumbar spinal cord (roughly T11 through L2) and release norepinephrine, which keeps the blood vessels and smooth muscle in the erectile tissue contracted. That constant contraction limits blood flow and keeps the penis soft during everyday activity.3PubMed. Penile erection and cardiac risk: pathophysiologic and pharmacologic mechanisms
When parasympathetic signals arrive and trigger erection, the sympathetic tone essentially gets overridden. Think of it as two systems pushing in opposite directions: the parasympathetic system opens the floodgates and the sympathetic system closes them. An erection occurs when the parasympathetic side wins. After orgasm, sympathetic activity ramps back up, smooth muscle contracts again, blood drains out, and the penis returns to its resting state. The sympathetic nerves also play a central role in ejaculation, which is a distinct event from erection and can be affected independently by nerve damage.
The Pudendal Nerve and Its Role in Rigid Erection
The pudendal nerve is the somatic (voluntary) nerve of the pelvis, also arising from sacral roots S2 through S4. While the autonomic nerves described above handle the vascular side of erection, the pudendal nerve handles sensation and the muscular compression that takes an erection from tumescent to fully rigid. Somatomotor fibers from a cluster of spinal neurons called Onuf’s nucleus travel through the pudendal nerve to reach the ischiocavernosus and bulbocavernosus muscles at the base of the penis. Contraction of the ischiocavernosus muscles compresses the veins draining the erectile tissue, producing the rigid-erection phase, while the bulbocavernosus muscle contributes to ejaculation.4PubMed Central. Sexual dysfunction due to pudendal neuralgia: a systematic review
The pudendal nerve is also the main sensory nerve of the penis. It carries touch and pressure signals from the penile skin and glans back to the spinal cord. This sensory input is what allows reflexogenic erections, the kind triggered by direct physical stimulation without any conscious sexual thought. It is also the reason that pudendal nerve damage, whether from prolonged cycling pressure, pelvic fractures, or entrapment syndromes, can cause both numbness and erectile problems simultaneously.
The Dorsal Penile Nerve Up Close
One branch of the pudendal nerve worth singling out is the dorsal nerve of the penis, the primary sensory nerve running along the top of the shaft. A study that directly counted fibers in human cadaveric specimens found that each side of the penis contained an average of roughly 8,300 nerve fibers organized into about 35 bundles, with around 45% of those fibers being myelinated (the fast-conducting type that carries sharp, well-localized touch signals).5Nature. Fiber counts and architecture of the human dorsal penile nerve That mix of myelinated and unmyelinated fibers reflects the nerve’s dual job: conveying both precise tactile sensation and the slower, more diffuse signals involved in sexual arousal.
Surgeons care about dorsal nerve anatomy because procedures on the penis itself, from circumcision revisions to implant surgery, can damage these bundles. Understanding how many fibers are present and how they are distributed helps explain why some injuries produce patchy numbness while others cause widespread sensory loss.
How the Brain Orchestrates Everything
None of the peripheral nerves described above act on their own. They receive instructions from the brain, which integrates sexual thoughts, visual and auditory stimuli, emotional state, and sensory feedback into a coherent pro-erection or anti-erection signal. Three sets of peripheral efferent neurons, somatic, thoracolumbar sympathetic, and sacral parasympathetic, are coordinated through the pelvic plexus and placed under descending excitatory and inhibitory control from the brain.6PubMed Central. Neural Control and Physiology of Sexual Function: Effect of Spinal Cord Injury
Two brain regions are especially well studied. The medial preoptic area of the hypothalamus plays a key role in regulating male sexual behavior, and electrical stimulation of this region in animal models directly produces increases in penile blood pressure consistent with erection.7PubMed. Stimulation of the medial preoptic area of the hypothalamus in the rat elicits increases in intracavernous pressure The paraventricular nucleus of the hypothalamus is another integration center. A group of oxytocin-producing neurons in this nucleus sends projections to the spinal cord and other brain areas, and these oxytocinergic pathways have been shown to control penile erection in animal studies.8PubMed. Central control of penile erection: role of the paraventricular nucleus of the hypothalamus
This brain-level control is why psychological factors like stress, anxiety, and depression can be so powerful in disrupting erections. Even when every peripheral nerve is healthy and every blood vessel is open, the brain can simply withhold the “go” signal or actively send inhibitory commands down the spinal cord. The two types of erection, psychogenic (triggered by mental arousal) and reflexogenic (triggered by touch), rely on different spinal pathways, which becomes clinically relevant when the spinal cord itself is injured.
Nitric Oxide Is the Key Chemical Messenger
When parasympathetic nerve endings in the penis fire, the neurotransmitter that does the actual work of relaxing smooth muscle is nitric oxide. This was established in a landmark study showing that nitric oxide mediates the smooth-muscle relaxation in the corpus cavernosum that permits erection.9PubMed. Nitric Oxide as a Mediator of Relaxation of the Corpus Cavernosum in Response to Nonadrenergic, Noncholinergic Neurotransmission Nitric oxide is produced by the enzyme neuronal nitric oxide synthase (nNOS) in nerve terminals. Once released, it triggers a chemical cascade in smooth-muscle cells that causes them to relax, blood vessels to dilate, and the erectile tissue to fill.
There is a second source of nitric oxide from the blood vessel lining itself (endothelial nitric oxide synthase, or eNOS), and research in gene-knockout animal models has shown that nNOS is primarily responsible for the nerve-mediated component of erection, while eNOS contributes more to the vascular side.10PubMed. An in vitro investigation of aorta and corpus cavernosum from eNOS and nNOS gene-deficient mice This distinction matters because medications like sildenafil (Viagra) work downstream of both sources: they block the enzyme that breaks down the second messenger activated by nitric oxide, effectively amplifying whatever nitric oxide signal is present. If the nerve damage is so severe that almost no nitric oxide is released in the first place, these drugs become less effective.
Nitric oxide is not the only molecule involved. Acetylcholine and vasoactive intestinal polypeptide (VIP) appear to work cooperatively with each other during erection. Animal studies found that when both were injected simultaneously even at low doses, the erectile response was synergistic rather than additive, suggesting they amplify each other’s effect.11PubMed. Effect of intracavernous simultaneous injection of acetylcholine and vasoactive intestinal polypeptide on canine penile erection Acetylcholine also stimulates the endothelium to release its own nitric oxide, creating a positive feedback loop that sustains erection once it begins.
What Happens When the Spinal Cord Is Injured
Spinal cord injury provides a natural experiment in what happens when specific nerve pathways are interrupted. Because erection, ejaculation, and orgasm are under separate neurological control, they can each be affected differently depending on the level and completeness of the injury.6PubMed Central. Neural Control and Physiology of Sexual Function: Effect of Spinal Cord Injury A person with a high thoracic injury, for instance, may still get reflexogenic erections from direct stimulation because the sacral reflex arc below the injury remains intact. However, they may lose psychogenic erections because the descending signals from the brain can no longer reach the sacral spinal cord.
The reverse pattern can also occur. Someone with a lower spinal injury that damages the sacral segments may lose reflexogenic erections but retain some psychogenic erectile ability, presumably through sympathetic pathways that bypass the damaged sacral cord. The type of erection that remains depends largely on where the break in the chain occurs and whether it is complete or partial.12PubMed. Erectile function and male reproduction in men with spinal cord injury: a review This clinical reality underscores that erection is not a single monolithic reflex but a layered system with multiple semi-independent pathways.
Surgery, Diabetes, and Other Threats to These Nerves
Radical prostatectomy remains the most studied surgical cause of nerve-related erectile dysfunction. The cavernous nerves pass so close to the prostate that even “nerve-sparing” techniques can stretch, compress, or partially damage them. A detailed understanding of the pelvic anatomy, including the neurovascular bundles and the optimal dissection plane, is considered essential for preserving postoperative potency.13PubMed Central. A comprehensive review of neuroanatomy of the prostate Even with the best technique, some degree of temporary nerve dysfunction is common, and full recovery can take a year or more as damaged nerve fibers slowly regenerate.
Diabetes attacks these same nerves through a different mechanism. Chronically elevated blood sugar leads to a cascade of damage that includes impaired nitric oxide production, accumulation of toxic metabolic byproducts, increased oxidative stress, and selective degeneration of the nitric-oxide-producing nerve fibers themselves.14PubMed. Pathophysiology and treatment of diabetic erectile dysfunction The result is a form of neuropathy that progressively weakens the nerve signals responsible for erection. Because the damage is gradual and affects both the nerves and the blood vessels simultaneously, diabetic erectile dysfunction tends to be more severe and harder to treat than many other causes.
Neurogenic erectile dysfunction as a whole, meaning cases where nerve problems are the primary driver, accounts for roughly 10 to 19 percent of all erectile dysfunction cases.15PubMed Central. Neurogenic Erectile Dysfunction. Where Do We Stand? The remaining cases involve vascular disease, hormonal imbalances, medication side effects, psychological causes, or some combination. In practice, many men have overlapping contributors. A man with diabetes, for example, often has both nerve damage and blood vessel disease working against him at the same time.
Aging and the Slow Erosion of Neural Signaling
Even without a specific disease or injury, aging itself gradually degrades the nerve pathways that support erection. A comprehensive review of aging-related erectile dysfunction identified neuronal injury as one of several mechanisms that contribute, alongside vascular dysfunction, structural changes in penile tissue, hormonal shifts, and psychological factors.16Wiley Online Library (Andrology). Mechanisms of erectile dysfunction induced by aging: A comprehensive review On the neural side, aging reduces the density of nitric-oxide-producing nerve fibers in the penis, slows nerve conduction velocities, and decreases the overall responsiveness of smooth muscle to nerve signals.
These changes tend to be subtle for decades and then become noticeable in middle age and beyond. They do not cause a sudden loss of function but rather a gradual increase in the threshold of stimulation needed and a decrease in the firmness and duration of erections. This slow trajectory is why many men experience a gray zone of “partial” erectile dysfunction before anything feels clearly abnormal, and why lifestyle factors like exercise, blood sugar control, and cardiovascular health can meaningfully slow the decline by protecting both the nerves and the blood vessels they depend on.
Emerging Approaches to Nerve Repair
Because cavernous nerve damage during prostate surgery is such a common and life-altering problem, researchers have been working on ways to help these nerves recover faster or more completely. Several approaches are in various stages of development.
Low-intensity electrical stimulation applied directly to the cavernous nerves after injury has shown promise in animal models. One study found that this treatment protected the nerve structure, enhanced erectile function recovery, and prevented the scarring and tissue remodeling that typically follows nerve damage.17The Journal of Sexual Medicine. Low-Intensity Electrostimulation Enhances Neuroregeneration and Improves Erectile Function in a Rat Model of Cavernous Nerve Injury A separate investigation found that electrical stimulation may work in part by triggering the release of tiny signaling particles from cells in the erectile tissue, which then promote nerve regrowth.18PubMed Central. Comparative Effectiveness of Electrical Stimulation and Aerobic Exercise in the Management of Erectile Dysfunction: A Randomized Clinical Trial
Stem cell therapy is another active area. Adipose-derived stem cells (stem cells harvested from fat tissue) have been injected into the erectile tissue of animal models with cavernous nerve injuries. These cells improved erectile function, promoted nerve repair, and reduced penile scarring.19PubMed Central. Neurotrophic Effect of Adipose Tissue-Derived Stem Cells on Erectile Function Recovery by Pigment Epithelium-Derived Factor Secretion in a Rat Model of Cavernous Nerve Injury When these stem cells were genetically modified to produce higher levels of a nerve growth factor called BDNF, the recovery was even greater, with higher levels of nNOS detected in the repaired nerves.20PubMed Central. Adipose-derived stem cells modified by BDNF gene rescue erectile dysfunction after cavernous nerve injury The results are encouraging, but virtually all of this work remains in animal models. Human clinical trials are underway for some stem cell approaches, though it will likely be years before any of these treatments become standard options.
One reason nerve repair is so challenging in the pelvis is that the cavernous nerves are extremely thin, often difficult to see with the naked eye, and embedded in a complex web of connective tissue. Unlike a severed nerve in the arm, where surgeons can sometimes stitch the two ends together, pelvic nerve injuries tend to involve stretch or thermal damage along a length of nerve rather than a clean cut. That diffuse pattern of injury calls for biological repair strategies rather than simple surgical reconnection, which is what drives the interest in growth factors, stem cells, and bioactive membranes that can coax the nerve to heal itself from within.
Why Erection, Ejaculation, and Orgasm Can Be Affected Separately
One of the more counterintuitive aspects of male sexual neurology is that erection, ejaculation, and orgasm are not a single package deal. They rely on overlapping but distinct neural circuits, which is why a man can lose one function while retaining the others. Erection is primarily parasympathetic. Ejaculation involves a coordinated sequence of sympathetic (emission phase) and somatic (expulsion phase) nerve activity. Orgasm involves cortical processing of sensory signals from the genitals and pelvic muscles. A spinal cord injury that eliminates erection may leave ejaculation intact with the right kind of stimulation, and vice versa.6PubMed Central. Neural Control and Physiology of Sexual Function: Effect of Spinal Cord Injury
This separation also explains why some medications produce such oddly specific side effects. Certain antidepressants delay ejaculation without affecting erection because they alter serotonin signaling in the pathways controlling the sympathetic emission reflex. Alpha-blocker medications used for enlarged prostate can cause retrograde ejaculation (semen going backward into the bladder) by relaxing the sympathetic tone at the bladder neck while leaving erection untouched. Each of these drugs targets a different arm of the neural control system, producing a surgical-strike side effect rather than a blanket shutdown. Understanding which nerves do what makes these otherwise puzzling clinical patterns far easier to make sense of.