Kaplan-Meier Survival Calculator

Estimate survival curves from time-to-event data with censoring support. Compare groups with the log-rank test and visualise confidence bands.

Please verify you are human to use the calculator.

How Kaplan-Meier Analysis Works

Collect Time-to-Event Data

Record the time from study entry to either the event of interest (event=1) or loss to follow-up / study end (event=0, censored). Optionally assign subjects to groups for comparison.

Estimate Survival Probability

At each event time, the survival probability is updated by multiplying by (1 − d/n), where d is the number of events and n is the number still at risk. This produces the characteristic step function.

Confidence Intervals

Greenwood's formula provides the variance of S(t) at each time point, yielding 95% confidence bands that widen as fewer subjects remain at risk.

Compare Groups

The log-rank test compares observed vs expected events across groups at each event time. A small p-value indicates a statistically significant difference in survival between groups.

Survival Analysis in Practice

Survival analysis is a branch of statistics dealing with time-to-event data, where the event of interest might be death, disease recurrence, equipment failure, or customer churn. The Kaplan-Meier estimator is the most widely used non-parametric method for estimating the survival function, and it handles censored observations naturally — a key advantage over simple methods that would either exclude or miscount incomplete follow-up.

While the Kaplan-Meier curve and log-rank test are powerful descriptive and comparative tools, they do not adjust for covariates. When you need to control for confounding variables such as age, treatment dose, or comorbidities, parametric and semi-parametric models become necessary. Our tutorial on Cox proportional hazards regression demonstrates how to model the effect of covariates on the hazard function. For a fully Bayesian approach that quantifies parameter uncertainty, see our guide on Bayesian survival analysis with PyMC.

Time-to-event models reach patients through a clinical pathway, an audit trail and a governance sign-off, and that route is usually longer than the modelling. Sesen AI is led by an Oxford AI DPhil with a peer-reviewed clinical AI record. Our medical AI consulting covers medtech founders and private clinical groups, and clinical decision support consulting covers models that inform a clinician's decision directly.

Related Tools

Stay in the loop

Get notified when new tutorials and deep-dives are published. No spam, unsubscribe anytime.

Kaplan-Meier Survival Analysis FAQ

Common questions about survival curves, censoring, and the log-rank test