MIX
English

Learn

How to make a forest plot in Excel

A forest plot shows every study in a meta-analysis at a glance, with the pooled result underneath. Excel has no forest plot chart, but you can build one from a scatter chart in about fifteen minutes. This guide shows how, on 13 trials of the BCG vaccine, and how MIX makes the same plot in one click.

1. What a forest plot shows

Each row is one study. Its square is the study's result, here a risk ratio, and the horizontal line through it is the 95% confidence interval. The diamond at the bottom is the pooled result of the meta-analysis. A vertical line marks "no effect", a risk ratio of 1, so you can see at once which studies favor the treatment and which don't.

Anatomy of a forest plot, drawn from the 13 BCG vaccine trials: squares for study estimates, lines for their confidence intervals, a dashed line of no effect at a risk ratio of 1, a diamond for the pooled estimate, and a logarithmic axis. TrialRisk ratio Canada 1933 N USA a 1935 N USA b 1935 Chicago a 1937 Chicago b 1941 Georgia a 1947 Puerto Rico 1949 UK 1950 Madanapalle 1950 Georgia b 1950 Haiti 1965 S Africa 1965 Madras 1968 Pooled 0.1 0.25 0.5 1 2 4 Dashed line: no effect (risk ratio 1). Line: one study's 95% confidence interval. Square: that study's result. Bigger square, more weight. Diamond: the pooled result; its width is the 95% CI. Log scale: 0.5 and 2 are equally far from 1.
The parts of a forest plot, on the 13 BCG vaccine trials. Drawn for this page from the same data and model as MIX uses.

Ratios such as the risk ratio or odds ratio go on a logarithmic axis. On a normal axis a halving (0.5) would sit much closer to 1 than a doubling (2), and every confidence interval would look lopsided. On a log axis they are the same distance from 1, and the intervals are symmetric around the squares.

2. Set up the data

You need each study's estimate and its 95% confidence interval. If you're starting from raw counts, How to do a meta-analysis in Excel shows the formulas. Put one study per row, starting in row 2, and add three helper columns:

ColumnWhatRow 2 (Canada 1933)
AStudyCanada 1933
BRisk ratio0.20
CLower 95% limit0.09
DUpper 95% limit0.49
EDistance down to the lower limit=B2-C2 (0.11)
FDistance up to the upper limit=D2-B2 (0.29)
GRow position on the chart=ROWS(B2:B$14)+1 (14)

Fill the formulas down to row 14. Column G counts down from 14 to 2, so the first study lands at the top of the chart. Leave row 15 empty and put the pooled result in row 16 (0.49, 0.34 and 0.70 for the BCG trials) with position 0 in G16.

3. Build the chart

Three stages of building a forest plot from an Excel scatter chart: first the risk ratios plotted against row positions, then horizontal error bars for the confidence intervals, then a logarithmic axis crossing at 1, with study labels. 1. Scatter chart 0 2 4 6 2. Add X error bars 0 2 4 6 3. Log axis at 1, labels 0.1 1 10 Canada N USA a N USA b Chicago a Chicago b Georgia a Puerto Rico UK Madanapalle Georgia b Haiti S Africa Madras
The three stages below, as a sketch: the plain scatter chart, the error bars, and the log axis that turns it into a forest plot.
  1. Scatter chart. Select B2:B14, hold Ctrl and select G2:G14. On the Insert tab, choose Insert Scatter (X, Y) or Bubble Chart → Scatter. Excel puts the risk ratios on the horizontal axis and the row positions on the vertical one.
  2. Confidence intervals as error bars. Click the chart, then the Chart Elements button (+) → Error Bars → More Options. Excel adds both vertical and horizontal bars: click a vertical one and press Delete. Then select the horizontal bars and, under Error Amount, choose Custom → Specify Value: Positive Error Value F2:F14, Negative Error Value E2:E14. Set Direction to Both and End Style to No Cap.
  3. Log scale with a line of no effect. Double-click the horizontal axis. In Format Axis, tick Logarithmic scale (base 10) and set the bounds to 0.01 and 10. Under Vertical axis crosses, choose Axis value and enter 1. The vertical axis now runs through a risk ratio of 1: that is your line of no effect.
  4. Make room at the bottom. Double-click the vertical axis. Set its bounds to -1 and 15, set Horizontal axis crosses to Axis value -1, and set Labels to None. The row numbers disappear and the horizontal axis moves below the plot.
  5. Study names. Select the points, then Chart Elements → Data Labels → More Options. Under Label Contains, tick Value From Cells and select A2:A14, untick Y Value, and set Label Position to Above. (Value From Cells needs Excel 2013 or later.)

4. Add the pooled result

  1. Right-click the chart → Select Data → Add. Name the series "Pooled", with Series X values B16 and Series Y values G16.
  2. Format the new point: Marker → Marker Options → Built-in, type diamond, size 12, in a color that stands out.
  3. Give it horizontal error bars the same way as in step 2, with E16 and F16.

A diamond marker with error bars is the usual Excel stand-in for the pooled diamond. A true diamond, whose width is the confidence interval, takes extra chart series; MIX draws it that way.

5. Finishing touches

One click in MIX

The steps above are worth doing once, to see how a forest plot is built. For real work, MIX makes it for you. MIX's plots are regular Excel charts built the same way, so you can still restyle them, copy them into a report, or edit any label.

The MIX tab on the Excel ribbon, with the groups Main, Edit, Meta-analysis and Help
The MIX tab in Excel. The forest plots are under Synthesis and Exploration.
  1. Download MIX Lite (free), install it and open Excel.
  2. On the MIX tab, click MIX → Start MIX, then Data wizard, and load the built-in dataset Colditz.
  3. Under Synthesis, click Synthesis forest plot: every trial with its weight, the pooled diamond, and the numbers.
MIX's Synthesis forest plot of the 13 BCG trials: columns for author and year, cases and group sizes in both groups, risk ratio with confidence interval, and weight, beside the plot. The pooled risk ratio is 0.49 (0.34 to 0.70).
MIX's Synthesis forest plot for the BCG trials: risk ratio, random effects (DerSimonian–Laird). The same result as the steps above, with the table beside the plot. It is an Excel chart, so you can restyle it and edit any label.

Related plots on the same ribbon: Simple forest plot under Exploration shows the studies without pooling, and Cumulative forest plot under Synthesis shows how the pooled result changes as each study is added. In Graphical preferences you can also add the prediction interval to the forest plot; Heterogeneity and I², explained says what it means.

6. Check before you publish

Make it in MIX

MIX Lite is free for any use, with no account or license key, and includes the BCG dataset and many other textbook examples. MIX Pro adds your own datasets.

Windows · Excel 2007 or later, 32- and 64-bit

More guides

Data: Colditz GA et al. Efficacy of BCG vaccine in the prevention of tuberculosis. JAMA 1994;271(9):698–702, as tabulated in Egger M, Davey Smith G, Altman DG (eds). Systematic Reviews in Health Care: Meta-analysis in Context. BMJ Books, 2001. Pooled result by the DerSimonian–Laird random-effects model, checked against R's metafor package. Excel steps as labeled in Microsoft 365; older versions use the same options under slightly different menus.