Most back spasms resolve on their own within a few days to a few weeks, and the best things you can do at home involve a combination of temperature therapy, gentle movement, and smart positioning. If your back just seized up, your first priority is calming the muscle down, then gradually reintroducing movement as the pain allows.
Why Your Back Locks Up
A back spasm is an involuntary contraction of the muscles along your spine. It can feel like a sudden, sharp tightening or a persistent, deep ache that makes it hard to stand up straight. Common triggers include overuse, poor posture, dehydration, and sudden awkward movements like twisting while lifting.
The old idea that pain causes a spasm which causes more pain in an endless loop has largely been replaced by newer research. What actually happens is that pain tends to reduce the activity of the nerves controlling the affected muscle, a protective response your body uses to limit further damage. This is why gentle movement works better than total bed rest: your nervous system is already trying to guard the area, and staying completely still can make stiffness worse.
Use Ice First, Then Switch to Heat
Cold therapy is your best tool in the first 48 hours. Apply an ice pack (or a bag of frozen peas wrapped in a towel) for no more than 20 minutes at a time, four to eight times per day. The cold reduces inflammation and numbs the area, which can break through the worst of the acute pain. Always keep a layer of fabric between the ice and your skin.
Once those first couple of days have passed, switch to heat. A heating pad, warm towel, or hot water bottle helps relax the muscle fibers and increase blood flow to the area. Use heat in 15 to 20 minute sessions. Some people find alternating between the two helpful after the acute phase, but start with cold if you’re within the first two days of a spasm.
Rest Positions That Take Pressure Off
Lying flat on your back with your knees bent and feet flat on the floor is one of the most effective positions for an acute spasm. This “hook lying” position takes tension off the lower back by flattening the natural curve of the spine against the floor. You can place a small pillow under your knees for extra support.
If lying on your back isn’t comfortable, try lying on your side with a pillow between your knees. This keeps your hips aligned and prevents your top leg from pulling your spine into a twist. Avoid lying face down, which can increase the arch in your lower back and aggravate the spasm. Whatever position you choose, limit your time lying down to short rest periods rather than spending the whole day in bed. Staying active, even just walking slowly around the house, helps your recovery more than prolonged rest.
Gentle Stretches to Start Within a Day or Two
Once the sharpest pain starts to ease, gentle stretching can speed your recovery. Start with just a few repetitions and work up gradually. The goal is to feel a mild stretch, not to push through pain.
- Knee-to-chest stretch: Lie on your back with knees bent and feet flat. Pull one knee toward your chest with both hands while pressing your lower back into the floor. Hold for five seconds, then switch legs. Repeat with both legs pulled up together. Do this two to three times per side.
- Cat stretch: Get on your hands and knees. Slowly arch your back upward, pulling your belly toward the ceiling while dropping your head. Then let your back sag gently toward the floor while lifting your head. Move slowly between these two positions.
- Bridge: Lie on your back with knees bent and feet flat. Tighten your core and glutes, then lift your hips until your body forms a straight line from knees to shoulders. Hold briefly, then lower back down.
Start with about five repetitions of each and build up over time. If any movement makes the spasm worse, stop and try again the next day.
Over-the-Counter Pain Relief
Anti-inflammatory medications like ibuprofen can help reduce both pain and swelling during the first few days. Acetaminophen is another option if you can’t take anti-inflammatories. Topical creams containing menthol or capsaicin can also provide temporary relief by creating a warming or cooling sensation that distracts from the deeper pain. These are short-term tools to help you stay mobile, not long-term solutions.
Hydration and Minerals
Dehydration is an underappreciated trigger for muscle spasms. When your body is low on fluids, muscles are more prone to cramping and tightening. Drink water consistently throughout the day, especially if you’ve been sweating or haven’t been drinking enough.
Magnesium plays a role in nerve transmission and muscle contraction, and low levels are associated with increased cramping. That said, the research on magnesium supplements for muscle cramps is mixed. A Cochrane Review found that oral magnesium supplementation didn’t significantly reduce cramp frequency compared to placebo. You’re better off getting magnesium through foods like spinach, nuts, seeds, and bananas rather than relying on supplements alone. Potassium-rich foods like avocados, sweet potatoes, and beans support muscle function as well.
Adjust Your Workspace During Recovery
If you work at a desk, your setup can either help or hinder recovery. Sit close to your desk with your upper arms parallel to your spine and your elbows bent at roughly 90 degrees. If they’re not, adjust your chair height. You should be able to slide your fingers under your thighs at the front edge of the chair. If it’s a tight fit, use a footrest. If there’s a big gap, raise your desk or chair.
Take a break every 30 to 45 minutes to stand, walk around, or do a gentle stretch. Sitting in one position for hours is one of the most reliable ways to provoke another spasm during recovery. Even just standing up and sitting back down can help reset the muscle tension in your lower back.
How Long Recovery Takes
Simple overuse spasms often resolve within a few days. If there’s an underlying muscle strain, expect recovery to take several weeks. The trajectory matters more than the timeline: you should feel gradual improvement day over day. If you’re not improving at all after a week, or if the pain is getting worse, that’s worth a phone call to your doctor.
Signs That Need Medical Attention
The vast majority of back spasms are benign. In one large study of 1,000 emergency department patients with back pain, about 81% had a straightforward musculoskeletal cause. But certain symptoms point to something more serious. Numbness in the groin or inner thighs (sometimes called saddle anesthesia), sudden difficulty controlling your bladder or bowels, fever, or unexplained weight loss all warrant prompt evaluation. Severe pain that has you writhing and unable to find a comfortable position, or pain combined with urinary symptoms or flank pain, also increases the likelihood of a non-muscular cause. These situations are uncommon, but recognizing them matters.

