Paste X,Y pairs → Pearson r, r², covariance, regression line and a scatter plot — runs entirely in your browser
- Runs locally
- Category Calculator
- Best for Getting a realistic range before a purchase, plan, workout, or schedule decision.
Up to 5000 pairs. Each line: X then Y, separated by comma, space or tab. Decimals, negatives and 1.5e-3 all work.
What this tool does
Free Pearson correlation coefficient calculator. Paste paired data, one X,Y pair per line, and read the Pearson r the moment you type. The tool reports r on the −1 to +1 scale, r² (the coefficient of determination, how much of Y's variation X accounts for), the sample covariance, and the mean and standard deviation of each variable. It then says in plain words whether the link is strong, moderate or weak and which direction it runs. Turn on the least-squares regression line to get the equation y = ax + b, with slope and intercept laid out, drawn straight over the scatter plot so you can see how tightly the points hug the trend. Every number is computed locally in JavaScript, so a class roster of grades or a quarter of sales figures never leaves the page. The share link reopens the same dataset and chart, which makes it easy to hand a result to a classmate or a colleague.
Tool details
- Input
- Text + Numbers
- The page exposes text boxes, numeric controls, file pickers, or structured inputs depending on the tool.
- Output
- Live result + Copy + Preview
- The result area focuses on usable output, with copy, download, or preview actions when supported.
- Privacy
- Browser-side processing
- The main tool logic does not call an external API, so inputs normally stay in the current tab.
- Save / share
- Shareable URL state
- Key settings are encoded in the URL so another person can reopen the same setup.
- Performance budget
- Initial JS <= 10 KB
- No WASM budget is declared, keeping the tool quick to open on mobile.
- Best fit
- Calculator · Student
- Category and role tags drive related tools, internal links, and quick fit checks.
How to use
-
1. Input
Paste or drop your content into the tool panel.
-
2. Process
Click the button. All processing is local in your browser.
-
3. Copy / Download
Copy the result or download to disk in one click.
How Correlation Coefficient Calculator fits into your work
Use it for fast estimates, comparisons, and planning numbers before you make the final call.
Calculation jobs
- Getting a realistic range before a purchase, plan, workout, or schedule decision.
- Comparing scenarios by changing one input at a time.
- Turning rough assumptions into a number you can discuss.
Calculation checks
- Double-check units, dates, rates, and rounding assumptions.
- Treat health, finance, tax, and legal outputs as planning aids, not professional advice.
- Save the inputs that produced an important result so you can reproduce it later.
Good next steps
These links move the current task into a more complete workflow.
- 1 Statistics Basic Calculator Basic statistics calculator — mean/median/mode/variance/std-dev/quartiles/range/IQR/skewness/kurtosis + histogram + box plot, paste any numbers. Open
- 2 Scientific Calculator Scientific calculator — sin / cos / log / sqrt / power, with full keyboard input + history, deg/rad mode. Open
- 3 Percentage Calculator 5 common percentage calculations — "x% of y", "x is what% of y", percentage change, increase/decrease — instant, browser-only Open
Real-world use cases
Check whether study time really tracks grades
A student logs hours studied and the score on each of ten quizzes, then pastes the pairs to see r. An r of 0.88 confirms the effort is paying off in a strong, positive way; an r of 0.15 is a wake-up call that hours alone are not the lever and something about how the time is spent matters more. The regression line even estimates how many points one more study hour tends to buy.
Test if ad spend moves sales before the next budget
A marketer lines up monthly ad spend against revenue for the past year and pastes the twelve pairs. A strong positive r plus an r² of 0.70 is a defensible line in the budget meeting: roughly 70 percent of the sales swing tracks with spend. A weak r is just as useful, because it stops the team from pouring more money into a channel that is not actually pulling the numbers.
Screen variables in a research dataset
Before running a heavier model, a researcher pastes two columns to get a quick Pearson r and a scatter plot. The plot catches the things a single number hides: a lone outlier inflating r, or a clear curve that Pearson scores near zero because it only sees straight lines. It is a fast first pass that flags which pairs are worth a deeper look.
Show students what r looks like on a chart
A teacher demonstrates correlation by pasting a perfectly linear set (r = 1), then a scattered one (r near 0), then a negative set, and the scatter plot redraws each time. Seeing the points tighten around the regression line as r climbs turns an abstract formula into something students can point at, far stickier than memorizing the equation.
Common pitfalls
Treating a high r as proof of causation. r only says two variables move together; a lurking third factor or coincidence can drive that. The tool prints a "correlation is not causation" reminder under every result for exactly this reason.
Trusting r without looking at the scatter plot. Pearson only measures straight-line strength, so a clear curve can score r near zero, and one extreme outlier can push a near-zero r up to 0.7. Always read the chart alongside the number.
Confusing the sign with the strength. r = −0.9 is a very strong relationship, not a weak one; the minus sign means direction (X up, Y down), while the size 0.9 means it is tight. A small positive r like 0.1 is weak despite being positive.
Privacy
The whole calculation — Pearson r, r², covariance, each mean and standard deviation, the regression fit and the scatter plot — is plain JavaScript running in your browser tab. Your X and Y numbers are never uploaded and nothing about them is logged. One thing to know: the shareable link encodes your pasted data in the query string, so sending a "share link" writes those numbers into the recipient server's access log. If a dataset is confidential, use the copy button to share the computed results as text instead of pasting the URL.
FAQ
Tool combos
Folks in your role tend to reach for these alongside this tool.
- Chinese Acupoint Locator 200+ meridian acupoints / WHO 2008 standard locations / with contraindications, manipulation, and combinations.
- Affine Cipher Encoder & Decoder Encrypt and decrypt the ax+b affine cipher with live modular-inverse check, browser-only
- Anagram Solver Check if two words are anagrams, rearrange a set of letters into every ordering, and read the sorted letter fingerprint, all in your browser
- Angle Converter Degrees, radians, gradians, turns, arcminutes, arcseconds and NATO mils, all from one input, copyable, browser-only