Skip to content
Omnikalc

Root mean square calculator: RMS, mean, AC component and crest factor of up to 6 values

Enter up to six values to get the root mean square, the arithmetic mean, the RMS about the mean, the peak value and the crest factor.

Updated on
Your inputs

Value out of range

Value out of range

Value out of range

Value out of range

Value out of range

Value out of range

Value out of range

Results

Root mean square (RMS)

4.539

Arithmetic mean (DC component)
0.600
RMS about the mean (AC component)
4.499
Peak absolute value
7.00
Crest factor (peak / RMS)
1.542

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.

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.

Frequently asked questions

What is the root mean square?

The root mean square, or RMS, is the square root of the mean of the squares of the values. It is also called the quadratic mean. Squaring removes the signs, so positive and negative values do not cancel, and the result is a typical size of the values. It is never smaller than the arithmetic mean of the absolute values.

Why is the RMS used for electrical signals?

The power in a resistor is proportional to the square of the voltage or of the current. The RMS value of an alternating signal is the value of a constant signal that would give the same power. A 120 V RMS outlet delivers the same heating as 120 V of direct current, even if the peak voltage is about 170 V.

How is the RMS related to the standard deviation?

The RMS squared is equal to the mean squared plus the variance (the population version). So the RMS about the mean is the population standard deviation. When the mean is zero, the RMS and the standard deviation are the same. This is why the RMS error of a prediction measures the typical size of the errors.

What is the crest factor?

The crest factor is the ratio of the peak value to the RMS value. A pure sine wave has a crest factor of about 1.414, a square wave has 1, and spiky signals have large values. It tells how much headroom an amplifier, a meter or a power supply needs to handle the peaks of a signal without distortion.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.