Root Mean Square (RMS) Calculator

Calculate RMS for datasets, AC voltage, and alternating signals with clear formulas and step-by-step results.

Dataset RMSAC SignalsStep-by-Step
Share this tool

Calculation Type

Calculations run on the server; your values are not stored.

Sample Values

Separate up to 10,000 values with commas, semicolons, spaces, or new lines.

Known Sine-Wave Amplitude

The conversion assumes a pure sine wave with zero DC offset.

Quick Load:

Calculating...

Enter samples or a sine-wave amplitude to calculate RMS.

What Is Root Mean Square (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.

RMS Visualized: Square, Mean, Then Root

The process makes every contribution nonnegative, averages their energy-like magnitude, then restores the original unit with a square root.

Root mean square calculation processSamples three and four are squared to nine and sixteen, averaged to twelve point five, and square rooted to approximately three point five three five five.Samples xᵢ3, 4Square9, 16Mean25 ÷ 2 = 12.5Square root≈ 3.5355√((3² + 4²) / 2) = √12.5

How to Calculate RMS From a Dataset

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.

RMS Voltage, Peak Voltage, and Peak-to-Peak Voltage

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.

DC Component, AC RMS, and Crest Factor

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.

Common RMS Values by Waveform

The following ratios assume ideal, zero-centered periodic waveforms. Peak means the maximum absolute amplitude.

WaveformRMS relative to peakCrest factorKey condition
DC constant11Constant magnitude
Sine wave1 / √2 ≈ 0.70710678√2 ≈ 1.41421356Pure sinusoid
Symmetric square wave11Equal positive and negative levels
Symmetric triangle wave1 / √3 ≈ 0.57735027√3 ≈ 1.73205081Linear rise and fall

Root Mean Square Example

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.

Frequently Asked Questions

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.

Is RMS the same as average?

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.

Why is RMS voltage used for AC circuits?

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.

How do you convert peak voltage to RMS voltage?

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.

Can RMS be negative?

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.

What is the difference between total RMS and AC RMS?

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².