You can effectively stretch your hamstrings without ever leaving your bed. Lying on your back gives you a stable base, gravity works in your favor, and a few simple techniques can meaningfully improve flexibility over time. The key is holding each stretch for 30 seconds, which research shows is the optimal duration for lasting gains in range of motion.
Why Hamstring Flexibility Matters
Tight hamstrings do more than make it hard to touch your toes. They pull on your pelvis, tilting it backward, which flattens the natural curve of your lower back. This changes how your spine moves when you bend forward, forcing your lumbar vertebrae to compensate for restricted hips. Over time, that compensation puts extra stress on spinal soft tissues and raises the risk of low back pain and injury.
Stretching in bed is a practical way to chip away at this tightness, especially if you’re someone who won’t realistically roll out a yoga mat every day. The routine works whether you do it first thing in the morning or right before sleep. A six-week study comparing morning stretchers (6 to 9 a.m.) with evening stretchers (6 to 9 p.m.) found no significant difference in flexibility gains between the two groups. Pick the time you’ll actually stick with.
Four Stretches You Can Do in Bed
Supine Straight Leg Raise
Lie flat on your back with both legs extended. Keep your arms relaxed at your sides or slightly out. Slowly raise one leg toward the ceiling, keeping the knee as straight as you comfortably can. Flex your foot so your toes point back toward your shin. You should feel the stretch along the back of your thigh. Hold for 30 seconds, lower the leg, and repeat 2 to 4 times before switching sides.
If you can’t straighten your knee fully, that’s fine. Go to the point where you feel tension, not pain, and hold there. Over days and weeks, your range will increase.
Strap-Assisted Leg Raise
This is the same position, but you loop a strap, belt, bathrobe tie, or towel around the ball of your foot. Hold one end of the strap in each hand and use it to gently pull your leg higher than you could with muscle alone. The strap lets you relax into the stretch rather than straining your hip flexors to keep the leg elevated. Keep your opposite leg flat on the bed and your hips square. Hold for 30 seconds, 2 to 4 repetitions per leg.
This variation is especially useful if your hamstrings are very tight or if you have limited hip flexor strength. It removes the effort of holding the leg up so you can focus entirely on the stretch.
Bent-Knee Pull
Start on your back. Bend one knee and bring it toward your chest, clasping your hands behind your thigh (not on top of the kneecap). From here, slowly straighten the knee, extending your foot toward the ceiling while keeping your hands in place. Straighten only until you feel a firm stretch. Hold 30 seconds, then bend the knee again and repeat. This version gives you more control over the intensity because you can adjust how far you extend the knee.
Figure-Four With Leg Extension
Lie on your back and cross one ankle over the opposite knee, creating a figure-four shape. Lift the bottom leg so that thigh comes toward your chest, threading your hands behind the bottom thigh to hold it in place. You’ll feel this primarily in the glute and outer hip of the crossed leg, but now slowly extend the top foot toward the ceiling while keeping the ankle crossed. This adds a hamstring stretch to the crossed leg. Hold 30 seconds per side.
How Long to Hold Each Stretch
Research published in the European Journal of Physical and Rehabilitation Medicine tested different hold times for hamstring stretches in older adults. Holding for 30 seconds produced a significant increase in knee range of motion that persisted at the 24-hour follow-up. Holding for 60 seconds produced even larger range-of-motion gains in the moment, but it also placed increased stress on nearby nerve roots. The researchers concluded that 30 seconds is the sweet spot: enough to create real, lasting flexibility improvement without irritating the nervous system.
Two to four repetitions per leg, held for 30 seconds each, is a solid daily routine. The whole thing takes under 10 minutes.
Getting Your Pelvis Position Right
The most common mistake with supine hamstring stretches is letting your pelvis roll under you. When you raise a leg, your lower back tends to flatten against the mattress, pulling the pelvis into a tucked position. This slackens the hamstrings and shifts the tension onto your sciatic nerve instead of the muscle.
The fix: keep a neutral pelvis. Imagine a small natural arch in your lower back throughout the stretch. You don’t need to exaggerate it, just don’t let it disappear. A helpful cue is to think about keeping your belt line level rather than letting it tilt backward. If you want to increase the stretch intensity, you can gently increase that lower back arch while holding the top position. This tips the pelvis forward slightly and deepens the hamstring pull without changing anything else. Move into this slowly, hold for 1 to 2 seconds, and release. You can do 5 to 10 of these gentle pelvic tilts per leg as a more dynamic variation.
Stretching on a Mattress vs. the Floor
A mattress is softer than a yoga mat, which has both advantages and drawbacks. The cushion is easier on your spine and more comfortable for people with bony backs or tailbone sensitivity. The downside is that a very soft mattress lets your pelvis sink unevenly, making it harder to maintain that neutral spine position. If your mattress is on the firmer side, you likely won’t notice any difference from stretching on the floor. If it’s very plush, try placing a folded towel under your lower back for a bit of support, or simply pay closer attention to your pelvic position throughout the stretch.
When to Be Careful
If you have sciatica, be cautious with straight-leg hamstring stretches. The sciatic nerve runs directly behind the hamstring, and aggressive stretching without proper lumbar support can compress it further, worsening pain that radiates down the leg. People with a slipped disc, bone spurs, or piriformis syndrome are particularly vulnerable. If your leg stretch produces sharp, shooting, or electrical pain rather than a firm muscular pull, back off. Bending the knee slightly can reduce nerve tension while still allowing a mild hamstring stretch.
The general rule is simple: a stretching sensation in the belly of the muscle is productive. Pain at the back of the knee, tingling in the foot, or sharp sensations in the buttock or lower back means you’ve gone too far or need a modified approach.

