How to do a meta-analysis: a step-by-step guide

A meta-analysis combines the results of several studies into one estimate with a confidence interval. Most of the work comes before the pooling: deciding which studies belong together, getting an effect and its standard error from each one, and choosing the model before you see the answer.

Updated

Three study reports, each with its result drawn as a square on a line, feeding by dotted lines into a small forest plot whose pooled result is a diamond at the bottom.

In brief

  • Pool only studies whose participants, interventions, comparisons and outcomes are similar enough to give a clinically meaningful answer.
  • Compute one effect per study, with its standard error, on the same measure: usually a risk or odds ratio for binary outcomes and a mean difference or standardized mean difference for continuous ones.
  • Pool by inverse-variance weighting. Choose fixed or random effects from what you expect of the studies, never from a test for heterogeneity.
  • Report heterogeneity with I², τ² and, from about five studies, a prediction interval.
  • Check that the result survives your judgement calls with sensitivity analyses, and look for small-study effects when you have ten or more studies.

1. Decide whether to pool at all

Section 10.1 of the Cochrane Handbook is titled “Do not start here!”. It calls the diamond at the bottom of a forest plot “an exciting moment for many authors”, and warns that a meta-analysis can be very misleading if the question, eligibility criteria, search, data collection and risk of bias haven’t had proper attention first. The step-by-step review guide covers those stages.

Cochrane makes it mandatory to meta-analyse only when participants, interventions, comparisons and outcomes are similar enough to give a clinically meaningful answer. Some diversity is fine as long as the question is clear: the Handbook’s example is pooling trials of different drugs from one class to estimate the effect of the class.

A systematic review doesn’t need a meta-analysis. If the studies differ too much, or their effects point in different directions, quoting an average can mislead, and a narrative synthesis may serve better.

2. Choose the effect measure

Meta-analysis usually runs in two stages. First you calculate the same summary statistic for every study, such as a risk ratio or a difference in means. Then you combine those statistics as a weighted average.

What each study needs to supply, by type of outcome. From chapter 10 of the Cochrane Handbook.

  • Binary (event or no event)

    Data from each study
    Events and totals in each group: a 2×2 table
    Effect measures
    Risk ratio or odds ratio. Risk differences only with a clear reason to expect them to be consistent
  • Continuous, same scale

    Data from each study
    Mean, standard deviation and number in each group
    Effect measures
    Mean difference
  • Continuous, different scales

    Data from each study
    As above
    Effect measures
    Standardized mean difference
  • Already analysed (time to event, cluster or crossover trials)

    Data from each study
    An effect estimate and its standard error, with ratios as natural logs
    Effect measures
    Generic inverse variance

For binary outcomes, the Handbook recommends risk ratios or odds ratios. Relative measures are on average more consistent across studies than risk differences, and the number needed to treat has no simple variance, so it can’t be pooled directly. You can still re-express the pooled ratio as a risk difference or number needed to treat afterwards, from an assumed risk in the comparison group. Don’t pick the measure that happens to give the most consistent results in your data: that can spuriously inflate the precision of the estimate.

3. Get each study’s effect and its standard error

Most software takes summary data from each arm and calculates the effect for you. When a study reports only an estimate and its confidence interval, you can work back to the standard error, and when it reports a median and interquartile range you’ll need to estimate the mean and standard deviation. Treat such imputations as decisions to test later.

Watch for zero cells. Most programs add 0.5 to every cell of a 2×2 table with a zero, which avoids dividing by zero but biases the study’s estimate towards no difference. For rare events the Handbook says to avoid inverse-variance methods, including DerSimonian and Laird. It reports that below a 1% event risk the Peto odds ratio was the least biased method, provided the groups were balanced and the effect wasn’t very large.

Pitfall: Standard errors entered as standard deviations

Severe heterogeneity can mean the data are wrong. The Handbook’s example is standard errors entered as standard deviations, which gives overly narrow confidence intervals that barely overlap. Check the extracted numbers before you look for a scientific explanation.

4. Choose fixed or random effects before you pool

The inverse-variance method weights each study by one over the square of its standard error, so larger studies count for more. A fixed-effect meta-analysis assumes every study estimates the same effect. A random-effects meta-analysis assumes the effects differ but follow a distribution, usually normal, and estimates its centre.

The Handbook gives no universal recommendation, but it is firm on one point: the choice “should never be made on the basis of a statistical test for heterogeneity.” It suggests planning both and presenting the random-effects result unless the funnel plot is asymmetric. The guide to heterogeneity covers the trade-offs.

DerSimonian and Laird’s estimator of the between-study variance is the simplest. Since 2024 RevMan defaults to restricted maximum likelihood (REML) and prompts for the Hartung-Knapp-Sidik-Jonkman confidence interval when there are more than two studies and some heterogeneity. For a fixed-effect analysis of sparse binary data, the Handbook generally prefers the Mantel-Haenszel method to inverse variance.

5. Pool the studies and draw the forest plot

The pooled estimate is the weighted average of the study effects, and its standard error gives the confidence interval and a P value. A forest plot shows each study as a square on a line, with the pooled result as a diamond at the bottom. The guide to reading a forest plot walks through one in detail.

6. Assess and explore heterogeneity

Assessing heterogeneity is mandatory in Cochrane reviews. Look at Cochran’s Q, I² and τ², and with five or more studies the Handbook encourages a prediction interval, which shows how far the effect could vary between settings. I² and τ² are very uncertain with few studies, so avoid simple thresholds.

To explore causes, use subgroup analyses or meta-regression, specified in your protocol. The Handbook says meta-regression generally shouldn’t be considered with fewer than ten studies, and analyses devised after you’ve seen the heterogeneity can at best generate hypotheses.

7. Test how robust the result is

A sensitivity analysis repeats the meta-analysis with a different choice wherever the original one was arbitrary or unclear. Common ones include:

  • leaving out studies at high risk of bias, or whose eligibility is doubtful;
  • changing how missing standard deviations or missing outcomes were imputed;
  • switching between fixed and random effects, or between odds ratios and risk ratios;
  • running the analysis with and without an outlying study, rather than dropping it because of its result.

The Handbook suggests reporting sensitivity analyses in a summary table, since a forest plot for each is rarely informative. If the conclusions hold, you can regard the result with more certainty. If one decision changes them, say so, and try to resolve it by contacting the study authors.

Check too for evidence missing because of its results. Tests for funnel plot asymmetry need at least ten studies; see funnel plots and publication bias. Carry the judgements from your risk of bias tools into the analysis as well, and on into your GRADE assessment.

8. Report what you did

What to report: What PRISMA 2020 asks for

In the methods, PRISMA 2020 asks for the effect measure for each outcome (item 12), and for a meta-analysis the model, the methods for heterogeneity and the software (item 13d). Items 13e, 13f and 14 cover how you explored heterogeneity, the sensitivity analyses, and how you assessed bias from missing results.

In the results, give each summary estimate with its confidence interval and measures of heterogeneity (item 20b), then every investigation of heterogeneity, every sensitivity analysis and the assessment of missing results (items 20c, 20d and 21).

Frequently asked questions

How many studies do you need for a meta-analysis?

Two can be pooled, and the Handbook’s own examples include a two-study meta-analysis. With so few studies, though, heterogeneity is poorly estimated. Prediction intervals need about five studies, and meta-regression and tests for funnel plot asymmetry need about ten.

Is a meta-analysis the same as a systematic review?

No. A systematic review is the whole process of finding, selecting and appraising studies. A meta-analysis is the statistical step that combines their results, and a review may not include one.

What software can I use for a meta-analysis?

The Handbook refers to RevMan throughout and names the metafor package for R and the metareg macro for Stata for meta-regression. For a quick pooled estimate and forest plot, the forest plot generator runs in your browser.

Should I use a fixed-effect or random-effects model?

Decide before you see the results, from whether you expect one true effect. Many authors choose random effects because identical effects across studies are generally considered implausible, but random effects give small studies more weight, which can exaggerate small-study bias.

Doing this in OtterSR

In OtterSR’s Write stage, ask for a forest plot from the command bar, for example /generate graph --description "a forest plot of mortality, random effects". The AI maps the columns you extracted onto the analysis, runs it and draws the plot with a caption, citing the studies it used.

The analysis is a pairwise inverse-variance meta-analysis: fixed effect, or random effects with DerSimonian and Laird’s τ² by default, or REML, Paule-Mandel or maximum likelihood, and an optional Hartung-Knapp-Sidik-Jonkman interval. Binary outcomes can also be pooled by Mantel-Haenszel, or Peto for odds ratios, as fixed effect from arm counts. It pools risk ratios, odds ratios, risk differences, mean differences, standardized mean differences (Hedges’ g) or hazard ratios, from arm-level counts, means and SDs, or from reported estimates with confidence intervals. It reports Q, I² and τ², and for random effects a prediction interval from three studies. It adds 0.5 to tables with a zero cell and flags them, and records any study it couldn’t use and why. When your extracted data change, the figure is drawn again for free.

OtterSR’s Write stage: a manuscript in a split editor, its PRISMA diagram and a table of records each marked Auto-update, the rendered preview on the right, and a command bar at the bottom.
The Write stage, with figures and tables that update when the data change.

Write also runs subgroup analyses with the test for subgroup differences, meta-regression with a bubble plot, leave-one-out and risk of bias sensitivity analyses, and tests for small-study effects. Values reported as a median and IQR, log-rank statistics or another effect size can be converted, with each conversion recorded by study. See how it works.

Free tools for this step

Sources

  1. 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
  2. Page MJ, McKenzie JE, Bossuyt PM, et al. The PRISMA 2020 statement: an updated guideline for reporting systematic reviews. BMJ 2021;372:n71. https://doi.org/10.1136/bmj.n71