Survival Analysis Calculator
Build a Kaplan–Meier survival table from event times and censoring indicators, including median survival and risk sets.
About survival analysis
Survival analysis examples
| Observations | Result | Interpretation |
|---|---|---|
| Times 2,3,4,5; status 1,1,0,1 | Median = 3; S(3) = 0.5 | The observation at time 4 is censored and changes only the later risk set. |
| Times 1,2,4; status 1,1,1 | Median = 2; final survival = 0 | Every subject experiences the event, so the curve eventually reaches zero. |
| Times 2,4,6; status 1,0,0 | Median not reached; final survival = 0.6667 | Only one event occurs, and two later observations are censored. |
How to calculate Kaplan–Meier survival
- Enter each subject's observed survival or follow-up time in the first field.
- Enter a matching 1 for an event or 0 for censoring in the second field.
- Click Calculate survival to build risk sets and cumulative probabilities.
- Review the survival table and identify whether the curve reaches its median.
Survival analysis FAQ
What is a censored observation?
A censored subject has a known event-free follow-up time but no observed event at that point. The subject contributes to earlier risk sets and then leaves later ones.
How is Kaplan–Meier survival calculated?
At each event time, multiply the previous survival by one minus events divided by subjects at risk. The sequence of products forms the stepwise survival estimate.
What does median survival mean?
Median survival is the earliest time when estimated survival reaches 50 percent or less. It is not estimable if the observed curve stays above one half.
Can the time values use months or years?
Yes, any non-negative and consistent time unit works. The calculator returns median survival in the same unit you entered.
Does this calculator compare two groups?
No, it estimates one Kaplan–Meier curve at a time. A formal comparison commonly uses a log-rank test or an appropriate regression model.