A back spasm is a sudden, involuntary contraction of the muscles along your spine that locks up and refuses to relax. The good news: most back spasms resolve within a few days to two weeks with the right combination of rest, movement, and simple home treatments. Here’s what to do right now and in the days that follow.
What to Do in the First Few Minutes
When a spasm hits, stop what you’re doing and carefully lower yourself to the floor or onto a firm surface. Lying on your back with a pillow under your knees is one of the fastest ways to take pressure off your spine and let the cramping muscle release. If you need additional support, tuck a small rolled towel under your waist to preserve your lower back’s natural curve.
If lying on your back isn’t comfortable, try your side. Draw your knees up slightly toward your chest and place a pillow between your legs. This keeps your spine, pelvis, and hips aligned so the spasming muscle isn’t being pulled in competing directions. A full-length body pillow works well here. Stay in this position for 15 to 20 minutes, breathing slowly, and let the muscle settle before you try to move again.
Ice First, Heat Later
Reach for ice during the first 48 hours. Cold narrows blood vessels, limits swelling, and dulls pain signals. Wrap an ice pack (or a bag of frozen vegetables) in a thin towel and apply it to the spasming area for 15 to 20 minutes at a time, with at least an hour between sessions to protect your skin.
After those first two days, switch to heat. A heating pad, warm towel, or hot shower increases blood flow to the tight muscle, helping it loosen and heal. Use heat for 15 to 20 minutes per session. Some people find alternating ice and heat helpful once you’re past the acute phase, so experiment to see what your body responds to best.
Over-the-Counter Pain Relief
Anti-inflammatory painkillers like ibuprofen or naproxen can reduce both pain and the inflammation driving the spasm. Take them with food and follow the dosing on the label. Acetaminophen is another option if you can’t tolerate anti-inflammatories. Keep your total acetaminophen dose under 3,000 mg in any 24-hour period to protect your liver.
Topical creams or patches that contain menthol or capsaicin can offer additional relief right at the site of the spasm without adding another pill to the mix.
Keep Moving (Gently)
It’s tempting to stay in bed, but prolonged rest actually makes back spasms worse. Muscles that aren’t used grow weaker and more prone to cramping. The goal is gentle, controlled movement as soon as you can tolerate it.
Three stretches are particularly helpful during recovery:
- Knee-to-chest stretch. Lie on your back, pull one knee toward your chest, and hold for five seconds. Return to the starting position and repeat with the other leg, then try both legs together. Do 2 to 3 repetitions per side.
- Lower back rotation. Lie on your back with your knees bent and feet flat on the floor. Keeping your shoulders down, slowly roll both knees to one side and hold for 5 to 10 seconds. Return to center and repeat on the other side, 2 to 3 times each.
- Pelvic tilt. In the same position, gently flatten your lower back against the floor by tightening your abdominal muscles. Hold for five seconds, then relax. This builds the deep core strength your spine relies on for support.
Try doing this routine once in the morning and once in the evening. None of these movements should cause sharp pain. If one does, skip it and revisit it in a day or two.
Hydration and Electrolytes
Dehydration and electrolyte imbalances are underappreciated triggers for muscle spasms. Potassium supports normal muscle and nerve function, and calcium plays a role in how muscles contract and release. When levels of either drop too low, cramps and spasms become more likely.
Drink water consistently throughout the day, especially if you’ve been sweating, sick, or skipping meals. Foods like bananas, sweet potatoes, leafy greens, and dairy products help replenish potassium and calcium naturally. If your spasms are recurring and you suspect an electrolyte issue, a simple blood test can confirm it.
Why Back Spasms Happen
A back spasm occurs when a muscle contracts involuntarily and can’t release. The most common triggers are surprisingly mundane: sitting too long with poor posture, not exercising regularly, or asking a deconditioned muscle to do something strenuous like lifting a heavy box or twisting awkwardly. The muscle fires a protective contraction and then gets stuck in that state.
Stress is another contributor. When you’re tense, you unconsciously tighten your back and shoulder muscles for hours at a time, setting the stage for a spasm. Weak core muscles (both abdominal and back) leave the spine without adequate support, meaning the smaller muscles along the vertebrae have to compensate, and they fatigue quickly.
Preventing the Next One
Back spasms aren’t completely preventable, but consistent habits dramatically reduce their frequency. The Cleveland Clinic recommends three key practices: regular exercise (aim for three times a week), good sitting posture, and getting up to stretch every 30 minutes when you’re at a desk or on the couch. That 30-minute interval matters because it prevents the slow tightening that builds throughout a sedentary day.
Core strengthening is the single most effective long-term strategy. You don’t need a gym. Planks, bird-dogs, and bridges done at home a few times a week build the deep stabilizing muscles that keep your spine supported. Walking is also excellent for back health because it gently engages your core while promoting blood flow to spinal muscles and discs. Stress management, whether through exercise, breathing techniques, or simply taking breaks during a high-pressure day, also plays a real role in keeping back muscles from chronically tensing up.
Red Flags That Need Emergency Care
Most back spasms are painful but harmless. A small number, however, signal something more serious. Go to an emergency room if your back pain comes with any of these symptoms: numbness or tingling in your inner thighs, buttocks, or groin area; difficulty urinating or loss of bladder or bowel control; progressive leg weakness; or difficulty walking. These can indicate a condition called cauda equina syndrome, where the bundle of nerves at the base of the spine is being compressed. It requires urgent treatment to prevent permanent damage.
Also pay attention if a spasm doesn’t improve at all after two weeks of home care, if the pain radiates down one or both legs past the knee, or if you develop a fever alongside back pain. These patterns suggest something beyond a simple muscle spasm and warrant a medical evaluation.

