I² heterogeneity calculator

This I² calculator turns Cochran’s Q into I², the percentage of the variation between studies that’s due to heterogeneity rather than chance: I² = (Q − df) ÷ Q, with df the number of studies minus one. It also gives H, a 95% confidence interval for both, and the P value of the test for heterogeneity.

Updated

Runs in your browser. Nothing you enter is uploaded, stored or sent anywhere.

How I² and its confidence interval are calculated

The formulas, with k the number of studies and df = k − 1.
QuantityFormula
I²I² = 100% × (Q − df) ÷ Q, and 0 if that’s negative
HH = √(Q ÷ df)
SE(ln H), when Q > k½ × (ln Q − ln df) ÷ (√(2Q) − √(2k − 3))
SE(ln H), when Q ≤ k√( 1 ÷ (2(k − 2)) × (1 − 1 ÷ (3(k − 2)²)) )
95% CI for Hexp(ln H ± 1.96 × SE(ln H)), neither limit below 1
95% CI for I²Each limit of H put into (H² − 1) ÷ H²
P valueThe upper tail of χ² on df degrees of freedom at Q

I² is defined by Higgins, Thompson, Deeks and Altman, who also give its 95% interval “as proposed by Higgins and Thompson” (2002). The interval formulas are as the meta package for R implements that proposal (its calcH and isquared functions), and this calculator reproduces the published intervals below.

Q is the χ² statistic in a forest plot’s heterogeneity line, such as “Chi² = 15.9, df = 5”. If you have df rather than the number of studies, the number of studies is df + 1.

A worked example: magnetic fields and leukaemia

Higgins et al’s Table 1 includes a meta-analysis of six studies of magnetic fields and childhood leukaemia, with Q = 15.9 on 5 degrees of freedom.

  • I² = (15.9 − 5) ÷ 15.9 = 68.6%, which the paper reports as 69%.
  • H = √(15.9 ÷ 5) = 1.783, so ln H = 0.578.
  • Q is more than k (15.9 > 6), so SE(ln H) = ½ × (ln 15.9 − ln 5) ÷ (√31.8 − √9) = 0.219.
  • ln H ± 1.96 × 0.219 gives H from 1.16 to 2.74, and so I² from 26% to 87%, as published.

The calculator matches the paper’s intervals for five of its six meta-analyses to the percent. For magnesium in acute myocardial infarction (Q = 40.2, 16 studies) the paper gives 30% to 78%; this method gives 36% to 78%.

How to read I²

The Cochrane Handbook gives “a rough guide to interpretation in the context of meta-analyses of randomized trials”, and warns first that “thresholds for the interpretation of the I² statistic can be misleading, since the importance of inconsistency depends on several factors”:

The Handbook’s overlapping bands (section 10.10.2).
I²Reading
0% to 40%might not be important
30% to 60%may represent moderate heterogeneity
50% to 90%may represent substantial heterogeneity
75% to 100%considerable heterogeneity

The bands overlap on purpose. The Handbook adds that the importance of an I² depends on the size and direction of the effects and on the strength of the evidence for heterogeneity, such as the P value of the χ² test or a confidence interval for I², and that “uncertainty in the value of I² is substantial when the number of studies is small”. With six studies, the example’s I² of 69% is compatible with anything from 26% to 87%.

What I² doesn’t tell you

  • I² is a proportion, not an amount. τ², from a random-effects model, says how much the true effects vary; the forest plot generator gives both.
  • The χ² test has little power when studies are few or small, so the Handbook warns that “a non-significant result must not be taken as evidence of no heterogeneity”.
  • With two studies and Q ≤ 2, the interval isn’t defined, and the calculator says so.

Frequently asked questions

How do I calculate I² from Q?

Subtract the degrees of freedom (the number of studies minus one) from Q, divide by Q, and multiply by 100. If the answer is negative, I² is 0%. For Q = 15.9 from six studies, (15.9 − 5) ÷ 15.9 = 68.6%.

How do I get a confidence interval for I²?

Enter Q and the number of studies. The calculator works out an interval for H on the log scale, by Higgins and Thompson’s method, and turns each limit into I². Report it beside I², as in “I² = 69% (95% CI 26% to 87%)”.

Is an I² of 50% high?

The Handbook’s guide puts 50% in both “moderate” (30% to 60%) and “substantial” (50% to 90%), and says thresholds can mislead. Look at the confidence interval and the forest plot: with few studies, 50% may be anything from no heterogeneity to a lot.

How to cite this tool

OtterSR. I² heterogeneity calculator. https://www.ottersr.com/tools/i2-heterogeneity-calculator (accessed today’s date).

Please cite the method as well:

  • Higgins JPT, Thompson SG, Deeks JJ, Altman DG. Measuring inconsistency in meta-analyses. BMJ 2003;327(7414):557–60.

Sources

  1. Higgins JPT, Thompson SG, Deeks JJ, Altman DG. Measuring inconsistency in meta-analyses. BMJ 2003;327(7414):557–60. https://pmc.ncbi.nlm.nih.gov/articles/PMC192859/
  2. Schwarzer G. meta: general package for meta-analysis, for R. Source of calcH() and isquared(), implementing the Higgins and Thompson (2002) interval for H and I². GitHub. https://github.com/guido-s/meta/blob/master/R/meta-het.R
  3. Deeks JJ, Higgins JPT, Altman DG, McKenzie JE, Veroniki AA, Simmonds M (editors). Chapter 10: Analysing data and undertaking meta-analyses [last updated November 2026]. In: Higgins JPT, Thomas J, Chandler J, et al (editors). Cochrane Handbook for Systematic Reviews of Interventions version 6.5.1. Cochrane, 2026. https://www.cochrane.org/authors/handbooks-and-manuals/handbook/current/chapter-10