FreeStatisticalTools.com
Survival, clinical and meta-analysis

Kaplan-Meier Survival Analysis Online

Estimate survival over time from data with censored cases, compare groups with the log-rank test, and plot Kaplan-Meier curves.

Free · No sign-upReplaces SPSS · Prism · StataWorks with your data
Updated · By Bibin Xavier

Data 160 × 6

Paste from Excel, or drop a CSV, TSV or Excel file here.
Example data 160 rows, 6 variables. Data stays in this browser tab.
Patienttext · 160 levelsTreatmenttext · 2 levelsAgenumericStagenumeric · codedTime_MonthsnumericEventnumeric · coded
P001Standard71110.50
P002New71323.91
P003Standard702401
P004New6833.21
P005Standard72318.10
P006New5519.11
P007Standard7334.61
P008New663320

Variables and options

Results update automatically when you change an option.

Results

160 rows · example data
Table 1

Case summary and median survival

GroupNEventsCensoredMedian survivalSurvival at last event
New80305038.1.444
Standard80443623.0.234
Table 2

Log-rank (Mantel-Cox) test

GroupObserved eventsExpected events
New3040.43
Standard4433.57

Note. χ²(1) = 5.97, p = .015.

Interpretation

Survival differed significantly between groups. New: median 38.1; Standard: median 23.0.

A log-rank test showed a significant difference in survival between groups, χ²(1) = 5.97, p = .015.

Kaplan-Meier survival curves

Table 3

Survival table: New

TimeAt riskEventsSurvivalSE95% CI
0.5801.988.012[.963, 1.000]
1.6791.975.017[.941, 1.000]
2.2781.963.021[.921, 1.000]
2.7771.950.024[.902, .998]
3.0761.938.027[.884, .991]
3.2751.925.029[.867, .983]
3.3741.913.032[.851, .974]
3.8731.900.034[.834, .966]
4.5721.888.035[.818, .957]
4.9711.875.037[.803, .947]
9.1631.861.039[.785, .937]
9.3621.847.041[.767, .927]
9.7601.833.042[.750, .916]
10.2581.819.044[.732, .905]
11.3561.804.046[.715, .893]
14.1531.789.047[.696, .881]
17.6441.771.049[.674, .868]
17.7421.753.052[.652, .854]
21.1381.733.054[.627, .838]
21.4371.713.056[.603, .823]
22.4361.693.058[.580, .806]
23.3331.672.060[.555, .789]
23.9321.651.061[.531, .772]
24.2311.630.063[.507, .754]
24.8301.609.064[.483, .735]
25.7281.587.066[.459, .716]
27.3261.565.067[.434, .696]
37.4141.525.073[.381, .668]
38.1131.484.078[.331, .637]
39.4121.444.081[.285, .603]

Note. Greenwood standard errors.

How to cite this tool

Using these results in a thesis, journal article, report or class assignment? Please cite this free tool so others can find it. It keeps the site free.

APA 7

Xavier, B. (2026). Kaplan-Meier Survival Analysis Online [Web application]. FreeStatisticalTools.com. https://freestatisticaltools.com/kaplan-meier-survival-analysis/

BibTeX

@software{xavier_kaplanmeier_2026,
  author = {Xavier, Bibin},
  title = {Kaplan-Meier Survival Analysis Online},
  publisher = {FreeStatisticalTools.com},
  year = {2026},
  url = {https://freestatisticaltools.com/kaplan-meier-survival-analysis/},
  note = {Web application}
}

Suggested sentence for your methods section: “The analysis was carried out with the free Kaplan-Meier Survival Analysis Online tool on FreeStatisticalTools.com (Xavier, 2026).”

What is Kaplan-Meier survival analysis?

The Kaplan-Meier method estimates the probability of surviving past each time point from data that include censored cases. The log-rank test compares survival curves between groups.

When to use Kaplan-Meier survival analysis

Use it for time-to-event data where some cases have not had the event by the end of follow-up (censored), such as time to death, relapse or customer churn.

Assumptions

  • Censoring is unrelated to the chance of the event.
  • Survival chances are the same for cases recruited early and late.

How to set up your data

One row per case: a time column, an event column (for example 1 = event, 0 = censored) and an optional group column.

How to use this tool

  1. Enter your data. Paste columns from Excel, Google Sheets or SPSS with variable names in the first row, or upload a CSV or Excel file. The example data shows the expected layout.
  2. Choose the variables. Select the time, event status, value meaning the event occurred and compare groups.
  3. Read the results. Results update automatically. Read the plain-English interpretation, then use Copy table to paste APA-style tables into Word and Copy for the results sentence.

How to report Kaplan-Meier survival analysis in APA style

“Median survival was 31.2 months with the new treatment and 18.4 with standard care, log-rank χ²(1) = 6.84, p = .009.”

Frequently asked questions

What is censoring?

A case is censored when follow-up ends before the event occurs, for example a patient still alive at the end of the study.

What is median survival?

The time at which the estimated survival probability falls to 50%. If the curve never reaches 50%, the median is not reached.

What does the log-rank test compare?

It compares observed and expected events in each group over the whole follow-up, testing whether the survival curves differ.

Related tools

Browse all categories