
A muscle group and a nerve share the space
The hamstrings are three muscles that run down the back of the thigh, mostly from the sit bone at the base of the pelvis, to just below the knee. They straighten the hip and bend the knee, and they work hardest when you sprint, kick, lunge or reach for the floor with straight legs. The sciatic nerve runs down the same stretch, deep to them and a little to the outer side, on its way to the calf and foot.
That shared space is why pain here is hard to name. A sore muscle and an irritated nerve can both be felt as an ache along the same line, and pain from the lower back or the sacroiliac joint can be felt there too, with nothing wrong in the thigh itself.
The first question: did you feel it happen?
A hamstring strain usually has a moment. It might have been a sprint, a kick, a lunge, a slip or a long stride to catch a bus. Typically there is a sharp grab or a pulling feeling at the back of the thigh, a sore spot that can be pressed, and pain when the leg is stretched or the knee is bent against resistance. A bruise can show a day or two later, lower down than the sore spot, because blood tracks downward with gravity.
Pain that arrived without a moment, crept in over days, or built with long sitting, a lift or a stretch of driving has a different feel. It leans towards the lower back or a nerve as the starting point, or towards the attachment at the sit bone, where the hamstring tendon can be sore while the muscle is fine, so sit bone pain that a hard chair sets off is a useful clue.
The second question: what does bending do?
Bending forward with straight knees pulls on the hamstring as well as the back, so it cannot separate them. Sit on a chair with your knees bent, which keeps the hamstring slack, and round your back slowly.
- Pain that changes when you round your back in that position, or when you cough or sneeze, with no movement of the thigh itself, suggests the back is involved.
- Pain brought on exactly by pressing the sore spot, or by tightening the muscle without moving the back, suggests the muscle.
- Pain that is sharp, burning or electric, in a line you could follow with a fingertip, and that travels past the knee, suggests a nerve. If tingling reaches the foot, the next question about pins and needles in the feet is one foot or both: one leans towards a nerve root in the lower back or a nerve in the leg, and both towards causes a GP checks.
- Pain that is worse after a hard seat, with a sore spot right on the bone you sit on, suggests the attachment at the sit bone.
Pulling on it to see what happens
It is tempting to stretch the sore thigh to find out, and that tells you less than it seems. A fresh strain and an irritated nerve both hurt when pulled on, so a sharp pull points at either one. A gentle version held only as far as it stays mild is a different thing, and the hamstring stretch is done lying on the back with a towel, stopped at the first firm pull and at any burning line or tingling.
Pressing, loading, then testing the nerve
The sore spot is pressed and the hamstring is loaded in a few ways: lifting the hips from the floor, bending the knee against resistance, and a gentle lengthening. The lower back moves in each direction to see whether any of it brings the thigh pain on. Then the nerve gets its own tests, with the leg raised, or the knee straightened while seated and slumped, to see whether pulling on the nerve reproduces the pain. Strength, reflexes and sensation in the leg round it off.
If the examination points to a nerve root irritated at the spine, the working picture is sciatica, and what is done next is aimed at the back and the nerve more than at the thigh.
Muscle, tendon or nerve: what each tends to feel like
- Sudden onset during a sprint, kick or lunge
- Typical of a hamstring strain, with a sore spot you can press and often a bruise a day or two later.
- Gradual, worse after sitting on a hard seat
- The attachment at the sit bone, or the sac beside it, felt high up where thigh and buttock meet.
- Worse slumping in a chair or coughing, with back stiffness
- Leans towards the lower back as the starting point.
- Burning or electric, past the knee, with tingling
- A nerve is involved, which is the sciatica picture, and the leg gets its own tests.
- Deep ache in the buttock that eases on standing
- The deep hip muscles or the joints of the pelvis are more likely than the hamstring.
When to get it looked at
Call an ambulance if a swollen or tender calf comes with chest pain or shortness of breath, because a clot can travel from the leg to the lung.
Go to a hospital emergency department straight away if you have numbness or altered feeling around the saddle area, meaning the groin, the inner thighs, the buttocks or the genitals; a loss of normal sensation in the genitals, including during sex; trouble starting to pass urine, or any new change in your bladder or bowel control; weakness in both legs, particularly if it is getting worse; new or worsening pain running down both legs; weakness in one leg that is severe or getting worse, or a foot that has started to catch or drag when you walk; or numbness in a leg that is spreading or getting worse quickly.
Go to a hospital emergency department straight away for back or neck pain after a serious fall or a high-impact accident, such as a car accident; back or neck pain with a fever or feeling generally unwell; or new back or neck pain if your immune system is weakened, for instance by long-term steroids or chemotherapy, if you inject drugs, or if you have recently had a spinal injection, spinal surgery or a dental procedure.
Go to a hospital emergency department the same day if you have new clumsiness in both hands, or new unsteadiness on your feet.
A calf that is swollen, warm, tender or red, particularly on one side, after surgery, a long flight or a stretch in bed, needs your GP the same day, or a hospital emergency department if you cannot be seen.
See your GP promptly, before booking here, if you have a history of cancer, unexplained weight loss, pain at night that will not settle in any position, known osteoporosis with new severe pain, numbness that is spreading or getting worse slowly, or new, unexplained back pain as an older adult.
A sudden pop at the back of the thigh followed by trouble walking, a large, spreading bruise or a gap you can feel in the muscle should be seen by a doctor promptly, since a bad tear sometimes needs more than waiting to see.
Have it assessed if the pain is not easing with gentle use, if the same activity brings it back every time, or if you really cannot tell whether it is the muscle or the back. Pain in the back of the thigh can start in the thigh, the sit bone, the pelvis or the lower back, so an assessment checks them together.

