Ergosterin, (af gr. ergo- + stereos fast + lat. -in), et stof, der omdannes til D-vitamin i ultraviolet lys.