Neurons can be excited and inhibited by filtered signals. The filtering properties of neural networks have a huge impact on memory, learning, and disease. In this paper, the frequency selection of Hodgkin–Huxley (HH) neuron in response to band-pass filtered signals is investigated. It is found that the neuronal filtering property depends on the locking relationship between the band-pass filtered signal’s center frequency and the neuronal natural frequency. The natural firing frequency is a combination of the fundamental component and the various level harmonic components. The response of the neuron to the band-pass filtered signal is related to the amplitude of the harmonic components. Neuron responds better to the low-frequency filtered signals than the high-frequency filtered signals because of the reduction in the harmonic component amplitude. The filtering ability of the neuron can be modulated by the excitation level, and is stronger around the excitation threshold. Our results might provide novel insights into the filtering properties of neural networks and guide the construction of artificial neural networks. • Neurons show a non-linear dependence on the frequency band of the filtered signal. • The response of the neuron to the filtered signal depends on the frequency locking relationship between the neuronal natural firing frequency and the signals’ frequency band. • The response of the neuron to the filtered signal becomes weaker as the harmonic amplitude decreases. • Excitable neurons are excited by the filtered signal, and spontaneous firing neurons are inhibited.