The invention discloses a formula for cultivating fungi. The formula comprises, by weight, 55 g of rice bran, 55 g of wheat bran, 305.1 g of saw dust, 2.5 g of shell ash and 104.6 g of water, whereinthe sum of the content of the rice bran, wheat bran and saw dust is 229.6 g; a method for processing the formula comprises the steps of stirring, adding water, sterilizing and cooling, wherein the method comprises the specific steps of: stirring, adding the rice bran, wheat bran, saw dust and shell ash into a vessel sequentially, and mixing the powder; adding the water after the powder is mixed evenly, and mixing the obtained mixture; sterilizing, adding the obtained mixture into a culture vessel, heating the culture vessel to 85 DEG C for sterilization, heating the culture vessel to 100 DEG Cfor second sterilization, and finally heating the culture vessel to 110 DEG C for sterilization, and finally keeping the temperature for 80 minutes; after the sterilization, cooling the culture vessel to 20 DEG C for cultivation for 18 days. Compared with the prior art, the formula has the advantages that the raw material of the culture medium are cheap, easy to buy and convenient to store, the method for preparing the culture medium is simple, and hypha grows vigorously and has high activity; after the inoculation of the hypha onto a culture material, planting is quick, and the rate of pollution is low.