ECG Heart Rate Variability (HRV) Calculator & Poincaré Plot

📁 Engineering🔒 100% Free & Private⚡ Instant Output

Quantify autonomic nervous system activity from ECG R-R intervals. Calculate time-domain metrics (SDNN, RMSSD, pNN50, Mean HR), frequency indices, and visualize non-linear Poincaré plots with SD1/SD2 ellipse fitting.

Quick Overview & Direct Answer

ECG Heart Rate Variability (HRV) Calculator & Poincaré Plot: Free ECG Heart Rate Variability (HRV) Calculator & Poincaré Plot tool: calculate ECG Heart Rate Variability (HRV) time-domain and non-linear metrics.

Primary Use Structural calculations, fluid dynamics, electrical engineering formulas
Input Formats Engineering variables, voltage, current, resistance, stress limits
Output Format Calculated engineering values, tolerance checks
Processing Mode 100% Client-Side In-Browser Math Engine
Access Tier Free, unlimited, no sign-up needed

ECG R-R Interval Tachogram

Total Beats: 50

Autonomic HRV Metrics

RMSSD (Vagal Tone)
42.5 ms
SDNN (Total Power)
58.2 ms
Mean Heart Rate
71.4 bpm
pNN50 (Successive > 50ms)
18.4%
Poincaré SD1 (Short-term)
30.1 ms
Poincaré SD2 (Long-term)
76.8 ms

1. Physiology of Heart Rate Variability (HRV)

Heart Rate Variability (HRV) refers to the physiological phenomenon of beat-to-beat fluctuations in the time interval between consecutive heartbeats (specifically, the R-wave peak to R-wave peak intervals on an electrocardiogram, known as NN or normal-to-normal intervals). Contrary to intuition, a healthy human heart does not beat with metronomic regularity; rather, subtle millisecond-scale variations reflect dynamic autonomic adjustments mediated by the sinoatrial (SA) node.

HRV is the primary non-invasive clinical biomarker for assessing the balance of the Autonomic Nervous System (ANS):

  • Parasympathetic (Vagal) Branch: Mediated via the vagus nerve releasing acetylcholine ($ACh$), which acts rapidly (within tens of milliseconds) to hyperpolarize pacemaker cells, promoting deceleration. High vagal tone produces substantial beat-to-beat variability and correlates with aerobic fitness, cardiovascular resilience, and effective stress recovery.
  • Sympathetic Branch: Mediated by norepinephrine and epinephrine via $eta_1$-adrenergic receptors, which act with slower second-messenger kinetics (latency of seconds) to accelerate heart rate. Chronic sympathetic dominance suppresses HRV and indicates physical overtraining, systemic inflammation, or psychological burnout.

2. Standard Time-Domain HRV Metrics

Per the landmark 1996 guidelines established by the Task Force of the European Society of Cardiology (ESC) and the North American Society for Pacing and Electrophysiology (NASPE):

A. RMSSD (Root Mean Square of Successive Differences)

RMSSD = √[ (1 / (N - 1)) × ∑ (RR_{i+1} - RR_i)^2 ]

RMSSD is the gold standard time-domain metric for capturing high-frequency, rapid parasympathetic (vagal) activity because consecutive beat differences filter out slower circadian drift.

B. SDNN (Standard Deviation of NN Intervals)

SDNN = √[ (1 / (N - 1)) × ∑ (RR_i - Mean_RR)^2 ]

SDNN reflects the total variability across all periodic physiological mechanisms, including respiratory sinus arrhythmia (RSA), baroreceptor reflexes, thermoregulation, and vasomotor tone. In 24-hour Holter recordings, $ ext{SDNN} < 50 ext{ ms}$ is a potent independent predictor of post-myocardial infarction mortality.

C. pNN50

pNN50 = (Count of |RR_{i+1} - RR_i| > 50 ms) / (N - 1) × 100%

3. Non-Linear Dynamics: The Poincaré Plot

A Poincaré plot is a two-dimensional phase-space reconstruction where each R-R interval $RR_i$ is plotted against the subsequent interval $RR_{i+1}$. Points typically form an elongated ellipse along the identity line ($y = x$):

  • Transverse Axis ($SD_1$): Measures dispersion perpendicular to the line of identity ($RR_{i+1} = RR_i$), reflecting instantaneous short-term parasympathetic beat-to-beat variability:
    SD₁ = √[ 0.5 × RMSSD² ] = RMSSD / √2
  • Longitudinal Axis ($SD_2$): Measures dispersion along the line of identity, reflecting continuous long-term autonomic variability:
    SD₂ = √[ 2 × SDNN² - 0.5 × RMSSD² ]
  • $SD_1 / SD_2$ Ratio: Quantifies the relationship between short- and long-term autonomic modulation.

4. Reference Normative Standards

Cohort / State Typical RMSSD Typical SDNN Poincaré Morphology
Healthy Young Adult 35 – 65 ms 50 – 80 ms Comet-shaped wide ellipse.
Elite Endurance Athlete > 80 ms > 100 ms Broad, expansive fan with resting sinus bradycardia.
Acute Sympathetic Stress < 20 ms < 35 ms Tightly clustered compact torpedo.
Atrial Fibrillation (AF) > 120 ms (pathologic) > 130 ms Chaotic fan shape lacking distinct central cluster.

5. Frequency-Domain Spectral Analysis of HRV

While time-domain metrics quantify overall dispersion, frequency-domain analysis decomposes the heart rate tachogram into underlying oscillatory frequency bands using Fast Fourier Transform (FFT) or autoregressive (AR) spectral estimation:

  • High Frequency (HF: 0.15 – 0.40 Hz): Synchronized with the respiratory cycle (known as Respiratory Sinus Arrhythmia, RSA). Vagal efferent activity modulates SA nodal firing at the breathing frequency (9 to 24 breaths/minute). High HF power signifies strong parasympathetic cardiorespiratory coupling.
  • Low Frequency (LF: 0.04 – 0.15 Hz): Reflects baroreceptor reflex loops and vasomotor Mayer waves (~10-second blood pressure oscillation period). Historically interpreted as sympathetic activity, contemporary consensus recognizes LF as a complex mixture of sympathetic and vagal modulation.
  • Very Low Frequency (VLF: 0.0033 – 0.04 Hz): Driven by thermoregulatory mechanisms, peripheral vascular resistance oscillations, and the renin-angiotensin-aldosterone system (RAAS). Extremely low VLF is a strong predictor of arrhythmic mortality in congestive heart failure.
  • LF / HF Ratio: Frequently utilized as an index of sympathovagal balance, where values above 2.0 indicate sympathetic dominance (stress, exertion), while values around 0.5 to 1.5 reflect healthy resting parasympathetic predominance.

6. Step-by-Step Worked Arithmetic Calculation Example

To understand how time-domain metrics are computed, consider a sample sequence of 6 consecutive R-R intervals measured in milliseconds:

RR = [820, 860, 830, 890, 850, 810] ms (N = 6 beats)

Step 1: Calculate Mean NN and Mean Heart Rate:

Mean NN = (820 + 860 + 830 + 890 + 850 + 810) / 6 = 5060 / 6 = 843.33 ms
Mean HR = 60,000 / 843.33 = 71.15 bpm

Step 2: Calculate SDNN (Standard Deviation of NN):

Deviations: [-23.33, +16.67, -13.33, +46.67, +6.67, -33.33] ms
Squared Deviations: [544.4, 277.8, 177.8, 2177.8, 44.4, 1111.1]
Sum of Squares = 4333.33
Variance = 4333.33 / (6 - 1) = 866.67 ms²
SDNN = √(866.67) = 29.44 ms

Step 3: Calculate Successive Differences & RMSSD:

ΔRR = [860-820, 830-860, 890-830, 850-890, 810-850] = [+40, -30, +60, -40, -40] ms
Squared Differences: [1600, 900, 3600, 1600, 1600]
Sum of Squared Differences = 9300 ms²
Mean Square = 9300 / (6 - 1) = 1860 ms²
RMSSD = √(1860) = 43.13 ms

Step 4: Calculate pNN50:
Only one successive difference exceeds 50 ms ($|+60text{ ms}| > 50text{ ms}$).
$text{pNN50} = (1 / 5) times 100% = 20.0%$.

7. Clinical and Athletic Applications of HRV Tracking

  • Athletic Training Periodization: Wearable sensors (chest straps and optical PPG rings) track waking RMSSD. A suppressed 7-day rolling RMSSD indicates autonomic fatigue or central overreaching, guiding coaches to prescribe active recovery instead of high-intensity intervals.
  • Cardiovascular Risk Stratification: In post-infarct patients, depressed HRV ($text{SDNN} < 50text{ ms}$) reflects impaired vagal reflexes and elevated sympathetic activity, predicting sustained ventricular arrhythmias and sudden cardiac death.
  • Autonomic Neuropathy Screening: In chronic diabetic patients, vagal nerve fiber demyelination manifests as profound loss of respiratory sinus arrhythmia, serving as an early indicator of diabetic cardiovascular autonomic neuropathy (CAN).

8. Practical Artifact Removal, Ectopic Filtering & Data Preprocessing

Raw electrocardiographic tachograms collected outside shielded laboratory environments are frequently contaminated by motion artifacts, baseline wander from respiration, electromyographic (EMG) muscle noise, and ectopic cardiac beats (Premature Ventricular Contractions / PVCs and Premature Atrial Contractions / PACs). Because a single ectopic beat or missing R-peak can artifactually double the successive difference $(RR_{i+1} - RR_i)$, improper filtering artificially inflates RMSSD and distorts Poincaré geometry.

Standardized physiological signal processing protocols (such as PhysioNet guidelines and the Task Force standards) apply a multi-stage validation pipeline:

  • Physiological Range Verification: Any interval outside physiologically plausible human cardiac limits (typically $300text{ ms} le RR le 2000text{ ms}$, corresponding to 30 to 200 bpm) is flagged as unphysiological and removed.
  • Relative Moving-Median Filtering: Consecutive beats differing by more than $20%$ from the local 5-beat running median are identified as ectopic or arrhythmic anomalies.
  • Spline Interpolation Replacement: Rather than simply deleting corrupted intervals—which would disrupt continuous phase alignment in frequency-domain Fourier transforms—flagged beats are replaced using cubic spline interpolation or piecewise cubic Hermite interpolating polynomials (PCHIP) to reconstruct the underlying sinus rhythm tachogram.

Frequently Asked Questions

RMSSD (Root Mean Square of Successive Differences) primarily reflects short-term parasympathetic (vagal) modulation of heart rate. It is heavily utilized in sports physiology to evaluate autonomic nervous system recovery and fatigue.

SDNN (Standard Deviation of NN intervals) reflects total heart rate variability across both sympathetic and parasympathetic influences. In clinical cardiology, a 24-hour SDNN below 50 ms indicates compromised autonomic control and increased post-myocardial infarction mortality risk.

A Poincaré plot plots each R-R interval against the subsequent interval (RR_n vs RR_n+1). The transverse standard deviation SD1 reflects instantaneous short-term parasympathetic beat-to-beat variability, while longitudinal SD2 measures continuous sympathetic and vagal tone.

Healthy adult resting RMSSD typically ranges between 25 ms and 70 ms, though values vary significantly with age, cardiorespiratory fitness, sleep quality, and physiological stress.