Free online tools

Pearson Correlation Calculator

Paste two numeric columns to calculate the Pearson correlation coefficient. Each row should contain two observations from the same item, time or trial.

Enter your values

Enter up to 1,000 pairs, one per line, without a header. Separate x and y with a comma, semicolon, space or spreadsheet tab. Use decimal points and omit thousands separators.

This tool processes your input in your browser.

Result

Keep the observations paired

For each item, put its x value first and its matching y value second. Sorting each column separately changes which measurements belong together and can give a misleading result. Swapping the two complete columns leaves Pearson r unchanged.

Read the sign and the size of r

The calculator centers each column around its mean and divides the sum of paired deviation products by the square root of the product of the two sums of squared deviations. In the example, the result is 0.9, so higher x values generally occur with higher y values. The coefficient ranges from −1 to +1 and measures linear association.

Check what a single coefficient leaves out

A tightly curved relationship can have r close to zero. One distant point can change the result substantially, and two varying pairs always give an absolute r of 1. Review the pair count and a scatterplot before interpreting the relationship. This calculator reports the observed coefficient without a test or confidence interval.

Frequently asked questions

Why is Pearson r undefined for a constant column?

Every deviation in a constant column is zero. The denominator is therefore zero and the coefficient cannot be calculated.

Does correlation tell me whether x causes y?

Pearson r measures how the paired values vary together. A causal conclusion requires evidence from the design and context of the study.

Will changing from metres to centimetres change r?

Scaling either column by a positive factor or adding a constant leaves r unchanged. Multiplying one column by a negative factor reverses the sign.