Skip to content
Advertisement
Hosinger Special Offer

Correlation Coefficient Calculator

Correlation Coefficient Calculator from Gizcalc helps you estimate results quickly within the Math & Statistics category.

  • Instant results
  • Charts & tables
  • Save & compare
  • Private – runs in your browser
Pearson Correlation (r) —

Sample inputs are pre-filled so you can see a result quickly. Results are estimates only and may not be accurate because prices, interest rates, taxes, fees, fuel costs, tariffs, market returns, medical costs, and local rules can change. Please verify current values before making financial, tax, legal, medical, or business decisions.

Formula used

r = Σ(x − x̄)(y − ȳ) ÷ √[Σ(x − x̄)² × Σ(y − ȳ)²]

  • x̄, ȳ = the means of x and y
  • r² = the share of variation in one variable explained by the other
  • t = r √(n − 2) ÷ √(1 − r²), used for the p-value with n − 2 degrees of freedom

About the Correlation Coefficient Calculator

What is the Correlation Coefficient Calculator?

The Pearson correlation coefficient r measures the strength and direction of the linear relationship between two variables. It ranges from −1 (a perfect negative line) through 0 (no linear relationship) to +1 (a perfect positive line).

Enter paired x and y values — for example hours studied and exam marks. The calculator returns r, the coefficient of determination r², a description of the strength and direction, and a two-tailed p-value that tests whether the correlation could plausibly be zero.

How to use the Correlation Coefficient Calculator

  1. X Values (separated by commas) (sample: 43, 21, 25, 42, 57, 59)
  2. Y Values (same order) — must have the same number of values as x, in matching order. (sample: 99, 65, 79, 75, 87, 81)
  3. Press Calculate Correlation (results also refresh as you type). The result card shows the Pearson Correlation (r), along with Coefficient of determination (r²), Strength & direction, Number of pairs and p-value (two-tailed).

Formula used

r = Σ(x − x̄)(y − ȳ) ÷ √[Σ(x − x̄)² × Σ(y − ȳ)²]

  • x̄, ȳ = the means of x and y
  • r² = the share of variation in one variable explained by the other
  • t = r √(n − 2) ÷ √(1 − r²), used for the p-value with n − 2 degrees of freedom

Strength labels used: |r| ≥ 0.8 very strong, ≥ 0.6 strong, ≥ 0.4 moderate, ≥ 0.2 weak, otherwise very weak or none.

Worked example

These are the sample values already filled in the calculator above, and the result it returns for them:

InputSample value
X Values (separated by commas)43, 21, 25, 42, 57, 59
Y Values (same order)99, 65, 79, 75, 87, 81
ResultValue
Pearson Correlation (r)0.5298
Coefficient of determination (r²)0.2807
Strength & directionModerate positive
Number of pairs6
p-value (two-tailed)0.2796

Tips for using the Correlation Coefficient Calculator

  • Correlation is not causation — ice-cream sales and drowning incidents are correlated because both rise in summer.
  • Pearson r only captures straight-line relationships; a perfect U-shape can have r ≈ 0.
  • With few data points, even a large r can arise by chance — check the p-value.

Frequently asked questions

It depends on the field, but as a rough guide |r| above 0.6 is strong and above 0.8 very strong. In social sciences, 0.3 to 0.5 is often considered meaningful.

As one variable increases, the other tends to decrease — for example, the price of a product and the quantity sold.

r gives direction and strength; r² (always between 0 and 1) is the proportion of variance shared by the two variables. r = 0.53 means r² ≈ 0.28, or 28% shared variance.

Look at the p-value. If it is below your chosen α (usually 0.05), the correlation is statistically significant.