There are three ways to get vitamin D:

sunlight

Sunlight

food

Food

supplements

Supplements

Because of the risk of skin cancer and the use of sunscreen, which limits your body’s ability to make the vitamin, most people rely on food and supplements to get their vitamin D. And since it is difficult getting all your vitamin D from food alone, many people may need to take supplements.

§Source: National Institutes of Health.