Pain during sex is surprisingly common, affecting people of all genders and ages, and it almost always has an identifiable cause. The medical term is dyspareunia, and it can stem from something as straightforward as insufficient lubrication or as complex as a chronic condition like endometriosis. Understanding where the pain occurs and when it happens is the fastest way to narrow down what’s going on.
Where and When the Pain Happens Matters
Pain during sex generally falls into two categories: superficial pain at the entrance of the vagina or penis, and deep pain felt internally during thrusting. This distinction is one of the first things a clinician will ask about because it points toward very different causes. Superficial pain often involves the skin, muscles, or nerves near the opening. Deep pain typically signals something happening with the pelvic organs, like the uterus, ovaries, or prostate.
Timing matters too. Pain that started after years of comfortable sex suggests a new trigger, whether that’s a hormonal shift, an infection, or a developing condition. Pain that has been present since your very first attempt at penetration may point to a muscular or structural issue. Keeping track of when the pain shows up, whether it’s tied to certain positions, and how long it lasts afterward gives you useful information to bring to a provider.
Common Causes in Women and People With Vaginas
Several conditions cause deep pain that feels like something is being bumped into during penetration. Endometriosis, where tissue similar to the uterine lining grows outside the uterus, is one of the most well-known. Pelvic inflammatory disease, often caused by untreated sexually transmitted infections, creates chronic inflammation and sometimes scarring in the reproductive organs. Uterine fibroids, ovarian cysts, and a retroverted (tilted) uterus can also make certain positions painful. Even irritable bowel syndrome and chronic bladder inflammation can radiate pain into the pelvic area during sex.
Superficial pain near the vaginal opening has its own set of causes. Vulvodynia is chronic pain or burning of the vulva with no obvious visible cause. A related condition, vulvar vestibulitis, involves persistent inflammation of the tissue just inside the vaginal opening. Both can make even light touch feel sharp or stinging. Infections, including chronic yeast infections and trichomoniasis, cause localized swelling and irritation that makes penetration painful. Trichomoniasis specifically can produce vaginal burning, soreness, and a strong odor alongside pain during sex.
Hormonal Changes and Vaginal Dryness
Declining estrogen levels are one of the most common and underrecognized causes of painful sex. When estrogen drops, the vaginal lining becomes thinner, drier, less elastic, and more fragile. A healthy vaginal lining is naturally moist and several cell layers thick. Without adequate estrogen, it loses that cushion and tears more easily, leading to friction, burning, and sometimes light bleeding after sex.
This process is most associated with menopause, but it also affects people who are breastfeeding, taking certain hormonal medications, or who have had their ovaries removed. The vaginal canal can actually shorten and tighten over time if the tissue changes go untreated. Estrogen-based vaginal creams and moisturizers can reverse many of these changes, and over-the-counter lubricants help reduce friction in the short term. If you’re choosing a lubricant, water-based options with a pH around 4.5 are generally the most compatible with vaginal tissue.
Involuntary Muscle Tightening
Vaginismus is a condition where the muscles around the vaginal opening contract involuntarily whenever penetration is anticipated or attempted. These spasms aren’t something you can simply relax your way through. They happen automatically and can range from mildly uncomfortable to intensely painful. The tightening can be triggered by a tampon, a partner’s finger, a speculum during a pelvic exam, or any form of vaginal penetration.
What makes vaginismus particularly frustrating is that it often creates a self-reinforcing cycle. You experience pain, so your body learns to brace for it, which tightens the muscles further, which causes more pain. Anxiety builds around the expectation of sex, which decreases natural lubrication and arousal, compounding the problem. Vaginismus can develop after a painful experience, a difficult medical procedure, or seemingly without a clear trigger. It’s now grouped with other forms of painful sex under the diagnosis of genito-pelvic pain/penetration disorder.
Causes in Men and People With Penises
Pain during sex isn’t exclusively a women’s issue. Prostatitis, or inflammation of the prostate gland, is one of the most common causes of painful ejaculation in men. The pain can be sharp or aching and may linger after sex. Prostatitis often results from a bacterial infection, though it can also become chronic without a clear infectious cause.
Phimosis, a condition where the foreskin is too tight to retract comfortably, can make penetration painful or difficult. Infections of the urethra or the head of the penis, including sexually transmitted infections, cause localized inflammation and stinging. Peyronie’s disease, where scar tissue forms inside the penis and causes it to curve, can also produce pain during erections and intercourse.
The Role of Anxiety and Past Trauma
Psychological factors don’t just accompany pain during sex. They actively shape it. Anxiety about repeated painful experiences triggers a cascade of physical responses: pelvic muscles tighten, natural lubrication decreases, and physiological arousal stalls. Some people develop extreme worry or even panic attacks when sexual activity is anticipated, which disrupts every phase of the body’s sexual response.
Past trauma, particularly sexual trauma, has a well-documented link to painful sex. Post-traumatic stress disorder changes the body’s neurochemical and hormonal processes in ways that interfere with arousal and increase muscle tension. Even consensual sexual encounters can trigger flashbacks, intrusive memories, and a heightened state of physical alertness that makes the pelvic floor clench. This doesn’t mean the pain is “all in your head.” The muscle tension and tissue changes are real and measurable. It means that for many people, effective treatment needs to address both the physical and emotional layers of what’s happening.
How Pain During Sex Is Evaluated
A provider will typically start by asking detailed questions: where exactly you feel the pain, when it started, whether it happens with every attempt or only in certain positions, and whether you have other symptoms like unusual discharge, irregular bleeding, or urinary issues. A pelvic exam helps rule out visible causes like infections, cysts, or signs of tissue thinning. For conditions like vulvodynia, the exam may involve gently touching different areas of the vulva to map where the sensitivity is concentrated.
Depending on what the initial evaluation suggests, further steps might include testing for sexually transmitted infections, imaging to look for fibroids or endometriosis, or hormone level checks. The goal is to distinguish between the many overlapping causes, since treatments vary significantly depending on whether the problem is muscular, hormonal, infectious, or structural.
Treatment Options That Work
Treatment depends entirely on the underlying cause, but several approaches have strong evidence behind them. For infections, appropriate treatment clears the inflammation and the pain typically resolves with it. For hormonal dryness, topical estrogen therapy restores vaginal tissue thickness and moisture over several weeks. Lubricants provide immediate relief during sex while longer-term treatments take effect.
Pelvic floor physical therapy is one of the most effective options for muscle-related pain, including vaginismus and chronic pelvic floor tension. A pelvic floor therapist uses techniques like manual therapy (hands-on work to release tight muscles), biofeedback (a sensor that shows you how your pelvic muscles are contracting so you can learn to relax them), and graduated vaginal dilators that help you slowly and comfortably retrain the muscles to accept penetration without clenching. In studies of women with chronic pelvic pain and painful sex who completed at least 12 therapy sessions, 45% reported improvement in pain during intercourse. For vaginismus specifically, internal manual techniques were found to be the most effective approach, followed by patient education and at-home dilation exercises. Broader reviews of pelvic floor therapy for pelvic pain found that 59 to 80% of women reported improvement.
For conditions like endometriosis or fibroids, treatment may involve hormonal therapy to manage tissue growth or, in some cases, surgical intervention to remove problematic tissue. Cognitive behavioral therapy and trauma-focused therapy can be highly effective for people whose pain is linked to anxiety or past trauma, particularly when combined with physical therapy that addresses the muscle tension side of the equation.
Pain during sex is not something you need to tolerate or push through. Nearly every cause has a treatment path, and many people see significant improvement once the right cause is identified.