Correlation and Linear Regression Calculator with Scatter Plot
Paste two columns of numbers to see how strongly they move together. You get Pearson’s r, Spearman’s ρ, the regression line, R² and a clean scatter plot for your thesis.
- PriceFree, no login or sign-up needed
- Your dataProcessed in your browser, never uploaded
- Works onPhone, tablet or computer, any modern browser
- Made byDr. Muhammad Aammar Tufail, Codanics
- Published14 November 2026
- Last updated16 November 2026
📚 How to cite this tool
This tool is free. If it helped your thesis, paper, report or assignment, please cite it. It keeps the tools free and helps other students find them.
Tufail, M. A. (2026). Correlation and regression calculator [Online tool]. Codanics. Retrieved 16 November 2026, from https://codanics.com/tools/correlation-regression-calculator/
In-text citation: (Tufail, 2026) · Narrative: Tufail (2026)
The access date is today’s date, filled in automatically. Author: Muhammad Aammar Tufail. Published 14 November 2026.
How to use the Correlation and Regression Calculator
- Type or paste your X values in the first box and your Y values in the second, in the same order. Or use Paste from Excel or Upload CSV / Excel and pick the two columns; rows with a missing value are skipped.
- Rename the variables so the sentence and chart labels make sense.
- Click Calculate to get Pearson’s r, Spearman’s ρ, the regression equation, R² and a scatter plot.
- Optionally type an X value to predict Y, with a prediction interval.
- Copy the APA sentence and download the scatter plot.
Pearson or Spearman?
| Pearson r | Spearman ρ | |
|---|---|---|
| Measures | Linear relationship | Monotonic relationship (always up or always down) |
| Data | Two continuous, roughly normal variables | Ordinal data, skewed data or outliers |
| Sensitive to outliers? | Yes, strongly | Much less |
Formulas
Frequently asked questions
What is a strong correlation?
A common rule of thumb for |r|: below 0.1 negligible, 0.1–0.3 weak, 0.3–0.5 moderate, 0.5–0.7 strong and above 0.7 very strong. What counts as strong depends on your field; in social sciences r = 0.3 is often meaningful.
What does R² mean?
R² is the proportion of variation in Y explained by X. An R² of 0.64 means 64% of the differences in Y are accounted for by the straight-line relationship with X.
Is the Spearman p-value exact?
This tool uses the t approximation for Spearman’s ρ, which is accurate for about 10 or more pairs. For very small samples, exact tables or R’s cor.test give slightly different p-values.
Can I do multiple regression here?
No, this calculator handles one predictor (simple linear regression). For several predictors, use R, Python, SPSS or JASP.
How do I report a correlation in APA style?
Write r(df) = value, p = value, where df = n − 2, for example r(8) = .98, p < .001. Leave out the leading zero, because r cannot exceed 1.
Is my data private?
Yes. Everything is calculated in your browser.
Do I need to log in or create an account to use the Correlation and Regression Calculator?
No. There is no login, no sign-up and no email required. Open the page and start using it straight away, for free, on any device.
How do I cite this tool in my thesis or paper?
Use the citation box on this page. In APA 7th edition: Tufail, M. A. (2026). Correlation and regression calculator [Online tool]. Codanics. Retrieved [date you used it], from https://codanics.com/tools/correlation-regression-calculator/. BibTeX, RIS (EndNote, Mendeley, Zotero), MLA, Harvard, Chicago and Vancouver formats are also available.
Free guides and courses from Codanics
More free tools
See all free Codanics tools → · Codanics on YouTube · WhatsApp channel