The invention discloses a method for producing carotenoid through fermentation. The method comprises the following steps: by taking yellow peach cannery trimmings as a main raw material, carrying out microwave fixation, frozen-breaking and biological enzymolysis to obtain fruit juice with relatively high carotenoid content, adjusting components to obtain a fermentation medium, inoculating oceanic red yeast producing the carotenoid with high yield into the fermentation medium, carrying out fractional inoculation and temperature shift fermentation so that maximization of proliferation of oceanic red yeast is realized, carrying out ultrahigh pressure homogenization, vacuum centrifugation and demulsification separation on fermentation broth to obtain emulsion, and extracting, separating and purifying the emulsion to obtain the carotenoid finished product, wherein the cell biomass of the fermentation broth is 38-52g/L, and the yield of the carotenoid is 47-61mg/L. The preparation method is simple, short in period, high in efficiency, energy-saving and environment-friendly, the whole course adopts a low temperature biologic processing technology, the production cost is reduced, the hidden environmental pollution danger is eliminated, and a solid foundation is laid for sustainable development of the technical field of deep processing of yellow peaches, so that the method disclosed by the invention has positive economic and social development significance.