Lelifi·tools

Coefficient of Variation Calculator

The coefficient of variation is the standard deviation divided by the mean, shown as a percent. Five readings that average 10.2 with a standard deviation of 0.274 have a CV of 2.68 percent, and multiplying every reading by 100 leaves that 2.68 percent unchanged.

Paste your numbers separated by commas, spaces or new lines, or switch to typing a mean and a standard deviation. The second box is optional and lets you compare two data sets.

Paste a list of numbers, or type a mean and a standard deviation, to get the coefficient of variation as a percent, with a second data set for comparison.

By the Lelifi editors ·

Key takeaways

A 5 percent CV can be tight or loose depending on the measurementBody weight, mean 180 lb5.0%Daily steps, mean 8,00015.0%Lab scale A, mean 500 g1.0%Lab scale B, mean 20 g2.0%Higher bars mean more spread relative to the mean, whatever the units.
Four measurements, four CVs: the number only means something next to the mean it came from.
The same four temperatures, two coefficients of variationSame readings in Fahrenheit, mean 63.518.3%Same readings in Celsius, mean 17.536.9%An offset scale changes the CV, which is why ratio data is required.
Converting the same temperatures to Celsius doubles the CV, because the scale has an offset.
On this page
  1. What the coefficient of variation measures
  2. Sample or population: the denominator matters
  3. A worked example with five readings
  4. Why the units cancel
  5. Comparing things that are not alike
  6. Where the CV misleads
  7. Reading a CV in a lab report
  8. Mistakes that change the answer

What the coefficient of variation measures

The coefficient of variation compares the spread of a data set to its own average. Divide the standard deviation by the mean and multiply by 100, and you get a percentage that says how large the wobble is relative to the level. A series of measurements that averages 500 g with a standard deviation of 5 g has a CV of 1 percent. Another series that averages 20 g with a standard deviation of 0.4 g has a CV of 2 percent, even though its standard deviation is smaller in absolute terms.

That is the whole point of the statistic. Standard deviation carries the units of the data, so a spread of 5 g and a spread of 5 minutes cannot be compared. The CV divides the units away, which lets you line up a lab assay against a delivery time, or a stock's volatility against its return. The NIST Dataplot reference page defines it as the sample standard deviation divided by the sample mean and notes that it should be used for data measured on a ratio scale, where zero means none of the thing being measured.

A CV is not a better standard deviation, just a rescaled one. It throws away the unit and the level, so a reader cannot rebuild the original numbers from it. Report both when the level matters: a mean of 10.2 with a CV of 2.68 percent tells a different story from a mean of 1,020 with the same CV.

Sample or population: the denominator matters

Two formulas differ by one in the denominator. The sample standard deviation divides the squared deviations by n - 1, and the population standard deviation divides by N. The n - 1 version is the default when your numbers are a sample from something larger, because dividing by n understates the spread of the wider group.

The gap is small for large data sets and large for small ones. With the five readings used below, the sample standard deviation is 0.2739 and the population standard deviation is 0.2449, so the two CVs are 2.68 percent and 2.40 percent. At n = 5 that is a 12 percent difference in the answer, which is enough to fail an acceptance limit that sits between them.

VersionStandard deviationCV with mean 10.2When to use it
Sample, n - 10.27392.68 percentYour values are a sample of a larger group
Population, N0.24492.40 percentYou have every value that exists

Software defaults differ, which is a common source of confusion. Spreadsheet functions STDEV.S and STDEV.P split this way, and many online calculators quietly use the population version. If a reported CV does not match yours, check the denominator before hunting for a typo in the data.

A worked example with five readings

Take five repeat measurements from a scale: 10.2, 10.5, 9.8, 10.1 and 10.4. The sum is 51.0, so the mean is 51.0 / 5 = 10.2. The next step is the deviation of each reading from the mean, then the square of each deviation.

ReadingDeviation from 10.2Squared deviation
10.2+0.00.00
10.5+0.30.09
9.8-0.40.16
10.1-0.10.01
10.4+0.20.04
Sum0.00.30

The deviations add to zero, which is a useful check: if they do not, the mean was computed wrong. The squared deviations add to 0.30. Divide by n - 1, which is 4, and the variance is 0.30 / 4 = 0.075. The square root of 0.075 is 0.2739, the sample standard deviation. Finally, 0.2739 / 10.2 = 0.02685, and 0.02685 x 100 = 2.685, so the CV is about 2.68 percent.

Read that number as a statement about the process. A CV of 2.68 percent on a 10 g target means a typical reading sits within about 0.27 g of the mean, so a tolerance of plus or minus 0.5 g would be met most of the time but not always. The same CV on a 1,000 g target means a spread of 27 g, which is a different quality problem in absolute terms and exactly the same one in relative terms.

Why the units cancel

Convert the five readings from grams to milligrams by multiplying each by 1,000, and the mean becomes 10,200 while the standard deviation becomes 273.9. The ratio is unchanged: 273.9 / 10,200 = 0.02685, so the CV is still 2.68 percent. That is the property that makes the statistic portable across units and across scales of the same quantity.

Multiplying every value by 100 gives the same result, and the table below makes the point plainly. Both columns hold the same five readings, one in grams and one in centigrams, and both produce a CV of 2.68 percent.

MeasureMeanStandard deviationCV
Grams10.20.27392.68 percent
Centigrams1,02027.392.68 percent
Body weight, pounds18095.00 percent
Body weight, kilograms81.654.085.00 percent

The cancellation only works for scales that start at a true zero. Grams, meters, seconds, dollars and kelvin all have one. Fahrenheit and Celsius do not, and the next section shows what goes wrong there.

Comparing things that are not alike

The CV earns its keep when two data sets share no units. A lab comparing two balances is the clean case. Scale A weighs samples around 500 g with a standard deviation of 5 g, so 5 / 500 = 0.01 and the CV is 1.0 percent. Scale B weighs samples around 20 g with a standard deviation of 0.4 g, so 0.4 / 20 = 0.02 and the CV is 2.0 percent. Scale B has the smaller standard deviation and the worse relative precision, and only the CV shows that.

Finance uses the same arithmetic with returns. A fund with an average annual return of 8 percent and a standard deviation of 12 percent has a CV of 150 percent, because 12 / 8 = 1.5. A second fund returns 15 percent with a standard deviation of 18 percent, so its CV is 120 percent. The second fund swings more in absolute points and less per point of return, which is the comparison a risk-adjusted reading is after.

Daily life offers the same contrast. Someone walking 8,000 steps a day with a standard deviation of 1,200 has a CV of 15 percent. The same person at 180 lb with a standard deviation of 9 lb has a CV of 5 percent. Step counts are four times as variable relative to their level as body weight, which matches the intuition that a routine is easier to hold steady than a habit.

Data setMeanStandard deviationCV
Daily steps8,0001,20015.0 percent
Body weight180 lb9 lb5.0 percent
Scale A readings500 g5 g1.0 percent
Scale B readings20 g0.4 g2.0 percent
Fund A returns8 percent12 points150 percent

A rough reading guide, not a rule from any standards body: under 10 percent is tight for physical measurements, 10 to 25 percent is ordinary for human behavior, and anything above 100 percent means the spread is as large as the mean itself. Fund returns live above 100 percent routinely because returns hover near zero and can be negative.

Where the CV misleads

The first failure is the offset scale. Four daily highs of 50, 59, 68 and 77 F average 63.5 with a standard deviation of 11.619, so the CV is 18.3 percent. Convert the same four readings to Celsius and they become 10, 15, 20 and 25, with a mean of 17.5 and a standard deviation of 6.455, which gives a CV of 36.9 percent. Same weather, double the CV, because 0 F is not the absence of warmth.

The second failure is a mean near zero. A set of readings with a mean of 0.5 and a standard deviation of 0.5 has a CV of 100 percent, and a tiny shift in the mean moves that number by a lot. When the mean crosses zero the CV flips sign, since 0.4 divided by -2 is -0.2. NIST notes both problems on its reference page and adds a third: a CV cannot be used to build a confidence interval for the mean.

The third failure is small samples. With two values the sample standard deviation is half the gap between them, so a CV from two readings is mostly noise. Five readings give a usable first look, and twenty or more give a figure worth putting in a report. The fourth failure is bounded data such as a score from 0 to 100, where the ceiling compresses the spread and makes a high-scoring group look more consistent than it is.

Reading a CV in a lab report

Laboratories usually call the same number the relative standard deviation, or RSD. The NIST note on relative standard deviation spells out the difference: the RSD divides by the absolute value of the mean, so it is always positive, while the CV keeps the sign of the mean. For positive data the two are identical, which covers most measurements a lab makes.

A typical report reads something like: six replicates, mean 10.2 mg/L, standard deviation 0.27 mg/L, RSD 2.7 percent. The RSD is the number compared against the method's acceptance limit, and the standard deviation is the number used to judge a single result against a specification. Keeping both in view avoids the trap of thinking a method is precise because its RSD is small while the actual values are far from the target.

Accuracy and precision are separate questions, and the CV only speaks to the second. A method that reads 10 percent high every time has a CV near zero and a bias of 10 percent. That is why a calibration check comes before a precision number in any competent report, and why the OpenStax chapter on measures of spread treats standard deviation as a description of variability rather than a statement of correctness.

Mistakes that change the answer

MistakeEffect on the CVFix
Dividing by n instead of n - 1Understates it: 2.40 percent instead of 2.68 percent on five readingsUse n - 1 for a sample
Using it on Fahrenheit or CelsiusDoubles the number when the scale changesConvert to kelvin first
Computing it when the mean is near zeroProduces huge or sign-flipped valuesReport the standard deviation instead
Forgetting to multiply by 100Reports 0.0268 as if it were a percentMultiply the ratio by 100
Comparing a CV from two readings to one from fiftyMixes noise with spreadCompare sets of similar size
Averaging two CVs directlyWeights a small set the same as a large onePool the variances instead

The last row is the one that catches analysts. Averaging a CV of 1 percent from 100 readings with a CV of 20 percent from 3 readings gives 10.5 percent, which describes neither set. The correct pooled approach combines the squared deviations and the counts, so the larger sample dominates. For two sets of 100 and 3 readings the pooled CV lands near the larger set, not halfway between the two.

One more habit is worth building. Write down which formula was used and how many values went into it, next to the CV itself. A CV without a sample size and a denominator is not reproducible, and two analysts comparing notes will otherwise spend an afternoon on a 0.3 percentage point gap that comes down to STDEV.S versus STDEV.P.

Frequently asked questions

What is the coefficient of variation formula?

CV = standard deviation / mean x 100. With a sample standard deviation of 0.2739 and a mean of 10.2, 0.2739 / 10.2 = 0.02685, which is 2.68 percent.

What is a good coefficient of variation?

There is no universal cutoff. Under 10 percent is tight for physical measurements, 10 to 25 percent is common for human behavior, and above 100 percent means the spread matches the mean. Compare against the limit set for your own method.

Should I use the sample or population formula?

Use n - 1 when your values are a sample of a larger group, which is the usual case. With the five readings on this page the sample CV is 2.68 percent and the population CV is 2.40 percent.

Can the coefficient of variation be negative?

Yes, when the mean is negative, since the sign is kept. A mean of -2 with a standard deviation of 0.4 gives -20 percent. Lab reports avoid this by using the relative standard deviation, which divides by the absolute value.

Why does the CV change when I convert Fahrenheit to Celsius?

Because the two scales have different zero points, so the mean shifts and the ratio changes. Four readings from 50 to 77 F give 18.3 percent, while the same readings in Celsius give 36.9 percent.

What is the difference between CV and standard deviation?

Standard deviation is in the units of the data, and the CV is unitless. A standard deviation of 5 g on a 500 g mean is a CV of 1 percent, and the same 5 g on a 20 g mean is 25 percent.

What is RSD?

Relative standard deviation, the same ratio reported by laboratories. It divides by the absolute value of the mean, so it stays positive. For a mean of 10.2 and a standard deviation of 0.27 the RSD is 2.7 percent.

Can I average two coefficients of variation?

Not directly, because a CV from 3 readings and one from 300 do not carry equal weight. Pool the squared deviations and the counts instead, then recompute the CV from the combined figures.

How many values do I need for a useful CV?

Five gives a first look, twenty or more gives a number worth reporting. With only two values the sample standard deviation is half their gap, so the CV is mostly noise.

Does the CV work for percentages and rates?

It works for counts and amounts that can be zero, but bounded percentages compress at the top and bottom. A score capped at 100 with a mean of 96 and a standard deviation of 2 shows a 2.1 percent CV that hides the ceiling effect.

What does a CV of 100 percent mean?

The standard deviation equals the mean. In a fund with an 8 percent average return, that would be a standard deviation of 8 points, which is a rough figure for a volatile equity fund.

Is the CV the same as variance?

No. Variance is the squared standard deviation and carries squared units, while the CV is a unitless ratio. For the five readings on this page the variance is 0.075 and the CV is 2.68 percent.

Why is my spreadsheet CV different from this calculator?

Check which standard deviation the spreadsheet used. STDEV.P divides by n and STDEV.S divides by n - 1, and at n = 5 that changes the CV from 2.68 percent to 2.40 percent.

Can the CV compare two currencies?

Only if the exchange rate holds still across the comparison, since a currency conversion is a multiplication and multiplying every value by a constant leaves the CV unchanged. Convert once, then compare.

What is the coefficient of variation used for in finance?

It scales risk by return. A fund returning 8 percent with a 12 point standard deviation has a CV of 150 percent, while one returning 15 percent with 18 points has 120 percent.

Spotted a wrong number or a broken result?

More Math tools

See all Math tools

Fee schedules, rates and rules change without notice. Always confirm important figures with the official source before you rely on them.