Correlation Coefficient Calculator
Enter two comma-separated datasets and instantly see Pearson's r, r-squared, and the strength of their linear relationship.
Enter Datasets
Quick Examples
Enter two datasets and click Calculate to see the correlation.
Pearson's r
—
—
r-squared (r²)
—
—
Correlation Strength
-1 (perfect negative)
0 (none)
+1 (perfect positive)
Descriptive Statistics
| Statistic | X | Y |
|---|
Scatter Plot
Copied!
Summary
Enter two comma-separated datasets and instantly see Pearson's r, r-squared, and the strength of their linear relationship.
How it works
- Enter dataset X values as comma-separated numbers (e.g. 1, 2, 3, 4, 5).
- Enter dataset Y values in the same order and with the same count.
- Click Calculate — the tool validates your inputs and checks for equal lengths.
- Pearson's r is computed using the standard formula: sum of (xi - x̄)(yi - ȳ) divided by the product of their standard deviations.
- r-squared is displayed alongside a plain-English interpretation of the correlation strength.
- A scatter plot is drawn using Chart.js so you can visually confirm the relationship.
Use cases
- Determine whether two financial variables (e.g. sales and ad spend) are linearly related.
- Validate research hypotheses by checking correlation between measurements.
- Explore relationships between student test scores across two subjects.
- Assess whether temperature and ice cream sales move together.
- Check if workout frequency correlates with weight loss.
- Analyze survey responses across two questions for patterns.
- Verify data quality by spotting unexpected correlations between columns.
- Teach or learn statistics concepts with a live, visual calculator.
Frequently Asked Questions
Last updated: 2026-06-13 ·
Reviewed by Nham Vu