Correlation Calculator

Calculate Pearson correlation between two datasets and view the strength and direction of their linear relationship.

Enter paired datasets of equal length. Values can be separated by commas, spaces, or line breaks.

Result will appear here.
Metric Value

Privacy: calculations run locally in your browser. No values are stored or transmitted.

How it works

Pearson correlation compares paired standardized variation in X and Y. It is often written as r and ranges from -1 to 1.

Examples

  • Perfect upward linear pattern → correlation close to 1
  • Perfect downward linear pattern → correlation close to -1
  • No clear linear pattern → correlation near 0

FAQ

  • What does correlation measure?

    Correlation measures the strength and direction of a linear relationship between two variables.

  • What values can correlation take?

    Pearson correlation ranges from -1 to 1. Values near 1 indicate strong positive linear association, near -1 strong negative linear association, and near 0 weak linear association.

  • Do both datasets need the same number of values?

    Yes. Correlation requires paired observations, so both lists must have the same length.

  • Are calculations stored?

    No. Everything runs locally in your browser.

Related tools