A muscle that locks — a sudden, involuntary cramp or spasm that won't release — usually eases within 30 seconds to 2 minutes once you stop the trigger, stretch the muscle gently, and replace what your body is missing. Most people get relief from the steps below in under 5 minutes, and recurring locking often calms within 1–2 weeks of consistent changes. Here is what to do right now, then what to change so it stops happening.
What to Do Right Now When a Muscle Locks
- Stop the movement and unload the muscle. Sit or lie down so the locked muscle carries no weight. If it is a calf, sit and straighten the leg. If it is a back muscle, lie on your side with knees bent. Do not force the joint through the spasm.
- Stretch slowly into the lock, not away from it. Hold a gentle stretch at the point where you feel tightness but not sharp pain for 20–30 seconds, then release for 10 seconds. Repeat 2–3 times. For a calf: pull the toes toward your shin with a towel. For a hamstring: lie down and slowly straighten the knee. For a hand: open the fingers wide and press the palm flat.
- Breathe out through the spasm. Take a slow breath in through the nose for 4 counts, then a long breath out for 6 counts. Repeat 4–5 times. Slow exhaling relaxes the nervous system signal that is keeping the muscle tight.
- Warm the muscle for 10–15 minutes. Use a warm shower, a hot pack wrapped in a towel, or a warm bath at about 100–104°F (38–40°C). Heat increases blood flow and helps the fibers let go. Never put a hot pack directly on bare skin, and never sleep on a heating pad.
- Drink 250–500 ml (about 1–2 cups) of water with a pinch of salt or an electrolyte drink. Muscle locking is often triggered by low fluid and low sodium, potassium or magnesium. Sip slowly over 10–15 minutes rather than gulping.
- Massage the muscle gently for 2–3 minutes. Use a flat hand or thumb and press slowly along the muscle, not deep into the joint. Stop if it makes the lock worse.
- Test the muscle with an easy movement. Once the lock releases, move the joint through a small, slow range 10 times. If it locks again, repeat steps 2–4 before pushing further.
Why Muscles Lock and What Each Cause Needs
| Symptom or trigger | Likely cause | What to do |
|---|---|---|
| Lock happens during or right after exercise | Fatigue, dehydration, low electrolytes | Fluids with salt, gentle stretch, rest 24–48 hours from hard effort |
| Lock happens at night in the calf or foot | Cold muscle, awkward sleep position, low magnesium or potassium | Warm pack before bed, stretch calf 30 seconds each side, check diet |
| Lock in the back or neck after sitting | Prolonged posture, weak supporting muscles | Stand and move every 30–45 minutes, gentle range-of-motion, heat |
| Lock returns in the same spot for weeks | Overuse, muscle imbalance, nerve irritation | Reduce the load, see a physiotherapist or doctor |
| Lock with numbness, weakness or loss of bladder control | Possible nerve problem | Seek urgent medical care |
Before You Start: What to Check First
Check these four things before you stretch or heat anything, because the wrong move can make a lock worse:
- Is there swelling, heat or redness over the muscle? If yes, skip heat and massage and see a doctor — this can be an injury or infection.
- Did the lock come with chest pain, shortness of breath, or a cold, pale limb? Call emergency services; do not treat it as a simple cramp.
- Are you on a diuretic, statin or blood pressure medicine? Some medicines lower electrolytes or affect muscle. Ask your doctor or pharmacist before adding salt or supplements.
- Have you had a recent injury or surgery in that area? Get clearance before stretching it hard.
How Long Does a Locked Muscle Take to Release?
A single cramp usually releases in 30 seconds to 2 minutes with gentle stretching and slow breathing. If it has not eased after 5 minutes of the steps above, stop forcing it and rest the muscle for 15–20 minutes before trying again. A muscle that stays locked for more than 20–30 minutes, or that locks repeatedly over hours, needs medical assessment rather than more stretching.
For prevention, expect 1–2 weeks of consistent changes — hydration, electrolytes, warm-ups and load management — before night-time or exercise-related locking becomes noticeably less frequent.
How Much Water and Electrolytes Do You Need?
For general activity, aim for about 30–35 ml of water per kilogram of body weight per day (roughly 2–2.5 liters for a 70 kg adult), more in heat or with heavy sweating. During exercise longer than 60 minutes, drink 400–800 ml per hour and include sodium — a pinch of salt in 500 ml of water, or an electrolyte drink — rather than plain water alone.
Food sources matter more than supplements for most people: a banana or potato for potassium, leafy greens and nuts for magnesium, and salted food or a broth for sodium. Do not take magnesium supplements at high doses without checking with a doctor, especially if you have kidney problems.
Which Stretch Helps Which Locked Muscle
| Muscle | Stretch | Hold |
|---|---|---|
| Calf | Sit, straighten the leg, pull toes toward shin with a towel | 20–30 seconds, 2–3 times |
| Hamstring | Lie on your back, loop a towel around the foot, straighten the knee slowly | 20–30 seconds, 2–3 times |
| Back | Lie on your side, knees bent, gently pull knees toward chest | 20 seconds, 2 times |
| Hand or fingers | Press palm flat on a table, spread fingers wide | 15–20 seconds, 3 times |
| Neck | Slowly tilt the ear toward the shoulder, no forcing | 15–20 seconds each side |
What Makes Muscle Locking Worse
- Stretching a cold muscle hard. A cold muscle tears more easily; warm up for 5–10 minutes first with easy movement.
- Drinking only plain water during long, sweaty exercise. This dilutes sodium further and can worsen locking; add electrolytes.
- Pushing through a lock to finish a set or a run. This prolongs the spasm and raises injury risk; stop and release it first.
- Heating an area that is swollen or hot. Heat on acute inflammation increases swelling; use ice for 10–15 minutes instead, wrapped in a cloth.
When Muscle Locking Needs a Doctor
See a doctor or physiotherapist if a muscle locks most days for more than 2 weeks, if the lock comes with weakness, numbness, or a change in how you walk, if it happens in the jaw or chewing muscles, or if it follows a new medicine. Get urgent care for a locked muscle with chest pain, trouble breathing, a cold or blue limb, or loss of bladder or bowel control — these are not simple cramps.
Preventing Night-Time Calf and Foot Locks
Stretch the calves for 30 seconds on each side before bed, keep the feet warm with socks, and avoid pointing the toes hard under the blankets. A 10-minute walk in the evening helps circulation. If night locks persist despite these steps for 2–3 weeks, ask a doctor to check electrolytes and medicines.