Vitamin D has two forms: vitamin D2 (ergocalciferol) derived from plant-based sources and vitamin D3 (cholecalciferol) found in some fish and meat and produced by your body when exposed to sunlight.