Pan-Tompkins QRS Detection
Pan-Tompkins QRS Detection Algorithm · Also known as: QRS detection, R-peak detection, Heartbeat detection
The Pan-Tompkins algorithm is a real-time QRS detection method for electrocardiograms (ECGs) that identifies the R-peaks (ventricular depolarization) and QRS complexes from continuous cardiac waveforms. Published by Jiapu Pan and Willis Tompkins in 1985, it remains a standard reference for ECG processing and is widely implemented in clinical monitoring systems.
Read the full method
Sign in with a free account to read this section.
Method map
The neighbourhood of related methods — select a node to explore.
When to use it
Use Pan-Tompkins when you need robust, real-time QRS detection from ECG signals in clinical or research settings. It is effective on standard 12-lead or single-lead ECGs, especially in controlled environments with moderate noise. Assumptions include ECG lead quality, sampling rate sufficient for QRS resolution (>200 Hz), and relatively regular rhythms. For heavily arrhythmic signals or with severe baseline wander, adaptive variants may be necessary.
Strengths & limitations
- Computationally efficient for real-time implementation
- Robust to baseline drift and noise within the typical ECG frequency range
- Does not require training data; uses statistical adaptation
- High sensitivity (>99%) and specificity on standard ECGs
- Performance degrades with severe ectopic beats or arrhythmias
- Sensitive to high-frequency noise (e.g., muscle artifact) if not properly filtered
- May double-detect T-waves or other high-amplitude features with high heart rates
- Bandpass filter parameters are fixed; poor generalization across highly variable signal morphologies
Frequently asked
What is the difference between QRS detection and ECG interpretation?
QRS detection identifies the timing of ventricular depolarization (R-peaks); ECG interpretation assigns diagnoses (MI, arrhythmia, etc.) based on waveform morphology and timing. Detection is a prerequisite for interpretation.
Can the Pan-Tompkins algorithm handle atrial fibrillation?
It can identify R-peaks in atrial fibrillation, but irregular RR intervals and baseline variations may reduce sensitivity. Adaptive thresholds help; specialized arrhythmia detection may be needed for diagnosis.
What sampling rate is needed for accurate QRS detection?
At least 200 Hz is recommended for proper resolution of the QRS complex (which typically lasts 80–120 ms). Higher rates (250–1000 Hz) provide better noise rejection and morphology detail.
Sources
- Pan, J., & Tompkins, W. J. (1985). A real-time QRS detection algorithm. IEEE Transactions on Biomedical Engineering, BME-32(3), 230-236. DOI: 10.1109/TBME.1985.325532 ↗
- Clifford, G. D., Azuaje, F., & McSharry, P. E. (2006). ECG statistics, noise, artifacts, and missing data. Advanced Methods and Tools for ECG Data Analysis, 1, 1-41. link ↗
How to cite this page
ScholarGate. (2026, June 3). Pan-Tompkins QRS Detection Algorithm. ScholarGate. https://scholargate.app/en/biomechanics/pan-tompkins-qrs-detection
Which method?
Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.
- Heart Rate VariabilityBiomechanics↔ compare
- PhotoplethysmographyBiomechanics↔ compare
- Windkessel ModelBiomechanics↔ compare