IQR Calculator

Coefficient of Variation Calculator

Spread expressed relative to the mean, so data sets in different units can be compared.

Coefficient of variation calculatorRuns entirely in your browser
Separate values with commas, spaces or line breaks. Paste a column straight from a spreadsheet.
Try:
Data represents
ResultExclusive method · n = 10
Coefficient of variation2.804209%4.812022 ÷ 171.6spread relative to the mean
Mean
171.6
Std dev s
4.812022
CV (ratio)
0.028042
CV (%)
2.804209%
Count
10

How we calculated it

Find the mean
x̄ = 171.6
Find the sample standard deviation
s = 4.812022
Divide, then convert to a percentage
CV = 4.812022 ÷ 171.6 = 0.028042CV = 0.028042 × 100 = 2.804209%
The units cancel, which is what makes a CV comparable across data sets measured in different units.

The formula

CV = σ ÷ μ (as a ratio) CV = σ ÷ μ × 100 (as a percentage) Use s and x̄ in place of σ and μ when the data is a sample.

Dividing the standard deviation by the mean cancels the units. What is left is relative spread — a number you can compare between data sets measured in entirely different things.

What it is for

A standard deviation of 15 tells you nothing until you know the scale. Fifteen grams is enormous variability for a pharmaceutical dose and invisible for a shipment of gravel. The CV makes the comparison possible: 15 on a mean of 20 is a CV of 75%; 15 on a mean of 3000 is 0.5%.

It is used routinely in laboratory quality control, where an assay's CV measures its precision, and in finance, where it compares the risk of investments with different expected returns.

When it does not apply

The CV needs a meaningful zero — a ratio scale, where "twice as much" is a sensible sentence. Three situations break it:

  • The mean is zero. The calculation divides by it, so there is no answer. The calculator says so rather than printing a number.
  • The mean is near zero. Small changes in the mean swing the CV wildly. A tiny denominator makes the ratio unstable and untrustworthy.
  • The data is on an interval scale. Temperature in Celsius is the standard example: 0 °C is a convention, not an absence of temperature, so the CV of a set of Celsius readings changes if you convert them to Fahrenheit. The number computes; it just does not mean anything.

Worked example

Comparing two measurements on different scales

Heights (cm), mean 171.6, SD 4.7 · Weights (kg), mean 68.2, SD 9.4

The weights have twice the standard deviation, but they are also measured on a different scale.

  • Heights: CV = 4.7 ÷ 171.6 ≈ 2.7%
  • Weights: CV = 9.4 ÷ 68.2 ≈ 13.8%

Relative to their own averages, the weights vary about five times as much — a conclusion the raw standard deviations understate.