Statistics

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.

✅ No login needed100% freeRuns in your browserYour data stays on your device
Correlation and Regression Calculator✅ Free · no login📚 Cite this tool
Your data never leaves your PC. Your data is analysed on your own computer or phone, even when you upload a CSV or Excel file. Nothing is saved, so refreshing or leaving the page clears your work: copy or download your results first. Nothing is uploaded, stored or seen by Codanics, and no login is needed.
  • 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.

Citation · APA 7th edition

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.

🚀 Follow Codanics channel on WhatsApp for more updatesNew free tools, scholarships, PhD positions and research tips, straight to your phone. Free lessons on YouTube too.

How to use the Correlation and Regression Calculator

  1. 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.
  2. Rename the variables so the sentence and chart labels make sense.
  3. Click Calculate to get Pearson’s r, Spearman’s ρ, the regression equation, R² and a scatter plot.
  4. Optionally type an X value to predict Y, with a prediction interval.
  5. Copy the APA sentence and download the scatter plot.

Pearson or Spearman?

Pearson rSpearman ρ
MeasuresLinear relationshipMonotonic relationship (always up or always down)
DataTwo continuous, roughly normal variablesOrdinal data, skewed data or outliers
Sensitive to outliers?Yes, stronglyMuch less

Formulas

Pearson r r = Σ(x − x̄)(y − ȳ) / √[Σ(x − x̄)² Σ(y − ȳ)²] Test t = r √(n − 2) / √(1 − r²), df = n − 2 95% CI tanh( atanh(r) ± 1.96 / √(n − 3) ) (Fisher z) Spearman ρ Pearson r computed on the ranks (average ranks for ties) Regression b = Sxy / Sxx, a = ȳ − b x̄, R² = r²
Correlation is not causation. A strong r tells you that two variables move together, not that one causes the other. Always plot your data, because a single outlier or a curved pattern can make r misleading.
Learn the statistics behind these numbers. Codanics has free statistics, R and Python lessons on YouTube and full courses for researchers.

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

Made by Dr. Muhammad Aammar Tufail, Codanics. First published 14 November 2026, last updated 16 November 2026. Found a bug or have an idea for a new tool? Tell us on the WhatsApp channel or in the comments on YouTube. Results are for learning and planning; check important analyses with a statistician or your supervisor.