Educational information: it does not replace advice from a health professional. In an emergency, call your local emergency number.
The short answer
No, for the vast majority of people. The skin makes vitamin D when ultraviolet B (UVB) radiation converts a cholesterol derivative into previtamin D3, which the liver and kidney then turn into its active form. Sunscreens are designed to block much of exactly that radiation, so the question is a fair one. But what happens in a laboratory is not what happens on a beach or in the street.
What the studies show
- Under laboratory conditions, applying the exact amount of cream (2 mg/cm²) and using lamps, sunscreen clearly reduces vitamin D production.
- In real life, the result is different. In a classic Australian trial (Marks and colleagues, 1995), adults randomly assigned to use sunscreen or a cream without filters every day over the summer showed no relevant difference in their vitamin D levels.
- A 2019 systematic review (Neale and colleagues, British Journal of Dermatology) concluded that although the risk exists in theory, field trials and observational studies indicate that it is low; several observational studies even find higher vitamin D in sunscreen users, probably because they spend more time outdoors.
- During a holiday with a very high UV index in Tenerife, a European study (Young and colleagues, 2019) showed that a sunscreen with high UVA protection, properly applied, prevented sunburn while still allowing vitamin D to rise.
- An international expert panel (Passeron and colleagues, 2019) concluded that broad-spectrum sunscreens that prevent erythema (reddening) do not compromise vitamin D status in healthy people.
Why? Because no sunscreen blocks 100% of UVB, almost nobody applies the full amount, some areas are always missed, and skin synthesis is very efficient at low doses.
How much sun you really need
Very little. For most people with fair skin, in spring and summer, exposing the face, arms or legs for a few minutes a day is enough, always below the dose that reddens the skin. Spending longer does not raise vitamin D proportionally: production reaches a plateau, while DNA damage and the risk of skin cancer keep climbing. Tanning or burning provides no extra useful vitamin D.
Darker skin (phototypes V-VI) needs longer to make the same amount, because melanin filters some UVB; at high latitudes such as the UK, or in winter, this can make a real difference (see skin of all tones and skin phototypes and the UV index).
Sunbeds are not an acceptable way to get vitamin D: they emit mainly UVA, are carcinogenic, and the European Code Against Cancer (5th edition, 2025) advises never using them.
Who may be deficient
| Situation | Why | What is usually done |
|---|---|---|
| Older people, especially if housebound or in care homes | Ageing skin makes less vitamin D and exposure is low | Consider a supplement with the doctor |
| Very dark skin at high latitudes | Melanin reduces synthesis | Consider a supplement, especially in winter |
| Clothing that covers almost the whole body | Little exposed skin | Consider a supplement |
| Conditions requiring sun avoidance (cutaneous lupus, porphyrias, xeroderma pigmentosum, transplant recipients, previous skin cancer) | Strict photoprotection | Supplement as advised by a doctor |
| Obesity, coeliac or inflammatory bowel disease, bariatric surgery, kidney or liver failure, some medicines (antiepileptics, oral steroids) | Reduced absorption or activation | Medical follow-up |
| Breastfed infants | Breast milk provides little vitamin D and babies should not be in direct sun | In Spain, paediatricians recommend 400 IU daily in the first year; in the UK, 8.5-10 micrograms daily from birth |
In the UK, the NHS advises everyone to consider a 10 microgram (400 IU) daily supplement in autumn and winter, and people in at-risk groups to take it all year round. Spain has plenty of sun, but deficiency is still common in winter and in older people.
Do I need a blood test?
Not routinely. The Endocrine Society guideline of 2024 advises against routinely measuring vitamin D (25-hydroxyvitamin D) in healthy people and reserves empirical supplementation for specific groups: children and adolescents, pregnant people, adults over 75 and people with high-risk prediabetes. Testing makes sense when there are symptoms, bone disease (osteoporosis, osteomalacia) or clear risk factors. As a reference, most bodies regard a level below about 30 nmol/L (12 ng/mL) as deficient and from about 50 nmol/L (20 ng/mL) as sufficient.
What to do in practice
- Keep protecting yourself from the sun when the UV index is 3 or more: shade, clothing, a hat and sunscreen. We explain this in sun protection all year round.
- Enjoy the outdoors with protection: a daily walk, even with sunscreen on, still provides vitamin D.
- Eat foods that contain it: oily fish (sardines, mackerel, salmon), eggs and fortified foods. More in diet and skin.
- If you are in a risk group, talk to your doctor or pharmacist about a supplement. Do not take high doses on your own: too much vitamin D can raise calcium and damage the kidneys.
Sources
- Demay MB, Pittas AG, Bikle DD, et al. Vitamin D for the prevention of disease: an Endocrine Society clinical practice guideline. J Clin Endocrinol Metab. 2024;109(8):1907-47. doi:10.1210/clinem/dgae290.
- Ritchie D, et al. European Code Against Cancer, 5th edition – ultraviolet radiation, radon and cancer. Mol Oncol. 2026;20(1):49-67. doi:10.1002/1878-0261.70171.
- Neale RE, et al. The effect of sunscreen on vitamin D: a review. Br J Dermatol. 2019;181:907-15.
- Passeron T, et al. Sunscreen photoprotection and vitamin D status. Br J Dermatol. 2019;181:916-31. PubMed: 31069788.
- Young AR, et al. Optimal sunscreen use, during a sun holiday with a very high ultraviolet index, allows vitamin D synthesis without sunburn. Br J Dermatol. 2019;181:1052-62.
- Marks R, et al. The effect of regular sunscreen use on vitamin D levels in an Australian population: results of a randomized controlled trial. Arch Dermatol. 1995;131:415-21.
- NHS. Vitamin D.
- World Health Organization. Ultraviolet radiation: fact sheet.
Sources reviewed and updated in November 2026.