Correlation Calculator

Measure the linear relationship between paired numerical observations. Enter your own values below to see pearson correlation and check the method behind it.

All calculators

Your inputs

Change the example values to match your situation.

Your result

Let’s work it out.

Fill in your inputs and select Calculate.
Your result and breakdown will appear here.

How this calculator works

Pearson r = covariance numerator ÷ √(sum of squared x deviations × sum of squared y deviations). Ordinary least-squares slope = covariance numerator ÷ sum of squared x deviations.

What is Correlation Calculator?

Correlation Calculator helps you measure the linear relationship between paired numerical observations.

The main result is pearson correlation, with a breakdown of intercept, r squared and regression equation. The formula, example and assumptions below explain how to interpret it.

How to use Correlation Calculator

Use the example to get familiar with the form, then enter your own figures. Any rates in the example are illustrative. Check the field labels and units before calculating.

  1. Gather paired values: x, y. Use values from the same situation or reporting period.
  2. Replace the example paired values: x, y with your own value, then complete the other fields. Check the displayed units.
  3. Select Calculate and read pearson correlation with its result breakdown. Change one input and calculate again to compare a second scenario. Reset restores the original example.
  • Enter paired values: x, y in the format shown by the example. Keep the same separators and row structure.

Correlation Calculator: a worked example

With the inputs below, the result is 0.981156 (pearson correlation). Follow the example, then replace these illustrative values with your own.

Example inputs and output
Input or outputExample value
Paired values: x, y1, 2; 2, 4; 3, 5; 4, 8
Pearson correlation0.981156
Intercept0
R squared0.962667
Regression equationy = 1.900000x + 0.000000

Understanding the Correlation result

Read pearson correlation alongside intercept, r squared and regression equation. These describe different parts of the same calculation.

Displayed results use a readable number of decimal places. When checking a result by hand, keep extra precision until the last step. To compare scenarios, change one input at a time and keep the others fixed.

  • Example Intercept: 0
  • Example R squared: 0.962667
  • Example Regression equation: y = 1.900000x + 0.000000

Correlation Calculator: assumptions and common mistakes

A useful estimate starts with the right inputs. Check the following assumptions and limits before applying the result to your situation.

  • Check the base value, sample definition and chosen operation. Display rounding should come after the calculation.

For wider guidance, visit NIST statistical handbook. The formula and scope of this specific tool are stated on this page.

Correlation Calculator FAQs

What does Correlation Calculator calculate?

Correlation Calculator helps you measure the linear relationship between paired numerical observations. Its main output is pearson correlation.

What inputs do I need for Correlation Calculator?

You need paired values: x, y. Use the field labels and units to match your figures to the formula.

Which formula does Correlation Calculator use?

Pearson r = covariance numerator ÷ √(sum of squared x deviations × sum of squared y deviations). Ordinary least-squares slope = covariance numerator ÷ sum of squared x deviations.

What is a worked example for Correlation Calculator?

Example inputs: Paired values: x, y: 1, 2; 2, 4; 3, 5; 4, 8. The result is 0.981156 (pearson correlation).

How should I enter paired values: x, y?

Enter paired values: x, y in the format shown by the example. Keep the same separators and row structure.

Why might the displayed result be rounded?

The result display limits decimal places to keep numbers readable. Very small values may use scientific notation. Keep extra precision during a manual calculation, then round the final answer for comparison.

How should I read pearson correlation?

Read pearson correlation alongside intercept, r squared and regression equation. These describe different parts of the same calculation.

Why might my Correlation Calculator result differ from my records?

Check the base value, sample definition and chosen operation. Display rounding should come after the calculation. Differences in entered values, units or rounding can also change the comparison.

Can I compare two scenarios in Correlation Calculator?

Yes. Note your first pearson correlation, change paired values: x, y or another input, and select Calculate again. Editing a field clears the old result so it is not mistaken for a new calculation.

Is Correlation Calculator free, and where are my inputs calculated?

This calculator is free to use without signing in. Its formula runs in your browser; calculator inputs are not sent to a calculation API. The inputs reset to the example values when you reset the form or start a fresh page.