The invention discloses an energy detection method for restraining direct current bias. A sensor node is used for performing sampling on signals of a monitoring channel, sampled signals are obtained, then, difference operation is performed on signals of two adjacent sampling points in the sampled signals, a differential signal of the signals of the two adjacent sampling points in the sampled signals is obtained, then the total energy of all the differential signals is calculated, finally, the total energy of all the differential signals is compared with a judgment threshold, whether a user is authorized with the signals in the monitoring channel to achieve spectrum sensing or not is judged, and the spectrum sensing performance is high. In addition, due to the fact that when the judgment threshold is calculated, only noise power and false alarm probability need to be known, power of the direct current bias does not need to be known, in this way, when the power of the direct current bias is increased, the spectrum sensing performance can not be reduced, but when the power of the direct current bias is larger than one fourth of the noise power, the method has the better spectrum sensing performance compared with an existing energy detection method.