Sun
The theoretical case is airtight and the observed data contradicts it. Resolving that requires looking at how people actually apply sunscreen rather than how the label assumes they do.
Sunscreen works by absorbing or scattering ultraviolet before it reaches the epidermis. Vitamin D synthesis requires ultraviolet reaching the epidermis. The conflict is genuine, and it has generated a durable strand of advice suggesting people skip sunscreen to protect their vitamin D status.
That advice is built on a misreading of the evidence.
Sun protection factor is defined against erythema, and because the erythema action spectrum is dominated by UVB, SPF is effectively a UVB metric. An SPF 30 product applied at the standardised laboratory rate of 2 milligrams per square centimetre transmits about 3.3 percent of incident UVB. SPF 50 transmits about 2 percent.
Since vitamin D synthesis depends on the same waveband, the prediction follows directly: correctly applied SPF 30 should reduce synthesis by around 97 percent. Early experimental work supported this. Studies in the 1980s applying sunscreen under controlled conditions showed near-complete suppression of the serum response.
Population and field studies have consistently failed to reproduce that effect. Cohorts of regular sunscreen users show vitamin D status that is comparable to, and in several studies higher than, that of non-users. A randomised trial conducted during a week-long sun holiday in Tenerife found that participants using high-SPF sunscreen with good application technique still showed a substantial rise in serum 25-hydroxyvitamin D across the week.
Systematic reviews of the question have concluded that ordinary sunscreen use has minimal measurable effect on vitamin D status in real populations.
Four factors close the gap.
Application quantity. The laboratory rate of 2 mg/cm² corresponds to roughly 30 millilitres — a shot glass — for a full adult body. Observational studies consistently find real-world application between 0.5 and 1.0 mg/cm², a quarter to a half of the tested rate. Because protection scales non-linearly with thickness, applying half the quantity of an SPF 30 product yields effective protection nearer SPF 5 or 6, transmitting fifteen to twenty percent of incident UVB rather than three.
Coverage gaps. Field studies of application patterns find that people routinely miss ears, the back of the neck, the tops of the feet, the hairline and the backs of the knees. Unprotected skin continues to synthesise at full rate.
Reapplication intervals. Sunscreen degrades under UV and is removed by sweat, water and abrasion. The recommended two-hour reapplication is widely ignored, so effective protection declines across the exposure.
The saturation ceiling. This one is often overlooked and may matter most. Vitamin D synthesis plateaus well below the erythemal threshold. A person spending three hours outdoors with imperfectly applied sunscreen may still receive, through the gaps and the degraded film, enough UVB to reach the synthesis plateau — while the sunscreen successfully prevents the burn that the unprotected version would have produced.
The reason sunscreen does not measurably reduce vitamin D status is not that it fails to block UVB. It is that vitamin D synthesis needs far less UVB than a sunburn does, and typical application leaks more than enough to cover the difference.
Set the two hazards side by side. Vitamin D insufficiency is real, common, and correctable through diet and supplementation — routes that are inexpensive, safe within reasonable dosing, and independent of weather, season and latitude.
Ultraviolet-induced DNA damage is cumulative and not correctable. Melanoma is the most lethal common skin cancer, and its incidence has risen substantially across recent decades in lightly pigmented populations.
Trading a measurable increase in irreversible cancer risk for a marginal improvement in a deficiency that has a pill for it is not a favourable exchange.
Treat the two objectives as separable rather than opposed, because they are.
For vitamin D, take short deliberate exposures at high solar elevation with substantial skin area uncovered and no sunscreen — on the order of ten to twenty minutes for lighter skin types, longer for darker, and always below the personal burn threshold. Then stop. The plateau means additional time adds nothing.
For everything longer than that — a full day hiking, a beach afternoon, any sustained outdoor session — apply sunscreen properly and reapply it. That exposure was never going to add meaningful vitamin D anyway, because you passed the saturation point in the first twenty minutes.
The strategy is not sunscreen versus vitamin D. It is a short unprotected window near solar noon for synthesis, and protection for the remaining hours, which contribute damage without contributing vitamin D.
The vitamin D calculator reports both numbers at once: the synthesis estimate for a given exposure and the burn threshold for your skin type, which is exactly where the unprotected window should close.