The invention discloses a special diet edible food formula for improving sperm quality of males and a preparation method of the formula and belongs to the field of special diet edible food. Whey protein, sea cucumber polypeptide, oyster polypeptide, bone collagen peptide, soybean peptide, corn oligopeptide, wheat oligopeptide and casein phosphopeptides are used as basic raw materials, edible and medicinal raw materials including raspberries, fructus lycii, cortex cinnamomi and the like are added, wall-broken piney flower powder, spirulina platensis powder, a roxburgh rose extract, a maca extract, cordyceps militaris and fructooligosaccharide are matched, so that the special diet edible food is formed. The formula product is formed through steps of raw material pretreatment (cleaning, enzymolysis, extraction and the like), crushing, sieving, mixing and the like. The formula components are all food materials, and the prepared product has functions of increasing sperm density, increasingsperm motility rate, reducing sperm aberration rate and improving immunity and fatigue resistance. The product has high safety, has no toxic or side effects, has low fishy smell and bitterness and canbe eaten for a long term.