Home / Guides

How to extract data from a Kaplan–Meier curve

Updated 2026-11-03 · TrialCurve

To extract data from a Kaplan–Meier curve, take the sharpest version of the figure, calibrate both axes, trace each arm's steps and copy the numbers-at-risk table. Check the points never rise, then run Guyot (2012) to rebuild patient data. By hand this takes about 20–60 minutes per figure (our estimate); automated, about a minute.

1. Get the best possible source image

2. The manual route (WebPlotDigitizer)

  1. Load the image and choose a 2D (X–Y) plot.
  2. Calibrate: click two x-axis ticks and two y-axis ticks and type their values. Check whether the y-axis is a percentage or a proportion.
  3. For each arm, trace the curve with the colour extraction tool or click the corners of each step (top and bottom of every drop).
  4. Export the points to CSV, one file per arm.
  5. Type the numbers-at-risk table into a spreadsheet: time, n per arm.

This is reliable but slow. Cochrane's standards (MECIR C46) call for two people to extract outcome data independently, which doubles the effort. Other options: WebPlotDigitizer alternatives and all digitizers compared.

3. The automated route

Use the box at the top of this page. TrialCurve reads the axes, separates and traces each arm, reads the at-risk table, and returns the digitised curve, the reconstructed IPD and summary statistics. Its checks compare the result with the numbers printed on the figure.

4. Quality-check the digitised data

5. Export for analysis

Export one row per patient (arm,time,event) and analyse it with standard survival software. If you only need a hazard ratio and have no curve data, the Tierney et al. (2007) methods estimate log HRs and variances from reported statistics. See our hazard-ratio tool.

FAQ

How long does manual KM digitisation take?

Our estimate is 20–60 minutes per figure, including the numbers-at-risk table and QC, and roughly double that if two reviewers extract independently.

Can ChatGPT or Claude read values off a KM curve?

On their own, in a single pass, older vision models estimated curve positions less precisely than pixel measurement: in our simulated benchmark Claude Opus 5 had a median error of 0.8 months in median survival, against 0.1 months for the measured curve. Claude Opus 5.5 with a zoom tool, which crops and enlarges the figure where it needs to, now matches pixel measurement (about 0.08 months). A chat window still gives you a reading, not a checked reconstruction.

What if the curves overlap?

Trace them where they separate, and assume they follow the same path where they overlap. Automated tools handle this by detecting which curve is drawn on top.

Have a KM figure from a paper? Get its data in a minute.

Upload a figure