What Is the Piriformis Muscle and Why Does It Hurt?

The piriformis is a small, flat muscle buried deep in your buttock, running from your sacrum (the triangular bone at the base of your spine) to the top of your thighbone. It plays a key role in rotating your hip outward and stabilizing your pelvis when you walk, run, or shift your weight from one leg to the other. Most people never think about this muscle until it causes problems, and the problem it’s best known for is compressing the sciatic nerve and sending pain shooting down the back of the leg.

Where the Piriformis Sits and What It Attaches To

The piriformis originates from the front surface of the sacrum and from the edge of the ilium, the large wing-shaped bone of your pelvis, right at the rim of an opening called the greater sciatic notch. From there, it angles outward and attaches to the top edge of the greater trochanter, the bony bump you can feel at the outside of your upper thigh. This diagonal path means the muscle crosses directly behind your hip joint, tucked underneath the larger gluteal muscles.

Because of that position, the piriformis sits right on top of the sciatic nerve in most people. The sciatic nerve is the thickest nerve in the body, running from the lower spine down through the buttock and into the leg. In the most common arrangement, the nerve passes just below the piriformis. But in a significant number of people, the nerve actually threads through the muscle itself or splits around it, which can make the nerve more vulnerable to compression.

What the Piriformis Does

The piriformis is primarily a hip external rotator. That means it turns your thigh and foot outward, away from the midline of your body. You use this motion constantly: pivoting to change direction while walking, getting out of a car, or simply standing with your feet slightly turned out.

The muscle also helps stabilize your hip joint during movement. When you stand on one leg (which happens with every step you take), the piriformis works with other deep hip rotators to keep your pelvis level and prevent your hip from collapsing inward. It contributes to hip abduction as well, meaning it helps move your leg away from your body, particularly when your hip is bent past 60 degrees or so. At deeper angles of hip flexion, the piriformis actually switches from an external rotator to an internal rotator, a quirk of geometry that matters during activities like squatting or climbing.

Piriformis Syndrome: When the Muscle Causes Nerve Pain

Piriformis syndrome occurs when the muscle compresses or irritates the sciatic nerve. The result is pain, numbness, or tingling in the buttock that can radiate down the back of the leg, sometimes all the way to the foot. People describe the sensation as aching, burning, or shooting. It can mimic sciatica caused by a disc problem in the lower back, which is one reason it’s often misdiagnosed or overlooked.

The most common triggers are inflammation or swelling in the piriformis itself, muscle spasms, or scarring within the muscle tissue. Sitting for long stretches tends to make symptoms worse because prolonged pressure on the buttock compresses the nerve against the tightened muscle. Walking, running, and climbing stairs can also flare things up. Many people notice the pain is worst after driving or sitting at a desk for hours.

How It Differs From a Disc Problem

Because piriformis syndrome and lumbar disc herniation both cause leg pain along the sciatic nerve, they can look alike from the outside. The key difference is where the nerve is being pinched. With a herniated disc, the compression happens at the spine. With piriformis syndrome, it happens in the buttock.

A few clinical clues help separate them. Piriformis syndrome typically produces deep buttock pain as a central feature, while disc-related sciatica more often starts with back pain. Clinicians use specific physical tests to provoke the piriformis. The Freiberg test involves forcefully rotating the hip inward while the leg is straight, which stretches the piriformis and reproduces symptoms in about 56% of confirmed cases. The FAIR test (flexion, adduction, internal rotation of the hip) is more reliable, with a sensitivity of 88% and specificity of 83%. Another test, the Pace sign, involves pushing your leg outward against resistance while seated, which forces the piriformis to contract and can trigger pain if the muscle is the source. Nerve conduction studies can also help: if the electrical signals through the nerve are normal at the spine but abnormal at the hip, that points toward compression at the piriformis rather than the disc.

How Piriformis Problems Are Treated

The first line of treatment is conservative. That means rest, activity modification, anti-inflammatory medication, and physical therapy. The goal is to loosen the piriformis enough that it stops pressing on the nerve, and then strengthen it and the surrounding muscles so the problem doesn’t recur.

Stretching is the cornerstone of self-care. One of the most effective stretches is the knee-to-opposite-shoulder stretch: lie flat on your back, bend one knee, and use the opposite hand to pull that knee gently across your body toward the opposite shoulder. Hold for 20 to 30 seconds, then release. Doing 10 repetitions per set, three sets once or twice a day, is a standard recommendation. Other hip-opening stretches that rotate the hip in various directions can also help create length in the muscle and relieve the compression.

Beyond stretching, strengthening exercises for the hip and core play an important role. A strong core supports the pelvis and takes some of the stabilizing burden off the piriformis, and strengthening the hip abductors and rotators helps the piriformis share the workload more evenly. For cardio, walking and using an elliptical machine are generally well tolerated. Seated exercises like cycling can aggravate symptoms because of the sustained pressure on the buttock.

One practical habit that makes a real difference: avoid sitting for long uninterrupted periods. Standing up briefly every 30 minutes relieves direct pressure on the piriformis and sciatic nerve. A standing desk can help if your work keeps you sedentary.

When Conservative Treatment Isn’t Enough

If stretching, physical therapy, and anti-inflammatory medication don’t resolve symptoms after several weeks, ultrasound-guided injections are a common next step. These typically combine a local anesthetic with a corticosteroid to reduce inflammation directly at the muscle. The injection also serves a diagnostic purpose: if your pain improves significantly after the injection targets the piriformis specifically, that confirms the muscle is the source of the problem rather than a disc or another structure.

For patients who respond positively to injections but relapse, or who don’t improve after at least three months of conservative care, surgical release of the piriformis is an option. This involves cutting or loosening the muscle to free the sciatic nerve from compression. Recent data on endoscopic (minimally invasive) piriformis release shows favorable outcomes, with all patients in one recent series showing a positive response to targeted diagnostic injections before proceeding to surgery.

Why the Piriformis Gets Tight

Several everyday factors contribute to piriformis tightness. Sitting for hours shortens the muscle and reduces blood flow to it. Repetitive activities that involve hip rotation, like running or lunging, can overwork it. Imbalances elsewhere in the body play a role too: weak glutes force the piriformis to compensate during movements it wasn’t designed to handle alone, and tightness in the hip flexors can alter pelvic mechanics in ways that overload the piriformis.

Direct trauma to the buttock, such as a fall or a hard impact, can cause inflammation or scarring in the muscle that sets the stage for chronic tightness. Even something as simple as sitting on a wallet in your back pocket can create enough asymmetric pressure to irritate the piriformis over time.