Skip to content

Do you get vitamin D from the sun through a window?

3 min read

According to the National Institutes of Health, your skin does not make vitamin D from sunlight through a window. Many people are surprised to learn this, especially those who enjoy sitting in a sunny room, but the scientific reason is rooted in the types of ultraviolet (UV) light that penetrate glass.

Quick Summary

Glass blocks the specific UVB rays required for the body to synthesize vitamin D. The UVA rays that pass through can still cause skin damage, photoaging, and even cancer risk over time.

Key Points

  • UVB is Blocked by Glass: Window glass, including standard and double-glazed, effectively blocks the ultraviolet B (UVB) rays required for the body to synthesize vitamin D.

  • UVA Rays Penetrate Windows: Ultraviolet A (UVA) rays, which cause premature skin aging and increase the risk of skin cancer, pass through standard window glass.

  • No Vitamin D is Made Indoors: The warmth and light you feel through a window do not lead to vitamin D production in your skin.

  • Safe Production Requires Outdoor Exposure: To get vitamin D naturally, your bare skin needs direct, safe exposure to outdoor sunlight.

  • Supplements are a Reliable Alternative: Dietary sources and vitamin D supplements are effective alternatives, especially for those with limited outdoor time.

  • Window Films Enhance UV Blocking: Specialized window films and modern Low-E glass block even more UV radiation, further preventing both indoor vitamin D production and UV skin damage.

In This Article

The Science of Sunlight and Vitamin D

Your body produces vitamin D, often called the “sunshine vitamin,” when your skin is directly exposed to sunlight. Specifically, it requires ultraviolet B (UVB) radiation to trigger the synthesis process. The crucial detail is that standard window glass effectively acts as a filter, blocking nearly all UVB rays from passing through. This is why, despite feeling the warmth and seeing the light, your body is unable to produce vitamin D indoors.

UVA vs. UVB: Why the Difference Matters

Sunlight is composed of different types of ultraviolet radiation, with UVA and UVB being the most relevant for skin health. Standard window glass has a very different effect on these two types of rays.

  • UVB Rays: These are shorter-wavelength, higher-energy rays that primarily affect the top layer of your skin. UVB exposure is what causes sunburn and is the essential ingredient for vitamin D synthesis. Glass blocks over 97% of UVB rays, preventing any meaningful vitamin D production from occurring while indoors.
  • UVA Rays: These are longer-wavelength rays that penetrate deeper into the skin's layers, causing premature aging, wrinkles, and other long-term damage. A significant portion of UVA rays—anywhere from 50% to 75% for standard glass—can pass right through windows. This means that while you can't get vitamin D, you are still exposed to damaging radiation that can harm your skin over time.

The Health Implications of Indoor UV Exposure

Without adequate UVB exposure, your body cannot produce vitamin D, increasing the risk of deficiency. Conversely, prolonged exposure to UVA radiation through windows can lead to cumulative skin damage, including photoaging and a heightened risk of certain skin cancers. For this reason, dermatologists often recommend sun protection, even when spending extended periods near windows.

How to Get Vitamin D Safely

If sitting by a window is not an effective method, what are the best alternatives for obtaining this crucial nutrient? There are several options to ensure you maintain healthy vitamin D levels.

  • Safe Outdoor Sun Exposure: Brief, regular sun exposure outdoors on bare skin is the most natural way to produce vitamin D. The amount of time needed varies depending on skin tone, latitude, and time of day, but even 10–30 minutes of midday summer sun, a few times a week, can be effective for many people.
  • Dietary Sources: Few foods naturally contain significant amounts of vitamin D, but those that do include:
    • Fatty fish (salmon, mackerel, sardines)
    • Fish liver oils
    • Beef liver
    • Egg yolks
    • Fortified foods (milk, cereals, some juices)
  • Supplements: For those with limited sun exposure or dietary intake, supplements are often recommended by healthcare providers. Vitamin D3 is generally considered more effective at raising levels than D2.

Comparison of Indoor vs. Outdoor Sun Exposure for Vitamin D

Feature Indoor Sun Exposure (Through Glass) Outdoor Sun Exposure (Bare Skin)
UVB Ray Exposure Blocked almost completely by glass. High exposure during peak hours, triggering vitamin D synthesis.
UVA Ray Exposure Significant exposure, causing skin aging and potential cancer risk. High exposure, requiring caution and sunscreen to mitigate risk.
Vitamin D Production None. Yes, effective for generating vitamin D naturally.
Risk of Sunburn Extremely low, since UVB rays are blocked. Significant, requiring careful monitoring and timing.
Benefit to Furnishings Glass blocks some UV, but UVA can still cause fading over time. Direct UV exposure outdoors can also cause fading of materials.

The Role of Window Technology

Modern windows and films are designed to be more energy-efficient and protective, further reducing the chances of any UV radiation entering. Low-emissivity (Low-E) coatings and UV-protective films applied to windows are engineered to reflect or absorb both infrared and ultraviolet light, sometimes blocking up to 99% of UV rays. While this is excellent for protecting interiors from fading and for conserving energy, it also confirms that these windows prevent any indoor vitamin D synthesis.

Conclusion

The idea that you can passively absorb the benefits of sunlight from indoors is a common misconception. While you can feel the warmth and light, the crucial UVB rays needed for vitamin D production do not pass through glass. To produce vitamin D naturally, you must expose your bare skin directly to outdoor sunlight for a brief, safe period. For those who can't or choose not to do so, dietary sources and supplements provide reliable alternatives. The sun's UVA rays, which can still pass through windows and cause long-term skin damage, mean that even indoors, sun protection is a consideration for those who spend extensive time in sunny rooms.

Frequently Asked Questions

It is unlikely to get a sunburn through a standard window because glass blocks most UVB rays, which are the primary cause of sunburn. However, it is possible with prolonged exposure or specific glass types, and the UVA rays that pass through can still cause skin damage.

No, you cannot get vitamin D while sitting in a car with the windows up. Car glass, including the windshield and side windows, blocks the essential UVB rays required for vitamin D synthesis.

Plants and humans use different parts of the sun's spectrum. Plants primarily use visible light for photosynthesis, which passes through glass. Humans require UVB rays for vitamin D synthesis, which glass blocks.

Yes, cloudy days significantly reduce the amount of UVB light that reaches the ground. While some UV radiation may still get through, it is less effective for vitamin D synthesis than clear, sunny days.

The best method depends on your individual circumstances. Brief, safe sun exposure is a natural way. However, if you have limited sun exposure, live in a high-latitude region, or have specific health conditions, supplements are a safe and reliable way to maintain adequate levels.

UVA rays have longer wavelengths and penetrate deeper into the skin, causing premature aging. UVB rays have shorter wavelengths, affect the skin's surface, cause sunburn, and are necessary for vitamin D production.

Most standard glass, including that found in homes and cars, blocks nearly all UVB rays. However, the exact percentage can vary slightly by glass thickness and type. Laminated glass and modern Low-E coatings offer the most comprehensive UV protection.

References

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5

Medical Disclaimer

This content is for informational purposes only and should not replace professional medical advice.