Vitamin D won’t form through closed window glass because UVB is blocked; step outside or use food and supplements.
If you’ve ever asked, “Can You Get Vitamin D Thru Window?” you’ve probably tried the classic move: sit in a sunbeam, feel warm, and hope it counts. It feels like sun time. Yet that light through glass usually can’t trigger the skin reaction that makes vitamin D.
This matters for people who work indoors, live in apartments, drive a lot, or deal with long winters. Once you know what parts of sunlight matter, you can pick options that work, without guessing.
No guesswork, just practical steps for you.
How your skin makes vitamin D from sunlight
Your body can make vitamin D when a slice of ultraviolet light called UVB hits your skin. UVB starts a chain reaction that turns a cholesterol-like compound in the skin into vitamin D3, which then gets processed in the liver and kidneys.
You don’t “absorb” vitamin D from sunlight the way you absorb heat. Sunlight supplies UVB; your skin does the rest. Bright light that looks sunny can still be missing the UVB you need.
A fact sheet from NIH’s Office of Dietary Supplements explains how vitamin D is made in skin and lists the daily amounts most people target from all sources.
Why UVB matters more than warmth
Warmth comes from infrared and from sunlight heating surfaces. UVB is separate. You can feel hot near a window and still get almost no UVB.
UVA is another ultraviolet band. UVA can tan and add to skin aging. It does not drive vitamin D production the way UVB does.
Why a sunny window still doesn’t count as sun exposure
Standard window glass is made to be clear, strong, and safe. A side effect is that it blocks most UVB. That’s why you can sit indoors in direct sun for an hour and still end up with the same vitamin D level you started with.
If you’ve noticed you can get tan lines in a car, that’s UVA. Many car side windows let in UVA, so skin can darken even when UVB is blocked.
Glass, coatings, and the UV filter effect
Modern windows often have coatings that cut solar heat gain. These layers can change how much UVA gets through, and they still block UVB. The brighter the room, the more tempting it is to treat that light like outdoor sun, but the physics doesn’t change.
Can You Get Vitamin D Thru Window? What glass blocks and what gets through
In everyday homes and offices, the answer is no. Closed windows stop UVB, so your skin can’t make much vitamin D while you sit behind glass.
Why this surprises people
Sunlight through a window looks like sunlight outdoors. Your eyes read “bright equals UV.” Your skin reads “warm equals sun.” Both cues can be true while UVB is missing.
There’s another twist: UVB does not travel far indoors even if a tiny amount slips through. Distance, angle, and screens all cut what’s left.
The American Academy of Dermatology statement on UVB and window glass says UVB rays are blocked by window glass. That lines up with what people see in real life: warmth, glare, and no vitamin D bump.
When windows might let a little UVB in
There are edge cases. Some specialty glazing, some skylights, and some older or thinner materials can transmit a small slice of UVB. Also, an open window is a different story. Air does not block UVB, so direct sun through an open window can act like outdoor sun, with the same burn risk.
Even with these exceptions, counting on indoor UVB is a shaky plan. The mix of glass type, films, screens, and angle changes day to day. That’s why public health materials keep the message simple: vitamin D comes from outdoor sun, food, and supplements, not closed windows.
Table of common indoor sun setups
The table below shows how typical window setups affect UVB and vitamin D production. That catches many people.
| Indoor setup | UVB at skin level | Vitamin D outcome |
|---|---|---|
| Closed single-pane clear glass | Near zero | Little to none |
| Closed double-pane clear glass | Near zero | Little to none |
| Low-E coated window, closed | Near zero | Little to none |
| Car windshield (laminated), driving | Near zero | Little to none |
| Car side window, sun on arm | Low | Usually none; tanning can still happen |
| Open window with direct sun on skin | High, like outdoors | Can produce vitamin D, burn risk stays |
| Indoor sun behind insect screen | Lower than outdoors | May produce some, varies by mesh and angle |
| Specialty UV-transmitting glass | Low to moderate | May produce some, depends on product specs |
Indoor light, UV lamps, and tanning beds: what they do and don’t do
Most indoor lighting is built for visibility, not UVB. LEDs and standard fluorescent bulbs emit little UVB. Sitting under a bright desk lamp won’t replace sun.
Some lamps are sold as “UV” or “reptile” bulbs. Their UV output varies a lot. Many are built for animal enclosures, not for human use. If a lamp can burn skin, it can also raise skin cancer risk.
Medical UVB is a different category
Dermatology clinics use narrowband UVB for certain skin conditions. It’s delivered with controlled dosing and clinical oversight. It’s not the same as trying to tan indoors.
The NICE guidance on sunlight exposure risks and benefits notes that the UVB that drives vitamin D does not penetrate glass, and it also lays out why chasing UV exposure can carry real harm.
Ways to keep vitamin D steady without chasing sun through glass
Once you accept that closed windows won’t do the job, the problem gets easier. You’re choosing from three buckets: outdoor sun on skin, food, and supplements.
Food sources that actually move the needle
Vitamin D shows up in fatty fish like salmon and sardines, egg yolks, and foods fortified with vitamin D like some milks and cereals. The amounts vary by brand and serving size, so labels matter.
If you eat fish once or twice a week and use fortified foods, you might meet a chunk of your needs without thinking about it. If your diet is low in these foods, a supplement can be the simplest gap-filler.
Supplement basics, without the drama
Vitamin D supplements are sold in micrograms (mcg) and in IU. The NIH Office of Dietary Supplements vitamin D fact sheet lists daily amounts by age. High doses need a doctor’s okay for some people. Too much vitamin D over time can raise blood calcium and cause harm.
The NHS page on vitamin D lists typical daily amounts and warns against long-term high dosing without medical direction.
Table of practical ways to get vitamin D indoors and out
Use the table below to match a vitamin D plan to your schedule and comfort level.
| Option | What you get | Notes |
|---|---|---|
| Short outdoor sun on arms/legs | Skin-made vitamin D | Avoid redness; timing varies by skin tone, season, and latitude |
| Walk at lunch, sleeves rolled | Regular UVB chance | Pairs well with a habit you already have |
| Fatty fish meals | Dietary vitamin D | Also gives protein and omega-3 fats |
| Fortified milk or plant drinks | Steady intake | Check the label; fortification levels differ |
| Fortified cereal or yogurt | Small daily boost | Works best paired with other sources |
| Daily vitamin D supplement | Reliable dose | Stay within label directions unless a clinician sets a plan |
| Blood test and targeted dosing | Personalized plan | Useful if you have symptoms, risk factors, or prior low results |
Quick checks you can do at home
If you still want to know what your window does, start with the basics. Is the window closed? Is there a screen? Is there tint film? Are you more than a foot or two back from the glass? Each “yes” makes UVB less likely.
Some people buy UV meters. Many consumer meters track a broad UV index instead of the narrow UVB band that drives vitamin D. A high reading can still be mostly UVA.
Open window vs closed window
An open window lets UVB pass through, so direct sun can behave like outdoor sun. That can be useful if you can’t step outside. It can also burn you faster than you expect, since you’re still in a sunbeam.
Sun time without a burn
Your goal is to avoid sunburn. Red skin is a sign you overdid it. Short sessions are safer than long baking sessions, and shade still gives some scattered light.
If you use sunscreen, it can cut UVB, yet many people still get some incidental UV exposure during daily life. If you are using outdoor sun as a vitamin D source, keep it modest and stop well before your skin turns pink.
When checking your level makes sense
Vitamin D status is measured with a blood test for 25-hydroxyvitamin D. A test can be useful if you have bone issues, limited sun exposure, darker skin, digestive disorders, or you take medicines that change vitamin D metabolism.
If you already take vitamin D, a test can keep you from overshooting. It can also show if your dose is doing anything at all.
Daily habits that beat the window trick
The window question is a good one, since it sounds like an easy hack. Yet the most reliable routine is plain: get outside when you can, eat a few vitamin D foods each week, and use a sensible supplement if you need one.
If you want a simple rule, treat closed-glass sun the same way you treat bright indoor light. It can lift your mood and warm the room, but it’s not a vitamin D strategy.
References & Sources
- NIH Office of Dietary Supplements.“Vitamin D: Fact Sheet for Consumers.”Explains vitamin D roles, sources, and recommended daily amounts.
- American Academy of Dermatology.“Sunscreen FAQs.”States that UVB rays are blocked by window glass.
- National Health Service (NHS).“Vitamin D.”Lists typical supplement amounts and cautions against excessive long-term dosing.
- National Institute for Health and Care Excellence (NICE).“Sunlight Exposure: Risks and Benefits.”Notes that UVB that drives vitamin D does not penetrate glass and summarizes sun exposure harms.
Mo Maruf
I created WellFizz to bridge the gap between vague wellness advice and actionable solutions. My mission is simple: to decode the research and give you practical tools you can actually use.
Beyond the data, I am a passionate traveler. I believe that stepping away from the screen to explore new environments is essential for mental clarity and physical vitality.