Reporting results

How to Make a Kaplan-Meier Curve in SPSS (and Report It in APA)

Analyze > Survival > Kaplan-Meier, then Time, Status, Define Event and Factor. Every option, how to read the output, and the APA sentence with log-rank.

By , founder of KyroStat · Updated 1 Dec 2026

Every p value in this guide (2) was recomputed from its own statistic by our Results checker on 1 Dec 2026.

A Kaplan-Meier curve shows the share of people still free of an event (death, relapse, dropping out of a course) at each point in follow-up, and it handles people whose follow-up ended before the event happened. SPSS draws it from three columns: how long each person was followed, whether the event happened, and their group. This guide gives the exact menus, every box worth ticking, how to read each output table, and the APA sentence, using one worked example from start to finish.

What your data must look like

One row per person, with:

  1. A time variable: follow-up in days, weeks or months, numeric, measured from the same starting point for everyone (surgery, randomisation, enrolment). Time 0 or negative values are data errors to check.
  2. A status variable: whether the event happened at that time. Code it 1 = event, 0 = censored. "Censored" means the person was still event-free when their follow-up ended, either because the study closed or because they left early.
  3. A group variable (optional): the factor whose curves you want to compare, such as treatment arm.

Do not drop people who left early. Their months without the event are information, and dropping them makes survival look worse than it was.

Making the curve: the SPSS menus

  1. Analyze > Survival > Kaplan-Meier.
  2. Move the follow-up variable into Time.
  3. Move the event variable into Status, click Define Event, choose Single value and type 1 (the code for "the event happened"). Every other value is treated as censored.
  4. Move the group variable into Factor. Leave Strata empty unless you want separate comparisons within levels of a second variable.
  5. Click Compare Factor and tick Log rank. Breslow and Tarone-Ware are alternatives that weight early differences more; tick them only if your protocol names them. Keep Pooled over strata. Click Continue.
  6. Click Options. Under Statistics keep Survival table(s) and Mean and median survival; add Quartiles if you want the 25th and 75th percentiles of survival time. Under Plots tick Survival (this is the Kaplan-Meier curve). One minus survival draws the cumulative share who had the event, which some journals prefer for outcomes like relapse. Click Continue.
  7. Click OK. Or paste the syntax:
KM months BY group
  /STATUS=relapse(1)
  /PRINT TABLE MEAN
  /PLOT SURVIVAL
  /TEST LOGRANK
  /COMPARE OVERALL POOLED.

SPSS marks each censored case on the curve, and each drop in a curve is one or more events.

A worked example

Eighty patients were followed for up to 24 months after surgery, 40 with standard follow-up care and 40 in a nurse-led programme. The event was relapse. Six patients in each group left the study early; everyone else who had not relapsed was censored at 24 months.

Case Processing Summary. It gives the totals you report in the Method or Results:

GroupNRelapsesCensored
Standard care403010 (25.0%)
Nurse-led401822 (55.0%)
Overall804832 (40.0%)

Survival Table. SPSS lists every case, in time order within each group. Here are the first rows for the nurse-led group:

TimeStatusCumulative proportion surviving: EstimateStd. ErrorN of cumulative eventsN of remaining cases
1.000Relapsed139
1.000Relapsed238
1.000Relapsed337
1.000Relapsed436
1.000Relapsed.875.052535
3.000Relapsed634
3.000Relapsed.825.060733
5.000Relapsed.800.063832
6.000Relapsed.775.066931
6.000Censored930

The estimate appears once per event time, on the last of the tied rows. Five patients relapsed at month 1, so the estimate is 35/40 = .875. Censored rows carry no estimate, because a censored case does not move the curve; it only lowers the number still at risk for the next event. That is why the step at month 3 is 1 − 2/35, not 1 − 2/40.

Survival at a time point. The curve is flat between events, so the estimate at 12 months is the one at the last event on or before month 12. SPSS prints the standard error (Greenwood's formula) but no confidence interval for it, so compute the interval as estimate ± 1.96 × SE:

GroupMedian months to relapseRelapse-free at 6 months, % [95% CI]Relapse-free at 12 months, % [95% CI]
Standard care1069.3 [54.8, 83.8]36.8 [20.7, 52.8]
Nurse-ledNot reached77.5 [64.6, 90.4]69.5 [55.0, 83.9]

The nurse-led curve was still at .510 at 24 months, above one half, so its median cannot be estimated. Report it as "not reached"; it is not a missing value.

Overall Comparisons. The Log Rank (Mantel-Cox) row gives Chi-Square = 10.77, df = 1, Sig. = .001. Under the null hypothesis of identical curves, the standard-care group would have had 19.38 relapses; it had 30. The nurse-led group would have had 28.62; it had 18.

The APA 7 format template

Kaplan-Meier estimates of [event]-free survival at [time] were [X.X]%, 95% CI [X.X%, X.X%], in [group A] and [X.X]%, 95% CI [X.X%, X.X%], in [group B]. Median time to [event] was [X] [units] in [group B] and [was not reached / X units] in [group A]. A log-rank test showed that the survival distributions [differed / did not differ significantly], χ²([df], N = [N]) = X.XX, p = .XXX.

Building the table for this? Eight APA 7 tables in Word, formatted and ready to fill, are in the Rescue Vault, $27 for guide readers (usually $47) →

Want to see it written from data? Run this test on sample data in KyroStat: free, no file needed, and it does not use your free tests.

Write it:

Over 24 months, 30 of 40 patients receiving standard care and 18 of 40 in the nurse-led programme relapsed. Kaplan-Meier estimates of 12-month relapse-free survival were 69.5%, 95% CI [55.0%, 83.9%], with nurse-led care and 36.8%, 95% CI [20.7%, 52.8%], with standard care (Figure 1). Median time to relapse was 10 months with standard care and was not reached with nurse-led care. A log-rank test showed that the survival distributions differed, χ²(1, N = 80) = 10.77, p = .001.

Formatting rules reviewers check:

  • Italicize N, n, p and SE. χ² stays upright.
  • Survival as a proportion takes no leading zero (.695), because it cannot exceed 1; as a percentage, use one decimal. Pick one and keep it.
  • Exact p to three decimals; below .001 write p < .001, never SPSS's .000.
  • Say what the curve counts as an event and how censoring happened (study end, drop-out).
  • Give the figure a number and a title, label the axes ("Months since surgery", "Proportion relapse-free") and show a key for the groups.

Mistakes reviewers catch

  • Counting censored patients as events, or dropping them. Both bias the curve. Check that Define Event names only the event code.
  • Reading survival at a time from the row nearest the time. Use the last event on or before it; between events the curve is flat.
  • A median read off the plot when the curve never crossed .50. Write "not reached".
  • The log-rank p with no χ² or df. Give χ²(df, N), then p.
  • Calling the log-rank test an effect size. It says the curves differ, not by how much. Add survival at a stated time, medians, or a hazard ratio from a Cox regression.
  • No numbers at risk. The Kaplan-Meier procedure does not add a numbers-at-risk row under the plot; many journals ask for one. Take the counts from the "N of remaining cases" column at each time you show.
  • Mixing CIs from two programs. R's survfit() uses a log transformation for its intervals by default, so its limits differ a little from estimate ± 1.96 × SE. Say which you used.

Let KyroStat run the comparison

KyroStat's engine runs the Kaplan-Meier log-rank test on your spreadsheet: give it the time, event and group columns and it returns χ², df, p, n and the number of events, in an APA sentence. For this example it printed log-rank χ²(1) = 10.77, p = .001, n = 80, events = 48, the same as SPSS. Upload your data to run it on yours.

Frequently asked questions

Kaplan-Meier or Cox regression? Kaplan-Meier with a log-rank test compares groups on one factor without adjusting for anything. Use Cox regression (Analyze > Survival > Cox Regression) when you need a hazard ratio or want to adjust for covariates such as age.

What does the One minus survival plot show? The cumulative proportion who had the event by each time, the same curve flipped. For relapse or infection it often reads more naturally: 63.2% of the standard-care group had relapsed by 12 months (1 − .368).

Log rank, Breslow or Tarone-Ware? Log rank weights every event time equally and is the usual choice. Breslow (generalized Wilcoxon) gives more weight to early events, when more people are at risk. Choose before you look at the data, and report the one you chose.

My groups have different follow-up lengths. Is that a problem? Censoring at different times is what Kaplan-Meier is built for, as long as the reason someone is censored is unrelated to their chance of the event. If sicker patients dropped out more in one arm, say so; the curve cannot correct for it.

How do I get the same curve in R? fit <- survfit(Surv(months, relapse) ~ group, data = d) from the survival package, summary(fit, times = c(6, 12)) for the time points, survdiff(Surv(months, relapse) ~ group, data = d) for the log-rank test, and survminer::ggsurvplot(fit, risk.table = TRUE) for a plot with numbers at risk.

How many events do I need? There is no fixed minimum, but with few events the steps are large and the intervals wide. Here 48 events gave 12-month intervals about 30 percentage points wide.

Related guides

Your data in. Your Results out.

Create a free account and run your first analysis in minutes. No install, no statistics course.