Home / Covariance Calculator

Covariance Calculator

Covariance describes how two numeric data series vary together around their respective means. This tool reports both population and sample covariance.

How to use this calculator

  1. Enter paired values in the same order, separated by commas. Both series must contain the same number of observations, with at least two pairs.
  2. Check the units and definitions before comparing results with another source.
  3. Change one input at a time when comparing scenarios, and keep the reporting period and assumptions consistent.

Formula used by the covariance calculator

Population covariance = Σ((xᵢ − x̄)(yᵢ − ȳ))/n; sample covariance divides by n − 1

  • Population covariance = Σ((xᵢ − x̄)(yᵢ − ȳ))/n; sample covariance divides by n − 1
  • Covariance is affected by the units and scale of each series. It is not bounded between −1 and 1; use correlation when a normalized association measure is needed.
  • Inputs are checked for required values and valid ranges; displayed results are rounded for readability.

Worked examples

Worked example

Series X = 2, 4, 6, 8 and Series Y = 1, 3, 5, 7.

Each series rises together; population covariance is 5 and sample covariance is 6.667.

Each series rises together; population covariance is 5 and sample covariance is 6.667.

Understanding the result

Covariance describes how two numeric data series vary together around their respective means. This tool reports both population and sample covariance.

Covariance is affected by the units and scale of each series. It is not bounded between −1 and 1; use correlation when a normalized association measure is needed.

Important notes

Covariance is affected by the units and scale of each series. It is not bounded between −1 and 1; use correlation when a normalized association measure is needed.

The result applies to the numbers and assumptions entered here; verify specifications for safety-critical or regulated uses.

Frequently asked questions

What does positive covariance mean?

Positive covariance indicates that values tend to be above or below their means together in the observed sample.

Is covariance the same as correlation?

No. Correlation standardizes covariance by the standard deviations and is bounded between −1 and 1.

How do I use this calculator?

Enter paired values in the same order, separated by commas. Both series must contain the same number of observations, with at least two pairs.

Affiliate recommendations

Tools related to Covariance Calculator

These tools are selected for the calculator topic. The Calc Studio may earn a commission from purchases made through affiliate links.

  • Growth Wise SAT & ACT prep Visit partner ↗

    SAT and ACT study tools, flashcards, and preparation resources for students.

See the Affiliate Disclosure for details.

Related calculators

  • Sample Size Calculator — Estimate a simple random-sample size for a proportion using a chosen confidence z-score, assumed proportion and margin of error.
  • Sample Size for a Proportion Calculator — Estimate sample size for a proportion at a chosen confidence z-score and margin of error.
  • 2×2 Matrix Calculator — Add, subtract and multiply 2×2 matrices and calculate each determinant with transparent row and column inputs.
  • Standard Deviation Calculator — Calculate population or sample standard deviation, variance, mean, sum, and count.
  • Streaming Data Usage Calculator — Estimate decimal data use for streaming from bitrate, viewing hours, days watched and an overhead allowance.
  • Circle Calculator — Calculate circle area, circumference, and diameter from radius.

Related explanations

Learn the method behind the number or compare the terminology before using the calculator.

  • How to Calculate Standard Deviation — Learn what standard deviation measures, the population and sample formulas, and how to interpret the result.
  • How to Calculate a Z-Score — Learn how a z-score shows how far a value is from the mean in standard-deviation units.
  • Standard Deviation — Understand standard deviation as a measure of spread and the difference between population and sample standard deviation.

This page provides a calculation tool plus explanatory information so you can understand what the result means and when the underlying method may not fit your situation.

Explore more calculation resources

Keep exploring related tools, explanations, conversions, and topic pages in The Calc Studio. These links are selected around the subject of this page so you can move to the next useful calculation without returning to search.

Related calculators

  • Sample Size Calculator — Estimate a simple random-sample size for a proportion using a chosen confidence z-score, assumed proportion and margin of error.
  • Standard Deviation Calculator — Calculate population or sample standard deviation, variance, mean, sum, and count.
  • Correlation Coefficient Calculator — Calculate the Pearson correlation coefficient for paired numeric observations and see the direction and strength of their linear association.
  • Sample Size for a Proportion Calculator — Estimate sample size for a proportion at a chosen confidence z-score and margin of error.
  • 2×2 Matrix Calculator — Add, subtract and multiply 2×2 matrices and calculate each determinant with transparent row and column inputs.
  • Interquartile Range Calculator — Calculate the first quartile, third quartile, and interquartile range of a numeric data set.
Browse by categoryMath CalculatorsBusiness CalculatorsEveryday ToolsDate & Time CalculatorsFinancial CalculatorsHealth & Fitness Calculators

Task collections

  • Calculators for Students — Free student calculators for grades, percentages, fractions, probability, normal distributions, matrices, vectors, complex numbers, statistics, geometry, and scientific math.
  • Math & Statistics Calculators — Free math and statistics calculators for Bayes theorem, set operations, matrices, complex numbers, vector products, normal distributions, averages, percentages, standard deviation, geometry, equations, and number systems.
  • Everyday Money Calculators — Free money and operating calculators for salary, overtime, VAT, pricing, budgets, fuel costs, receivables and payables days, acquisition payback, staffing, email-list growth, and creator RPM estimates.
  • Science & Electronics Calculators — Free science and electronics calculators for projectile motion, force, buoyancy, fluid pressure, Reynolds number, heat transfer, capacitors, RC time constants, resistance, and electrical relationships.

Related guides

  • How to Calculate Standard Deviation — Learn what standard deviation measures, the population and sample formulas, and how to interpret the result.
  • How to Calculate a Z-Score — Learn how a z-score shows how far a value is from the mean in standard-deviation units.
  • How to Calculate Age from a Date of Birth — Learn how exact age is calculated using years, months, and days rather than a rough year difference.

Related terms

  • Standard Deviation — Understand standard deviation as a measure of spread and the difference between population and sample standard deviation.
  • Markup — Learn what markup means, how markup is calculated from cost and selling price, and how it differs from margin.
  • Percent Difference — Understand percent difference, when it is appropriate, and how it differs from percentage change and percent error.

Useful conversions

  • °C to °F — Convert Celsius to Fahrenheit with a free temperature converter, formula, examples, and common temperatures.
  • °F to °C — Convert Fahrenheit to Celsius with a free temperature converter, formula, examples, and common temperatures.
  • cm to feet — Convert centimeters to feet with a free cm to feet converter, formula, examples, and a quick reference table.

Browse all calculators · Read all guides · Open the glossary · See all converters · Browse collections

Want to keep learning? Move from a calculator to its formula guide, glossary definition, unit conversion, or task collection to compare related methods and tools.

Optional Premium: save calculation history across visits and remove promotional blocks. See Premium.