The invention belongs to the technical field of formulas of edible-medicinal foods and new resource foods, and particularly provides a medical formula food, a specific medical formula food or a non-specific medical formula food for patients suffering insomnia. The formula is prepared according to the requirements of the <General Rules for Formula Foods for Special Medical Purposes>, and combines the physical characteristics of patients suffering insomnia. The formula food provided by the invention is prepared by reasonably mixing various 'edible-medicinal' traditional Chinese medicines according to the quintessence theory of traditional Chinese doctors, and is prepared by mixing essences which are extracted from various edible-medicinal traditional Chinese medicines by adopting a prehydrolysis SBE technique, various micro-encapsulated probiotics, short peptides extracted from biological enzymolysis, prebiotics, an amino acid, carbohydrate, grease with a healthy keeping function, various vitamins and mineral substances. The formula food can be used as a single nutrient source meeting the nutrient demands of patients suffering insomnia, and has the efficacies of soothing nerves, assisting sleep, benefiting qi, nourishing blood, nourishing yin to lessen fire, calming livers to lessen fire, nourishing hearts and livers, and preventing and curing insomnia.