Survival Analysis Calculator

Build a Kaplan–Meier survival table from event times and censoring indicators, including median survival and risk sets.

Kaplan–Meier survival analysis
Enter one time and one event indicator for every subject, in matching order.

About survival analysis

Survival analysis studies the time until an event occurs. The event might be death, relapse, equipment failure, customer churn, recovery, or any clearly defined endpoint. Unlike ordinary averages, survival methods can use information from subjects whose event has not been observed by the end of follow-up. Those observations are censored rather than treated as failures or discarded. This calculator uses the Kaplan–Meier product-limit estimator. At each distinct event time, it counts the subjects still at risk immediately before that time and the events occurring at that time. The conditional chance of surviving the interval is (n − d) / n, where n is the risk set and d is the number of events. Multiplying that factor by all preceding factors produces the cumulative survival probability. The estimate changes only at event times; a censored observation reduces later risk sets but does not directly lower survival. Enter survival times in the first field and matching status indicators in the second. Use 1 when the event occurred and 0 when the observation was censored. The first time corresponds to the first indicator, the second time to the second indicator, and so on. Times must be non-negative and may use any consistent unit, such as days, months, years, operating hours, or customer billing cycles. The output retains that same unit. The result table shows every observed time, the number at risk, events, censored observations, and cumulative survival. When events and censoring share a time, events are evaluated using the full risk set at that time before those observations leave the set. This is a conventional treatment for grouped observations. The median survival time is the earliest time at which estimated survival is at or below 0.5. If the curve never reaches 0.5, the median is reported as not reached rather than extrapolated. Censoring must be non-informative for a simple Kaplan–Meier estimate to be interpreted reliably. In practical terms, subjects who are censored should not systematically have a different future event risk solely because they were censored. The estimator also does not adjust for age, treatment, exposure, or other covariates. Comparing curves formally may require a log-rank test, while adjusted analysis commonly uses a Cox proportional hazards model. Use the table as a transparent descriptive estimate, not as a substitute for study design or clinical judgment. Small risk sets near the end of follow-up produce unstable tail estimates, and this compact calculator does not display confidence intervals. For research reporting, pair survival probabilities with uncertainty intervals, state the censoring rules and time origin, and use validated statistical software for inferential conclusions.

Survival analysis examples

ObservationsResultInterpretation
Times 2,3,4,5; status 1,1,0,1Median = 3; S(3) = 0.5The observation at time 4 is censored and changes only the later risk set.
Times 1,2,4; status 1,1,1Median = 2; final survival = 0Every subject experiences the event, so the curve eventually reaches zero.
Times 2,4,6; status 1,0,0Median not reached; final survival = 0.6667Only one event occurs, and two later observations are censored.

How to calculate Kaplan–Meier survival

  1. Enter each subject's observed survival or follow-up time in the first field.
  2. Enter a matching 1 for an event or 0 for censoring in the second field.
  3. Click Calculate survival to build risk sets and cumulative probabilities.
  4. 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.