Statistics
How To Calculate The Skewness
Skewness describes the asymmetry of a set of numbers around its mean. This page computes the population skewness from five fixed values as the standardised third central moment, showing the mean, the two moments and the final ratio at each stage.
Last updated
Quick Answer
Skewness = m3 / m2^(3/2)
- m2
- Second central moment, the variance of the values
- m3
- Third central moment, the mean cubed deviation
- m2^(3/2)
- The variance raised to three halves, equal to the standard deviation cubed
Divide the third central moment by the variance raised to the power of three halves. For the five values 1, 2, 3, 4 and 10 the mean is 4, the variance is 10, the third moment is 36 and the skewness is about 1.13842, a right-skewed sample. A symmetric set gives zero and 1, 2, 3, 4, 7 gives about 0.692728.
What Is The Skewness?
Skewness measures the asymmetry of a distribution around its mean. A perfectly symmetric distribution has zero skewness because deviations above and below the mean cancel in equal measure. A positive value signals a longer or heavier right tail, where a few unusually large values pull the mean above the median. A negative value signals the mirror image, a longer left tail and a mean below the median. Unlike the mean or the variance, skewness is dimensionless, so it can be compared across variables measured in different units.
The population measure used here is the standardised third central moment, written m3 divided by m2 raised to the power of three halves. The denominator m2 is the variance, and raising it to three halves converts the cubic units of the numerator back to a pure number. Dividing by the standard deviation cubed is the same operation expressed differently. Because the numerator is a sum of cubed deviations, outliers exert far more influence here than they do on the variance. A single extreme value can dominate the skewness of a small sample.
This calculator uses five fixed values to keep the expression readable: 1, 2, 3, 4 and 10. Their mean is 4, the sum of squared deviations is 50, and the sum of cubed deviations is 180. Those numbers feed directly into the moments that the page reports. You can replace any of the five entries and see the mean, the moments and the final skewness update together. Keeping the sample small is a deliberate teaching choice, since a longer list would obscure the structure of the calculation.
The sign of the result carries the interpretation. Positive skewness means the right tail is longer, as in the default data where the value 10 sits far above the cluster at 1 through 4. Negative skewness means the left tail is longer and the bulk of the observations lie above the mean. Zero does not require every value to be equal; it only requires the cubed deviations to cancel. A symmetric set such as 1, 2, 3, 4 and 5 has zero skewness even though its values are spread out. Treat the magnitude as a description of shape, not a verdict on quality.
For the default values the variance, m2, is 10 and the third central moment, m3, is 36. The square root of 10 is about 3.16228, so m2 raised to three halves is about 31.6228. Dividing 36 by that figure gives a skewness of about 1.13842. This is a strongly right-skewed sample, driven almost entirely by the single large observation. A value above one is usually considered substantial in applied work.
There are two common conventions, and they give different numbers on small samples. This page uses the population convention, sometimes called the biased or uncorrected estimate, with no adjustment for sample size. Software packages that apply a bias correction multiply the result by a factor involving n, which for five observations changes the answer noticeably. Always state which convention you are using before comparing figures from different sources. The population form is chosen here because it matches the simple standardised moment definition and keeps the expression transparent.
Changing one value makes the effect of the tail easy to see. Replace the 10 with a 7 and the set 1, 2, 3, 4, 7 has a mean of 3.4 and a skewness of about 0.692728. The smaller extreme produces a smaller positive value, exactly as the formula predicts. Move to the symmetric set 1, 2, 3, 4, 5 and the skewness is exactly zero. The progression from 0 to 0.693 to 1.138 tracks how far the largest observation sits from the rest.
Skewness explains why the mean and median diverge. In a right-skewed sample the mean is pulled towards the tail and sits above the median, so reporting only the average can give a misleading impression of a typical value. Income distributions, claim sizes and reaction times are classic right-skewed cases. Analysts often transform such data with a logarithm before applying methods that assume symmetry. Skewness is therefore a diagnostic as much as a summary statistic.
The measure has limits that matter with tiny samples. It is highly sensitive to outliers, so a single recording error can reverse the sign. It is undefined when the variance is zero, because the denominator collapses. With only five values the estimate is unstable and should not be treated as a reliable statement about a wider population. Use the page to understand the mechanics of the standardised third moment, then move to a larger sample and a full statistical tool for serious inference.
Formula
gamma = m3 / m2^(3/2)
Formula page →The standardised third central moment. The denominator is the variance raised to three halves, which makes the ratio dimensionless and fixes the sign convention.
| Symbol | Meaning | Unit | Notes |
|---|---|---|---|
| gamma | Population skewness | dimensionless | Positive for a longer right tail, negative for a longer left tail. |
| m2 | Second central moment | squared units | The variance of the values, 10 for the default data. |
| m3 | Third central moment | cubed units | The mean cubed deviation, 36 for the default data. |
m2 = sum((x_i - xbar)^2) / n
Formula page →Add the squared deviations from the mean and divide by n. This is the population variance, the denominator of the skewness ratio.
| Symbol | Meaning | Unit | Notes |
|---|---|---|---|
| x_i | An individual observation | same as data | One of the five entered values x1 through x5. |
| xbar | Sample mean | same as data | The average of all five values, 4 by default. |
| n | Number of observations | count | Fixed at five in this calculator. |
m3 = sum((x_i - xbar)^3) / n
Formula page →Add the cubed deviations from the mean and divide by n. Cubing preserves the sign, so values on either side of the mean contribute oppositely.
| Symbol | Meaning | Unit | Notes |
|---|---|---|---|
| x_i | An individual observation | same as data | One of the five entered values x1 through x5. |
| xbar | Sample mean | same as data | The centre from which every deviation is measured. |
| n | Number of observations | count | The divisor, fixed at five here. |
How To Calculate The Skewness
- 1
Find the mean of the five values
Add x1 through x5 and divide by five. For the default set the total is 20, so the mean is 4. Every deviation in the moment calculations is measured from this centre, so an error here changes both moments and the final skewness.
- 2
Square the deviations and add them
Subtract the mean from each value and square the result, then add the squares. The deviations are -3, -2, -1, 0 and 6, whose squares are 9, 4, 1, 0 and 36. Their sum is 50. This quantity becomes the variance once it is divided by five.
- 3
Cube the deviations and add them
Now cube the same deviations instead of squaring them. The cubed values are -27, -8, -1, 0 and 216, which add to 180. Unlike squares, cubes keep the sign, so large positive deviations dominate when a tail is long. That is what makes the third moment sensitive to asymmetry.
- 4
Divide each sum by n to get the moments
Divide the squared sum by five to get the second central moment m2, which is 10. Divide the cubed sum by five to get the third central moment m3, which is 36. These are population moments because the divisor is n rather than n minus one. Using a different divisor here would mix the two conventions and change the final ratio, so it is worth checking which definition a source adopts.
- 5
Standardise the third moment
Raise m2 to the power of three halves, that is 10 times the square root of 10, about 31.6228. Divide m3 by that denominator: 36 / 31.6228 gives a skewness of about 1.13842. The positive sign confirms a longer right tail driven by the value 10.
Examples
Example 1: The right-skewed set 1, 2, 3, 4, 10
- x1
- 1
- x2
- 2
- x3
- 3
- x4
- 4
- x5
- 10
| Step | Calculation | Result |
|---|---|---|
| Mean | — | 20 / 5 = 4 |
| Sum of squared deviations | — | 9 + 4 + 1 + 0 + 36 = 50 |
| Sum of cubed deviations | — | -27 - 8 - 1 + 0 + 216 = 180 |
| Moments m2 and m3 | — | 50 / 5 = 10 and 180 / 5 = 36 |
| Skewness | m3 / (m2 x sqrt(m2)) = 36 / (10 x sqrt(10)) | 1.13842 |
Result: The skewness is 1.13842, a strongly right-skewed sample with m2 = 10 and m3 = 36.
Example 2: The symmetric set 1, 2, 3, 4, 5
- x1
- 1
- x2
- 2
- x3
- 3
- x4
- 4
- x5
- 5
| Step | Calculation | Result |
|---|---|---|
| Mean | — | 15 / 5 = 3 |
| Sum of squared deviations | — | 4 + 1 + 0 + 1 + 4 = 10 |
| Sum of cubed deviations | — | -8 - 1 + 0 + 1 + 8 = 0 |
| Moments m2 and m3 | — | 10 / 5 = 2 and 0 / 5 = 0 |
| Skewness | m3 / (m2 x sqrt(m2)) = 0 / (2 x sqrt(2)) | 0 |
Result: The skewness is 0, because the cubed deviations on either side of the mean cancel.
Example 3: The milder tail 1, 2, 3, 4, 7
- x1
- 1
- x2
- 2
- x3
- 3
- x4
- 4
- x5
- 7
| Step | Calculation | Result |
|---|---|---|
| Mean | — | 17 / 5 = 3.4 |
| Sum of squared deviations | — | 5.76 + 1.96 + 0.16 + 0.36 + 12.96 = 21.2 |
| Sum of cubed deviations | — | -13.824 - 2.744 - 0.064 + 0.216 + 46.656 = 30.24 |
| Moments m2 and m3 | — | 21.2 / 5 = 4.24 and 30.24 / 5 = 6.048 |
| Skewness | m3 / (m2 x sqrt(m2)) = 6.048 / (4.24 x sqrt(4.24)) | 0.692728 |
Result: The skewness is 0.692728, smaller than in the default case because 7 is closer to the cluster.
Calculator
Population skewness
1.1384199576606164
- Second central moment (m2)
- 10
- Third central moment (m3)
- 36
- Raw moment ratio (m3 / m2)
- 3.6
Values update as you type. This calculator covers the single scenario its formula assumes — see Common Mistakes for what it leaves out.
Prefer a full-width tool? Open the The Skewness calculator page.
Common Mistakes
Forgetting to standardise the third moment
The raw third moment m3 is measured in cubed units and is not skewness. It must be divided by m2 raised to three halves. For the default data m3 is 36 while the skewness is 1.13842, so reporting the raw moment gives a badly misleading figure.
Using the variance instead of its three-halves power
Some calculations divide m3 by m2 alone, leaving cubic units in the answer. The denominator must be the standard deviation cubed, which equals m2 times the square root of m2. For m2 = 10 the correct denominator is about 31.6228, not 10.
Confusing the sign convention
A positive skewness means a longer right tail, with the mean above the median. A negative value means a longer left tail. Cubing preserves the sign, so the sign of the result follows directly from which side carries the larger extremes. Reversing the convention leads to the wrong verbal description.
Mixing population and bias-corrected conventions
This page uses the uncorrected population moment with divisor n. Statistical software often applies a bias correction that inflates the result, especially with five observations. Comparing numbers from the two conventions without noting the difference produces a false disagreement.
Expecting zero skewness to mean no variation
Skewness of zero only means the cubed deviations cancel. The symmetric set 1, 2, 3, 4, 5 has zero skewness but a variance of 2. Zero says nothing about spread, so it should never be read as evidence that the values are equal.
Trusting skewness from five observations
With a tiny sample a single value drives the result. Change the largest entry from 10 to 7 and the skewness drops from 1.13842 to 0.692728. Treat the number as a description of those five points, not a stable estimate of a population parameter. A different five values from the same population could easily give a different sign altogether, so replication with a larger sample matters before any substantive conclusion.
FAQ
What does skewness tell you about a data set?
Skewness describes the asymmetry of the values around their mean. A positive result means a longer right tail and a mean above the median, while a negative result means a longer left tail. Zero indicates that the cubed deviations above and below the mean cancel. Because it is a dimensionless ratio, the same number can be compared between variables measured on quite different scales, which is why it is often reported beside the mean and standard deviation.
Why is the third moment divided by m2 raised to three halves?
The third moment is measured in cubed units, so dividing by the variance raised to three halves removes those units. The denominator is the standard deviation cubed. The result is a pure number that can be compared across data sets with different scales. If you omit this step, changing the units of measurement from metres to centimetres would alter the reported figure even though the shape of the data had not changed at all.
What convention does this calculator use?
It uses the population, or uncorrected, convention with divisor n in both moments. Some statistical packages apply a bias correction that changes the value for small samples. Always check which convention produced a figure before comparing it with this one.
Can skewness be zero when the values are not all equal?
Yes. Zero skewness only requires the cubed deviations to cancel, which happens for any set symmetric about its mean. The values 1, 2, 3, 4 and 5 are spread out yet have skewness of exactly zero. Variation and asymmetry are separate ideas.
Why is skewness so sensitive to a single outlier?
Because the numerator cubes each deviation. Cubing grows far faster than squaring, so one large distance from the mean can outweigh all the other contributions. In the default data the single value 10 produces almost all of the final skewness of 1.13842.
How is skewness related to the mean and median?
In a right-skewed distribution the mean is pulled towards the long tail and sits above the median, so the average may overstate a typical value. In a left-skewed distribution the mean sits below the median. When skewness is near zero the two measures tend to coincide.
References
- [1], Skewness — https://en.wikipedia.org/wiki/Skewness
- [2], Moment (mathematics) — https://en.wikipedia.org/wiki/Moment_(mathematics)
- [3], Normal distribution — https://en.wikipedia.org/wiki/Normal_distribution
