The root mean square (RMS) is a typical size of values that can be positive or negative. The root mean square calculator gives the RMS of up to six values, the arithmetic mean, the RMS about the mean (the varying part) and the crest factor.
How the calculation works
- Choose the number of values to use, from 1 to 6, and enter them. Values can be negative, as for an alternating signal or a series of errors.
- The calculator squares each value, takes the mean of the squares and then the square root: RMS = √((x₁² + x₂² + … + xₙ²) / n).
- It also gives the arithmetic mean, which is the constant (DC) part of the data.
- The RMS about the mean is the part that varies (AC), computed as √(RMS² − mean²). The crest factor is the peak value divided by the RMS.
Example
Take the 5 values 2, −5, 3, 7 and −4. The squares are 4, 25, 9, 49 and 16, and their sum is 103. The mean of the squares is 103 / 5 = 20.6, so the RMS is √20.6 = 4.539. The arithmetic mean is 3 / 5 = 0.600. The RMS about the mean is √(20.6 − 0.36) = 4.499. The peak is 7, so the crest factor is 7 / 4.539 = 1.542.
Why it matters
The calculator helps electronics students, engineers, statisticians and data analysts to find the RMS of a short series of measurements, of voltage samples or of errors. It also splits the RMS into a constant part and a varying part, which is useful to read signals with an offset and to understand the RMS error of a model.
Good to know
The calculator treats the values as equal in weight and uses the population formula, dividing by the number of values. It does not integrate a continuous waveform: for a sine wave of peak A the RMS is A divided by the square root of 2, a result that you can check by entering enough samples over one period. If you leave unused value fields filled, they are ignored when the number of values is lower than 6.
Related tools
The standard deviation calculator measures the spread around the mean, the RMS voltage calculator handles alternating voltage, the geometric mean calculator is suited to growth rates and ratios, and the harmonic mean calculator is suited to rates and speeds.