All tools

Partial correlation calculator

Sometimes two variables look related only because both depend on a third one. Partial correlation measures the relationship between X and Y after removing that third variable’s effect, for example age or working hours. Paste your data with X in the first column, Y in the second and the control variables after them.

Column 1: X. Column 2: Y. Next columns: control variables. The first row can hold the names.

The calculation runs in your browser. We don’t store what you type.

How it’s calculated

With one control: r(xy·z) = (r(xy) − r(xz) r(yz)) / √((1 − r(xz)²)(1 − r(yz)²)).

With several controls, the inverse of the correlation matrix is used, which gives the same result as SPSS.

Degrees of freedom are n − 2 − the number of controls, and the p-value comes from Student’s t.

With Spearman, each column is converted to ranks first.

How to read the result

  • If the partial correlation is much smaller than the simple one, much of the X–Y relationship was explained by the control variable.
  • If it barely changes, the X–Y relationship doesn’t depend on the control variable.
  • Read strength like any correlation: 0.2 weak, 0.4 moderate, 0.6 strong.

In the glossary: p-value · Effect size · Parametric and non-parametric tests

Step-by-step guideWhich statistical test to use in your thesis: a decision-tree guideHow to choose your thesis’s statistical test: decision tree, table of parametric and non-parametric tests and common mistakes. With a free test selector.

Frequently asked questions

Does it match SPSS?
Yes, with Pearson it matches Analyze > Correlate > Partial. SPSS has no partial Spearman in that menu; here it’s computed on ranks, the usual method.
Partial correlation or regression?
Partial correlation gives one number: the X–Y relationship without the control. Multiple regression estimates each variable’s weight in predicting Y.
How much data do I need?
At least as many cases as variables plus 3, although with fewer than 30 cases the estimate is unstable.

Know what you want to ask?

Build the survey in SurvIQ, share it by link, WhatsApp or QR code, and watch results come in live. The Free plan is free forever.

Create a free survey

More tools