# How to Make Kaplan-Meier Survival Plots in Excel

Techwalla may earn compensation through affiliate links in this story.
Statistical analysis with Kaplan-Meier curves helps determine survival probabilities.

The Kaplan-Meier curve was designed in 1958 by Edward Kaplan and Paul Meier to deal with incomplete observations and differing survival times. Used in medicine and other fields, the K-M curve analyzes the probability of a subject surviving an important event. The event can be anything that marks a significant point in time or accomplishment. Subjects in K-M analysis have two variables: study period (from the beginning point to an end point) and status at the end of the study period (the event occurred, or the event didn't occur or is uncertain).

## Step 1

Name column A as "Study Period," column B as "Number at Risk," column C as "Number Censored," column D as "Number Died," column E as "Number of Survivors" and column F as "K-M Survival."

Video of the Day

## Step 2

Fill in the column values. Type in the study's periods in the Study Period column. In the Number Censored column, type how many people were excluded from the study at this point. A person can be censored because he dropped out of the study, his data is incomplete or the study ended before the event happened for him. In the Number Died column, type in the number of people who died in this period of the study.

## Step 3

Fill in the Number at Risk and Number of Survivors columns. For the first row, starting at cell B2, the number at risk is the total number of participants in the study. The number of survivors is the number at risk minus the number who died, or =B2-D2. The second and subsequent rows are calculated differently. The Number at Risk column is the number of survivors from the previous period minus how many people were censored, or =E3-C3. The number of survivors for this period is still the number at risk minus the number who died, or =B3-D3. Click cell B3 and drag to autofill the rest of the Number at Risk column. Click cell E3 and drag to autofill the rest of the Number of Survivors column.

## Step 4

Fill in the K-M Survival column to calculate the survival probability for each period of the study. For the first study period, the survival probability is the number of survivors divided by the number at risk, or =E2/B2. For the second and subsequent study periods, the survival probability is the previous period's survival probability multiplied by the number of survivors divided by the number at risk, or =F2*(E3/B3). Click cell F3 and drag to fill in the rest of the K-M Survival column.

## Step 1

Select the values in the K-M Survival column, from cell F2 to the end of your data.

## Step 2

Click the "Insert" tab. In the Charts section, click the arrow next to the Insert Line Chart icon. Click the "Line with Markers" option. A chart appears on the worksheet.

## Step 3

Click "Select Data" on the Design tab to change the X-axis to reflect the correct study periods. The Select Data Source box opens. In the Horizontal (Category) Axis Labels section, click the "Edit" button. Click cell A2 and drag to the end of the data. Click "OK," and then click "OK" again. You now have a Kaplan-Meier survival plot.

#### Tip

If you have multiple groups of subjects, add a Group column. Each group should have its own line in the chart you create.

#### Warning

Information in this article applies to Excel 2013. It may vary slightly or significantly for other versions or products.