Skip to content

Free browser tools that respect your files: everything runs locally, nothing is uploaded.

Correlation Calculator - Pearson r & R-Squared 2026

Free correlation coefficient calculator. Calculate Pearson correlation (r), R-squared, linear regression equation, and covariance.

Try These Correlation Examples

Quick-start with common scenarios

Common Applications

Finance

Stock correlations for portfolio diversification, beta coefficient calculation, risk analysis.

Healthcare

Relationship between risk factors and health outcomes, drug dosage vs. effectiveness.

Education

Study time vs. test scores, class size vs. student performance, attendance vs. grades.

Marketing

Advertising spend vs. sales, price vs. demand, customer satisfaction vs. retention.

Practice Correlation Problems

Test your skills with practice problems

Practice with 6 problems to test your understanding.

Formula:

Quick Answer

Pearson correlation coefficient (r) measures the linear relationship between two variables, ranging from -1 to +1. r = +1 means perfect positive correlation (both increase together), r = -1 means perfect negative correlation (one increases as other decreases), r = 0 means no linear relationship. Formula: r = Sum[(x-mean_x)(y-mean_y)] / sqrt[Sum(x-mean_x)^2 x Sum(y-mean_y)^2]. R-squared (r^2) shows proportion of variance explained.

Key Facts

  • r ranges from -1 (perfect negative) to +1 (perfect positive)
  • r = 0 indicates no linear relationship
  • R-squared (r^2) = proportion of variance explained (0 to 1)
  • |r| > 0.7 typically indicates strong correlation
  • |r| between 0.3-0.7 indicates moderate correlation
  • |r| < 0.3 indicates weak correlation
  • Correlation does not imply causation
  • Linear regression finds best fit line: y = mx + b

Frequently Asked Questions

Frequently Asked Questions

What is Pearson correlation coefficient?

The Pearson correlation coefficient (r) measures the strength and direction of the linear relationship between two continuous variables. It ranges from -1 to +1. A value of +1 indicates a perfect positive linear relationship (both variables increase together), -1 indicates a perfect negative linear relationship (one increases as the other decreases), and 0 indicates no linear relationship.

What is R-squared and how do I interpret it?

R-squared (coefficient of determination) is the square of the correlation coefficient. It represents the proportion of variance in the dependent variable (Y) that is predictable from the independent variable (X). For example, R-squared = 0.64 means 64% of the variance in Y is explained by X. Higher R-squared indicates a better fit of the regression line to the data.

What constitutes a strong correlation?

Correlation strength is typically interpreted as: |r| >= 0.9 is very strong, |r| 0.7-0.9 is strong, |r| 0.5-0.7 is moderate, |r| 0.3-0.5 is weak, and |r| < 0.3 is very weak or negligible. However, these are general guidelines and interpretation depends on context. In some fields like physics, r > 0.9 is expected, while in social sciences, r > 0.3 may be meaningful.

Does correlation imply causation?

No, correlation does not imply causation. Two variables can be correlated without one causing the other. They might both be influenced by a third variable (confounding), the relationship might be coincidental, or the causation might be reversed. To establish causation, you need controlled experiments or rigorous causal analysis methods.

What is covariance vs correlation?

Both measure the relationship between two variables, but covariance is scale-dependent (measured in units of X times Y) while correlation is standardized (unitless, ranging -1 to +1). Correlation is covariance divided by the product of standard deviations, making it easier to interpret and compare across different datasets.

By Joseph OrdunaHow this works

How this works

Formulas follow standard definitions from the NIST Digital Library of Mathematical Functions and classical textbook derivations. Calculations run entirely in your browser. Where a closed-form solution exists, it is used; where an iterative or numerical method is required, the implementation is named on the page.

Sources

  1. [1]
    NIST Digital Library of Mathematical Functions
    Academicdlmf.nist.govAccessed Apr 21, 2026
Joseph Orduna
Founder & Software Engineer

Full-stack software engineer specializing in embedded systems, web architecture, and AI/ML. Founder of Practical Web Tools. Built the gesture-controlled drone IP acquired by KD Interactive (Aura Drone, sold on Amazon).