Bland–Altman Plot Maker

Compare two measurement methods: differences against means, with the bias, 95% limits of agreement and their confidence intervals. Journal-sized vector figures, methods text and R code; your data stays in your browser.

Loading the Bland–Altman editor…

Worked examples

Respiratory physiology (Bland & Altman 1986)

two peak flow meters

Wright minus mini Wright peak expiratory flow (l/min) against their mean for 17 people; solid line = bias, dashed lines = 95% limits of agreement.

Respiratory physiology (Bland & Altman 1986)

confidence intervals and proportional bias

The peak flow data with shaded 95% confidence intervals, a zero line and the regression of differences on means (dash-dot).

Laboratory medicine (illustrative)

percentage differences and acceptable limits

Illustrative point-of-care minus laboratory glucose as a percentage of their mean, with ±15% acceptable limits (long dashes).

How to make a Bland–Altman plot

  1. Paste or open a table with one row per subject and the two methods in two columns, or download the template. Name the columns after the methods: they become the axis titles.
  2. Choose the direction of the difference (A − B or B − A) and absolute or percentage differences.
  3. Optionally shade the 95% confidence intervals, add the regression of differences on means, a zero line, or acceptable limits set before the study.
  4. Set journal, size, font, title and panel label. If a label would not fit, the figure asks for more room instead of shrinking text below the journal minimum.
  5. Export SVG, PDF, PNG or TIFF, download the results CSV, and copy the methods text and the base-R script.

Data format

ID    Wright  Mini Wright
1     494     512
2     395     430
3     516     520

Rows with a missing value in either method are left out and listed. Values are read as typed; use the same units for both methods.

A scatter plot with r, made in Scatter Plot Maker, shows association, not agreement. To explore many variables at once, use Correlation Heatmap Maker.

Method and numerical checks

Bias = mean of the differences; limits of agreement = bias ± 1.96 SD; 95% CIs use t with n − 1 degrees of freedom and standard errors SD/√n (bias) and SD·√(3/n) (limits), as in Bland and Altman (1986, 1999) and the R package BlandAltmanLeh. Every number is checked against base R on the original peak flow data and edge-case files to a relative difference of 10⁻⁹. Normality of the differences is not tested.

Frequently asked questions

What do the limits of agreement mean?

They are the bias (mean difference) ± 1.96 SD of the differences. If the differences are roughly normal, about 95% of differences between the two methods for a new subject are expected to lie between them. They describe how far apart two measurements of the same subject can be, in the units of the measurement.

Why not use correlation to compare two methods?

Correlation measures whether two methods rank subjects in the same order, not whether they give the same values. Two methods can correlate almost perfectly while one reads systematically higher, and a wide range of subjects inflates r. Bland and Altman (1986) proposed plotting the differences instead; in their peak flow data r is 0.94, but the limits of agreement span about 150 l/min.

Why 1.96 SD and not 2 SD?

1.96 is the 97.5th percentile of the normal distribution, so ± 1.96 SD covers 95%. The original paper rounded it to 2; most current software and guidelines use 1.96, and this tool always does. The methods text states the multiplier.

Should I report confidence intervals for the limits?

Yes, especially with small samples: the limits are estimates and can be very imprecise. The tool gives 95% CIs for the bias (t with n − 1 degrees of freedom) and for each limit (standard error SD·√(3/n), Bland & Altman 1986 and 1999), in the table and optionally as shaded bands.

What is proportional bias?

The differences grow or shrink with the size of the measurement, so the points slope across the plot. Turn on the regression of differences on means to see the slope with its 95% CI. If there is a clear trend, percentage differences or limits that vary with the mean describe agreement better than one pair of limits.

When should I use percentage differences?

When the spread of differences increases with the magnitude, which is common for laboratory measurements over a wide range. The tool plots 100 × (A − B) divided by the mean of the two methods. A mean of exactly zero makes the percentage undefined, and the tool says which row.

How do I decide whether the agreement is acceptable?

Define the largest difference that would not matter clinically before the study, from clinical requirements or a standard, and compare the limits of agreement with it. Enter it as acceptable limits to draw it on the figure. The tool never gives a pass or fail verdict.

Can I use repeated measurements per subject?

Not yet: keep one pair per subject (for example the first reading). Repeated pairs need a variance-components method (Bland & Altman 1999, 2007); the tool stops with a message when an ID appears twice.