# What Blood Tests Should I Get for Insomnia?

Source: https://justlabs.health/symptoms/insomnia

The top blood tests for insomnia are TSH, cortisol, ferritin, magnesium, and vitamin D. Thyroid dysfunction disrupts sleep cycles, elevated cortisol prevents sleep onset, and low iron causes restless legs. These tests identify the most common medical causes of persistent insomnia.

## Recommended Tests

- [tsh](https://justlabs.health/tests/tsh)
- [cortisol-total](https://justlabs.health/tests/cortisol-total)
- [ferritin](https://justlabs.health/tests/ferritin)
- [magnesium-rbc](https://justlabs.health/tests/magnesium-rbc)
- [vitamin-d](https://justlabs.health/tests/vitamin-d)
- [cmp](https://justlabs.health/tests/cmp)

## Possible Underlying Conditions

- [hypothyroidism](https://justlabs.health/labs-for/hypothyroidism)
- [hyperthyroidism](https://justlabs.health/labs-for/hyperthyroidism)
- [adrenal-fatigue](https://justlabs.health/labs-for/adrenal-fatigue)
- [iron-deficiency](https://justlabs.health/labs-for/iron-deficiency)

## FAQs

### Is insomnia always caused by a medical condition?

No. Stress, poor sleep hygiene, caffeine, screen exposure, and anxiety are the most common causes. However, blood tests can identify treatable medical contributions like thyroid disease, iron deficiency (restless legs), and magnesium deficiency.

### What does a normal result mean if I still can't sleep?

Normal blood work suggests behavioral and environmental factors. Consider sleep hygiene improvements, cognitive behavioral therapy for insomnia (CBT-I), and evaluation for sleep apnea.

### Can I order these tests myself?

Yes. JustLabs lets you order thyroid, cortisol, and mineral tests online without a doctor visit.

### How long until I get results?

Most results are available within 1-2 business days.

## Related Symptoms

- [anxiety](https://justlabs.health/symptoms/anxiety)
- [fatigue](https://justlabs.health/symptoms/fatigue)
- [night-sweats](https://justlabs.health/symptoms/night-sweats)
- [mood-swings](https://justlabs.health/symptoms/mood-swings)
