Root Mean Square Calculator

Calculate the root mean square of any dataset - or find RMS voltage from peak voltage.

√ Root Mean Square Calculator
Values (comma or line separated)

√ What is Root Mean Square (RMS)?

The root mean square (RMS), also called the quadratic mean, is the square root of the mean of the squares of a set of values. The formula is: RMS = √((x12 + x22 + … + xn2) / n). The three-step process - square, mean, root - ensures that negative values contribute positively (since they are squared), making RMS particularly useful for alternating quantities like AC voltage and current.

In electrical engineering, RMS is the fundamental measure for AC circuits. The 230V or 120V rating on your wall outlet is the RMS voltage, not the peak voltage. The peak voltage of a 230V RMS supply is 230 × √2 ≈ 325V. RMS voltage is used because it equals the DC voltage that would dissipate the same power in a resistive load - a 230V RMS AC supply heats a resistor exactly as much as a 230V DC supply. This is known as the equivalent DC voltage interpretation of RMS.

A key mathematical identity connects RMS to more familiar statistics: RMS2 = Mean2 + Variance. This follows from the variance formula: Var = E[x2] − (E[x])2, rearranged as E[x2] = Mean2 + Variance. Since RMS2 = E[x2], the identity follows. Practically, this means a dataset's RMS increases when either its mean or its spread (variance) increases.

Beyond electricity, RMS is ubiquitous in engineering and data science. Root Mean Square Error (RMSE) measures prediction accuracy in machine learning. Acoustic engineers use RMS sound pressure level. Vibration analysts use RMS acceleration to assess machine health. Audio engineers reference RMS signal levels in dBu and dBV. In all these applications, the same principle applies: RMS captures "how large the values are on average" in a way that treats positive and negative deviations symmetrically.

📐 Formula

RMS = √((x12 + x22 + … + xn2) / n)
x1, x2, …, xn = the n values (can be positive or negative)
n = the count of values
Example: RMS of 3, 4, 5 = √((9+16+25)/3) = √(50/3) ≈ 4.082
Vrms = Vpeak ÷ √2 ≈ 0.7071 × Vpeak
Valid for sinusoidal (pure sine wave) AC signals only.
Example: 325V peak → Vrms = 325 / √2 ≈ 229.8V ≈ 230V
Vavg = 2 × Vpeak / π ≈ 0.6366 × Vpeak (rectified average)
Form factor = Vrms / Vavg = π / (2√2) ≈ 1.1107
RMS2 = Mean2 + Variance
Equivalently: E[x2] = (E[x])2 + Var(x)
Useful shortcut: if you know mean and standard deviation, RMS = √(Mean2 + SD2)

📖 How to Use This Calculator

Steps to Calculate RMS

1
Select a mode: "List of Values" for a general dataset of any numbers (positive or negative), or "AC Voltage" to find the RMS voltage of a sinusoidal signal from its peak voltage.
2
Enter your values. In list mode, type comma-separated numbers. In AC mode, enter the peak (amplitude) voltage of the sine wave.
3
Click Calculate to see the RMS, arithmetic mean, standard deviation, and sum of squares. The identity RMS² = Mean² + Variance is shown as a verification note.

💡 Example Calculations

Example 1 — RMS of a Simple Dataset

Find the RMS of 1, 2, 3, 4, 5

1
Squares: 1, 4, 9, 16, 25  ·  Sum of squares = 55
2
Mean of squares = 55 / 5 = 11
3
RMS = √11 ≈ 3.317  ·  AM = (1+2+3+4+5)/5 = 3
RMS ≈ 3.317 > AM = 3 — Verification: RMS² = 11 = 3² + Var = 9 + 2 ✓
Try this example →

Example 2 — AC Mains Voltage

230V RMS mains supply - find the peak voltage

1
Vpeak = Vrms × √2 = 230 × 1.4142 ≈ 325.3V
2
Vavg = 2 × Vpeak / π = 2 × 325.3 / 3.1416 ≈ 207.1V
3
Form factor = 230 / 207.1 ≈ 1.111 (close to the theoretical π/(2√2) ≈ 1.1107)
Peak voltage = 325.3V  ·  Average = 207.1V  ·  RMS = 230V (as labelled on appliances)
Try this example →

Example 3 — RMS with Negative Values

AC-like signal: −3, −1, 0, 1, 3

1
Squares: 9, 1, 0, 1, 9  ·  Sum of squares = 20  ·  n = 5
2
RMS = √(20/5) = √4 = 2  ·  AM = (−3−1+0+1+3)/5 = 0
3
Variance = (9+1+0+1+9)/5 − 0² = 4  ·  RMS² = 0² + 4 = 4, √4 = 2 ✓
RMS = 2, AM = 0 — RMS is meaningful even when the arithmetic mean is zero (as in AC signals).
Try this example →

Example 4 — RMSE for Predictions

Forecast errors: −4, +2, −1, +3, 0 (predicted − actual)

1
Squared errors: 16, 4, 1, 9, 0  ·  Sum = 30  ·  n = 5
2
RMSE = √(30/5) = √6 ≈ 2.449
3
Mean Absolute Error (MAE) = (4+2+1+3+0)/5 = 2.0  ·  RMSE (2.449) > MAE (2.0) as expected
RMSE = 2.449 — The large −4 error inflates RMSE above MAE, correctly penalizing the outlier.
Try this example →

❓ Frequently Asked Questions

What is the formula for root mean square (RMS)?+
RMS = √((x₁² + x₂² + ... + xₙ²) / n). Square all values, find their arithmetic mean, then take the square root. Example: RMS of 3, 4, 5 = √((9+16+25)/3) = √(50/3) ≈ 4.082.
What is RMS voltage and how is it related to peak voltage?+
For a sinusoidal AC signal: V_rms = V_peak / √2 ≈ 0.707 × V_peak. The 230V (or 120V) marked on appliances is V_rms. The actual waveform peaks at 230×√2 ≈ 325V. V_rms is used because it equals the equivalent DC voltage for power dissipation: a 230V RMS AC supply heats a resistor identically to a 230V DC supply.
What is the difference between RMS and average?+
Arithmetic mean = sum ÷ count. RMS = √(sum of squares ÷ count). RMS ≥ AM for all real values. For data with both positive and negative values (like AC waveforms), arithmetic mean may be zero while RMS is non-zero and meaningful. RMS weighs large values more heavily because it squares before averaging.
What does RMS² = Mean² + Variance mean?+
This follows from the variance identity: Var = E[x²] − (E[x])², rearranged to E[x²] = Mean² + Var. Since RMS² = E[x²], we get RMS² = Mean² + Variance. Practically: if you know mean = 3 and SD = 4, then RMS = √(3²+4²) = √25 = 5. RMS captures both the mean level and the spread.
When is RMS used in engineering?+
RMS is used for: AC circuit analysis (V_rms for power calculations), audio signal levels (dBu/dBV reference V_rms), vibration analysis (RMS acceleration for machinery health monitoring), noise floor in electronics (RMS noise voltage in nV/√Hz), and data science (RMSE for model accuracy). It is the correct average whenever the physical quantity involves power or squared terms.
How do I convert peak voltage to RMS?+
For a sine wave: V_rms = V_peak / √2 ≈ 0.7071 × V_peak. For a square wave: V_rms = V_peak. For a triangle wave: V_rms = V_peak / √3 ≈ 0.5774 × V_peak. Example: a 20V peak sine wave delivers 20/√2 ≈ 14.14V RMS, giving 14.14²/8 ≈ 25W into an 8Ω load.
What is the RMS of a sine wave?+
For a sine wave sin(t) with amplitude A: RMS = A/√2 ≈ 0.707A. The average absolute value is 2A/π ≈ 0.637A. Form factor = RMS/Average = π/(2√2) ≈ 1.1107. These are fundamental constants in AC analysis. For a 50Hz, 230V RMS mains supply, the peak amplitude is 230√2 ≈ 325V.
What is RMSE (Root Mean Square Error)?+
RMSE = √(Σ(predicted − actual)² / n). It measures prediction error in machine learning and statistics. RMSE penalizes large errors more than MAE (Mean Absolute Error) because errors are squared before averaging. RMSE has the same units as the target variable, making it more interpretable than Mean Squared Error (MSE).
How do I calculate RMS in Excel?+
Use =SQRT(SUMSQ(A1:A10)/COUNT(A1:A10)). For AC voltage from peak: =A1/SQRT(2). For RMSE: =SQRT(SUMPRODUCT((actual-predicted)^2)/COUNT(actual)). There is no built-in GEOMEAN-like function for RMS, but SUMSQ combined with COUNT and SQRT handles any list cleanly.
Why is RMS called the quadratic mean?+
RMS is a special case of the power mean with exponent p=2 (squaring = quadratic). The power mean family: HM (p=−1) ≤ GM (p→0) ≤ AM (p=1) ≤ RMS (p=2). So RMS is always the largest common mean for positive values. The name 'quadratic mean' emphasizes the squaring step that distinguishes it from arithmetic mean.

What is the formula for root mean square (RMS)?

RMS = √((x₁² + x₂² + ... + xₙ²) / n) - square each value, find their mean, then take the square root. Example: RMS of 3, 4, 5 = √((9+16+25)/3) = √(50/3) = √16.67 ≈ 4.082.

What is RMS voltage and how is it related to peak voltage?

For a sinusoidal AC signal, V_rms = V_peak / √2 ≈ 0.7071 × V_peak. The 230V or 120V printed on your appliances is the RMS voltage. The actual peak voltage is higher: 230V RMS corresponds to a peak of 230×√2 ≈ 325V. RMS is used because it equals the DC voltage that would deliver the same power to a resistive load.

What is the difference between RMS and average?

The arithmetic mean (average) simply sums and divides. RMS squares first, then finds the mean, then takes the square root. RMS ≥ AM for any dataset (by the power mean inequality). For symmetric AC waveforms, the arithmetic mean is zero (positive half cancels negative half), but RMS is non-zero and meaningful - showing why RMS is preferred for AC circuits.

What does RMS² = Mean² + Variance mean?

RMS² = Mean² + Variance is equivalent to: (sum of squares)/n = (mean)² + variance. This follows directly from the variance formula Var = E[x²] - (E[x])². Rearranged: E[x²] = Var + Mean². Since RMS² = E[x²], we get RMS² = Mean² + Variance. This means RMS captures both the mean level and the spread of data.

When is RMS used in engineering?

RMS is the standard measure for: AC voltage and current (V_rms determines power dissipation); audio signal levels (dBu and dBV reference RMS values); vibration analysis (RMS acceleration for machinery health); noise floor in electronics (RMS noise voltage); and error analysis (Root Mean Square Error, RMSE, measures prediction accuracy).

How do I convert peak voltage to RMS?

V_rms = V_peak / √2 for a sinusoidal (pure sine wave) signal. For a square wave: V_rms = V_peak. For a triangle wave: V_rms = V_peak / √3. Example: an audio amplifier with a 20V peak output delivers 20/√2 ≈ 14.14V RMS into a speaker. Power = V²_rms / R = (14.14)² / 8 = 25W.

What is the RMS of a sine wave?

For a sine wave with amplitude A (peak value): RMS = A/√2 ≈ 0.707A. Average (absolute value) = 2A/π ≈ 0.637A. Form factor = RMS/Average = π/(2√2) ≈ 1.1107. These ratios are fundamental constants in AC circuit analysis and appear in every electrical engineering textbook.

What is RMSE (Root Mean Square Error)?

RMSE measures prediction accuracy: RMSE = √(Σ(predicted - actual)² / n). It is the RMS of the error values. RMSE is the most common metric in regression analysis and machine learning because it (1) penalises large errors more than small ones, (2) has the same units as the predicted variable, and (3) is always ≥ MAE (mean absolute error).

How do I calculate RMS in Excel?

Use =SQRT(SUMSQ(values)/COUNT(values)). Or with an array formula: =SQRT(SUMPRODUCT(A1:A10^2)/COUNT(A1:A10)). For AC voltage from peak: =A1/SQRT(2) where A1 contains the peak value. For RMSE: =SQRT(SUMPRODUCT((A1:A10-B1:B10)^2)/COUNT(A1:A10)).

Why is RMS called the quadratic mean?

RMS is a member of the power mean family: quadratic mean (RMS) uses p=2 (squaring), arithmetic mean uses p=1, harmonic mean uses p=−1, and geometric mean is the limit as p→0. The name 'quadratic mean' comes from the squaring step. Power means satisfy: HM ≤ GM ≤ AM ≤ RMS for positive values, so RMS is always the largest of the common means.