Since a lead acetate solution can remove most of the ultraviolet (UV) light in the range below 275 nm which usually gives undesirable by-products in the photochemical conversion of ergosterol to vitamin D, it is useful as a filter solution for the reaction to obtain higher yield of vitamin D. When a 5% lead acetate solution was used as the filter, the yield of vitamin D was 20-25% higher than that without using filter solution.