The invention provides an insecticide formulation and a preparation method thereof. In order to overcome the deficiency that the prior insecticide is short in shelf life, loses efficacy immediately once the insecticide becomes damp, is not ideal in killing result, and the like, the invention discloses a solution as follows: the insecticide formulation comprises the following components: 900 to 1,200 grams of boric acid, 1,800 to 2,500 grams of sugar, 450 to 550 grams of xanthan gum, 0.9 to 1.1 liters of glycerol and 35 to 45 liters of water. The insecticide preparation method comprises the following steps: (1) according to the mixing weight ratio of the insecticide formulation, taking 900 to 1,200 grams of boric acid, 1,800 to 2,500 grams of sugar, 450 to 550 grams of xanthan gum, putting the materials into a container, mixing well and obtaining mixed powder; (2) adding 35 to 45 liters of water and then fermenting for more than 24 hours; and (3) adding 0.9 to 1.1 liters of glycerol and placing the obtained product at normal temperature for more than 12 hours. The insecticide has of the characteristics of according with related national standards, along with low toxicity, high efficiency, no pollution, low price and convenient use, stable properties and other characteristics. In addition, the insecticide is simple in preparation method, definite in efficacy and long in shelf life, and is proved to have special effects of killing cockroaches, ants, centipedes and the like through more than one year of test and trial.