# What Blood Tests Should I Get for Muscle Cramps?

Source: https://justlabs.health/symptoms/muscle-cramps

Most leg cramps, especially the ones that wake you at night, have no cause a blood test will find, and family physicians don’t order routine labs for them. Testing makes sense when cramps are frequent or come with weakness, numbness, fatigue or feeling cold: a comprehensive metabolic panel (potassium, calcium, kidney and liver), TSH, vitamin D, vitamin B12 and HbA1c look for low potassium or calcium, an underactive thyroid and the nerve damage that diabetes or low B12 can cause.

## Why these tests for muscle cramps

A cramp is a sudden, painful tightening of a muscle that you can’t release at will. Night-time calf cramps are very common: up to 60% of adults report having had them, and they become more common with age. Most are thought to come from muscle fatigue and overactive nerves, not from a shortage of minerals, and family physicians usually recognize them from your description without blood tests.

Blood tests earn their place when cramps are frequent, spread beyond the calves, or come with other symptoms. Low potassium is one measurable cause: in one study of veterans, most people with low potassium reported leg cramps. Low calcium causes muscle spasms, and vitamin D deficiency is the most common reason calcium runs low. An underactive thyroid often causes muscle stiffness, aches and cramps, sometimes as an early sign. Nerve damage from diabetes or low vitamin B12 can cause cramps along with numbness and tingling.

Cramps also go with pregnancy, vein problems, narrowed leg arteries, cirrhosis, dialysis and some medicines, including some osteoporosis drugs, estrogens and certain inhalers. A clinician puts those together from your history and an exam. The tests on this page cover the blood causes worth checking first.

## Recommended Tests

- [CMP](https://justlabs.health/tests/cmp): Potassium, calcium, glucose, kidney and liver function. Low potassium or calcium can cause cramps, and liver disease is linked with them.
- [TSH](https://justlabs.health/tests/tsh): An underactive thyroid commonly causes muscle stiffness, aches and cramps, sometimes before other symptoms.
- [Vitamin D](https://justlabs.health/tests/vitamin-d): Vitamin D deficiency is the most common cause of low calcium, which makes muscles spasm.
- [B12](https://justlabs.health/tests/vitamin-b12): Low B12 can damage nerves, causing numbness, tingling and cramps, especially with metformin, acid reducers or a vegan diet.
- [HbA1c](https://justlabs.health/tests/hemoglobin-a1c): Diabetes can damage the nerves in the legs; cramps with numbness or burning feet point that way.

## Possible Underlying Conditions

- [Hypothyroidism](https://justlabs.health/labs-for/hypothyroidism)
- [Vitamin D Deficiency](https://justlabs.health/labs-for/vitamin-d-deficiency)
- [Vitamin B12 Deficiency](https://justlabs.health/labs-for/vitamin-b12-deficiency)
- [Type 2 Diabetes](https://justlabs.health/labs-for/type-2-diabetes)

## Night-time calf cramps, otherwise well

This is the common, usually harmless kind. Blood tests rarely change anything, and calf stretching before bed is the usual first step. Review your medicines with a clinician. Consider tests if cramps happen most nights, keep you from sleeping, or come with new weakness, numbness, tiredness or feeling cold: start with the CMP and TSH.

## Cramps with numbness, tingling or burning feet

This points to nerve involvement. Add HbA1c and vitamin B12 to the CMP. Long-term metformin, acid-reducing medicines, a vegan diet and heavy drinking make low B12 more likely.

## Pregnancy and older adults

Leg cramps are common in pregnancy; mention them at your prenatal visit before taking any supplement. In older adults, cramp-like calf pain that comes on with walking and eases with rest can be poor circulation (claudication), which needs an exam rather than a blood test.

## What blood tests can’t tell you

- The ordinary night-time leg cramp, which has no blood marker and is recognized from your description.
- Poor circulation in the legs (claudication), which a clinician checks with pulses and an ankle-brachial index.
- Muscle inflammation or statin-related muscle injury: a clinician orders a CK (creatine kinase) level, which is not on this page.
- Nerve or spine problems such as lumbar spinal stenosis, which need an exam and sometimes imaging or nerve studies.
- Whether a medicine is causing your cramps, which you and a clinician work out by reviewing your list.

## See a clinician if you have

- Severe muscle pain and weakness with dark, cola-colored urine, especially after intense exercise, heat or a new medicine: go to the emergency room. This can be serious muscle breakdown.
- Sudden weakness, numbness or drooping on one side of the body or face, or trouble speaking: call 911.
- A calf that is swollen, warm and painful, not just tight: see a clinician the same day to check for a blood clot.
- Spasms of the hands and feet with tingling around the mouth, or cramps with a racing or irregular heartbeat: get care the same day.
- Cramps with muscle weakness or wasting, or twitching that keeps spreading: see a clinician soon.

## FAQs

### Which blood tests are worth doing for muscle cramps?

A comprehensive metabolic panel (potassium, calcium, kidney and liver), TSH, vitamin D, vitamin B12 and HbA1c. They cover the measurable causes: low potassium or calcium, an underactive thyroid, and nerve damage from diabetes or low B12.

### Are cramps caused by low potassium or magnesium?

Sometimes, but less often than people think. Low potassium is linked with cramps, and the CMP checks it. Studies of ordinary night-time leg cramps haven’t found a link with electrolyte levels, and a Cochrane review found magnesium unlikely to help older adults’ cramps meaningfully.

### Can a thyroid problem cause muscle cramps?

Yes. Muscle stiffness, aches, cramps and tiring easily are reported by most people with an obviously underactive thyroid, and can be the first sign. TSH is the test to start with.

### I take a statin. Could it be causing my cramps?

Statins can cause muscle aches and, rarely, muscle injury. A clinician can check a CK level, which is not on this page, and adjust your treatment. Don’t stop a prescribed statin on your own.

### Do I need to fast for these tests?

Not for most of them. HbA1c, TSH, vitamin D and B12 don’t need fasting. The glucose value on the CMP is easier to read after an 8-hour fast, so a morning draw works well.

### My tests are normal but I still get cramps. What helps?

Normal results are the usual finding, and they make a hidden medical cause less likely. Stretching the calf before bed and when a cramp starts is the usual first step. Quinine is no longer recommended because of serious side effects. A clinician can review your medicines and discuss other options.

### Do I need a doctor’s visit to order these tests?

No. You order online, a physician reviews and authorizes the order, and you have your blood drawn at a Quest Diagnostics location. Bring your results to a clinician to discuss them.

## Related Symptoms

- [Restless Legs](https://justlabs.health/symptoms/restless-legs)
- [Muscle Weakness](https://justlabs.health/symptoms/muscle-weakness)
- [Fatigue](https://justlabs.health/symptoms/fatigue)
- [Insomnia](https://justlabs.health/symptoms/insomnia)

## Sources

- [Nocturnal leg cramps](https://pubmed.ncbi.nlm.nih.gov/22963024/). Allen RE, Kirby KA. Am Fam Physician 2012;86(4):350-5
- [Magnesium for skeletal muscle cramps](https://doi.org/10.1002/14651858.CD009402.pub3). Garrison SR et al. Cochrane Database Syst Rev 2020;9(9):CD009402
- [Hypothyroid myopathy: A peculiar clinical presentation of thyroid failure. Review of the literature](https://doi.org/10.1007/s11154-016-9357-0). Sindoni A et al. Rev Endocr Metab Disord 2016;17(4):499-519
- [Parathyroid Disorders](https://pubmed.ncbi.nlm.nih.gov/35289573/). Sell J et al. Am Fam Physician 2022;105(3):289-298

Last reviewed 2026-12-05 by the JustLabs editorial team.
