CalculatorsToolsGuides 日本語
BenchFig › Guides › Kaplan–Meier survival curves: how to read and report them
Statistics

Kaplan–Meier survival curves: how to read and report them

When you compare the time until an event, such as death in a mouse survival study or the day a tumor appears, use a Kaplan–Meier survival curve rather than means. Its key feature is that animals whose observation ended early (censored) still contribute information. This guide walks through the calculation with 10 animals, then covers reading the graph and reporting it.

Updated: BenchFig日本語

What a survival curve shows

Key points
  • The y axis is the proportion still event-free at each time, S(t); the curve steps down at each event (death, etc.)
  • Censored animals (observation ended early) count for as long as they were observed and are drawn as short vertical ticks
  • Median survival is the first time survival falls to 50% or below (the midpoint if the curve is flat at exactly 50%); the mean is not used because censoring makes it undefined
  • The right end of the curve rests on few animals; adding the number at risk below the graph lets readers judge it

The “event” need not be death. Time to a palpable tumor, to a humane endpoint such as weight loss, or to symptom onset all work the same way, as long as each animal has a yes/no event and a time.

What censoring means

A censored animal is one whose observation ended before the event. In lab studies this typically means:

Kaplan–Meier uses the fact that no event had occurred up to that time. It assumes censoring is unrelated to the risk of the event (you did not selectively remove sick animals). Animals euthanized at a humane endpoint are usually counted as events (like deaths); state your choice in the Methods.

The calculation, step by step (10 animals)

Survival times of 10 animals, with “+” marking censoring: 2, 3, 3+, 5, 6+, 8, 9, 12+, 14, 16+ days (made up). At each time:

  1. Number at risk n: animals still alive and under observation just before that time. If an event and a censoring happen at the same time, the censored animal is included in that time’s risk set
  2. Proportion surviving that time: 1 − d/n, where d is the number of events at that time
  3. S(t): the product of all proportions so far
S(t) = ∏ti ≤ t (1 − dini)Only event times enter the product; censoring just reduces n at the next time.
Time (days)At risk nEvents dCensored c1 − d/nS(t)SE (Greenwood)95% CI (log(−log))
210101 − 1/100.9000.0950.473–0.985
39111 − 1/90.8000.1260.409–0.946
57101 − 1/70.6860.1510.305–0.887
6601—0.6860.1510.305–0.887
85101 − 1/50.5490.1720.187–0.806
94101 − 1/40.4110.1760.103–0.707
12301—0.4110.1760.103–0.707
142101 − 1/20.2060.1700.012–0.567
16101—0.2060.1700.012–0.567

At times with only censoring, S(t) does not change; only the next number at risk goes down.

At day 5, for example, S = (1 − 1/10) × (1 − 1/9) × (1 − 1/7) = 0.686. The animal censored on day 3 (3+) is in the day-3 risk set (9) but no longer in the day-5 one (7).

Standard error and 95% CI (Greenwood)

The standard error of S(t) comes from Greenwood’s formula:

SE[S(t)] = S(t) · √( Σti ≤ t dini(ni − di) )

At day 5, √(1/(10·9) + 1/(9·8) + 1/(7·6)) = 0.221, times 0.686, gives 0.151. A plain S ± 1.96 × SE interval (linear) can spill outside 0–1 when S is near 0 or 1 (day 14 here gives 0.000 to 0.539, with the lower limit clipped at 0). That is why the interval is usually built on the log(−log) scale and transformed back:

S(t)exp(±1.96 · √Σ / |ln S(t)|)Σ is the sum in Greenwood’s formula. The result is an asymmetric interval that stays within 0–1 (the same idea as conf.type = "log-log" in R and the “asymmetrical” interval in Prism). R’s survfit defaults to conf.type = "log", so specify "log-log" when comparing with R.

At day 5 the 95% CI is 0.305 to 0.887. As the figure shows, the interval widens later on, as fewer animals remain at risk.

02040608010005101520Percent survivalDays
Survival curve of the 10-animal example with its 95% confidence interval (log(−log), shaded). The band widens as fewer animals remain at risk.

Median survival and its 95% CI

The median is the first time at which survival falls to 50% or below (or the midpoint if the curve is flat at exactly 50%, explained below). In the 10-animal example S is 0.549 at day 8 and 0.411 at day 9, so the median is 9 days. Its 95% CI applies the same rule to the lower and upper confidence limits: 9 days [2, NR]. The upper limit never falls to 0.5 or below, so the upper bound is not reached.

Take care when the curve is flat at exactly 0.5. In the app’s sample, the Vehicle group reaches S = 0.500 exactly on day 18, and the next drop is on day 22. Like R’s survival package, BenchFig takes the midpoint, 20 days, as the median. Some software skips the midpoint and reports the time S first reaches 0.5 (18 days here), so use the same definition when comparing. The CI of the median can also be computed differently; Prism 10.5 and later, for example, is reported to use the Brookmeyer–Crowley method, which can give slightly different values.

Reading the graph

0204060801000102030405060Percent survivalDaysVehicleDrugLog-rank P = 0.013Number at riskVehicle161385000Drug1615149643
The app’s sample (made up, 16 animals per group). Short vertical ticks are censored animals; the table shows the number at risk. Median survival: Vehicle 20 days [13, 38], Drug 46 days [24, NR] (95% CI). P from the log-rank test.

Comparing the groups with the log-rank test, and how it is calculated, is covered in how to do a log-rank test.

Open this sample on the Survival screenWith the 2-group sample you can toggle the at-risk table and the confidence band, and check the medians and the log-rank test.
Open for free →

Figure legend and methods

Figure legend example:

Kaplan–Meier survival curves of vehicle- and drug-treated mice (n = 16 per group). Tick marks indicate censored animals; numbers at risk are shown below the graph. P value by the log-rank test.

Methods example: “Survival curves were estimated by the Kaplan–Meier method and compared with the log-rank test. 95% confidence intervals of median survival were derived from log(−log)-transformed confidence intervals of the survival function. Animals alive at the end of the 60-day observation period were censored.”

Results example: “Median survival was 20 days (95% CI 13–38) in the vehicle group and 46 days (24–not reached) in the drug group (log-rank P = 0.013).” Also give n and the number of events per group. The vehicle upper limit of 38 days is when the last animal’s event brought survival to 0. BenchFig treats the upper confidence limit as 0 at that time as well, so the upper limit is 38 days (with log-log in R’s survfit, the upper limit may come out as NA in such cases). General formats are in how to report statistics.

FAQ

Can I drop censored animals and use only those that died?

No. A censored animal tells you it was alive at least until that time. Dropping them tends to remove the animals that survive longer, so survival is underestimated. Treating censoring as death at that time is equally wrong.

Why not compare mean survival with a t test?

If not every event was observed (there is censoring), the mean cannot be computed. Counting censoring days as deaths biases the mean downward. Kaplan–Meier curves and the log-rank test are the standard way to handle survival data.

Why is the upper limit of the median CI “not reached”?

The 95% CI of the median comes from the times at which the confidence limits of the curve fall below 50%. If the upper limit stays above 50% until the end of follow-up, the upper bound of the median is undefined. This is common with short follow-up or high survival; report it as NR (not reached).

Should the y axis be 0–100% or 0–1?

Either is fine. Use “Percent survival” (%) or “Survival probability” (0–1) consistently, and make the axis title match the tick labels. In BenchFig, switching the y-axis unit updates the axis title too.

Draw survival curves with sample dataOpen the 2- or 3-group sample on the Survival screen to get Kaplan–Meier curves, censor ticks, the at-risk table, medians with 95% CIs, the log-rank test and a methods sentence.
Open for free →
Your own data, all the way to the final figure.Loading your files, saving, and journal-ready export (PDF, TIFF, PNG, SVG) are in BenchFig Pro for Windows, updated based on researchers’ requests: ¥3,980/year (2 PCs), with lab and perpetual licenses too.
About the app →

Related guides

Product and journal names are trademarks or registered trademarks of their respective owners.