Coefficient of Variation Calculator | Sample and Population

A coefficient of variation calculator measures spread relative to the mean. Coefficient of variation (CV) = standard deviation ÷ mean, and CV percentage = 100 × standard deviation ÷ mean. The calculator uses nonnegative ratio-scale measurements with a positive mean, and supports either raw observations or a supplied mean and standard deviation.

Coefficient of Variation Calculator

Calculate relative spread using raw observations or summary statistics.

Separate numbers with commas or whitespace.

Use positive-mean ratio-scale measurements with a meaningful zero. CV can be unstable near zero and does not establish measurement quality. Reference / verification guidance.

Calculations run locally in your browser. Example values are illustrative.

Coefficient of variation calculator: formula and units

Let x̄ represent the arithmetic mean of a sample, and s its sample standard deviation. The sample CV is s ÷ x̄. For a complete population, the corresponding expression uses population standard deviation σ and population mean μ. Multiplying the ratio by 100 expresses relative spread as a percentage rather than a decimal.

If you start with n raw observations, find the mean by dividing their sum by n. Subtract the mean from each observation, square each deviation and add them. For a sample variance, divide this sum by n − 1; for a population variance, divide by n. Take the square root to obtain the corresponding standard deviation before finding CV.

The NIST coefficient of variation reference explains the ratio and its dependence on an appropriate measurement scale. The numerator and denominator must have the same units, so their units cancel. The resulting CV does not have the original units of length, mass or time.

How to use the coefficient of variation calculator

Choose Input method: Raw observations or Mean and standard deviation. In raw mode, choose Standard deviation convention: Sample (n − 1) or Population (n). A sample generally represents part of a population, while the population convention describes all the observations in the population you have defined.

Enter Raw observations as numbers separated by commas or whitespace. If you have summary data instead, enter Mean and Standard deviation in consistent measurement units. In summary mode, the standard deviation convention is determined by the supplied statistic; the tool cannot reconstruct the original observations or infer which divisor was used.

Select Calculate and review Coefficient of variation, CV ratio, Mean and Standard deviation. Raw mode also reports the number of observations. Try an Example loads 8, 10 and 12; Reset clears the inputs. A positive mean is essential, and raw observations must be nonnegative for the ratio-scale scope of this tool.

Worked example: three measurements

Suppose three measurements of a length are 8 cm, 10 cm and 12 cm. Their mean is (8 + 10 + 12) ÷ 3 = 10 cm. Deviations from the mean are −2 cm, 0 cm and 2 cm. Squared deviations total 4 + 0 + 4 = 8 cm².

Treating the three measurements as a sample, divide by 3 − 1 = 2. Sample variance = 8 ÷ 2 = 4 cm², so sample SD is √4 = 2 cm. Sample CV = 2 ÷ 10 = 0.20, or 20%. The standard deviation is one fifth of the mean.

If these three values instead constitute the entire defined population, divide by 3 rather than 2. Population variance is 8 ÷ 3 ≈ 2.666667 cm², SD is √(8 ÷ 3) ≈ 1.632993 cm, and population CV is approximately 16.329932%. This difference follows from the variance convention, not an inconsistency in the calculator.

Now imagine another sample with mean 20 cm and SD 3 cm. It has greater absolute spread than the first sample, yet its CV is 3 ÷ 20 × 100 = 15%, which is lower than 20%. Comparing both metrics helps distinguish a difference in absolute variability from a difference in variability relative to typical size.

How to interpret relative variation

CV is useful when the scale of typical observations differs and the measurements have meaningful ratios. For example, a standard deviation of 2 grams around a mean of 10 grams represents 20% relative spread, while 2 grams around a mean of 100 grams represents 2%. Equal absolute SDs do not necessarily imply equal relative dispersion.

A change of measurement unit by multiplication leaves CV unchanged. Converting the example from centimeters to millimeters multiplies the mean and SD by ten, giving 100 mm and 20 mm. Their ratio remains 0.20. This is a useful independent check that both quantities were converted consistently.

Adding an arbitrary offset changes the mean without changing the SD. For that reason, CV is not generally appropriate for Celsius or Fahrenheit temperatures, where zero is conventional rather than an absence of the measured quantity. The NIST signal-to-noise reference discusses why ratio-scale measurement matters.

A lower CV means lower spread relative to the mean within the stated calculation. It does not necessarily indicate more accurate measurements, a better product, or a statistically significant difference. Those interpretations require a suitable comparison, measurement objective and assessment of uncertainty. There is no universal percentage threshold that separates acceptable CV from unacceptable CV.

Common mistakes and limitations

Do not divide variance by mean instead of SD by mean. Variance has squared measurement units, so that substitution would not give the same dimensionless result. Do not divide by a mean in kilograms if the SD is entered in grams without conversion. Keep the sample or population convention consistent across the groups you compare.

Zero mean makes the ratio undefined. A mean close to zero can make CV very large or sensitive to small measurement changes. A negative mean can produce a signed ratio that is hard to interpret as dispersion. This calculator restricts its scope to positive means and nonnegative raw measurements rather than silently changing the denominator to its absolute value.

An SD of zero with a positive mean gives CV of zero. A sample of one observation has undefined sample SD, while a one-observation population can have SD of zero. The tool rejects the former and accepts the latter. Results are educational estimates; confirm statistical assumptions, measurement uncertainty and applicable quality criteria before using CV for consequential decisions.

Frequently asked questions

How is coefficient of variation calculated?

Divide the standard deviation by the mean to obtain the CV ratio. Multiply by 100 to express it as a percentage. Use the sample or population standard deviation appropriate to your data, and confirm that the mean is positive and the measurement scale has a meaningful zero.

Can the coefficient of variation exceed 100 percent?

Yes. If standard deviation exceeds a positive mean, their ratio exceeds one and CV exceeds 100%. This is mathematically possible for nonnegative measurements with substantial spread. Investigate the distribution and whether the mean is close to zero before interpreting a large percentage as a quality problem.

Is a lower coefficient of variation always better?

No. A lower value indicates smaller standard deviation relative to the mean under the chosen measurement definition. Whether that is preferable depends on your objective, the distribution and the applicable quality requirements. A low CV does not demonstrate accuracy or prove that the difference between two groups is significant.

What happens if the mean equals zero?

The ordinary CV ratio is undefined because it requires division by the mean. Even when the mean is small but positive, the resulting percentage can be highly sensitive to small changes. Use a different descriptive measure when the mean is unsuitable as a denominator for relative spread.

Should I use sample or population standard deviation for CV?

Use the sample convention when your observations are a sample and you are calculating the ordinary sample CV. Use the population convention when describing the complete defined population. The two calculations differ in the variance divisor, so record which convention was used when comparing or reporting results.

Related guides and next steps

Use the pooled standard deviation calculator for within-group variance pooling and the z-score to percentile calculator for normal-model standardization. For measurement differences relative to a reference value, use the percent error calculator. Browse the Education & Statistics hub.