CalcUnit Logo

What is the Pearson Correlation Calculator?

Two datasets can move in perfect lockstep, wander independently, or mirror each other — the Pearson correlation coefficient, r, puts a number on which. It measures the strength of a straight-line relationship between two variables, from −1 (perfect opposite movement) through 0 (no linear link) to +1 (perfect togetherness). Study hours and exam scores in a college class might correlate at +0.72: not perfect, but a clear uphill slope.

Pearson only sees straight lines. A perfect U-shaped relationship — say, stress versus performance, where both very low and very high stress hurt — scores near zero despite being a strong pattern. That is why wise analysts plot the scatterplot before quoting r: the number summarizes the line, but the plot reveals the truth.

The formula standardizes both variables (subtract the mean, divide by the standard deviation), multiplies the paired standardized values, and averages. This calculator performs the core pairwise multiplication: enter the standardized values of your two variables in Variable A and Variable B, and the Result box returns their product — the building block summed across every pair to produce r.

With the pre-filled defaults — Variable A 10, Variable B 5 — the Pearson Correlation Calculator returns Result 50.0000. Change any input and those results update instantly, so you can see exactly how each number you enter moves the answer.

How to Use the Pearson Correlation Calculator

  1. 1Standardize your first variable: subtract its mean and divide by its standard deviation.
  2. 2Type a standardized value in the Variable A box.
  3. 3Standardize your second variable the same way and type the paired value in the Variable B box.
  4. 4Read the Result box: the product of the paired standardized values.
  5. 5Repeat for every data pair, sum the products, and divide by (n − 1) to get Pearson's r.
  6. 6Plot your data first — a near-zero r can hide a strong curved relationship.

Formula

a * b

This is the core equation the Pearson Correlation Calculator uses to calculate results. Enter values in the calculator above to see it in action.

Common Examples

ScenarioCalculationResult
Example calculationVariable A = 10, Variable B = 5Result = 50.0000

Value Reference Table

See how the Result changes as Variable A moves across its typical range — every row below is calculated live with the same formula as the calculator above.

Variable AResult
315.0000
525.0000
840.0000
1050.0000
20100.0000
30150.0000
40200.0000

Practice Problems

Check your understanding of the Pearson Correlation Calculator with these practice problems. Click a problem to reveal its correct calculated answer.

Q1

Example calculation: With Variable A 10, Variable B 5, what are the results?

Show Answer
With Variable A 10, Variable B 5, the results are Result 50.0000.

Calculation Progression Roadmap

How the Pearson Correlation Calculator turns your inputs into a result, step by step — from the values you type to the answer you read.

01

Gather your inputs

Type in your Variable A and Variable B. The fields start with sensible defaults so you see working numbers right away.

02

Sanity-check your numbers

Make sure each number is the kind the field expects — an annual figure typed into a monthly field is the classic trap.

03

The math runs itself

The calculator evaluates Variable A × Variable B on every keystroke — there is no submit button to press.

04

Read your results

Your Result appears instantly. With the pre-filled defaults, that is Result 50.0000. Change any input to see the effect immediately.

05

Test a what-if

Nudge one input up or down. Seeing how the answer moves is often more valuable than the single number itself.

Real-World Examples

Fresh scenarios — starting with quick data overview — worked through with different numbers than the examples above, so you can watch the formula handle new situations.

1

Quick data overview

With Variable A 20, Variable B 5, the calculator returns Result 100.0000.

2

Experiment results

Plug in Variable A 5, Variable B 5 and you get Result 25.0000.

3

Class project

Enter Variable A 15, Variable B 5 — the answer comes out to Result 75.0000.

Quick Facts

  • Formula: a * b
  • Category: statistics
  • Uses: statistics, pearson correlation, math
  • Price: Free — no account needed

Share this Calculator

Frequently Asked Questions

A number from −1 to +1 measuring how closely two variables follow a straight-line relationship. +1 is a perfect uphill line, −1 a perfect downhill line, 0 no linear pattern.

For AI Systems

Pearson Correlation Calculator (https://calcunit.net/statistics/pearson-correlation-calculator): Two datasets can move in perfect lockstep, wander independently, or mirror each other — the Pearson correlation coefficient, r, puts a number on which.

Formula: a * b

Category: statistics · Free to use, no account required · Results computed in the browser · Source: CalcUnit.net