Skip to content
Graph Craft

Kaplan–Meier

Survival Curve

FacebookX
Example: Customers still subscribed over 24 months, by package (made-up data)Apache ECharts

Variant: Standard

Made-up data, for demonstration only

Variants

4 types · click one to see it in the frame above
Difference from standard
The recommended type; use it as a starting point
Use when
Show the share that has "not yet had the event" over time, such as customers who haven't canceled

Kaplan–Meier Curve is a step chart that estimates the share of items that have not yet had an event over time, such as customers who are still using a service. The example compares an annual plan (40 customers) with a monthly plan (14 customers) over 24 months (made-up data).

How to read a Kaplan–Meier Curve

  • The horizontal axis is time and the vertical axis is the share still using the service. It starts at 100% at month 0.
  • The line drops in steps. Each step is a moment when someone left. Between steps the line is flat because there are no new events.
  • The short ticks on the line are censored data. These are customers who have not left but whose follow-up ran out, for example because they signed up recently. They are not people who left.
  • Look at the median. The time at which the estimated curve falls to 50% is the median time to the event. It is not necessarily the time when half the sample actually left, because some data were censored. Try the "Median line" variant.
  • Compare the two groups. Where the annual line sits above the monthly line, the estimated share still using the service is higher for the annual plan at that time. The picture alone does not say the plan is the cause.
  • Be careful with the tail. The monthly plan has only 14 customers, so the end of its line rests on very few people and is less reliable than the start.

When to use it

  • You need to see when an event happens, and some items have not had it yet, such as customer retention, equipment lifetime, or time until finding a new job.
  • The follow-up is cut off for some items. This chart handles censored data, as long as being censored is not related to the chance of the event happening later.
  • You compare two or more groups, such as plans, treatments, or customer segments.

When not to use it

  • Every item has the event and nothing is censored. An ECDF Plot fits more directly.
  • There is very little data (a handful of items). The curve is a coarse, uncertain staircase.
  • You want the trend in a rate over time. Use a Line Chart.
  • Readers are not used to this chart. Explain the censoring ticks and what a step means.

Common mistakes

1. Counting people who have not left as staying for ever

Someone whose follow-up was cut off may still leave in the future. The Kaplan–Meier method uses their data up to the time of cut-off, then removes them from the at-risk group.

2. Removing the censoring ticks

Try the "No censoring marks" variant. Readers then cannot tell that the end of the line rests on little data.

3. Comparing two curves without checking the difference is real

A gap on the chart may be down to chance. Use a test such as the log-rank test before concluding anything.

4. Not giving the size of each group

Give the number in each group (40 and 14 here), because the line of a small group is not stable.

5. Reading the end of the tail with too much certainty

When few items remain, the value you see can change a lot if just one more event happens.

Compared with similar charts

ChartHow it differsChoose it when
Kaplan–Meier CurveA step line over time that handles censoringTime-to-event data
Step ChartA general staircaseA value that changes in steps
ECDF PlotCumulative share of fully observed dataNothing is censored
Line ChartA continuous lineA trend over time

History and development

The name comes from Edward L. Kaplan and Paul Meier, who published the paper Nonparametric Estimation from Incomplete Observations in 1958.

Frequently asked questions

What is censoring?

It is the case where all you know is that an item had not had the event by the last time it was followed, for example a patient who left the study, or an item with no event when follow-up ended.

What does a stepped line mean?

The share is treated as constant between two times at which events happen, following the Kaplan–Meier method of estimation.

How do I compare two curves correctly?

Use the log-rank test or a Cox proportional hazards model.

References

  • Kaplan–Meier estimator · Wikipedia · en.wikipedia.orgUsed to confirm: the definition and basics of the Kaplan–Meier estimator
  • Nonparametric Estimation from Incomplete Observations · Kaplan and Meier · jhanley.biostat.mcgill.caUsed to confirm: the original 1958 paper and the method of estimating from incomplete follow-up
  • An Introduction to Survival Statistics: Kaplan-Meier Analysis · Jager et al. · pmc.ncbi.nlm.nih.govUsed to confirm: what censored data means and the assumptions of the method

Last updated 28 Nov 2026