Partial Correlation Calculator

Partial Correlation Calculator

Estimate the correlation between X and Y after adjusting for one or more control variables, then test it with t, df, p-value, confidence interval, and effect-size context.

1.Load a realistic preset
2.Enter correlations and degrees of freedom

Correlation between X and Y before adjusting for Z.

Correlation between X and the control variable or score.

Correlation between Y and the control variable or score.

Use the complete-case sample used for all correlations.

Direct df supports multiple controls from regression output.

For one Z variable, k = 1 and df = n - k - 2.

Used for the decision rule and confidence interval.

Most reports use the two-tailed option unless the direction was planned.

Calculations use full precision; this only changes display rounding.

Partial correlation 0.000 r_xy.z after control
Test statistic 0.000 t with df
P-value 0.000 selected tail rule
Shared variance 0.0% partial r squared
3.Current test snapshot
0.560Zero-order r
117Degrees freedom
95%Confidence level
RunDecision
4.Formula breakdown
Partial correlationr_xy.z = (r_xy - r_xz * r_yz) / sqrt((1 - r_xz^2)(1 - r_yz^2))
Degrees of freedomdf = n - k - 2, or use the residual df supplied by a regression model
t statistict = r * sqrt(df / (1 - r^2))
Confidence intervalFisher z transform with SE = 1 / sqrt(df - 1), when df is greater than 1
5.Interpretation tables
Absolute partial rCommon labelPartial r squaredWhat to inspect next
0.00 to 0.10Tiny0% to 1%Check whether the control removed nearly all association.
0.10 to 0.30Small1% to 9%Look at confidence interval width and design power.
0.30 to 0.50Moderate9% to 25%Report both the adjusted and zero-order correlations.
0.50 to 0.70Large25% to 49%Check scatterplots and nonlinear patterns carefully.
0.70 to 1.00Very large49% to 100%Screen for duplicated measures or near-collinearity.
DF situationHow to enter itWhy it mattersExample
One control variableMode: controls, k = 1Matches the standard three-correlation formula.Height adjusted for age
Several controlsMode: controls, k = number adjustedUses df = n - k - 2 for the t test.Age, income, baseline score
Regression outputMode: direct residual dfSupports models where df is already known.Software reports df = 84
Small sampleUse exact n and kSmall df makes p-values and intervals wider.n = 18, k = 3
Missing dataUse complete-case nPairwise correlation counts can overstate df.n differs by variable pair
Diagnostic checkHealthy patternWarning patternAction
Control relevanceZ relates to X or YZ unrelated to bothQuestion whether the control belongs in the model.
Collinearity|r_xz| and |r_yz| below about 0.80Near 1.00 with either variableInspect variance inflation or measurement overlap.
Sign reversalAdjusted sign is expectedPartial r flips directionLook for suppression, confounding, or coding errors.
LinearityResidual plots roughly linearCurved residual patternConsider transforms or rank-based alternatives.
OutliersNo single point drives the resultOne case changes r greatlyRun influence checks and robust sensitivity analyses.
Use caseX and YControlsReport wordingCommon caveat
EducationStudy and scorePrior GPAAdjusted association remainsMotivation may still confound
HealthExercise and BPAge, BMIAssociation after controlsMedication history matters
MarketingSpend and salesSeason, trafficNet linear relationshipCampaign timing may lag
FinanceIncome and savingAge, dependentsControlled correlationOutliers can dominate
BiostatisticsDose and responseBaseline levelAdjusted dose-response linkNonlinearity may be hidden
OperationsTraining and outputTenure, teamPartial r with dfNested teams need care
6.Practical tips
Use residual degrees of freedom for multi-control models: If software gives a residual df, enter it directly. That is usually cleaner than trying to reconstruct n and every adjustment after filtering, missing-data handling, or model exclusions.
Compare before and after adjustment: A partial correlation is most informative beside the zero-order correlation. If the adjusted value shrinks, grows, or changes sign, explain the role of the control variables instead of reporting only the final p-value.

If you believe there is some sort of third-party factor that explains relationship between two variables (e.g., you think discipline, not study time, drives exam performance), then partial correlation allow you to hold that variable constant in order to assess whether the relationship remains significant. In other words, it strips out common variation with your control variable and displays the unique linear connection between X and Y.

As long as you know sample size and the zero-order correlations, the calculator (above) do this math for you. No need to derive formula yourself. It’s based on three Pearson correlation coefficients: one that links X and Y; another that links X and the control variable Z; and yet a third that links Y and Z.

What Is Partial Correlation?

If latter two are both strongly associated with Z, the partial correlation should decreases from its initial amount. And that decrease is what calculation aims to demonstrate. Is there additional information in X that contributes to an understanding of Y over and beyond that which can be gathered from Z?

Remember, garbage in, garbage out. How does it affect what you input? Since you are calculating three correlation coefficients from the same group of cases, you want those cases to be represented as accuratey as possible in each calculation. That’s why missing data can be a problem. It could result in pairwise calculations using different subsets of your data and thus inflate number of apparent degrees of freedom.

Because of this, tool also has a mode for entering degrees of freedom directly. If you’ve run your regression outside of the tool and have an estimate of the residual df value, you can avoid having the tool calculate it. This is useful when dealing with complex models where raw count does not necessarily represent effective sample size.

The conclusion isn’t just “p-value below.05 so we did something.” Is.3 (i.e., partial correlation of 0.30) small? Yes, that’s small. It also show that even after controlling for the confounder, the two variables still share nine percent of their variance. That’s a sizable chunk of explanatory power, particularly in context of health metrics or social science.

That number can be turned into intuition using reference tables on the interface. Those tables will tell you what counts as big, what counts as little, what’s artifact and what’s substance. But that doesn’t mean that big = true. You should of still examine whether the control variable has suppressed the relationship by obscuring its actualy nature.

When the sign changes on the partial correlation, then the confounder likely had an opposing effect. Like regular Pearson correlation, partial correlation rely on two assumptions: equal variance and linearity. If relationship between variables is curved different than linear, then the adjusted coefficient could be misleading. Also, outliers will impact the variance and skew outcome.

The tool includes confidence intervals so you can judge how precise estimate is. That’s important with small samples when the t-statistic bounces all over the place. If the interval is wide, it means your result require replication. On its own, it’s too noisy to represent a definitive answer.

Statistics are sometimes viewed as a gatekeeper with binary output: Yes or No. Think of partial correlation more like a lens, it illuminates. It does not imply causation. It doesn’t remove the need for careful experimental design. Instead, it provides an answer to this question: “Is there relationship between these two variables controlling for this particular variable?”

In some cases, that relationship dissapears completely. That’s validation that you were correct in suspecting that the confounder was responsible. In other instances, the relationship hold up strongly. That indicates you can have confidence that the association between X and Y is valid.

In either case, you’ve gone from guessing to knowing. The equation itself isn’t complicated; deciding which control variable matters most are the hard part.

Partial Correlation Calculator