The invention discloses a digital filtering calculation method. The method comprises the following steps: selecting a filtering algorithm parameter constant and an initial value Z0; continuously acquiring sampling value data X1, X2... Xm, and calculating an anti-interference arithmetic mean value Yn; and calculating a residual error rate C=|Yn-Zn-1|/Xup, judging a weight coefficient a according toa difference weight table [Ai, Ci], and calculating a filtering value Zn=a*Yn+(1-a)*Zn-1. The method can effectively deal with the relative contradiction of complex type data to the time sensitivityand estimation smoothness of the filter, and greatly improves the autonomous adaptability of the filtering algorithm to multiple scenes and complex data compared with a conventional simple digital filtering algorithm. Compared with complex digital filtering, few microprocessor resources are occupied, the algorithm is simple, the model is concise, and codes are concise; full-range application, quick response, good anti-interference performance, good smoothness and stable output are realized; and the algorithm is clear, the formula is digital, the method is simple and practical, the program process and codes are easy to realize, and the method has high practical value.