DataToPlot

Free online statistics plot makers and calculators.

Pearson Correlation Coefficient Calculator

Paste paired X/Y values to calculate Pearson correlation coefficient, R², sample size, and a scatter plot for checking the relationship.

X/Y data

Paste matching X and Y values. Separators: tabs, commas, spaces, line breaks.

Advanced settings

Chart preview

PNG, SVG, JPG, and JPEG export run locally.

Enter valid data to preview the chart.

Results

Enter valid data to calculate results.

How this tool works

Calculate Pearson r from paired data

Paste paired X/Y data from a spreadsheet-style table or plain text. The calculator returns Pearson r, R², sample size, and a scatter plot that helps you verify the relationship visually.

  • Use two columns with matching X and Y values.
  • Check Pearson r for direction and strength.
  • Use the scatter plot to look for curves, clusters, or unusual points.

Interpret r, R², and the scatter plot

Pearson r ranges from -1 to 1. Positive values indicate a positive linear relationship, negative values indicate a negative linear relationship, and values near zero suggest weak linear association.

  • R² is r squared and removes the sign.
  • Correlation describes association, not causation.
  • A strong r can still hide non-linear patterns or separate clusters.

Avoid common correlation mistakes

The sample data decreases as X increases, so it produces a negative correlation. The scatter plot makes that downward pattern visible before you rely on the numeric coefficient, and it can reveal curves or clusters that Pearson r alone may hide.

Related tools

FAQ

Can I paste data directly from a spreadsheet?

Yes. Copy two numeric columns from a spreadsheet and paste them into the input area. Tab-separated data is supported.

Is my data uploaded to a server?

No. DataToPlot parses, calculates, and renders charts in your browser.

Which separators are supported?

The tool supports commas, spaces, tabs, and new lines for numeric data.

Can I export the chart?

Yes. After the preview renders, export the chart as PNG, SVG, JPG, or JPEG.

What happens if my data has an invalid value?

The page shows a clear error message with the row where parsing failed.

Can I paste two matching columns?

Yes. Copy two matching numeric columns from a spreadsheet or text table and paste them into the calculator.

What is Pearson r?

Pearson r measures the direction and strength of a linear relationship between two numeric variables.

How should I interpret r?

Positive values indicate a positive relationship, negative values indicate a negative relationship, and values near zero indicate a weak linear relationship.

What is R² for correlation?

For simple correlation, R² is r squared and describes the share of variance explained by a linear relationship.