Skip to main content
StatsPlotMaker

Forest Plot Generator

Fixed-Effect (IV) & Random-Effects (DL) Meta-Analysis · Log OR/RR/HR & Linear MD/SMD · Heterogeneity I², Q, τ² · HD SVG/PNG

Sample datasets
Data InputJump to Chart

Paste 4 columns from Excel/Sheets: Study, Estimate, Lower 95% CI, Upper 95% CI.

Effect Measure Scale
Pooled Diamond Model
Statin Therapy vs. Placebo: Major Cardiovascular Events (OR)Log Scale (Null = 1) · Random-Effects (DL) · k = 7StudyOdds Ratio (95% CI)Est. [95% CI]Weight4S Trial (1994)4S Trial (1994): 0.66 [0.54, 0.81], Weight 12.1%0.66 [0.54, 0.81]12.1%WOSCOPS (1995)WOSCOPS (1995): 0.69 [0.55, 0.87], Weight 10.1%0.69 [0.55, 0.87]10.1%CARE (1996)CARE (1996): 0.76 [0.62, 0.94], Weight 11.6%0.76 [0.62, 0.94]11.6%AFCAPS (1998)AFCAPS (1998): 0.63 [0.49, 0.82], Weight 8.4%0.63 [0.49, 0.82]8.4%LIPID (1998)LIPID (1998): 0.78 [0.68, 0.9], Weight 19.5%0.78 [0.68, 0.9]19.5%HPS (2002)HPS (2002): 0.73 [0.66, 0.81], Weight 26.3%0.73 [0.66, 0.81]26.3%JUPITER (2008)JUPITER (2008): 0.56 [0.46, 0.69], Weight 12.1%0.56 [0.46, 0.69]12.1%Random-Effects (DL)Random-Effects (DL): 0.7 [0.64, 0.76]0.7 [0.64, 0.76]100.0%0.44411.165← Favors TreatmentFavors Control →Heterogeneity: Q = 9.06 (df = 6, p = 0.170) · I² = 33.8% · τ² = 0.0041 | Overall Z = -8.51 (p = < 0.0001)
Studies (k)
7
Pooled (Random)
0.7
95% CI
[0.64, 0.76]
Overall p
< 0.0001
Heterogeneity I²
33.8%
Tau² (DL)
0.0041
Study / Pooled ModelEstimate95% CISE (ln)Fixed WtRandom Wt
4S Trial (1994)0.66[0.54, 0.81]0.10349.6%12.1%
WOSCOPS (1995)0.69[0.55, 0.87]0.1177.5%10.1%
CARE (1996)0.76[0.62, 0.94]0.10629.2%11.6%
AFCAPS (1998)0.63[0.49, 0.82]0.13146.0%8.4%
LIPID (1998)0.78[0.68, 0.9]0.071520.2%19.5%
HPS (2002)0.73[0.66, 0.81]0.052237.8%26.3%
JUPITER (2008)0.56[0.46, 0.69]0.10349.6%12.1%
Fixed-Effect Pooled (IV)0.71[0.66, 0.75]0.0321100.0%—
Random-Effects Pooled (DL)0.7[0.64, 0.76]0.0422—100.0%
100% Free & Private — All statistical calculations and SVG exports run locally in your browser.
Quick Summary

A forest plot displays study effect sizes, 95% confidence intervals, inverse-variance weights, and a pooled summary diamond. Paste Study, Estimate, Lower CI, and Upper CI columns above to compute Fixed-Effect and DerSimonian-Laird Random-Effects models, Cochran’s Q, I², and τ² locally.

How to Use the Forest Plot Generator

  1. Step 1

    Paste 4-column study data

    Copy Study, Estimate, Lower 95% CI, and Upper 95% CI from Excel or Sheets—or load a Cardiology OR, Education SMD, or CBT preset.

  2. Step 2

    Pick Ratio or Difference scale

    Choose Ratio (log scale, null = 1.0) for OR/RR/HR or Difference (linear, null = 0.0) for MD/SMD, and select Random, Fixed, or Both diamonds.

  3. Step 3

    Inspect I² and export

    Review study weights, Z-scores, p-values, and Q / I² / τ² heterogeneity below, then download a crisp SVG, 3x PNG, or CSV.

Inverse-Variance, DerSimonian-Laird & Heterogeneity Formulas

Each study’s standard error is derived from its 95% CI, enabling inverse-variance pooling and heterogeneity testing without raw 2×2 cell counts.

Standard Error from 95% CI
SEᵢ = (Uᵢ − Lᵢ) / 3.92 [or ln bounds for ratios]

Recovers study-level standard error from reported 95% confidence bounds.

Fixed-Effect Pooled Estimate
ŷ_FE = Σ(wᵢ·yᵢ) / Σwᵢ , wᵢ = 1 / SEᵢ²

Weights narrower-CI studies higher to minimize pooled variance.

Cochran's Q & I² Heterogeneity
Q = Σwᵢ(yᵢ − ŷ_FE)² , I² = max(0, (Q − df)/Q) × 100%

Quantifies the percentage of variation driven by true heterogeneity over chance.

DerSimonian-Laird τ² & Random Weights
τ² = max(0, (Q − df) / C) , wᵢ* = 1 / (SEᵢ² + τ²)

Estimates between-study variance τ² and balances weights under heterogeneity.

Worked Example

Two trials report Odds Ratios 0.66 [0.54, 0.81] and 0.78 [0.68, 0.90]. On log scale, y₁ = −0.4155 with SE₁ = (ln(0.81) − ln(0.54))/3.92 = 0.1034 (w₁ = 93.5), and y₂ = −0.2485 with SE₂ = 0.0715 (w₂ = 195.6). Inverse-variance pooling yields ŷ_FE = −0.3025, giving pooled OR = exp(−0.3025) = 0.74 [0.66, 0.83].

Fixed-Effect vs. Random-Effects & Scale Reference

Model / SettingCore AssumptionStudy WeightTypical Use Case
Fixed-Effect (IV)One shared true effect across studieswᵢ = 1 / SEᵢ²Functionally identical studies with low I²
Random-Effects (DL)True effects vary with variance τ²wᵢ* = 1 / (SEᵢ² + τ²)Trials differing in population, dose, or setting
Ratio Scale (OR/RR/HR)Analyzed on natural log scaleyᵢ = ln(θᵢ), null = 1.0Binary outcomes (Odds, Risk, or Hazard Ratios)
Difference Scale (MD/SMD)Analyzed on raw linear scaleyᵢ = θᵢ, null = 0.0Continuous outcomes (Mean Difference, Hedges g)

Common Homework & Lab Report Mistakes to Avoid

  • Plotting OR or RR on a linear axis

    Ratios are symmetric only on a log scale (0.5 and 2.0 are equidistant from 1.0). Use Ratio mode so confidence intervals render symmetrically.

  • Using Fixed-Effect when I² is high

    When I² exceeds 50%, studies likely differ meaningfully. Switch to Random-Effects (DL) or Both Models to avoid overly narrow intervals.

  • Equating individual non-significance with no effect

    Individual study CIs crossing 1.0 (or 0.0) can still yield a statistically significant pooled diamond when effects point consistently.

Recommended Statistics Guides

Frequently Asked Questions

What does a forest plot show in a meta-analysis?+

Each row plots one study’s effect estimate as a weight-scaled square with horizontal 95% CI whiskers, followed by a bottom diamond for the pooled estimate and 95% CI.

How do I read the vertical line of no effect?+

Null is 1.0 for ratio measures (OR, RR, HR) and 0.0 for differences (MD, SMD). Intervals that do not cross the null line are significant at α = 0.05.

When should I use Random-Effects (DL) vs. Fixed-Effect (IV)?+

Choose Random-Effects (DerSimonian-Laird) when trials differ in populations, protocols, or follow-up—especially when I² is moderate to high (> 25%–50%).

What do I², Cochran’s Q, and τ² measure?+

Q tests excess between-study dispersion, I² gives the percentage of variation due to true heterogeneity, and τ² estimates between-study variance.

Do I need raw 2×2 event counts?+

No. Paste published point estimates and 95% CI bounds directly; the calculator derives SEᵢ and inverse-variance weights automatically.

Can I export vector graphics for journal manuscripts?+

Yes. Export an editable vector SVG, a 3x print-resolution PNG, or a CSV of all weights and pooled summaries.

More Free Statistical Plot Makers