Back to the site

Partial correlation calculator

Step-by-step results with interactive diagrams
Diagrams

Partial correlation: what remains of the link after controlling a third variable?

The partial correlation is the relationship between X and Y after removing the linear effect of one or more other variables. It can reveal that an apparent link is due to a third variable: the correlation between screen time and sleep quality may shrink once age is controlled. It remains a statistical adjustment and does not prove causation.

Paste the X column, the Y column and one column per control variable, choose Pearson or Spearman, and the calculator shows the partial r, the degrees of freedom and p. Interactive diagrams show the removed effect, with an APA sentence and R, Python and SPSS code.

When to use it

  • Testing an apparent link after controlling for age or gender
  • Controlling a confounder in a correlational study
  • Estimating the unique relation between two variables

Statistics calculators

The statistics calculators are free tools from ArabPsychology for psychology students and researchers. Each calculator does more than give a number: it shows the formula with your own numbers, explains the result in plain language, checks the assumptions, draws interactive diagrams that show how the formula works, and writes the results sentence in APA 7 style, ready to copy.

How to use the calculators

  1. Pick a calculator from the list; each one starts with example data that shows how to enter yours.
  2. Type or paste your data from Excel or SPSS, or enter summary statistics (mean, SD and sample size).
  3. Read the results and the explanation, hover over parts of the formula to see them in the diagram, and try the sliders to see how the result changes.
  4. Copy the APA sentence, download the diagrams as SVG or PNG, or send the result to another calculator or to the Diagram Builder.

Available calculators

Start here

  • Which statistical test should I use? — Answer a few questions about your variables and groups to find the right statistical test, with the reason, then open its calculator. Runs in your browser.

Describe your data

  • Descriptive statistics — Free descriptive statistics calculator: mean, median, SD, variance, quartiles, skewness, kurtosis, normality test and outliers, with histogram and box plot.
  • z-score and percentile — Convert a raw score to a z score, percentile and area under the normal curve, and to T scores, IQ-type standard scores and stanines, with a draggable normal curve.
  • Test score converter — Convert a test score between z, T, IQ-type (100/15), stanine, sten and percentile, from a raw score or any scale, with an SEM band and normal curve.
  • Confidence interval — Confidence interval of a mean (t) and a proportion (Wilson, Wald), margin of error, and how n and confidence level change the width, with a simulation of many samples.

Compare groups

  • t test — Run a one-sample, independent or paired t test: t, df, p, the confidence interval and Cohen's d, with an explanation, interactive diagrams and an APA sentence.
  • One-way ANOVA — One-way ANOVA calculator: F, p, sums of squares, eta and omega squared, Levene, Welch ANOVA and Tukey HSD post-hoc, with an interactive variance partition diagram.
  • Repeated-measures ANOVA — Repeated-measures ANOVA: F, p, sphericity correction (Greenhouse-Geisser, Huynh-Feldt), effect size and paired post hoc tests, with diagrams and an APA sentence.
  • Chi-square test — Chi-square calculator for independence (contingency tables) and goodness of fit: expected counts, standardized residuals, Cramér's V, phi and Fisher's exact test for 2×2.
  • McNemar test — McNemar test for paired yes/no data, such as before and after: 2×2 table, discordant pairs, χ² and p, with diagrams, an APA sentence and R/Python/SPSS code.

Non-parametric tests

  • Mann-Whitney U test — Mann-Whitney U test for two independent groups: U, z, p, rank-biserial correlation, mean ranks and medians, with diagrams and an APA sentence.
  • Wilcoxon signed-rank test — Wilcoxon signed-rank test for paired scores or one sample against a median: W, z, p, effect size and signed ranks, with diagrams and an APA sentence.
  • Kruskal-Wallis test — Kruskal-Wallis H test for three or more independent groups: H, df, p, effect size, mean ranks and Dunn post hoc with Holm, plus diagrams and APA.
  • Friedman test — Friedman test for three or more related conditions: χ², df, p, effect size, mean ranks and pairwise Wilcoxon post hoc, with diagrams and an APA sentence.

Relationships

  • Correlation — Calculate Pearson r and Spearman rho, p, the confidence interval by Fisher z and r², with a draggable scatter plot and a Venn diagram of shared variance.
  • Partial correlation — Partial correlation controlling for one or more variables, Pearson or Spearman: r, df and p, with interactive diagrams and an APA sentence.
  • Simple linear regression — Simple linear regression: slope, intercept, R², F, standard errors, prediction with CI and PI, with least squares drawn as squares and draggable points.
  • Mediation analysis — Simple mediation X → M → Y: paths a, b, c and c′, the indirect effect a×b with a bootstrap CI, an interactive path diagram and an APA sentence.

Measurement and reliability

  • Cronbach's alpha — Get Cronbach's alpha, standardized alpha, item-total correlations, alpha if item deleted and the Feldt confidence interval, with a heatmap of inter-item correlations.
  • Cohen's kappa — Cohen's kappa for two raters: κ, standard error, CI, percent agreement and weighted kappa (linear, quadratic), with diagrams and an APA sentence.
  • Intraclass correlation (ICC) — Intraclass correlation (ICC) for rater and test-retest reliability: one-way, two-way models, single or average, agreement or consistency, with CI.
  • Split-half reliability and KR-20 — Split-half reliability with Spearman-Brown correction (odd-even or first half), and KR-20 and KR-21 for 0/1 items, with diagrams and an APA sentence.

Planning and reporting

  • Effect size converter — Convert between d, r, odds ratio and eta squared, and get effect sizes from t, F and χ², with Hedges' g, U3, overlap, probability of superiority, NNT and an overlap plot.
  • Sample size and power — A-priori sample size and post-hoc power for t tests, correlation, one-way ANOVA and chi-square in the style of G*Power, with an α, β and power diagram and power curve.
  • Survey sample size and margin of error — Survey sample size for a chosen margin of error and confidence level, or the margin of error of a sample, with finite population and response rate adjustment.
  • Meta-analysis — Meta-analysis with fixed and random effects (DerSimonian–Laird): pooled effect, Q, I², τ², prediction interval, forest and funnel plots, from effect sizes or means.

Why these calculators

  • Completely free, no sign-up, and your data never leaves your browser.
  • Exact distributions (t, F, chi-square and normal), matching SPSS and R.
  • The calculators are connected: enter your data once and use it everywhere, and send an effect size to the power analysis in one click.
  • Available in six languages: Arabic, English, French, German, Spanish and Japanese.

Frequently asked questions

What is the difference between partial and semi-partial correlation?

The partial correlation removes the control variable from both variables, the semi-partial from only one of them.

How many degrees of freedom does a partial correlation have?

n − 2 − k, where k is the number of control variables.

Does a partial correlation prove the third variable explains the link?

No. It is a linear statistical control for measured variables only and cannot rule out other, unmeasured ones.

Are the results as accurate as SPSS?

Yes. p values and confidence intervals come from the exact t, F and chi-square distributions, and match SPSS and R output to the third decimal in the usual cases.

How do I report the result in my thesis?

Every calculator writes the results sentence in APA 7 style (for example t(58) = 2.41, p = .019, d = 0.62) with the effect size and confidence interval. Copy it and adapt it to your study.

Can I use the same data in several calculators?

Yes. Paste your table once into "My data" and each column becomes a variable you can pick in any calculator. The "Use this result in…" buttons carry results between calculators.

Is my data sent to a server?

No. Every calculation runs in your browser, and your data is saved in this browser only.

What if the assumptions are not met?

The calculator flags the assumption that is not met and suggests the alternative, such as the Welch test for unequal variances, or the Mann-Whitney and Wilcoxon tests for non-normal data.