Partial Correlation Calculator

Calculate the partial correlation between two variables while controlling for the effect of a third variable. Enter the three pairwise correlations — r(xy) (correlation between x and y), r(xz) (correlation of z with x), and r(yz) (correlation of z with y) — and get the partial correlation coefficient r(xy,z) back, showing the true relationship between x and y with z's influence removed.

Pearson correlation coefficient between variables X and Y (between -1 and 1).

Pearson correlation coefficient between variables X and the control variable Z.

Pearson correlation coefficient between variables Y and the control variable Z.

Results

Partial Correlation r(xy,z)

--

Strength & Direction

--

Partial R² (Variance Explained)

--

Change from Original r(xy)

--

Original vs Partial Correlation

Frequently Asked Questions

What is a partial correlation?

Partial correlation measures the relationship between two variables (X and Y) while statistically removing the influence of one or more additional variables (Z). It reveals whether the observed correlation between X and Y is genuine or merely a result of both variables being related to a third confounding variable Z.

What is the formula for partial correlation?

The first-order partial correlation is calculated as: r(xy,z) = (r_xy − r_xz × r_yz) / √((1 − r_xz²) × (1 − r_yz²)). You need the three pairwise Pearson correlations: between X and Y, X and Z, and Y and Z.

How do I interpret the partial correlation coefficient?

Like a regular Pearson correlation, the partial correlation ranges from -1 to +1. Values near +1 indicate a strong positive relationship, values near -1 indicate a strong negative relationship, and values near 0 suggest little or no linear relationship between X and Y after controlling for Z. A common guide: |r| < 0.1 negligible, 0.1–0.3 small, 0.3–0.5 moderate, > 0.5 large.

What does it mean when the partial correlation is lower than the original correlation?

If r(xy,z) is noticeably smaller than r(xy), it suggests that part of the observed relationship between X and Y was actually caused by both variables sharing a relationship with Z. This is a sign of confounding — Z was inflating the apparent connection between X and Y.

What does it mean when the partial correlation is higher than the original correlation?

When r(xy,z) > r(xy), the control variable Z was suppressing the true relationship between X and Y. After removing Z's influence, the underlying correlation becomes clearer and stronger. This is known as a suppressor effect.

What is the difference between partial correlation and semi-partial (part) correlation?

Partial correlation controls for Z in both X and Y simultaneously, asking: what is the correlation between the residuals of X-on-Z and Y-on-Z? Semi-partial (part) correlation controls for Z in only one variable (usually X), preserving the original variance of Y. Partial correlation is more commonly used when you want to fully isolate the X–Y relationship.

What is a second-order partial correlation?

A second-order partial correlation controls for two variables simultaneously (e.g., Z1 and Z2) instead of just one. The calculation becomes more complex, requiring all pairwise correlations among the four variables and iteratively applying the partial correlation formula. The calculator above computes first-order partial correlations.

What are the input values allowed for this calculator?

All three input correlations (r_xy, r_xz, r_yz) must be valid Pearson correlation coefficients, meaning they must be between -1 and 1 inclusive. Additionally, the combination of correlations must form a positive semi-definite matrix — if the denominator in the formula approaches zero or the result exceeds ±1 in magnitude, the input combination may not be statistically valid.

More Statistics Tools