Partial Correlation Calculator
Calculate the correlation between two variables while controlling for a third variable.
About partial correlation
Partial correlation examples
Compare the original X-Y relationship with the association that remains after controlling for Z.
| Pairwise correlations | Partial correlation | Interpretation |
|---|---|---|
| rXY 0.70; rXZ 0.40; rYZ 0.50 | 0.6299 | A substantial positive relationship remains. |
| rXY 0.48; rXZ 0.60; rYZ 0.80 | 0.0000 | Z accounts for the observed association. |
| rXY -0.30; rXZ 0.20; rYZ 0.40 | -0.4237 | Controlling for Z strengthens the negative relationship. |
How to calculate partial correlation
- Enter the Pearson correlation between the two variables of interest, X and Y.
- Enter the correlation between X and the control variable Z.
- Enter the correlation between Y and the control variable Z.
- Select Calculate partial correlation and interpret the sign and magnitude.
Frequently asked questions
What does controlling for a variable mean?
It means removing the linear variation associated with that variable from both variables of interest. The resulting coefficient describes how their residual values move together.
Can partial correlation prove causation?
No. It adjusts one measured linear association but does not rule out omitted variables, reverse causality, measurement error, or selection effects.
Can a partial correlation exceed the original correlation?
Yes. A control variable can suppress an opposing pattern, making the adjusted relationship stronger in magnitude than the ordinary correlation.
Why is my result undefined?
A perfect correlation between the control variable and X or Y makes the denominator zero. There is then no independent variation left to correlate after controlling for Z.
What is a strong partial correlation?
Strength thresholds depend on the field and purpose. This calculator uses broad descriptive bands, but practical interpretation should rely on subject knowledge and uncertainty estimates.