The piriformis is a small, flat muscle deep in your buttock that connects your lower spine to the top of your thigh bone. It sits beneath the larger gluteal muscles, and most people never think about it until it causes pain. Despite its size, the piriformis plays an outsized role in hip movement and is clinically significant because the sciatic nerve, the longest nerve in your body, runs directly alongside or even through it.
Where the Piriformis Sits
The piriformis originates from the front surface of the sacrum, the triangular bone at the base of your spine, and from a small area of the pelvis near the greater sciatic notch (the large opening the sciatic nerve passes through). From there, it angles outward and attaches to the top of the greater trochanter, the bony bump you can feel on the outside of your upper thigh. The muscle runs almost horizontally, creating a bridge between your spine and your leg deep beneath the gluteus maximus.
This positioning makes the piriformis one of the “deep six” external rotators of the hip, a group of small muscles that work together to control how your thigh bone moves in its socket. Its proximity to the sciatic nerve is what makes it clinically important: in most people (about 78%), the sciatic nerve exits the pelvis just below the piriformis. But in roughly 22% of people, the nerve takes a different path, sometimes splitting and passing directly through the muscle belly. These anatomical variations help explain why some individuals are more prone to nerve irritation in this area than others.
What the Piriformis Does
The piriformis is primarily a hip rotator, but its job changes depending on your body position. When you’re standing upright with your leg straight, the muscle externally rotates your thigh, turning your knee and foot outward. In one biomechanical analysis, the piriformis contributed roughly 75% of the hip’s total external rotation torque relative to its size, making it the dominant rotator in that position.
Things get more interesting when you bend at the hip. Once your hip flexes past about 70 to 90 degrees (like when you’re sitting or squatting), the piriformis switches roles entirely and begins to internally rotate and abduct the thigh, pulling it away from the midline. At 90 degrees of flexion, it acts primarily as a hip abductor. Above 110 degrees, it becomes an internal rotator. This functional shift is unusual among muscles and partly explains why the piriformis can become irritated during activities that involve deep hip flexion, like cycling or prolonged sitting.
The muscle also contributes about 56% of relative abduction torque and 35% of extension torque at the hip. When both piriformis muscles contract together with the pelvis free to move, they tilt the pelvis backward into extension. When only one side contracts, it rotates the pelvis. These stabilizing roles matter during walking, running, and any single-leg activity.
Piriformis Syndrome
Piriformis syndrome occurs when the muscle compresses or irritates the sciatic nerve, producing pain, tingling, or numbness that radiates from the buttock down the back of the leg. It accounts for an estimated 6% of low back pain cases and roughly 6% of sciatica cases. The condition is more common in women, possibly due to differences in pelvic anatomy.
The hallmark symptom is deep buttock pain that worsens with sitting, climbing stairs, or crossing your legs. Unlike a herniated disc in the lower spine, which can show up clearly on an MRI, piriformis syndrome doesn’t have a definitive imaging test. Diagnosis relies heavily on physical examination. One common maneuver involves passively rotating the straightened leg inward while you lie on your back. If this reproduces your buttock pain, it suggests the piriformis is involved. Another approach combines hip flexion, adduction, and internal rotation to maximally stretch the muscle and reproduce symptoms.
Piriformis syndrome can also coexist with lumbar disc problems. Research on patients with confirmed nerve root compression in the lower spine found that many also had piriformis-related pain on the same side. An injection of local anesthetic into the piriformis muscle reduced pain by at least 50% in these patients, confirming that both conditions were contributing. This overlap means piriformis syndrome shouldn’t automatically be ruled out just because a disc problem is present.
How Piriformis Pain Is Treated
Stretching and targeted strengthening form the first line of treatment. The goal is to loosen the piriformis so it stops compressing the sciatic nerve, while also strengthening the surrounding hip muscles so the piriformis isn’t doing more than its share of the work.
Three effective stretches follow the same basic protocol: hold for 30 seconds, repeat three times on each side, twice a day. These include pulling the knee toward the opposite shoulder while lying on your back, crossing one ankle over the opposite knee and pulling the bottom knee toward your chest, and performing the same ankle-over-knee position while seated and leaning forward.
Strengthening focuses on the glutes and hip stabilizers. Bridges, side-lying leg lifts, clamshells, facedown leg raises, and small-range squats all target the muscles that support the piriformis. The recommended volume is 10 repetitions, three sets, once or twice daily. Clamshells and lateral band walks are particularly useful because they activate the gluteus medius, which shares abduction duties with the piriformis and can take pressure off it when properly strengthened.
When stretching and exercise aren’t enough, injections can help. A meta-analysis in Pain Physician found that all injection types, including local anesthetic, corticosteroid, and botulinum toxin, significantly reduced pain scores compared to baseline. The combination of local anesthetic and corticosteroid together produced the greatest pain reduction. Botulinum toxin performed similarly to corticosteroid alone and was more effective than placebo. In one clinical trial, 65% of patients receiving botulinum toxin achieved at least 50% pain improvement, compared to 32% with local anesthetic and corticosteroid, and just 6% with placebo.
Preventing Piriformis Problems
Prolonged sitting is one of the most common triggers, especially if you sit with a wallet in your back pocket or cross your legs habitually. If you have a desk job, taking regular breaks to stand and move makes a meaningful difference. Adjusting your chair height so your hips sit slightly above your knees, using lumbar support, and adding a footrest can all reduce strain on the piriformis throughout the day.
For cyclists, saddle height matters. A seat that’s too high or too low changes your hip angle and increases the repetitive load on the piriformis with every pedal stroke. Handlebar position plays a role too: excessive forward lean increases strain on the lower back and buttocks. Getting a professional bike fit is one of the simplest ways to prevent the problem.
Runners benefit from hip-strengthening routines that keep the gluteus medius and other stabilizers strong. When those muscles fatigue or weaken, the piriformis compensates by working harder during each stride, eventually tightening and irritating the nerve beneath it. A few minutes of targeted hip work before or after runs can prevent weeks of recovery later.

