Vitamin D is a fat-soluble vitamin that helps the body absorb calcium and supports normal bone and muscle function. It also has roles in other body systems. The body can make vitamin D in the skin after exposure to ultraviolet B sunlight, and smaller amounts come from food. Sun exposure, however, is not a simple prescription: geography, season, skin tone, clothing, time outdoors and sun protection all affect vitamin D production.
Why vitamin D matters
Vitamin D helps regulate calcium and phosphate, which are important for normal bone mineralisation. Severe deficiency in children can cause rickets, while deficiency in adults can contribute to osteomalacia and bone discomfort or weakness. Vitamin D is not a cure-all, and claims that high doses prevent or treat many unrelated conditions should be treated cautiously.
Food sources of vitamin D
Few foods naturally contain large amounts. Oily fish such as salmon, sardines and mackerel are useful sources. Egg yolks and some mushrooms exposed to ultraviolet light can contribute smaller amounts. In some countries, milk, plant drinks, breakfast cereals or spreads are fortified; fortification varies, so check the label. A varied diet helps, but food alone may not provide enough for everyone.
Sunlight and vitamin D
Sunlight exposure can help the skin produce vitamin D, but the amount varies widely. There is no single safe exposure time that works for everyone. Strong ultraviolet exposure increases the risk of skin damage and skin cancer. Follow local sun-safety advice, use protective clothing and sunscreen as appropriate, and do not deliberately burn or use tanning beds to raise vitamin D. People with limited outdoor exposure may need to discuss other ways to meet their needs.

Who may be at risk of low vitamin D?
Risk can be higher for people who spend little time outdoors, cover most skin for cultural or medical reasons, have darker skin, are older, have conditions affecting fat absorption or have limited dietary sources. Infants and pregnant or breastfeeding people may have specific recommendations depending on local public-health guidance. Risk factors do not prove deficiency; testing and advice should be based on clinical context.
Should you take a supplement?
Vitamin D supplements may be recommended for certain age groups, risk groups or people with confirmed deficiency. The appropriate amount depends on age, health, diet, location and local guidance. More is not always better. Very high doses can cause toxicity, leading to high blood calcium and potentially kidney or heart complications. Avoid taking multiple high-dose products together unless a clinician has advised it.
Testing and professional advice
A clinician may request a blood test called 25-hydroxyvitamin D when symptoms or risk factors make testing appropriate. Routine testing is not necessary for everyone. If you have bone pain, muscle weakness, malabsorption, kidney or liver disease or take medicines that affect vitamin D metabolism, seek individual guidance rather than self-prescribing high doses.
Frequently asked questions
Can sunlight alone meet my needs?
It depends on many factors, and excessive ultraviolet exposure is harmful. Use local sun-safety advice and discuss dietary or supplement options if you may be at risk.
Can I get vitamin D from plant foods?
Some UV-exposed mushrooms contain vitamin D2, and fortified plant drinks may provide vitamin D. Check product labels because fortification varies.
Can I take vitamin D every day?
Some people are advised to take regular supplements, but the dose should follow age-specific public-health guidance or a clinician’s recommendation. Avoid unsupervised megadoses.
Key takeaway
Vitamin D supports bone and muscle health. Include available food sources, follow sensible sun protection and use supplements only at an appropriate dose for your situation. If you have risk factors or symptoms, ask a qualified health professional whether testing or supplementation is suitable.