Covariance measures how two series of numbers, such as the returns of two assets, vary together. A positive value means they tended to be above their averages at the same time. A negative value means one tended to be high when the other was low. The size depends on the units, so it is hard to compare between pairs.
Last updated 28 Nov 2026. Reviewed by the Custom Trading Platform education desk. Every figure on this page is sample arithmetic, shown in full.
Series X is 2, 4, 6, 8, with an average of 5. Series Y is 1, 3, 2, 6, with an average of 3.
| X gap | Y gap | Product |
|---|---|---|
| -3 | -2 | 6 |
| -1 | 0 | 0 |
| 1 | -1 | -1 |
| 3 | 3 | 9 |
| Total | 14 |
The sample covariance is 14 divided by 3, which is 4.67. The population figure is 14 divided by 4, which is 3.5. Both are positive, so the two series tended to be high together.
Take X as 1, 2, 3, 4 (average 2.5) and Y as 8, 6, 7, 3 (average 6). The gap products are -3, 0, 0.5 and -4.5, which total -7, so the sample covariance is -7 divided by 3, which is -2.33. As X went up, Y tended to go down.
Now measure Y in hundredths, so 8 becomes 800. The covariance becomes -233.3, one hundred times larger, though nothing about the relationship changed. That is why covariance on its own is hard to compare.
Correlation divides the covariance by the two standard deviations, which removes the units and keeps the result between -1 and 1. In the first example it is 14 divided by the square root of 20 times 14, which is 0.84. The correlation calculator does the same for any two lists, and beta divides by one variance instead.
Covariance describes the sample you gave it. It does not say one series causes the other, and it can change a lot between periods. Four pairs, as here, are only for checking the method by hand.
Every figure on this page is sample arithmetic, shown in full, as of 28 Nov 2026. Each result was worked a second way before it was kept. No market data, price quote, broker term or return is stated as fact. How we check numbers is on the methodology page, and corrections go through contact.
We will recompute every figure in a second spreadsheet and repeat the worked example at a second set of inputs. No result is claimed. Last tested: not yet, results pending.
What does positive covariance mean? The two series tended to be above their averages at the same time.
What is the difference between covariance and correlation? Correlation is the covariance divided by both standard deviations, so it has no units and sits between -1 and 1.
Why is covariance hard to interpret? Its size depends on the units, so a bigger number does not mean a stronger link.
How do you calculate covariance? Multiply each pair of gaps from the averages, add them and divide by the number of pairs minus 1.
Glossary, correlation calculator, beta, r squared, volatility, Disclaimer.
Start free: create a free account to get the weekly note on tools and tests.
Education only. Nothing here is financial advice or a signal.
© 2026 Custom Trading Platform
Nothing here is financial advice, a signal or an offer. Trading can lose money, and on some products more than you put in. Past results describe the past.