HRV calculator: RMSSD, SDNN, spectrum and DFA α1 from RR intervals

Paste the beat-to-beat (RR) intervals from a chest strap or app, or open an exported file. You get RMSSD, SDNN and pNN50, a Poincaré plot, the histogram measures, the spectrum (LF, HF and LF/HF), DFA α1 and entropy.

One per line, or separated by commas, spaces or tabs. Milliseconds or seconds; a header line is fine.

Read here in your browser, never uploaded.

Your intervals are read and worked out in this browser. Nothing is uploaded or saved. Privacy

How to use it

  1. Export the RR intervals from your recording app. Most strap apps can: Polar Sensor Logger, Elite HRV and HRV Logger save a CSV or TXT file, and Kubios exports a text file of intervals.
  2. Paste the numbers into the box, or open the file. A header line, a time column and notes after the numbers are fine.
  3. Press Calculate HRV. Check the line under the result: it says which column was read and whether the values were taken as milliseconds or seconds. If that is wrong, pick the unit yourself and calculate again.

Formats it reads

  • A plain list, one interval per line or separated by commas, spaces or tabs.
  • A table split by commas, semicolons or tabs. The RR column is found by a header such as RR, RRI, rr_ms, RR-interval [ms], IBI or interval. Without a header it takes the one column whose values look like heartbeat intervals and do not keep rising, so a time column is never read as intervals.
  • Milliseconds or seconds. A unit in the header, such as [ms] or (s), is used; otherwise values under 10 are read as seconds. Decimal commas (0,812) work too.
  • Up to 50,000 intervals, about 14 hours at 60 beats a minute, from a file of up to 5 MB.

What the numbers mean

Before anything is worked out, the calculator applies its own rule: intervals outside 300 to 2000 ms, and intervals more than 25% away from the median of their neighbours, are removed as artifacts: missed or extra beats, not real changes. Differences are never taken across a removed beat. The result lists every removed beat and marks it on the tachogram. Other software, and the demo on the artifact glossary page, use other rules and can flag different beats.

RMSSD
How much each interval differs from the next, in milliseconds. At rest it mostly reflects the calming (parasympathetic) side of the nervous system. It is the number most apps show as HRV.
lnRMSSD
The natural log of RMSSD, which spreads low values out and is easier to average over weeks.
SDNN
The standard deviation of all the clean intervals: overall variability, fast and slow together.
pNN50
The share of neighbouring intervals that differ by more than 50 ms.
SD1 and SD2
The width and length of the cloud in the Poincaré plot. SD1 is RMSSD divided by √2, so it carries the same information. SD2 is worked out from SDNN and SD1, as √(2 × SDNN² − SD1²) (Brennan and colleagues, 2001).
Baevsky stress index
How tightly the intervals bunch together. It is shown only for at least 2 minutes of beats, because the histogram behind it needs a long series.
HRV triangular index and TINN
Two numbers read off the histogram of intervals in 7.8125 ms bins: the number of intervals divided by the height of the fullest bin, and the base width of the triangle that fits the histogram best. Both grow with variability and are meant for recordings of 5 minutes to 24 hours.
LF, HF, VLF and ULF power
The variability split by how fast it cycles: HF (0.15–0.4 Hz) follows breathing, LF (0.04–0.15 Hz) mixes blood-pressure rhythms with slow breathing, VLF (0.003–0.04 Hz) and ULF (below 0.003 Hz) are slower still. Each is the area under the spectrum in its band, in ms². The spectrum is made with Welch's method on the intervals resampled at 4 Hz and detrended with smoothness priors. In a 5-minute recording VLF is mostly slow drift; the Task Force advises against reading it from recordings that short.
LF nu, HF nu and LF/HF
LF and HF as shares of their sum (normalised units), and their ratio. They describe the balance between the two bands, not the balance between the two branches of the nervous system.
DFA α1 and α2
Detrended fluctuation analysis: how the ups and downs of the intervals grow with the window you look at, over 4–16 beats (α1) and 16–64 beats (α2). Near 1 the beats have memory at every scale; near 0.5 they behave like noise. Resting recordings usually give an α1 of about 1 or higher, though a strong, regular breathing rhythm can pull it down. Exercise moves it from about 1 at easy effort towards 0.5 at hard effort; the 0.75 threshold some apps use applies only during a ramp test.
Sample and approximate entropy
How unpredictable the rhythm is: whether runs of two beats that look alike are followed by a third that also matches. Higher means less regular. Sample entropy is the newer, less biased version.

All HRV parameters

Which measures need which recording length?

Panels whose minimum is not met say so instead of showing a number. The minimums the calculator uses: HF 1 minute, LF 2 minutes, VLF 5 minutes, ULF 24 hours; histogram measures 5 minutes; DFA α1 64 beats, α2 20 minutes; sample and approximate entropy 200 beats.

How long should I record for RMSSD and SDNN?

The Task Force standard is a 5-minute recording at rest. RMSSD settles within a minute or two; SDNN keeps growing as the recording gets longer, so SDNN values from recordings of different lengths should not be compared.

Why does HF need 1 minute, LF 2 minutes and VLF 5 minutes?

A rhythm has to repeat several times before a spectrum can measure it. HF cycles every 3 to 7 seconds, LF every 7 to 25 seconds and VLF every 25 seconds to 5 minutes. The Task Force asks for about 1 minute for HF, 2 minutes for LF and 5 minutes for VLF; ULF, below 0.003 Hz, needs a 24-hour recording.

Why do the histogram measures need 5 minutes?

The triangular index and TINN count intervals in 7.8 ms bins, and a short recording leaves most bins nearly empty, so the fullest bin and the fitted triangle are unstable. The calculator shows them from 5 minutes; the Task Force prefers at least 20 minutes and ideally 24 hours.

Why does DFA α2 need 20 minutes, and the entropies 200 beats?

α2 is a slope fitted over boxes of 16 to 64 beats, and the fit needs many boxes of the largest size. Sample and approximate entropy count matching runs of beats; below about 200 beats too few pairs match for the count to mean much. α1, over boxes of 4 to 16 beats, works from 64 beats.

What changes the numbers apart from length?

Posture, breathing rate and depth, talking, caffeine, the time of day and any missed or extra beats. Compare like with like: the same length, position and time of day, with artifacts removed.

Recording length and conditions change the numbers

HRV measures depend on how long you recorded and on what you were doing. The 1996 Task Force standard sets 5 minutes as the short-term recording and warns that SDNN from recordings of different lengths should not be compared, because SDNN grows as a recording gets longer. RMSSD is steadier over short recordings, but posture, breathing, talking, coffee and the time of day all move it.

So compare like with like: the same length, the same position and the same time of day. For a fair comparison with published data, use a 5-minute resting recording, then check the RMSSD in the HRV checker. To record one, use the chest-strap HRV test.

Sources

  • Task Force of the European Society of Cardiology and the North American Society of Pacing and Electrophysiology. Heart rate variability: standards of measurement, physiological interpretation and clinical use. Circulation 1996;93(5):1043–1065. doi:10.1161/01.CIR.93.5.1043
  • Brennan M, Palaniswami M, Kamen P. Do existing measures of Poincaré plot geometry reflect nonlinear features of heart rate variability? IEEE Transactions on Biomedical Engineering 2001;48(11):1342–1347. doi:10.1109/10.959330
  • Tarvainen MP, Ranta-aho PO, Karjalainen PA. An advanced detrending method with application to HRV analysis. IEEE Transactions on Biomedical Engineering 2002;49(2):172–175. doi:10.1109/10.979357
  • Peng CK, Havlin S, Stanley HE, Goldberger AL. Quantification of scaling exponents and crossover phenomena in nonstationary heartbeat time series. Chaos 1995;5(1):82–87. doi:10.1063/1.166141
  • Richman JS, Moorman JR. Physiological time-series analysis using approximate entropy and sample entropy. American Journal of Physiology-Heart and Circulatory Physiology 2000;278(6):H2039–H2049. doi:10.1152/ajpheart.2000.278.6.H2039
  • Pincus SM. Approximate entropy as a measure of system complexity. Proceedings of the National Academy of Sciences 1991;88(6):2297–2301. doi:10.1073/pnas.88.6.2297