The invention discloses a preparation method for a self-support ferrocobalt phosphide nanosphere electrocatalyst, and relates to the preparation method of the electrocatalyst. The preparation method comprises the steps that firstly, commercial cobalt chloride hexahydrate, ferric trichloride hexahydrate, ammonium fluoride and urea are weighed, a nickel net is adopted, then the weighed reagents aremixed and stirred to obtain a mixed reagent, a reaction is conducted for some time in a reaction kettle, and a precursor is obtained; the obtained precursor is calcined in a tube furnace, and CoFeP isobtained. The preparation method is low in cost, the preparation technology is simple, ferrocobalt phosphide nanospheres have the larger specific surface areas, and more active sites are exposed. When the molar ratio of an iron source to a cobalt source is 1:2, the reaction is conducted for 10 hours in a drying oven, the ferrocobalt phosphide nanospheres have good stability and good catalytic activity, no other adhesive agents are needed, and electron transmission is increased. The preparation method is applied to the field of fossil fuel.