Lower back spasms respond best to a combination of cold therapy, gentle movement, and short-term pain relief. Most episodes resolve within a few days to two weeks, but the first 48 hours matter most for limiting pain and preventing the spasm from worsening. Here’s what works, step by step.
Start With Ice, Then Switch to Heat
When a spasm first hits, cold therapy is your best opening move. Ice reduces inflammation and numbs the area, which helps break the cycle of pain causing more muscle tightening. Apply an ice pack wrapped in a thin cloth to your lower back for 10 to 15 minutes at a time, and don’t go beyond 20 minutes. You can repeat this every couple of hours during the first day or two.
Once the initial inflammation settles, typically after 48 hours, switch to heat. A heating pad or warm towel relaxes the stiff muscles that tend to linger after the acute spasm passes. Keep heat sessions under 20 minutes as well. Some people find alternating between the two helpful during the transition period, but the general rule holds: cold first for swelling, heat later for stiffness.
Over-the-Counter Pain Relief
Anti-inflammatory medications like ibuprofen or naproxen tackle both pain and the inflammation driving the spasm. These are the most common first-line option and work well for most people when taken as directed on the label. Acetaminophen can help with pain but doesn’t address inflammation, so it’s less effective when swelling is part of the problem.
If over-the-counter options aren’t enough, a doctor may prescribe a muscle relaxant for short-term use. These medications work on the central nervous system to reduce the involuntary contracting, but they come with side effects including drowsiness, dizziness, and impaired coordination. They’re generally considered a backup option when initial treatment falls short, not a starting point.
Keep Moving (Carefully)
Your instinct during a spasm may be to lie flat and wait it out. Resist that. Research consistently shows that bed rest delays recovery from acute low back pain rather than helping it. Staying gently active, even just walking around the house, keeps blood flowing to the injured muscles and prevents additional stiffness from setting in.
That said, “stay active” doesn’t mean push through intense exercise. The goal is light, controlled movement. Three stretches work particularly well for lower back spasms:
- Single knee to chest: Lie on your back with both knees bent. Tighten your abs by pulling your belly button toward your spine, then grasp behind one thigh and pull your knee toward your chest. Hold for 30 seconds, then switch sides. Do this twice daily.
- Lumbar rotation: Lie on your back with knees bent, feet flat, and arms at your sides. Tighten your abs and gently let both knees roll to one side. Hold for 5 seconds, return to center, and repeat on the other side. Aim for 10 repetitions per side.
- Hamstring stretch: Lie on your back with knees bent. Raise one leg so the knee is directly over your hip, interlock your fingers behind your thigh, and slowly straighten the knee until you feel a stretch in the back of your thigh. Hold for 5 seconds. Repeat 10 times per side.
These stretches may feel uncomfortable at first because of tightness. That’s normal. Find stretches you can tolerate and work within a range that doesn’t spike your pain.
Self-Massage and Trigger Points
Lower back spasms often involve two specific muscle groups: the quadratus lumborum, a deep muscle running along each side of the lower spine, and the gluteus medius in the buttocks. These muscles develop tight, knotted spots called trigger points that keep the spasm cycle going even after the initial injury starts healing.
You can apply pressure to these areas yourself using a tennis ball or foam roller. Place the ball between your back and the floor (or a wall) and roll slowly until you find a tender spot. Hold gentle pressure for 20 to 30 seconds and let the muscle release. A TENS unit, which sends mild electrical pulses through the skin, is another option. For acute pain, a pulse rate between 80 and 120 Hz provides the most relief. These devices are widely available over the counter and can be a useful addition to your recovery toolkit.
Sleeping With a Spasm
Nighttime is often the worst part of a back spasm because lying in one position for hours lets muscles stiffen. How you position yourself makes a real difference.
If you sleep on your side, draw your legs slightly toward your chest and place a pillow between your knees. This aligns your spine, pelvis, and hips and takes pressure off the lower back. A full-length body pillow works well for this. If you sleep on your back, place a pillow under your knees to help your back muscles relax and maintain the natural curve of your spine. A small rolled towel under your waist provides additional support if needed. In either position, make sure your neck pillow keeps your head aligned with your chest and back rather than propping it up at an angle.
Check for Underlying Causes
If your spasms keep coming back or seem to strike without an obvious trigger like lifting or twisting, your body may be signaling something else. Electrolyte imbalances are a surprisingly common cause of muscle spasms. Potassium, magnesium, and calcium all play direct roles in muscle and nerve function, and when levels drop too low, muscles contract involuntarily. Dehydration, heavy sweating, certain medications, and poor dietary intake can all deplete these minerals. If you’re experiencing spasms alongside fatigue, tingling in your limbs, or muscle weakness elsewhere, an electrolyte imbalance is worth investigating with a simple blood test.
Other recurring causes include poor posture during prolonged sitting, weak core muscles, and tight hamstrings that shift extra strain onto the lower back.
Preventing Future Spasms
Once the acute episode passes, building core strength is the single most effective way to reduce your chances of it happening again. Core stabilization doesn’t just mean crunches. The most effective programs include exercises across multiple positions: supine (lying on your back), prone (face down), quadruped (hands and knees), kneeling, and standing. This trains your deep stabilizing muscles to support your spine during the varied movements of daily life, not just in one direction.
Two exercises stand out for accessibility. The abdominal draw-in involves pulling your belly button toward your spine while exhaling, then holding the contraction for 10 seconds while breathing normally. You can do this sitting at your desk. The cat-camel stretch, performed on hands and knees by alternating between arching and rounding your back, builds mobility and activates the deep muscles along your spine. Progressing gradually matters more than intensity. These muscles fatigue quickly when they’re weak, and overdoing it can trigger the very spasm you’re trying to prevent.
Warning Signs That Need Immediate Attention
Most back spasms are painful but harmless. A small number signal a serious condition called cauda equina syndrome, where the bundle of nerves at the base of the spine is compressed. This is a medical emergency. Seek immediate care if your back pain is accompanied by numbness in the groin or genital area, loss of bladder control or inability to urinate for more than six hours, bowel incontinence, or severe sciatica shooting down both legs simultaneously. These symptoms can progress quickly, and delays in treatment risk permanent nerve damage.

