Vitamin D

Note: this site is for informational purposes only. To view test results or book a test, use the NHS app in England or contact your GP.

The vitamin D test is a blood test in which a sample is taken from a vein to measure the level of vitamin D (25-hydroxyvitamin D) in the bloodstream. It is used to help assess bone health and detect vitamin D deficiency or excess, particularly in conditions affecting calcium balance and bone strength.

Also known as 
Ergocalciferol (vitamin D2); Cholecalciferol (vitamin D3); Calcidiol (25-hydroxyvitamin D [25(OH)D]); Calcifidiol (25-hydroxy-vitamin D); Calcitriol (1,25 dihydroxyvitamin D [1,25(OH)(2)D])
Formal name 
25-hydroxy-vitamin D (Calcidiol); 1,25 dihydroxy-vitamin D (Calcitriol)

Why get tested?

To investigate a problem related to bone metabolism or parathyroid function, possible vitamin D deficiency or excess, malabsorption, before commencing specific bone treatment, and to monitor some patients taking vitamin D. 

When to get tested?

Your doctor may request a vitamin D measurement in the following situations: 

  • If you are found to have an abnormal calcium, phosphate, and/​or parathyroid hormone (PTH) concentration in the blood. 
  • As part of the investigation of some forms of bone disease or muscle weakness/​pain.
  • If you have disease of the gastrointestinal tract that could result in malabsorption. 
  • If you have disease of the kidneys that could result in lack of conversion to its active form. 
  • If you are receiving certain anticonvulsant drugs. 
  • If you are receiving high dose vitamin D supplementation. 

Sample required?

A blood sample taken from a vein in your arm

Test preparation needed?

None required

What is being tested?

The main role of vitamin D is to help regulate the absorption of calcium, phosphate and (to a lesser extent) magnesium from the gut. Vitamin D is vital for the growth and health of bone; without it, bones will be soft, malformed, and unable to repair themselves normally, resulting in the disease called rickets in children and osteomalacia in adults. Vitamin D also plays an important role in musculoskeletal health. 

Several forms can be measured in the blood however the main forms include 25-hydroxyvitamin D3, 25-hydroxyvitamin D2, and 1,25-dihydroxyvitamin D. 25-hydroxyvitamin D is the major form of vitamin D and is the relatively inactive component from which the active hormone, 1,25-dihydroxyvitamin D is made. 25-hydroxyvitamin D is the most useful indicator of vitamin D status in individuals, and is the form most commonly measured in routine analysis. This is because 25-hydroxyvitamin D remains in the blood longer and is present at much higher concentrations than 1,25-dihydroxyvitamin D. Occasionally it may be necessary to measure 1,25-dihydroxyvitamin D to find out whether the kidney is converting an appropriate amount of inactive 25-hydroxyvitamin D to the active 1,25 dihydroxyvitamin D. However, this is rarely required in practice. 

Vitamin D comes from 2 sources: It is 1) produced in the skin following exposure to sunlight (endogenous source 80%-90% of the total) and 2) ingested from foods and supplements (exogenous source 10%-20% of the total). The chemical structures of these types of vitamin D are slightly different. Vitamin D2 (ergocalciferol) is the form found in foods of vegetable origin and vitamin D3 (cholecalciferol) is the form produced in the skin and is also found in foods of animal origin. Both forms of vitamin D may be present in vitamin preparations and supplements. For most people, the majority (up to 90%) of vitamin D is formed following the action of sunlight upon the skin. Both vitamin D2 and vitamin D3 are converted to 25-hydroxyvitamin D and then to 1,25-dihydroxyvitamin D. 

The majority of routine vitamin D blood tests do not distinguish D2 and D3 forms of the vitamin and the result therefore gives an indication of the total amount of vitamin D present within the bloodstream. Tests are available that can distinguish between the D2 and D3 forms however these usually take longer and require more expertise to perform meaning they are not as common. 

How is the sample collected for testing?

A blood sample is obtained by inserting a needle into a vein in the arm.

Is any test preparation needed to ensure the quality of the sample?

No test preparation is needed.

Common questions