Heart rate is calculated as the number of times the heart beats per minute. It usually measures ventricular rate (the number of QRS complexes) but can refer to atrial rate (the number of P waves). The method chosen to calculate HR varies according to rate and regularity on the ECG tracing.