Back to Vitamins

Can You Get Vitamin D Through a Window?

Can You Get Vitamin D Through a Window?
Supplements Guide 14 July 2026

Sitting in a sunny window feels like sunlight and, for the purposes of vitamin D, is not. Ordinary window glass blocks almost all UVB, the specific wavelengths your skin needs to make vitamin D, while letting through the UVA that still warms you and can still contribute to skin ageing.

Why does glass block one and not the other?

Ultraviolet light divides into bands by wavelength. UVB is the shorter, higher energy band running roughly from 280 to 315 nanometres, and it is the band that converts a cholesterol derivative in the skin into vitamin D. UVA is longer, from about 315 to 400 nanometres.

Standard soda lime glass absorbs strongly below about 320 nanometres, which happens to cover essentially the whole UVB range. UVA passes through far more readily.

The result is a room that feels bright and warm while delivering almost none of the wavelength that matters. Laminated windscreen glass blocks even more, and modern coated or double glazed windows generally block more still.

Does this apply to cars, conservatories and greenhouses?

Yes to all three, with minor variations. Car windscreens are laminated and block UVB very effectively. Side windows are usually toughened rather than laminated and block somewhat less UVA, though UVB transmission remains negligible.

A long drive in bright sun contributes nothing to vitamin D. The same is true of a conservatory, a greenhouse or a glass office, however warm and bright they get.

Some specialist glass and plastics do transmit UVB, and they are used in laboratories and in reptile keeping, where UVB lamps are standard equipment precisely because ordinary glass would defeat the purpose.

What about sunlight in the shade or on a cloudy day?

These are more forgiving than glass. Open shade still receives scattered UVB from the sky rather than direct sun, so some synthesis occurs, though considerably less than in direct sunlight.

Light cloud reduces UVB somewhat and does not eliminate it, which is why people burn on overcast summer days. Heavy cloud reduces it much more.

None of this rescues the winter position. Between roughly October and March, the sun sits too low at British latitudes for useful UVB to reach the ground at all, so shade, cloud and glass become academic distinctions.

Do sunbeds work for vitamin D?

Sunbeds do emit some UVB and can raise vitamin D levels, and that is not a recommendation. Most commercial sunbeds are weighted heavily towards UVA to produce a tan quickly, so the vitamin D yield is poor relative to the exposure.

The risk side is well established. Sunbed use is associated with increased melanoma risk, and the association is stronger with use beginning at a younger age. Public health bodies advise against using sunbeds, and using them under 18 is illegal in England.

Taking a supplement achieves the same vitamin D result at trivial cost and with none of that risk, which makes the comparison an easy one.

What about UV lamps sold for vitamin D?

Devices marketed for home vitamin D production exist and are a niche product. They are occasionally used under specialist supervision for people with severe malabsorption who cannot maintain levels through oral supplements.

For everyone else they solve a problem that a capsule solves more cheaply and more predictably, while introducing an ultraviolet exposure that needs managing carefully. Dose control with a lamp is far harder than with a tablet.

What is the practical conclusion?

If you are indoors, you are not making vitamin D, however sunny the room. Between April and September, short periods outdoors with forearms and face uncovered around the middle of the day are enough for most people with lighter skin, and no tan or burn is needed.

Between October and March, sunlight is not available in a useful form at all, which is why UK guidance advises a daily 10 microgram supplement through those months, and year round for people with darker skin, those who cover up outdoors, and anyone rarely outside.

This article is general information and not medical advice.