The invention relates to the field of detection, and provides a heart rate detection method and device. The heart rate detection method includes the steps of sending infrared light with the wave length being 940nm to a finger to be detected according to the set frequency, receiving infrared light intensity IR values after the infrared light passes through the finger, storing the IR values within the set time, and calculating the number of stored maximal IR values, wherein the number of the maximal IR values is the heart rate P. According to the technical scheme, the heart rate detection method has the advantage of detecting the heart rate in real time.本發明適用於檢測領域,提供一種心率的檢測方法,該方法包括:以設定頻率向待測手指發出波長為940nm紅外光;接收紅外光透射手指後的紅外光強度IR值;存儲設定時間內的IR值,計算存儲的IR的極大值個數,該極大值個數即為心率P。本發明提供的技術方案提供的方法具有即時檢測心率的優點。