Forest Plot Generator

Paste study effect sizes, 2×2 event counts, or arm means and SDs to calculate pooled meta-analysis estimates and export a journal-ready forest plot.

REML, DerSimonian–Laird & Fixed-effectOR, RR, HR (log) · MD & Hedges' gFree editable SVG + 300 DPI PNG

6 studies ready

Effect measure
Pooling model
Study order
Palette
Width
PNG exports at 2640 px wide (300 DPI); SVG keeps editable text.
Pooled summary & heterogeneity
Pooled OR [95% CI]z / pQ (df, p)I²τ²
0.72 [0.63, 0.83]-4.64 (< 0.0001)3.37 (5, 0.643)0.0%0.0000
Show meta-analysis steps (log scale, weights, Q, τ², I²)

1. Analysis scale, standard errors, and inverse-variance weights

Ratio measures (OR) are transformed with natural logs: y_i = ln(OR) and SE = (ln(Upper) − ln(Lower)) / 3.92. Each study's variance is v_i = SE².

Studyln(OR)SEv = SE²Weight w_i (%)
Alvarez 2019-0.32850.17680.031331.98 (15.7%)
Chen 2020-0.44630.17960.032330.99 (15.2%)
Kowalski 2021-0.12780.17890.032031.25 (15.3%)
Okafor 2021-0.59780.24550.060316.59 (8.1%)
Patel 2022-0.24850.13290.017756.66 (27.8%)
Lindholm 2024-0.38570.16620.027636.20 (17.8%)

2. Fixed-effect inverse-variance baseline

Σw_i = 203.68, θ_FE = -0.3255, SE_FE = 0.0701

3. Between-study heterogeneity

Q = 3.372, df = 5, p = 0.643 · I² = 0.0% · τ² = 0.00000 (τ = 0.0000)

τ² estimated by Restricted Maximum Likelihood (REML) via Fisher scoring; random-effects weight w_i* = 1 / (v_i + τ²).

4. Pooled estimate, z-test, and prediction interval

θ = -0.3255, SE = 0.0701 → OR = 0.72 [0.63, 0.83] · z = -4.64, p = < 0.0001

95% PI (t_4 = 2.776): [0.59, 0.88]

Calculations and SVG rendering run inside your browser while you edit. Downloading saves your table and settings to your history so you can reopen the plot later.

Forest Plot Examples

Every figure below is rendered directly by this forest plot generator from its built-in demonstration datasets, unedited. Click any example to inspect its table, switch pooling models, or adjust labels.

Forest plot of six clinical trials showing odds ratios on a log scale with pooled random-effects REML diamond at 0.72 [0.63, 0.83]

Odds ratio forest plot (6 RCTs)

Six demonstration trials on 30-day hospital readmission plotted on a logarithmic axis around 1. Pooled REML OR is 0.72 [0.63, 0.83] with Q = 3.37 (p = 0.643) and I² = 0.0%.

Hazard ratio forest plot of seven survival trials using Okabe-Ito blue squares and orange pooled diamond at HR 0.73 [0.65, 0.82]

Hazard ratio survival meta-analysis

Seven time-to-event trials comparing combination therapy against monotherapy on a log scale (pooled HR 0.73 [0.65, 0.82], z = -5.45, p < 0.0001), using the colorblind-safe Okabe-Ito palette.

Subgroup forest plot comparing high-dose and low-dose regimens with two subtotal diamonds, overall diamond at 0.71, and subgroup difference test

Subgroup analysis with Q_between

Eight trials split into High dose (OR 0.58 [0.48, 0.69]) and Low dose (OR 0.86 [0.73, 1.01]), showing separate subtotal diamonds and a significant test for subgroup differences (Q = 10.58, df = 1, p = 0.001).

Risk ratio forest plot calculated from 2x2 binary event counts showing arm totals, 0.5 zero-cell footnote, and pooled DL RR 0.60 [0.45, 0.78]

2×2 event counts (Risk Ratio + 0.5 fix)

Computed straight from raw events and arm totals. Study Gomez 2020 has 0/42 events in treatment, triggering a flagged 0.5 continuity correction and a left truncation arrow where the wide CI extends past the axis.

Mean difference forest plot of systolic blood pressure change on a linear axis around 0 with pooled diamond at -4.63 [-5.50, -3.75]

Mean difference from N, Mean, SD

Five blood-pressure trials entered as arm-level sample sizes, means, and standard deviations. Plotted on a linear axis with the line of no effect at 0 (pooled MD −4.63 mmHg [−5.50, −3.75]).

Journal black-and-white forest plot of eight SMD studies showing pooled diamond at -0.56 and a wider 95% prediction interval bar from -1.30 to 0.18

High heterogeneity with 95% prediction interval

Eight Hedges' g studies with substantial heterogeneity (I² = 73.1%, τ² = 0.0783). While the pooled 95% CI is [−0.78, −0.33], the 95% prediction interval spans [−1.30, 0.18], showing future settings could cross zero.

What is a forest plot?

A forest plot (also called a confidence interval plot or blobbogram, popularized in clinical reviews by Lewis & Clarke, 2001) is the primary graphic used to display the results of a meta-analysis alongside every included study on a single aligned axis. Each study appears on its own row with a square marking its point estimate—sized so the square's area is proportional to the study's meta-analysis weight—and a horizontal line spanning its 95% confidence interval (CI). At the bottom, a diamond represents the pooled summary estimate, with its horizontal tips marking the pooled 95% CI.

A vertical line of no effect anchors the reading: it sits at 1 for ratio measures (odds ratio, risk ratio, hazard ratio) plotted on a logarithmic scale, and at 0 for difference measures (mean difference, standardized mean difference, or risk difference) plotted on a linear scale. Following Cochrane Handbook Chapter 10 and PRISMA 2020 items 12, 13d, 19, and 20b, a publication-ready forest plot pairs these markers with study-level numbers, percentage weights, named direction labels (Favours …), the pooling model and τ² estimator, and heterogeneity statistics (Q, I², and τ²).

How to make a forest plot, step by step

To build an accurate forest plot for a systematic review, you transform ratio measures onto the natural log scale, weight each study by the inverse of its variance, estimate between-study heterogeneity, and plot every row against the null line. Here are the five steps worked out on the six-trial odds ratio dataset loaded in the tool.

  1. Choose the effect measure and check the null line

    Match the measure to your outcome type (forest plots are meant for two or more independent studies—Cochrane discourages plotting a single study as a forest plot). Use Odds Ratio (OR) or Risk Ratio (RR) for binary outcomes, Hazard Ratio (HR) for time-to-event data, Mean Difference (MD) when every study uses the same unit (such as mmHg), and Standardized Mean Difference (Hedges' g) when studies measure the same construct on different scales (binary Risk Difference, RD, also sits on a linear scale around 0). Ratio measures use a logarithmic axis with a null line at 1; difference measures use a linear axis with a null line at 0.

  2. Extract consistent study-level data

    Gather either each trial's reported effect estimate with its 95% confidence interval (Study, OR, Lower, Upper), or raw arm-level counts (Events_T, Total_T, Events_C, Total_C) / continuous summaries (N, Mean, SD per arm). Keep the event definition identical across all studies so the left/right direction stays consistent—especially for Risk Ratios, where coding an event versus its complement changes the pooled estimate.

  3. Transform ratios to natural logs and derive standard errors

    Per Cochrane Handbook Chapter 6, odds ratios, risk ratios, and hazard ratios are pooled on the natural log scale: y_i = ln(OR) and SE = (ln(Upper) − ln(Lower)) / 3.92. Under inverse-variance weighting, each study's variance is v_i = SE² and fixed-effect weight is w_i = 1 / v_i:

    StudyOR [95% CI]ln(OR)SE[ln(OR)]Weight
    Alvarez 20190.72 [0.51, 1.02]-0.3290.17715.7%
    Chen 20200.64 [0.45, 0.91]-0.4460.18015.2%
    Kowalski 20210.88 [0.62, 1.25]-0.1280.17915.3%
    Okafor 20210.55 [0.34, 0.89]-0.5980.2458.1%
    Patel 20220.78 [0.60, 1.01]-0.2480.13327.8%
    Lindholm 20240.68 [0.49, 0.94]-0.3860.16617.8%
    Pooled (DL)0.72 [0.63, 0.83]-0.3250.070I² = 0.0%, p < 0.0001
  4. Select a pooling model and evaluate heterogeneity

    Compute Cochran's Q (df = k − 1), I², and between-study variance τ² using either REML (default in R metafor and available in RevMan) or DerSimonian–Laird (DL). Under a random-effects model, each study's weight becomes w_i* = 1 / (v_i + τ²), giving smaller studies relatively more weight when heterogeneity is present. In the worked example above, Q = 3.37 (p = 0.643, I² = 0.0%, τ² = 0), so fixed-effect and random-effects pooling agree at OR = 0.72 [0.63, 0.83].

  5. Plot squares, diamond, direction labels, and export vector art

    Scale each square's area to its percentage weight, label the logarithmic ticks in original anti-logged numbers (e.g., 0.4, 0.5, 1, 1.25), replace generic axis labels with the actual named intervention and comparator (e.g., Favours intervention vs Favours usual care), and export an editable SVG or 300 DPI PNG for your manuscript.

Worked example forest plot of six odds-ratio clinical trials generated by Vizcept showing weights, log axis, and DerSimonian-Laird summary diamond
The six worked-example trials rendered by this forest plot generator under DerSimonian–Laird pooling.

Build a Forest Plot in Three Steps

Three steps in your browser

Every calculation—from 2×2 counts and Hedges' g to REML τ² and 95% prediction intervals—runs locally as you type.

1

Paste Your Study Table or Upload CSV

Choose Effect + CI (OR, RR, HR, MD, SMD, or Effect + SE), 2×2 Counts, or Mean & SD, and paste rows straight from Excel or Google Sheets. Add a Subgroup column to generate subtotal diamonds and Q_between automatically. Have numbers inside a Results paragraph? Use Describe with AI (2 credits).

2

Pick Pooling Model and Journal Styling

Switch between Random-effects (REML), Random-effects (DerSimonian–Laird), Fixed-effect (Inverse-Variance), or No pooling. Sort studies by order, effect size, or weight; toggle the 95% prediction interval; name your Favours left/right labels; and choose Cochrane, Okabe-Ito, Paul Tol, or Journal B&W.

3

Export Vector SVG or 300 DPI PNG

Download an editable SVG (real <text> elements for Illustrator, Inkscape, or PowerPoint) or a 300 DPI PNG meeting journal raster thresholds, copy the pooled summary table into Word, and open Show steps to audit every intermediate weight and heterogeneity figure.

How to read a forest plot: squares, diamonds, I², τ², and prediction intervals

Read a forest plot in five quick checks before citing its conclusion:

  • Line of no effect (1 or 0). If an individual study's 95% CI crosses the vertical null line (1 for OR/RR/HR; 0 for MD/SMD), that study alone is not statistically significant at α = 0.05. The same rule holds for the pooled diamond: if its left and right tips do not touch the null line, the pooled effect is statistically significant (confirmed by the footer z and p values).
  • Square size = weight, not raw sample size. Under inverse-variance weighting, a study with a narrower confidence interval has smaller variance and a larger square. Under random-effects pooling when τ² > 0, weights become more evenly distributed across studies than under a fixed-effect model.
  • Heterogeneity (Q, I², and τ²). Cochran's Q tests whether observed study differences exceed sampling error alone, but it has low power when k is small—a high p value does not prove homogeneity. I² reports the percentage of variability due to heterogeneity rather than chance. The Cochrane Handbook rough guide notes overlapping bands: 0–40% might not be important, 30–60% may represent moderate heterogeneity, 50–90% substantial, and 75–100% considerable. τ² estimates the actual between-study variance on the analysis scale.
  • Confidence interval vs 95% prediction interval. The pooled 95% CI shows uncertainty around the average treatment effect. When heterogeneity is present, the 95% prediction interval (computed here with the Higgins et al., 2009 / Riley et al., 2011 θ ± t_{k−2} · √(τ² + SE²) formula for k ≥ 3, matching R meta; Cochrane Handbook Chapter 10 illustrates an approximate t_{k−1} variant) shows the range of true effects expected in a new, similar study. Cochrane encourages reporting prediction intervals when at least ~5 studies are pooled without clear funnel asymmetry.
  • Subgroup differences. When a Subgroup column is included, inspect the footer's Test for subgroup differences (Q, df, p) rather than judging significance solely by whether two subtotal diamonds visually overlap.

Fixed-effect vs random-effects (REML vs DerSimonian–Laird)

Choose the statistical model based on clinical and methodological assumptions before looking at the p-value:

ModelCore assumptionWeight formulaBest used when
Fixed-effect (IV)All studies estimate one single true effect; differences are sampling errorw_i = 1 / v_iNearly identical protocols, populations, and interventions (or a common-effect sensitivity check)
Random-effects (REML)True effects vary across studies around a mean; τ² estimated by restricted maximum likelihoodw_i* = 1 / (v_i + τ²_REML)Default in R metafor::rma.uni and recommended in Cochrane's updated guidance for most clinical meta-analyses
Random-effects (DL)Same random-effects model; τ² estimated via DerSimonian–Laird method of momentsw_i* = 1 / (v_i + τ²_DL)Reproducing legacy RevMan 5 analyses or textbook worked examples (note: Cochrane cautions DL can underestimate uncertainty when k is small)
No poolingDisplays individual study estimates without a summary diamondEqual square sizeStudies are too clinically heterogeneous to combine into a single pooled number

When I² = 0% and τ² = 0, all three pooling models yield the exact same pooled estimate and study weights.

Supported data formats, zero-cell rules, and column layouts

Paste tab-separated cells directly from Excel or Google Sheets, or comma/semicolon-separated CSV. Wrap study names that contain commas in double quotes (for example, "Smith et al., 2021").

Input tabColumnsNotes
Effect + CIStudy, Effect, Lower, Upper [, Subgroup] or Study, Effect, SE [, Subgroup]Ratio measures (OR, RR, HR) must have strictly positive values; SE for ratios must be on the natural-log scale (SE[ln(OR)]).
2×2 CountsStudy, Events_T, Total_T, Events_C, Total_C [, Subgroup]Computes OR or RR with Woolf variance. Single zero-event cells receive a 0.5 continuity correction (flagged with * and a footnote; Cochrane notes this can bias sparse-event estimates). Studies with 0 events in both arms (double-zero) are marked Not estimable and excluded from relative pooling per Cochrane guidance.
Mean & SDStudy, N1, Mean1, SD1, N2, Mean2, SD2 [, Subgroup]Computes raw Mean Difference (MD) or small-sample bias-corrected Hedges' g (SMD) using Cochrane RevMan's variance formula.

Need to pull numeric data out of a published figure before pooling? Extract coordinates first with the plot digitizer. Building the companion flow diagram for your review? Pair this page with our PRISMA 2020 flow diagram generator and CONSORT flow diagram generator.

Forest plot vs funnel plot, Excel, RevMan, and R metafor

Researchers often ask how this browser tool compares to standard review software, when to use a different chart, and how to report the method under PRISMA 2020:

  • Forest plot vs funnel plot. A forest plot displays each study's effect estimate, 95% CI, weight, and the pooled diamond. A funnel plot plots effect size against precision (such as standard error) to examine small-study effects and potential reporting bias—asymmetry suggests a relationship with study size, not definitive proof of publication bias (Cochrane Handbook Chapter 13).
  • Microsoft Excel & Google Sheets. Neither spreadsheet program includes a native forest plot chart type; building one requires scatter-plot error bars, manual log transformations, helper Y-axis coordinates, and separate shapes for the pooled diamond. Paste your Excel or Sheets columns straight into this page to avoid helper-column workarounds.
  • Cochrane RevMan Web. The reference platform for full Cochrane reviews (supports Mantel–Haenszel, Peto, REML/DL, risk-of-bias tables, and SVG/PNG export), but requires an account or subscription for non-Cochrane reviews.
  • R (metafor / meta), JASP, jamovi & Stata. Essential when you need Hartung–Knapp–Sidik–Jonkman (HKSJ) CIs, leave-one-out sensitivity diagnostics, multilevel meta-regression, or network meta-analysis. Our REML and DL inverse-variance outputs align with metafor::rma.uni(yi, vi, method = "REML") and method = "DL".
  • PRISMA 2020 Methods reporting template. To satisfy PRISMA 2020 items 12, 13d, 19, and 20b, state the effect measure, pooling model, τ² estimator, confidence level (95%), heterogeneity metrics, and software—for example: "Study-level [odds ratios / mean differences] were pooled using an inverse-variance random-effects model with [REML / DerSimonian–Laird] estimation of τ²; heterogeneity was assessed with Cochran's Q, I², τ², and a 95% prediction interval, and forest plots were generated in Vizcept (vizcept.com/tool/forest-plot-generator)."
  • Other data figures. For raw group distributions or regression figures outside meta-analysis, use our box plot maker, violin plot maker, or scatter plot maker, or describe conceptual diagrams in Vizcept's AI scientific figure generator.

What This Forest Plot Generator Does

Built for systematic reviews and journal manuscripts

All statistical pooling and SVG drawing run by deterministic code in your browser—never drawn by an image model—so every confidence interval, diamond tip, weight, and p-value matches your data.

Forest plot showing random-effects REML pooling across six odds ratio trials with weights and heterogeneity footerModels

REML, DerSimonian–Laird & Fixed-Effect

Inverse-variance pooling with full audit steps

Switch between Random-effects (REML), DerSimonian–Laird (DL), Fixed-effect (IV), or unpooled display in one click, and inspect every log transform, variance, Q, I², and τ² in Show steps.

Subgroup forest plot displaying high-dose and low-dose subtotals and a significant Q_between testSubgroups

Subgroup Diamonds & Q_between Test

Automatic stratified analysis

Add a Subgroup column to group trials under bold headings, draw subtotal diamonds for each stratum, and compute the formal test for subgroup differences (Q, df, p).

Risk ratio forest plot calculated from 2x2 arm event counts with treatment and control columnsBinary

2×2 Event Counts to OR or RR

Automatic 0.5 zero-cell & double-zero handling

Paste raw event counts and arm totals to calculate Odds Ratios or Risk Ratios directly, with Cochrane-standard 0.5 continuity correction for single-zero cells and clear double-zero disclosure.

Continuous outcome forest plot displaying mean differences in systolic blood pressure around zeroContinuous

Mean Difference & Hedges' g

Linear axis anchored at zero

Enter arm sample sizes, means, and standard deviations to pool raw Mean Differences or bias-corrected Standardized Mean Differences (Hedges' g) on a clean linear axis.

Forest plot with substantial heterogeneity displaying both the 95% confidence diamond and wider 95% prediction intervalHeterogeneity

95% Prediction Intervals

Show expected effect range in future studies

Overlay a 95% prediction interval bar beneath the random-effects diamond (k ≥ 3) alongside Q, I², and τ² so readers see how wide true effects may vary across settings.

Monochrome journal black-and-white hazard ratio forest plot exported in vector layoutExport

Editable SVG & 300 DPI PNG

Vector text ready for Illustrator or Word

Export clean SVG vector graphics with real editable text or 300 DPI PNG figures—including a classic Journal B&W theme—meeting NEJM and major journal resolution guidelines.

Forest Plot Generator — Frequently Asked Questions

FAQ

Describe with AI is the paid feature: it uses 2 credits per run because it calls a language model to extract numbers from unstructured text. Paid plans start at $14.90/month and one-time credit packs start at $19.90 (never auto-renewing), with sign-up and daily check-in credits available for new accounts. Everything in the core generator is completely free with no watermark: pasting Effect + CI, 2×2 counts, or Mean & SD tables, switching pooling models, and downloading editable SVG and 300 DPI PNG files. For fully scriptable local analysis, free open-source alternatives include R's metafor and meta packages, though they require writing R code.

Select your input format—Effect + CI, 2×2 Counts, or Mean & SD—and paste your study rows from Excel or upload a CSV file. Pick your effect measure (OR, RR, HR, MD, or SMD) and pooling model (REML, DerSimonian–Laird, or Fixed-effect). The forest plot updates immediately with study weights, log or linear ticks, heterogeneity statistics, and custom Favours labels, ready to export as SVG or 300 DPI PNG.

Yes. Per the Cochrane Handbook, ratio measures (OR, RR, HR) must be analyzed on the natural log scale and plotted on a logarithmic axis while labeling ticks in original anti-logged values (such as 0.5, 1, and 2). A log axis keeps reciprocal effects like 0.5 and 2 visually symmetric around the line of no effect at 1. This generator automatically applies a log axis for OR, RR, and HR, and a linear axis around 0 for MD and SMD.

Use a random-effects model when included studies differ in populations, doses, or settings and you expect true effects to vary. REML (Restricted Maximum Likelihood) is the default in R metafor and is recommended by updated Cochrane guidance; DerSimonian–Laird (DL) matches traditional RevMan 5 outputs. Use a fixed-effect (inverse-variance) model only when studies share a common underlying effect or as a sensitivity check. You can toggle between all three immediately to inspect how weights and intervals change.

If one arm of a study has 0 events (or 100% events for an odds ratio), the calculator applies a standard 0.5 Haldane–Anscombe continuity correction to all four cells, marks the study with an asterisk (*), and adds a disclosure footnote. If both arms have 0 events (double-zero study), the study is marked 'Not estimable' and excluded from relative-effect pooling, following Cochrane Handbook Chapter 10. For very rare events (<1% risk), review whether Peto OR or Mantel–Haenszel in RevMan or R is preferable.

The pooled 95% confidence interval (the width of the summary diamond) measures uncertainty around the average effect across studies. The 95% prediction interval (shown as a horizontal bar beneath the diamond when enabled for random-effects models with at least 3 studies) incorporates τ² and estimates the range of true effects expected in a future, comparable study. When heterogeneity is high, the prediction interval can cross the line of no effect even when the pooled diamond is statistically significant.

Yes. Add a Subgroup column to your pasted table (either as the last column or right after the Study column). Whenever two or more distinct subgroups are detected, the generator automatically groups studies under bold subgroup headers, draws a subtotal diamond for each subgroup, and prints the test for subgroup differences (Q, df, p) in the footer.

No. This browser tool uses inverse-variance pooling (Fixed-effect IV, Random-effects REML, and Random-effects DerSimonian–Laird) with Wald 95% confidence intervals and t-based 95% prediction intervals. If your protocol requires Mantel–Haenszel pooling, Peto odds ratios, Hartung–Knapp–Sidik–Jonkman adjustments, leave-one-out sensitivity analysis, Galbraith/Baujat diagnostic plots, or meta-regression, run the model in R (metafor/meta), Stata, or Cochrane RevMan, and optionally paste your pre-calculated estimates here for clean vector plotting.

Yes. Switch to the Describe with AI tab (2 credits per run) and paste a Results summary or messy table. A text model parses the study names, effect sizes, CIs, or raw counts into the structured data box, and code still runs all meta-analysis calculations and SVG rendering. Any number not found in your original text is automatically dropped so figures are never fabricated.

You can download an editable SVG (retaining real vector <text> for Adobe Illustrator, Inkscape, or PowerPoint—matching NEJM's preference for editable vector art) and a 300 DPI PNG meeting standard journal raster minimums. All table edits and calculations happen inside your browser; nothing is uploaded while you type. Clicking download saves the table and settings to your personal history so you can reopen and revise the figure later.

Neither Microsoft Excel nor Google Sheets has a built-in forest plot chart; making one in a spreadsheet requires manual log transforms, helper Y-axis coordinates, custom scatter-plot error bars, and separate diamond shapes. For free meta-analysis software, you can paste your spreadsheet columns straight into this browser forest plot generator (free watermark-free SVG and 300 DPI PNG), use free desktop GUI tools like JASP or jamovi (MAJOR module), write reproducible scripts in R (metafor or meta packages), or use Cochrane RevMan if you are authoring an official Cochrane review.

Generate Your Forest Plot Now

Paste your study estimates or 2×2 counts, audit REML or DL statistics, and download an editable SVG or 300 DPI PNG—free in your browser.

Other tools you might like

Explore more AI diagram tools across subjects — from the same discipline and beyond.

Featured on Findly.tools