Vitamin D is a group of structurally related, fat-soluble compounds responsible for increasing intestinal absorption of calcium and phosphate, along with numerous other biological functions. In humans, the most important compounds within this group are vitamin D3 (cholecalciferol) and vitamin D2 (ergocalciferol).
Unlike the other twelve vitamins, vitamin D is only conditionally essential, as with adequate skin exposure to the ultraviolet B (UVB) radiation component of sunlight there is synthesis of cholecalciferol in the lower layers of the skin's epidermis. Vitamin D can also be obtained through diet, food fortification and dietary supplements. For most people, skin synthesis contributes more than dietary sources. In the U.S., cow's milk and plant-based milk substitutes are fortified with vitamin D3, as are many breakfast cereals. Government dietary recommendations typically assume that all of a person's vitamin D is taken by mouth, given the potential for insufficient sunlight exposure due to urban living, cultural choices for the amount of clothing worn when outdoors, and use of sunscreen because of concerns about safe levels of sunlight exposure, including the risk of skin cancer.