Vitamin D From Sun vs Food: What Differs, What Doesn't
The two routes converge faster than most people expect. Skin makes vitamin D3; food delivers D3 or D2; and neither is active until the liver and then the kidney have each added a hydroxyl group. What genuinely separates them is not the molecule — it is how reliably each route supplies you, and what each one costs.
Estimated sun exposure (arms and legs uncovered, no sunscreen)
5–15minutes
An estimate, not a prescription — the UVB that makes vitamin D peaks in the same midday hours that burn skin, so there is no window that gives you one without the other. US guidance is to get vitamin D from food and supplements.
How we got this number
Baseline from the Sociedade Brasileira de Dermatologia (Brazilian Society of Dermatology): 5 to 15 minutes for most people. This is an approximation — not an individual prescription.
The chemistry, in two paragraphs
Ultraviolet B striking the skin converts 7-dehydrocholesterol, a cholesterol precursor sitting in the epidermis, into previtamin D3, which becomes vitamin D3 — cholecalciferol. That is the entire contribution of sunlight: it makes one molecule, and it makes it in one place.
Dietary vitamin D, being fat-soluble, is absorbed alongside other dietary fats in the small intestine. From there the two sources are indistinguishable. The Institute of Medicine describes vitamin D in either form as biologically inactive until two enzymatic hydroxylations occur, the first in the liver, producing 25-hydroxyvitamin D — the compound your blood test measures, whether it originated on a beach or in a capsule.
D2 and D3 are not a sun-versus-food split
A common misreading treats D2 as the “plant” version and D3 as the “sun” version. The real division is different. D3 is what skin synthesizes and what animal foods contain: fatty fish, fish liver oil, egg yolk. D2, ergocalciferol, is largely human-made and added to foods, and occurs naturally in mushrooms exposed to ultraviolet light.
Both are commercially synthesized and both appear in supplements and fortified foods. Product labels surveyed by the Institute of Medicine mostly showed D3 as the added form, though some milk substitutes are fortified with D2. On the measure that matters clinically — potency for curing vitamin D-deficiency rickets — the IOM reports the two as the same.
Why unfortified food was never going to be enough
Here is the asymmetry that decides the practical question. Naturally occurring vitamin D exists in a very short list of foods, and not in large amounts outside fatty fish. Salmon, the richest common source, carries above 13 micrograms per 100 grams — around 520 IU in a 3.5-ounce portion, so a single serving nearly covers a day’s 600 IU. Beef liver, cheese and egg yolks contribute small amounts, and everything else contributes essentially none.
Fortification is what closes the gap. Most US fluid milk carries about 400 IU per quart, and cereals, juices, spreads and cheeses are fortified in the 40 to 100 IU per serving range. That engineering, not the natural food supply, is why “get it from your diet” is realistic advice in the United States.
Salmon happens to be the overlap point of two nutrient stories — it is also the leading source of EPA and DHA among common foods, which is a reasonable argument for putting it on the menu twice a week regardless of which nutrient you came for.
Which route the guidance actually recommends
Given equivalent chemistry, the choice comes down to side effects, and that is where the two routes stop being equivalent. The American Academy of Dermatology recommends healthy adults obtain adequate vitamin D from a diet including naturally rich and fortified foods, describing that as the way to get the vitamin without increasing skin cancer risk. MedlinePlus adds that exposure for more than a few minutes without sunscreen is not recommended.
Sun exposure remains a real physiological source, and for many people a substantial one in summer. It is simply not the one the guidance asks you to engineer deliberately — see how much sun for vitamin D a day for why no minutes figure exists, and does sunscreen block vitamin D for the trade-off people most often get backwards.
This content is informational and does not replace medical or dietetic advice. Supplement dosing should follow a 25-hydroxyvitamin D blood test, not a guess about sun and diet.
Frequently asked questions
Is vitamin D from the sun the same as vitamin D from food?
After activation, yes. The skin makes D3 from 7-dehydrocholesterol; food and supplements supply D3 or D2. Both forms are biologically inactive until two hydroxylation steps, in the liver and then the kidney, produce the active hormone.
What is the difference between D2 and D3?
D3, cholecalciferol, is what skin synthesizes and what animal foods contain. D2, ergocalciferol, is largely human-made and added to foods, and also occurs in UV-exposed mushrooms. The Institute of Medicine notes their potency for curing rickets is the same.
Can diet alone cover vitamin D?
Only with fortified food or supplements in the mix. Naturally occurring sources are few — fatty fish, fish liver oil and egg yolk — which is why fluid milk in the US is fortified at about 100 IU per serving and cereals, juices and spreads at 40 to 100 IU.
Which food has the most vitamin D?
Fatty fish, and salmon in particular. The National Academies seafood report names it the fish with the highest concentration, above 13 micrograms per 100 grams — roughly 520 IU in a 3.5-ounce portion.
Sources
- Overview of Vitamin D — Dietary Reference Intakes for Calcium and Vitamin D, Institute of Medicine, 2011 (NCBI Bookshelf NBK56061)
- Vitamin D — MedlinePlus health topic (National Library of Medicine)
- Sunscreen FAQs — American Academy of Dermatology
Written by Lucas Silva · Reviewed by Lucas Silva · Updated on August 17, 2026