Numbers at risk in Kaplan–Meier plots, explained
Number at risk (printed as “No. at risk” or “Patients at risk”) is how many patients are still being followed and have not yet had the event at each time point. It falls with every event and every censored patient. Where it is small, the curve is unreliable.
Reading a real table
Progression-free survival in KEYNOTE-426. The chart is redrawn from reconstructed data. The counts and the survival percentages below are as printed on the figure (Rini et al., Nat Med 2025, CC BY 4.0).
| Months | 0 | 12 | 24 | 36 | 48 | 60 | 72 |
|---|---|---|---|---|---|---|---|
| Pembrolizumab + axitinib | 432 | 232 | 136 | 92 | 60 | 37 | 0 |
| Sunitinib | 429 | 156 | 74 | 36 | 26 | 11 | 0 |
The count falls faster than the curve, and the gap is censoring. On pembrolizumab + axitinib:
| Months | At risk | Share of the 432 | Curve, as printed |
|---|---|---|---|
| 36 | 92 | 21.3% | 29.2% |
| 48 | 60 | 13.9% | 20.9% |
| 60 | 37 | 8.6% | 18.3% |
- From 60 to 72 months the count falls from 37 to 0, yet the curve stays flat and the reconstruction has no events there. All 37 are censored: follow-up ended.
- By 66 months the curves rest on 11 and 4 patients. Don't over-read that part.
How it is calculated
n(t) = N − events before t − censored before t. For example, 100 patients, 14 events and 14 censored before month 6: 72 at risk at month 6, as in the Guyot worked example.
Why it matters
- Reading the tail: a curve supported by 3 patients at 48 months is far less certain than one supported by 300. See how to read a KM curve.
- Separating censoring from events: the drop in numbers at risk between two times equals events plus censorings. The curve tells you the events, so the table reveals the censoring.
- Reconstruction: the Guyot algorithm uses these counts to pin down the censoring in each interval. Without them, reconstructed tails are much less reliable.
A simple consistency check
Censoring only removes patients, so the fraction still at risk cannot exceed survival just before that time: n(t)/n(0) ≤ S(t−). A break means a misread cell, swapped rows or a misprint. TrialCurve flags it on survival panels.
An example: the recurrence-free panel of PORTEC-3 (Post et al., Lancet Oncol 2025, CC BY 4.0) prints 287 of 330 at risk at 2.5 years on radiotherapy alone, which is 87%, with the curve near 74%. That is an apparent misprint: a count near 240 would fit both the curve and the next column, 218.
Adding the table to your own plots
- R:
survminer::ggsurvplot(fit, data = d, risk.table = TRUE), orggsurvfit::add_risktable(). - SAS: the
ATRISKoption of the survival plot inPROC LIFETEST(SAS documentation). - Stata: the
risktableoption ofsts graph(Stata manual). - GraphPad Prism: Prism Enterprise 10.5 or later adds the table automatically (GraphPad guide). Otherwise paste the number-at-risk results under the graph.
Extracting it from a published figure
Copy every cell exactly, together with the time each column refers to, which is usually the x-axis tick above it. Common pitfalls are columns that skip ticks, rows listed in a different order from the legend, and small digits misread in low-resolution images. A count read too high breaks the rule above. A count read too low does not: it looks like extra censoring and the curve still fits. Check the table against the figure.
Further reading: Pocock, Clayton and Altman 2002, on good practice in survival plots.
FAQ
Is 'number at risk' the same as 'number of events'?
No. At-risk counts patients still under observation at a time point; events are counted separately. The fall in numbers at risk over an interval includes both events and censorings.
Why does the number at risk fall faster than the curve?
Censored patients leave the count without lowering the curve.
What if the paper has no at-risk table?
Reconstruction is still possible from the initial N and, if reported, the total number of events, but the censoring pattern (and so the tail) is much less certain.
Have a KM figure from a paper? Get its data in a minute.
Upload a figure