ThisCalculator

Date and time

Coefficient of Variation Calculator & Formula

Updated · Standard formula, shown below

The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.

Coefficient of Variation Calculator & Formula

This calculator works out the coefficient of variation (CV) for a set of numbers you enter. You type or paste your data values, and it returns the CV as a percentage, along with the mean and standard deviation. The CV is the standard deviation divided by the mean, expressed as a percentage, and it tells you how spread out your data is relative to the average.

Formula

The coefficient of variation (CV) is calculated as:

CV = (s / x̄) × 100%

Where:

  • s = sample standard deviation (same units as the data)
  • xÌ„ = arithmetic mean (average) of the data (same units as the data)

For a population (when your data covers every member of the group), use the population standard deviation (σ) instead of s. The formula becomes CV = (σ / μ) × 100%, where μ is the population mean.

Worked Example

Using the default data set: 4, 8, 15, 16, 23, 42

  1. Find the mean: (4 + 8 + 15 + 16 + 23 + 42) / 6 = 108 / 6 = 18
  2. Find the deviations from the mean: -14, -10, -3, -2, 5, 24
  3. Square each deviation: 196, 100, 9, 4, 25, 576
  4. Sum the squared deviations: 196 + 100 + 9 + 4 + 25 + 576 = 910
  5. Divide by (n – 1) for sample variance: 910 / 5 = 182
  6. Take the square root for sample standard deviation: √182 ≈ 13.49
  7. Divide by the mean and multiply by 100: (13.49 / 18) × 100 ≈ 74.96%

The calculator gives a CV of 74.96%, matching this step-by-step result.

When to Use the Coefficient of Variation

The CV is useful when you want to compare the relative variability of two or more data sets that have different units or very different means. For example:

  • Comparing the consistency of two manufacturing processes where one measures length in millimeters and the other measures weight in grams.
  • Comparing test score variability between two classes where one class has an average of 80 and the other has an average of 50.
  • In finance, comparing the risk (volatility) of investments with different average returns.

A lower CV means less variability relative to the mean; a higher CV means more variability. There is no universal “good� or “bad� CV—it depends on your field and what you are measuring.

How to Read the Result

The CV is expressed as a percentage. A CV of 10% means the standard deviation is one-tenth of the mean. For example, if the mean is 100 and the standard deviation is 10, the CV is 10%. This lets you compare data sets directly: a CV of 5% is less variable than a CV of 15%, regardless of the actual units or scale.

In many scientific and engineering contexts, a CV below 15% is considered low variability, while above 30% is high. But these thresholds are not universal—always interpret based on your specific application.

Common Mistakes and Misconceptions

  • Using the wrong standard deviation: The calculator uses sample standard deviation (n-1) by default. If your data is a full population (e.g., all students in a class), use population standard deviation instead. The difference is small for large samples but matters for small ones.
  • Forgetting to multiply by 100: The CV is usually reported as a percentage, not a decimal. A CV of 0.25 is often written as 25%.
  • Using CV when the mean is zero or near zero: If the mean is 0, the CV is undefined (division by zero). If the mean is very close to zero, the CV becomes extremely large and misleading. In such cases, use the standard deviation alone.
  • Comparing CVs from different types of data: The CV is only meaningful for ratio-scale data (where zero means “noneâ€�). It is not appropriate for interval data like temperature in Celsius or Fahrenheit, where zero is arbitrary.

Limitations of the Coefficient of Variation

The CV has several known limitations:

  • It is undefined when the mean is zero, and unstable when the mean is close to zero.
  • It is sensitive to small changes in the mean when the mean is small.
  • It cannot be used for data that includes negative values in a meaningful way (e.g., temperatures below zero), because the sign of the mean affects the interpretation.
  • It assumes the data is measured on a ratio scale with a true zero point.

When these limitations apply, consider using the standard deviation, interquartile range, or range instead.

Alternatives to the Coefficient of Variation

Depending on your goal, other measures of relative variability include:

  • Standard deviation: Absolute variability in the same units as the data.
  • Interquartile range (IQR): The range of the middle 50% of data, robust to outliers.
  • Range: The difference between the maximum and minimum values, simple but sensitive to outliers.
  • Variance: The square of the standard deviation, useful in statistical calculations.
  • Gini coefficient: Used in economics to measure inequality, related to the Lorenz curve.

Frequently Asked Questions

What is a good coefficient of variation?

There is no universal “good� value. In many laboratory and quality-control settings, a CV below 5% is considered excellent, below 10% is good, and above 15% may indicate problems. However, in fields like biology or finance, higher CVs are common and acceptable. Always compare CVs within the same context.

Can the coefficient of variation be negative?

No. The standard deviation is always non-negative, and the mean can be negative, but the CV is usually reported as an absolute value. If the mean is negative, the CV becomes negative, which is meaningless for comparison. In practice, you should only use CV for data with a positive mean.

What is the difference between sample and population standard deviation in the CV?

The sample standard deviation (s) divides the sum of squared deviations by n-1, while the population standard deviation (σ) divides by n. The sample version is an unbiased estimate of the population parameter when your data is a sample. The calculator uses the sample version by default; use the population version only if your data covers the entire group of interest.

How do I calculate the CV in Excel?

In Excel, you can use the formula =STDEV.S(range)/AVERAGE(range)*100 for a sample, or =STDEV.P(range)/AVERAGE(range)*100 for a population. Replace “range� with your actual data cells. The result will be the CV as a percentage.

Why is the CV undefined when the mean is zero?

Because the formula divides by the mean. Division by zero is undefined in mathematics. If your data has a mean of zero, the CV cannot be calculated. In such cases, use the standard deviation or another measure of variability instead.

Can I use the CV to compare data with different units?

Yes, that is one of the main advantages of the CV. Because it is a dimensionless ratio (standard deviation divided by mean), the units cancel out. For example, you can compare the variability of heights (in cm) with weights (in kg) directly using their CVs.

Related

Formula used
in list | Data values | 4, 8, 15, 16, 23, 42 | 0
out cv | Coefficient of variation | % | (sd / mean) * 100 | 2
out mean | Mean | - | mean | 2
out sd | Standard deviation (sample) | - | sd | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.