CALCULATOR · REPORTING
Correlation Calculator Confidence Interval and Comparison
Enter a correlation and its sample size, or two correlations from independent samples. The confidence interval and p-value, or the test of the difference between the two, update as you type. Nothing you enter leaves your browser.
Runs in your browser. No data is sent or stored.
Method reviewed by an in-house statistician · Last checked November 2026
In Short
A correlation calculator that starts from the coefficient you already have answers two questions. The first tab returns the confidence interval and the two-sided p-value for one Pearson correlation, from r and the sample size. The second tab tests whether two correlations from independent samples differ. The interval is the more informative result, because it shows how precisely the sample pins down the correlation, which the p-value for r = 0 alone does not. The calculator works from the summary r and n, so it cannot check the scatterplot behind them.
How It Is Calculated
The interval for one correlation uses the Fisher z transformation, on which r is approximately normal (Fisher, 1921):
r = Pearson correlation · n = sample size · z(0.975) = 1.95996, the standard normal quantile · tanh transforms the limits back to the correlation scale.
The p-value tests the null hypothesis of no correlation with a t statistic:
To compare two correlations from independent samples, the difference of their Fisher z values is divided by its standard error. Zou (2007) describes an interval for the difference; this calculator reports the test:
The interval is for Pearson’s r, under bivariate normality. A correlation of exactly 0 is allowed and gives t = 0 and p = 1.000.
Assumptions and When Not to Use It
- Pearson’s r for a linear relationship. The interval assumes bivariate normality. A coefficient does not reveal outliers, curvature or restricted ranges, so inspect the scatterplot before you rely on r.
- Independent observations, one pair per participant. Repeated measurements or clustered data inflate the apparent precision of r.
- Independent samples on the comparison tab. The two correlations come from different groups of participants. Two correlations from the same sample that share a variable are dependent and need a different test (Steiger, 1980), which this calculator does not provide.
- An association, not a cause. A correlation describes how two variables move together. Causal language needs a design that supports it.
- Valid inputs. The correlation must lie strictly between -1 and 1, and the sample size must be at least 4.
- Size of the correlation in context. How large is large depends on the field and the measures. See Correlation Analysis (Pearson & Spearman).
Worked Example (Hypothetical Values)
A study of 85 participants reports a correlation of 0.30 between two scale scores.
| Input or result | Value |
|---|---|
| Correlation, r | 0.30 |
| Sample size, n | 85 |
| 95% confidence interval | 0.0928 to 0.4823 |
| t (df = 83) | 2.8651 |
| p-value, two-sided, beside the interval | 0.0053 |
The p-value is incompatible with a correlation of exactly 0 at the 0.05 level, but the interval shows how little the sample says about the size: it is compatible with a correlation just below 0.10 and with one near 0.50. On the comparison tab, 0.30 (n = 85) against 0.50 (n = 60) gives z = -1.3905 and p = 0.1644, so the data are compatible with a real difference between the two groups and with none. Press “Load the worked example” under the calculator and these values fill the fields. HYPOTHETICAL VALUES.
What the Result Still Needs
- 1
The scatterplot checked. A single coefficient hides outliers and non-linear patterns, so the plot is inspected before r is reported.
- 2
The right correlation. Pearson’s r for a linear relationship between continuous scores. A rank-based coefficient is considered when the data are ordinal or strongly non-normal.
- 3
The interval beside r. The report gives r, its 95% confidence interval and the sample size.
- 4
Independence confirmed for a comparison. The two correlations come from separate samples, and a comparison within one sample uses a test for dependent correlations.
- 5
Association worded as association. The text describes the relationship without causal language unless the design supports it.
A statistician checks the data behind your coefficient, chooses the correlation that fits the scores and writes the results sentence, with its interval, for your manuscript.
Quantitative Data AnalysisIndependent Statistical Review confirms an analysis prepared by you, a colleague or an AI tool before it goes to a committee or a journal.
Independent Statistical ReviewFrequently Asked Questions
Why does the interval use the Fisher z transformation?
The sampling distribution of r is skewed, especially when r is far from 0. Transforming to z makes it approximately normal, so a symmetric interval can be built and transformed back. That is why the limits are not symmetric around r.
Can I compare two correlations from the same sample?
Not with this calculator. Correlations that share a variable and come from the same participants are dependent, and they need a test that accounts for that (Steiger, 1980). Use this tab only for correlations from separate groups.
What does r = 0 give?
A correlation of exactly 0 is accepted and gives t = 0 and p = 1.000, with an interval that runs on both sides of 0. The interval still shows how large a correlation the sample cannot rule out.
How large a sample do I need?
The calculator requires at least 4 participants, but the interval is very wide at small samples. For planning a study, work from the precision or the power you need. The Sample Size Calculator covers a correlation.
Does the p-value say the correlation is strong?
No. With a large sample, a small correlation gives a very small p-value, and with a small sample a large correlation can fail to reach 0.05. Judge the size from r and its interval, in the context of your field.
References
- Fisher, R. A. (1921). On the “probable error” of a coefficient of correlation deduced from a small sample. Metron, 1, 3-32.
- Steiger, J. H. (1980). Tests for comparing elements of a correlation matrix. Psychological Bulletin, 87(2), 245-251. https://doi.org/10.1037/0033-2909.87.2.245
- Zou, G. Y. (2007). Toward using confidence intervals to compare correlations. Psychological Methods, 12(4), 399-413. https://doi.org/10.1037/1082-989X.12.4.399
Method reviewed by an in-house statistician · Last checked November 2026 · Test cases and boundary cases verified before release
Found an error or have a suggestion? Write to info@onlinespss.com with the calculator name and the inputs you used. Every report is checked by a statistician.
Have a Statistician Check Your Correlation Reporting
Share the study aim, the two variables and how the correlation was calculated. A statistically trained Research Coordinator reviews the request, and the scope and one fixed project fee are confirmed before work begins.
No Commitment Required
Strictly Confidential
Fixed Project Fee
In-House PhD-Level Statisticians
Same-Day Response