How do you calculate root mean square?
Square every value, add the squares, divide by the number of values, and take the square root. The result is expressed in the original unit because the final square root reverses the squared unit.
Calculating...
Enter samples or a sine-wave amplitude to calculate RMS.
A root mean square calculator measures the effective magnitude of numbers that may vary in sign or over time. RMS first squares every value, finds the arithmetic mean of those squares, and takes the square root. The result is nonnegative and uses the same unit as the original observations.
RMS is also called the quadratic mean. It is useful when an ordinary average would hide important variation. A symmetric signal with equal positive and negative values has an arithmetic mean of zero, yet its RMS remains positive because both halves contribute to its magnitude.
The process makes every contribution nonnegative, averages their energy-like magnitude, then restores the original unit with a square root.
For samples x₁ through xₙ, use RMS = √((x₁² + x₂² + … + xₙ²) / n). Suppose the samples are 3 and 4. Their squares are 9 and 16, the mean square is 25 ÷ 2 = 12.5, and √12.5 is approximately 3.5355.
Every observation counts once, so dataset RMS uses n in the denominator rather than n − 1. The calculator accepts signed decimals and scientific notation separated by commas, semicolons, spaces, or line breaks. It uses a scaled numerical method so very large or very small valid samples are handled more safely than a direct sum of squares.
For a pure sine wave with no DC offset, RMS equals peak divided by √2, or about 0.7071 times peak. Peak-to-peak amplitude is twice the peak, so RMS also equals peak-to-peak divided by 2√2. A 170 V peak sine wave therefore has an RMS voltage of about 120.21 V.
These conversion factors describe an ideal sinusoid only. Square, triangle, clipped, pulsed, and offset waveforms have different relationships. Use sampled dataset mode whenever the waveform is not a zero-centered pure sine wave.
The arithmetic mean of a sampled waveform is its DC component. AC RMS measures the remaining variation after that mean is removed. These quantities satisfy total RMS² = DC² + AC RMS², subject to normal floating-point rounding.
Crest factor is absolute peak divided by total RMS. It describes how large the highest magnitude is relative to the effective level. A pure sine wave has a crest factor of √2, while an ideal symmetric square wave has a crest factor of 1. Crest factor is undefined when every sample is zero because both peak and RMS are zero.
For a fixed resistive load, signals with the same RMS voltage produce the same average power. RMS alone does not fully predict behavior in nonlinear, reactive, or frequency-dependent loads, where waveform shape and frequency also matter.
The following ratios assume ideal, zero-centered periodic waveforms. Peak means the maximum absolute amplitude.
| Waveform | RMS relative to peak | Crest factor | Key condition |
|---|---|---|---|
| DC constant | 1 | 1 | Constant magnitude |
| Sine wave | 1 / √2 ≈ 0.70710678 | √2 ≈ 1.41421356 | Pure sinusoid |
| Symmetric square wave | 1 | 1 | Equal positive and negative levels |
| Symmetric triangle wave | 1 / √3 ≈ 0.57735027 | √3 ≈ 1.73205081 | Linear rise and fall |
Consider the four samples −5, 5, −5, and 5. Squaring produces 25 four times, their mean is 25, and its square root is 5. The arithmetic mean is zero, but RMS is 5 because RMS represents magnitude rather than signed direction.
Because this signal has no DC component, its AC RMS is also 5. Its absolute peak is 5, giving a crest factor of 5 ÷ 5 = 1. This example shows why RMS is more informative than the ordinary mean for a balanced alternating signal.
Square every value, add the squares, divide by the number of values, and take the square root. The result is expressed in the original unit because the final square root reverses the squared unit.
No. The arithmetic mean preserves signs, while RMS squares values before averaging and is therefore always nonnegative. RMS is at least the absolute arithmetic mean, with equality only when the values do not vary around their mean in magnitude-relevant ways.
RMS gives the DC-equivalent voltage for average power in the same resistive load. It provides a useful effective magnitude, although nonlinear and frequency-dependent loads may also require waveform and frequency information.
For a pure sine wave with zero DC offset, divide peak voltage by √2. Do not use that shortcut for square, triangle, clipped, pulsed, or DC-offset signals; calculate from representative samples instead.
No. Squares are nonnegative, their mean is nonnegative, and the principal square root is nonnegative. Individual samples may be negative without making the RMS negative.
Total RMS includes both the DC component and changing portion of a signal. AC RMS is calculated after subtracting the mean, and the relationship is total RMS² = DC² + AC RMS².
Mean, Median & Mode Calculator
Find common measures of center from a dataset.
Standard Deviation Calculator
Measure sample or population spread around the mean.
Variance Calculator
Calculate squared dispersion with clear steps.
Weighted Average Calculator
Combine values that have different importance.
Vector Calculator
Calculate vector magnitude and operations.
Scientific Notation Converter
Convert very large and small numerical values.