The main source of vitamin D comes from exposure to the sun's UVB rays.
Vitamin D rich foods include certain types of fatty fish, such as herring, mackerel, salmon, tuna, and sardines. Egg yolks, cheese, and beef liver provide smaller amounts of vitamin D. Mushrooms provide some vitamin D, with mushrooms that have been exposed to ultraviolet light being higher in vitamin D.
Although there are few foods that naturally contain vitamin D, many common foods are often fortified with vitamin D such as milk, breakfast cereals, soy milk, rice milk, yogurt, orange, and margarine.
Vitamin D supplements are also available as capsules, gummies, liquid, or chewable tablets.