text: Vitamin D is a group of fat-soluble secosteroids responsible for increasing intestinal absorption of calcium, magnesium, and phosphate, and for many other biological effects. In humans, the most important compounds in this group are vitamin D (cholecalciferol) and vitamin D (ergocalciferol).
  The major natural source of vitamin D is synthesis of cholecalciferol in the lower layers of the epidermis of the skin, through a photochemical reaction with Ultraviolet B (UV-B) radiation from sun exposure or UV-B lamps. Cholecalciferol and ergocalciferol can be ingested from the diet and supplements. Only a few foods, such as the flesh of fatty fish, naturally contain significant amounts of vitamin D. In the U.S. and other countries, cows milk and plant-derived milk substitutes are fortified with vitamin D, as are many breakfast cereals. Mushrooms exposed to ultraviolet light contribute useful amounts of vitamin D. Dietary recommendations typically assume that all of a persons vitamin D is taken by mouth, because sun exposure in the population is variable and recommendations about the amount of sun exposure that is safe are uncertain in view of the associated risks of skin cancer.
  Vitamin D from the diet, or from skin synthesis, is biologically inactive. It is activated by two protein enzyme hydroxylation steps, the first in the liver and the second in the kidneys. Because vitamin D can be synthesized in adequate amounts by most mammals if they get enough sunlight, it is not essential and therefore is technically not a vitamin. Instead it can be considered a hormone, with activation of the vitamin D pro-hormone resulting in the active form, calcitriol, which then produces effects via a nuclear receptor in multiple locations.
  Cholecalciferol is converted in the liver to calcifediol (25-hydroxycholecalciferol); ergocalciferol is converted to 25-hydroxyergocalciferol. These two vitamin D metabolites (called 25-hydroxyvitamin D or 25(OH)D) are measured in serum to determine a person's vitamin D status. Calcifediol is further hydroxylated by the kidneys and some of the immune system cells to form calcitriol (1,25-dihydroxycholecalciferol), the biologically active form of vitamin D. Calcitriol circulates as a hormone in the blood, having a major role regulating the concentration of calcium and phosphate, and promoting the healthy growth and remodeling of bone. Calcitriol also has other effects, including some on cell growth, neuromuscular and immune functions, and reduction of inflammation.
  Vitamin D has a significant role in calcium homeostasis and metabolism. Its discovery was due to effort to find the dietary substance lacking in children with rickets (the childhood form of osteomalacia). Vitamin D supplements are given to treat or to prevent osteomalacia and rickets. The evidence for other health effects of vitamin D supplementation in vitamin D–replete individuals is inconsistent. The effect of vitamin D supplementation on mortality is not clear, with one meta-analysis finding a small decrease in mortality in elderly people. Except for the prevention of rickets and osteomalacia in high-risk groups, any benefit of vitamin D supplements to musculoskeletal or general health may be small.