Logo

MonoCalc

/

RMS Calculator

Math

Weighted RMS

Show steps

Separate with commas, spaces, or newlines

About This Tool

📐 RMS Calculator – Root Mean Square Explained

The Root Mean Square (RMS) is one of the most important statistical measures in mathematics, engineering, and signal processing. It quantifies the effective magnitude of a set of values, giving proportionally greater weight to larger numbers and working correctly with both positive and negative inputs.

The RMS Formula

For a dataset of n values x1, x2, …, xn:

RMS = √( (x₁² + x₂² + … + xₙ²) / n )

The three steps are: Square every value → Mean the squares → take the Square Root. This is why RMS is also called the quadratic mean.

Weighted RMS

When values contribute unequally — for example, samples measured at different intervals — you need the weighted RMS:

RMS_w = √( Σ(wᵢ · xᵢ²) / Σwᵢ )

Each weight wᵢ scales the influence of the corresponding value. All weights must be non-negative and at least one must be positive.

RMS vs Arithmetic Mean vs Mean Absolute Value

MetricFormulaSensitivity to Large Values
Arithmetic MeanΣxᵢ / nLinear
Mean Absolute ValueΣ|xᵢ| / nLinear (sign-independent)
RMS (Quadratic Mean)√(Σxᵢ² / n)Quadratic — emphasises outliers

By the QM–AM inequality, RMS ≥ arithmetic mean for any real dataset. The gap grows when the data has large spread or extreme outliers.

Real-World Applications

  • Electrical engineering: Mains electricity is rated at 120 V or 230 V RMS — the equivalent DC voltage that delivers the same power as the alternating waveform.
  • Signal processing: RMS measures signal power and loudness (dBFS levels in audio are RMS-based).
  • Vibration & acoustics: Accelerometer readings use RMS amplitude to characterise vibration severity.
  • Machine learning / statistics: Root Mean Square Error (RMSE) applies the RMS formula to prediction residuals, penalising large errors more than MAE does.
  • Finance: Volatility is sometimes expressed as the RMS of logarithmic returns over a period.

Worked Example

Values: 3, −4, 5

  1. Square each: 9, 16, 25
  2. Mean of squares: (9 + 16 + 25) / 3 = 16.667
  3. Square root: √16.667 ≈ 4.0825

Notice that the arithmetic mean of 3, −4, 5 is 1.333 — far lower than the RMS of 4.0825because RMS treats the negative value the same as its positive counterpart and amplifies the larger magnitude values.

Accuracy & Limitations

This calculator uses JavaScript's Math.sqrt and standard 64-bit floating-point arithmetic, which is accurate to roughly 15 significant digits. For very large datasets or values near the limits of IEEE 754 double precision, minor rounding differences may appear. Extremely large squared values (above ~10¹⁵⁴) may overflow to Infinity — in such cases, consider rescaling your data before calculating.

Frequently Asked Questions

Is the RMS Calculator free?

Yes, RMS Calculator is totally free :)

Can I use the RMS Calculator offline?

Yes, you can install the webapp as PWA.

Is it safe to use RMS Calculator?

Yes, any data related to RMS Calculator only stored in your browser (if storage required). You can simply clear browser cache to clear all the stored data. We do not store any data on server.

What is Root Mean Square (RMS)?

Root Mean Square (RMS) is a statistical measure of the magnitude of a varying quantity. It is calculated by squaring all values, taking their arithmetic mean, and then taking the square root. Unlike the arithmetic mean, RMS gives greater weight to larger values and is always non-negative, making it especially useful for oscillating or mixed-sign datasets.

How does this RMS calculator work?

Enter your numbers as a comma-, space-, newline-, or tab-separated list and press Calculate. The calculator squares each value, computes the mean of those squares, then takes the square root to produce the RMS. In Weighted RMS mode, each squared value is multiplied by its corresponding weight before averaging.

When should I use Weighted RMS instead of regular RMS?

Use Weighted RMS when your values do not contribute equally to the result — for example, when samples represent different time durations, measurement frequencies, or importance levels. Provide one non-negative weight per value; values with larger weights have more influence on the final RMS.

How is RMS different from the arithmetic mean?

The arithmetic mean sums all values and divides by the count. RMS sums the squares of all values, divides by the count, then takes the square root. For purely positive datasets they are close, but RMS is always ≥ the arithmetic mean (by the QM–AM inequality) and is more sensitive to large deviations, making it ideal for signal power and error analysis.

What are common applications of RMS?

RMS is widely used in electrical engineering to express AC voltage and current (e.g., 120 V RMS mains electricity), in signal processing to measure signal power, in vibration and acoustics to quantify amplitude, and in statistics/machine learning to summarise residuals (RMSE). Anywhere the 'effective magnitude' of a varying quantity matters, RMS is the right metric.

Does RMS work with negative numbers?

Yes. Because every value is squared before averaging, negative and positive values of the same magnitude contribute identically. For instance, RMS(−3, 3) = 3. This makes RMS especially useful for alternating signals where values oscillate around zero.