How to make a kaplan-Meier curve
-
Paste your data
Paste cells from a spreadsheet or upload a CSV with a number column for Time to event or last follow-up and a number or text column for Event (1) or censored (0), plus a text column for Group if you have it.
-
Check the columns
The kaplan-Meier curve picks its columns for you. Change any of them under Data.
-
Style it and download
Under Style, pick a look, colours, background and size, add a title and source, then download SVG or PNG.
What is a kaplan-Meier curve?
A Kaplan-Meier curve estimates the share of a group that has not yet had an event, such as death, relapse or cancelling a subscription, at each point in time. It correctly uses people who leave the study early, whose last known time is marked with a small tick.
How to read it
The curve starts at 100% and steps down each time an event happens; the size of each step is the number of events divided by the number still at risk. Ticks mark censored people, who were last seen without the event. Compare groups by how far apart the curves sit and where each crosses 50%, which is the median time to the event.
When to use it
Show the share still without an event over time, allowing for people who leave the study early. It is one of the change over time charts, which show how values rise, fall and repeat over time.
If everyone was followed until the event, a Histogram or Box plot of the times is easier to read. For a value tracked over calendar time rather than time since a start point, use a Line chart.
Tips for a better kaplan-Meier curve
- Give one row per person with their time to the event or to last follow-up, and an event column of 1 for the event and 0 for censored.
- Treat the right end of each curve with care: few people remain at risk there, so single events cause large drops.
- A gap between curves is not a test result; report a log-rank test or hazard ratio alongside the chart.
Data you need
One row per item with a number column for Time to event or last follow-up and a number or text column for Event (1) or censored (0), plus a text column for Group if you have it. Column names can be anything; the chart maker matches columns by type, and you can change the match under Data.
| Months | Event | Arm |
|---|---|---|
| 24.1 | 0 | Standard care |
| 31.0 | 0 | Standard care |
| 43.1 | 0 | Standard care |
| 1.3 | 1 | Standard care |
| 8.2 | 1 | Standard care |
| 9.5 | 1 | Standard care |
| 9.5 | 1 | Standard care |
| 9.7 | 1 | Standard care |
Other charts for the same data
More change over time charts
Questions, answered
- What is a kaplan-Meier curve?
- A Kaplan-Meier curve estimates the share of a group that has not yet had an event, such as death, relapse or cancelling a subscription, at each point in time. It correctly uses people who leave the study early, whose last known time is marked with a small tick.
- How do you read a kaplan-Meier curve?
- The curve starts at 100% and steps down each time an event happens; the size of each step is the number of events divided by the number still at risk. Ticks mark censored people, who were last seen without the event. Compare groups by how far apart the curves sit and where each crosses 50%, which is the median time to the event.
- How do I make a kaplan-Meier curve?
- Paste your data into the chart maker with a number column for Time to event or last follow-up and a number or text column for Event (1) or censored (0), plus a text column for Group if you have it. The kaplan-Meier curve draws as you type. Then pick a look and a size and download it as SVG or PNG.
- When should I use a kaplan-Meier curve?
- Show the share still without an event over time, allowing for people who leave the study early. It belongs to the change over time family of charts, which show how values rise, fall and repeat over time. If everyone was followed until the event, a Histogram or Box plot of the times is easier to read. For a value tracked over calendar time rather than time since a start point, use a Line chart.
- Is this kaplan-Meier curve maker free?
- Yes. It is free with no sign-up, your data stays in your browser, and you can download the kaplan-Meier curve as SVG or PNG.