Continuous-wave doppler radar, which has the advantages of simple structure, low cost, and low power consumption, has attracted extensive attention in the detection of human vital signs. However, while respiration and heartbeat signals are mixed in the echo phase, the amplitude difference between the two signals is so large that it becomes difficult to measure the heartrate (HR) from the interference of respiration stably and accurately. In this paper, the difference quadratic sum demodulation method is proposed. According to the mixed characteristics of respiration and heartbeat after demodulation, the heartbeat features can be extracted with the help of the easy-to-detect breathing signal; combined with the constrained nearest neighbor search algorithm, it can realize sleeping HR monitoring overnight without body movements restraint. Considering the differences in vital-sign characteristics of different individuals and the irregularity of sleep movements, 54 h of sleep data for nine nights were collected from three subjects, and then compared with ECG-based HR reference equipment. After excluding the periods of body turning over, the HR error was within 10% for more than 70% of the time. Experiments confirmed that this method, as a tool for long-term HR monitoring, can play an important role in sleeping monitoring, smart elderly care, and smart homes.