Partial Correlation Calculator
Calculate Pearson correlation between two variables after linearly controlling for a third.
YOUR CALCULATION
Result
—
Calculation steps
Work through one step at a time or reveal the complete calculation. The steps use your current inputs.
How to calculate
Compute the three pairwise centered correlations and remove the linear contribution of the one control variable.
rxy.z=(rxy−rxz ryz)/√((1−rxz²)(1−ryz²)); t=r√((n−3)/(1−r²))
Worked example
When Y=X+2Z−1 exactly and residual X varies, controlling Z gives partial correlation one.
Assumptions and input details
Complete equal-length independent observation lists with nonzero residual variation. The optional t reference uses df=n−3 and the usual linear/Gaussian model; it is not a causal effect or adjustment for unmeasured confounders. Perfect correlation uses the limiting zero tail and no finite t.
Using this calculator
Can I enter my own problem?
Yes. Replace the example values with your own inputs. The result, calculation steps, tables and applicable diagrams update from those inputs. Blank or invalid values clear the result; example values are never silently substituted for missing inputs.
Are the results exact?
Results use floating-point arithmetic and displayed rounding. Read the formula, assumptions and any stated data precision before interpreting the result.
Is my input uploaded?
The calculation runs in your browser. No account, file upload or external AI service is required. Inputs are not saved between page reloads.
Fit y=a+bx to 2–100 entered coordinate pairs. Inspect the regression equation, correlation, R², predictions, residuals and a scatter plot.
Fit an intercept and two to five numeric predictors, inspect original-unit coefficients and evaluate a predictor query.
Calculate monotonic rank association for paired observations, including tied ranks.
Reserved advertising space.