Correlation Calculator (Pearson and Spearman)
Compute Pearson and Spearman correlations with p-values for every pair of columns in your data.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Step 1: Open Correlation Calculator (Pearson and Spearman) and add your input
Type your numbers or text, add your file, or pick the options you need. Nothing is uploaded: everything stays in your browser.
- 2Step 2: What Correlation Calculator (Pearson and Spearman) does
Compute Pearson and Spearman correlations with p-values for every pair of columns in your data.
- 3Step 3: Read the result and compare
The result appears at once. Change one value to see how the answer moves, then keep the figure that fits your case.
- 4Step 4: Copy or save it
Copy the result or download it. For an important decision, confirm it with the official source or an adviser.
About this tool
Paste your data with one column per variable. The calculator gives, for every pair of columns, Pearson's r and Spearman's rho with their two-sided p-values and the sample size.
The two coefficients
Pearson's r measures a linear relationship and is sensitive to outliers. Spearman's rho is Pearson's r applied to the ranks (ties share the average rank), so it measures any monotonic relationship.
p-values
The test statistic t = r√((n − 2) ÷ (1 − r²)) has n − 2 degrees of freedom. A small p means the correlation is unlikely to be zero in the population. For Spearman this is an approximation, good for n of 10 or more.
Paste a table with one row per line, the values separated by commas, spaces or tabs, and an optional first line of column names.
Worked example
Height, weight and age of six people: height and weight have r = 0.9993 (p < 0.0001) and rho = 1; height and age have r = 0.9051 (p = 0.0131).
Tips for best results
Check every box before you rely on a result, because one wrong digit changes the whole answer. Use the exact figures from your payslip, bill, certificate or contract, and keep a note of the date you calculated. Rates, thresholds and rules change from time to time, so for tax, fees and legal matters treat the output as an estimate and confirm with the official source named on this page. You can run as many scenarios as you like; nothing is saved or sent, and refreshing the page clears the boxes.
Quick facts
- Category: Math & Science
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in many languages.
- Content last reviewed:
Frequently asked questions
Pearson or Spearman?
Pearson for linear relationships in roughly normal data, Spearman for ranks or curved but monotonic relationships.
Does correlation mean causation?
No.
How many columns?
2 to 8, with at least 4 rows.
What is the p-value?
The chance of a correlation this strong if the true correlation were zero.
