Kaplan Meier Survival Analysis

Kaplan Meier online and log rank test calculator

Generates the Kaplan-Meier plot and calculates the log-rank test.

Video Chi-Square calculator Goodness of fit calculator
Please ensure every participant has an event or censored event by the end of the study.

Enter raw data directly
Enter raw data from excel
Enter aggregate data
Please change "Time1" header to your time unit.

The tool will trim empty cells, spaces or non-numeric data in the numeric columns.
If you enter only one group the log-rank test will not run.
You may use more than two groups.


The Kaplan–Meier method is a non parametric method used for the survival analysis. The tool generates the Kaplan-Meier curve with confidence interval and calculates the Log-Rank test for more than of two groups.
Main event (Dt): Maintenance failure, recovery, disease occurrence, death, etc.
Censored event (Ct): the main event didn't happen since the subject left the experiment before the ending time, or due to the termination of the experiment.
nt: number of participants that didn't have event (Main event or censored event).
Proportion surviving interval (Pt): the proportion of survival participants between period t-1 and period t.
Survival rate (St): the proportion of survival participants from period 0 to period t .
Sum = ΣDt/nt(nt - Dt)
S.E: the standard deviation of the survival rate. S.E = St√(Sum)
Lowert: Lower bound of St confidence interval .
Uppert: Upper bound of St confidence interval.

log rank test calculator

Target: test the null assumption that the "time to event" distribution is identical for all the groups.
The test uses the chi-square distribution.

The log-rank test model assumes the events per subject distributes evenly between the groups. The expected number of events is calculated per each time value.
Example with two groups A and B.
Expected value = nA(dA + dB)/(nA + nB)

The page was created per Anna P request.
H0: Equal survival distributions
H1: Unequal survival distribution
Test statistic
Chi2 statistic
χ² distribution
Chi-Squared distribution right tailed