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.
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:
| Column | What | Row 2 (Canada 1933) |
|---|---|---|
| A | Study | Canada 1933 |
| B | Risk ratio | 0.20 |
| C | Lower 95% limit | 0.09 |
| D | Upper 95% limit | 0.49 |
| E | Distance down to the lower limit | =B2-C2 (0.11) |
| F | Distance up to the upper limit | =D2-B2 (0.29) |
| G | Row 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
- 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.
- 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.
- 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.
- 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.
- 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
- Right-click the chart → Select Data → Add. Name the series "Pooled", with Series X values B16 and Series Y values G16.
- Format the new point: Marker → Marker Options → Built-in, type diamond, size 12, in a color that stands out.
- 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
- Square markers. Format the study points with a square marker in a dark color.
- Show the weights. In a forest plot a bigger square means a study that counts more. A plain scatter chart gives every point the same size; to size them by weight, build the chart as a Bubble chart instead, with each study's weight as the bubble size.
- Labels and gridlines. Delete the gridlines, give the horizontal axis a title such as "Risk ratio (log scale)", and add "favors vaccine" and "favors control" text boxes on either side of 1.
- The numbers. Many forest plots list each estimate and interval on the right. A table next to the chart, aligned row by row, is the simplest way in Excel.
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.
- Download MIX Lite (free), install it and open Excel.
- On the MIX tab, click MIX → Start MIX, then Data wizard, and load the built-in dataset Colditz.
- Under Synthesis, click Synthesis forest plot: every trial with its weight, the pooled diamond, and the numbers.
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
- The axis is logarithmic for ratios, and labeled with the measure and its scale.
- It is clear which side of 1 favors which group.
- The pooled result says which model it comes from (fixed or random effects), and the heterogeneity statistics are given with it.
- The studies are in a meaningful order, such as by year, and match the table in your report.
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
- How to do a meta-analysis in Excel
Effect measures, fixed and random effects, and the pooled result, step by step.
- Heterogeneity and I², explained
Cochran's Q, I², τ² and the prediction interval: do the studies agree?
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.