Glossary · Outcomes and endpointsUpdated November 27, 2026

Hazard ratio explained: Kaplan-Meier curves, censoring and the log-rank test

A hazard ratio compares how fast an event (death, progression, relapse) happens in one arm versus another at any moment of follow-up. Kaplan-Meier curves show the same data as the share of participants still event-free over time. Together they are the standard way to report time-to-event trials.

  • Hazard ratio in plain language
  • Worked example with demo data
  • What to capture in the eCRF

Free sandbox · No credit card · 21 CFR Part 11 compliant

  • ISO 27001 certified
  • 21 CFR Part 11 compliant
  • GDPR compliant
  • EU and US data hosting
  • HIPAA compliant
  • ICH GCP E6(R3) compliant
Time-to-event analysisHR

Hazard ratio

noun · clinical research

The ratio of the instantaneous event rate (hazard) in one group to that in another. An HR of 0.67 means the treatment arm has about two-thirds of the control arm’s event rate at any time point, assuming proportional hazards.

Related terms

Kaplan-Meier estimatorCensoringLog-rank testCox modelMedian survival

In short

  • The hazard is the event rate among people still at risk at a given moment. The hazard ratio (HR) divides the treatment arm’s hazard by the control arm’s.
  • HR below 1 favours the treatment when the event is bad (death, progression). HR 0.67 is a 33% lower hazard, not "33% fewer deaths" and not "lives 33% longer".
  • A Kaplan-Meier curve estimates the proportion still event-free over time and steps down at each event. Tick marks show censored participants, whose follow-up ended without an event.
  • The log-rank test asks whether two curves differ; the HR (usually from a Cox model) says by how much. A single HR assumes proportional hazards: the ratio stays roughly constant over time.
  • Median survival is the time at which the curve crosses 50%. It is often easier to explain than the HR, but it only describes one point on the curve.

Explained

Hazards, curves and why time matters

Many trials do not ask whether an event happens but when. A cancer study counts months until progression; a heart failure study counts days until hospitalisation. Two problems make ordinary percentages unsuitable. Participants join at different dates, so they have different follow-up lengths when the data are analysed. And some leave the study, or reach the analysis date, without the event. Time-to-event methods use everyone’s information up to the point they stop being observed, instead of throwing those people away.

The hazard is the short-term event rate among people who are still at risk: of those event-free at month 6, how many have the event in the next small interval. The hazard ratio compares those rates between arms. It is the main effect measure for survival endpoints, which is why it appears as the headline in most oncology and cardiovascular papers. When you plan such a trial, the target HR drives the number of events you need; the survival sample size calculator does that arithmetic, and the general logic is covered in sample size calculation.

Censoring

A participant is censored when follow-up ends without the event: they reached the data cut-off alive, withdrew consent, or were lost to follow-up. Censoring is not a failure of the study. Kaplan-Meier and Cox methods assume it is non-informative, meaning the reason someone stopped being followed is unrelated to their risk. If sicker participants drop out more often in one arm, that assumption breaks and the curves can mislead. This is why the reason and date of every discontinuation belong in the eCRF, not only in site notes.

The log-rank test and the Cox model

The log-rank test compares observed and expected events in each arm at every event time, pooled over the follow-up. It gives a p-value but no effect size. The Cox proportional hazards model estimates the HR with a confidence interval and can adjust for covariates such as stratification factors from randomization. Both are normally pre-specified in the statistical analysis plan, including which events count and how censoring dates are set.

The proportional hazards assumption

A single HR summarises the whole curve only if the ratio of hazards is roughly constant. Curves that cross, or that separate late (common with some immunotherapies), suggest non-proportional hazards. Then a single HR can understate or overstate the benefit at particular times, and analysts often add restricted mean survival time, landmark survival rates or time-varying effects. Checking the assumption (for example with log-minus-log plots or Schoenfeld residuals) is part of the analysis, not an afterthought.

Worked example

A Kaplan-Meier estimate by hand (demo data, 10 participants)

Times in months. A "+" means censored. At each event time the survival estimate is multiplied by (at risk minus events) divided by at risk. Censored participants leave the risk set without moving the curve.

Time (months)At riskEventsCensoredSurvival estimate
010001.000
210100.900
3+9010.900
48200.900 x 6/8 = 0.675
6+6010.675
75100.675 x 4/5 = 0.540
94100.540 x 3/4 = 0.405
10+3010.405
12 / 12+2110.405 x 1/2 = 0.203

Demo data only. The median is the first time the estimate falls to 0.5 or below: 9 months here. By convention an event and a censoring at the same time count the event first.

Interpreting

From two medians to a hazard ratio: a numeric demo

Take a hypothetical two-arm study, DEMO-101, with a median progression-free survival of 12 months on control and 18 months on the new treatment. If event times follow an exponential pattern (a constant hazard), the hazard is ln(2) divided by the median: 0.0578 per month on control and 0.0385 per month on treatment. The HR is 0.0385 / 0.0578 = 0.67. Under that simple model the HR is just the inverse ratio of the medians (12 / 18).

Read it carefully. HR 0.67 means that, at any moment, an event-free participant on treatment has about two-thirds of the risk of one on control. It does not mean 33% fewer events by the end of the study: at 24 months the demo curves give 39.7% versus 25.0% still event-free, so 60.3% versus 75.0% have progressed. To detect HR 0.67 with 80% power at a two-sided 5% level with 1:1 allocation, the Schoenfeld approximation needs about 191 events, regardless of how many participants it takes to reach them. Event-driven trials therefore plan the analysis for when the event count is reached; interim looks are covered by the group sequential design calculator.

Always report the confidence interval. HR 0.67 (95% CI 0.50 to 0.90) and HR 0.67 (95% CI 0.40 to 1.12) describe very different certainty. Many teams add an absolute measure, such as the difference in event-free rates at a landmark time or a number needed to treat at that time, because patients and clinicians understand those more easily.

DEMO-101 · event-free by month (demo data)

Median, control

12 mo

Median, treatment

18 mo

Hazard ratio

0.67

Events needed (80% power)

~191

Month 6 · control70.7/100

70.7%

Month 6 · treatment79.4/100

79.4%

Month 12 · control50/100

50.0%

Month 12 · treatment63/100

63.0%

Month 24 · control25/100

25.0%

Month 24 · treatment39.7/100

39.7%

Demo data from an exponential model, not a real study.

Data capture

What a time-to-event analysis needs from the eCRF

The HR is only as good as the dates behind it. These are the fields statisticians ask for most often.

An unambiguous time zero

Randomization date (or first dose, if the SAP says so) stored as a date field, never typed in free text.

Event date and event type

A dedicated form per event (progression, death, hospitalisation) with the assessment that confirmed it, so the earliest qualifying date can be derived.

Censoring date and reason

Last known event-free contact, plus a coded reason for discontinuation (withdrawal, lost to follow-up, data cut-off).

Assessment schedule adherence

Scan or visit dates that show when progression could have been detected; late scans shift event dates.

Stratification factors

Captured at randomization exactly as used for allocation, so the stratified log-rank and Cox model match the design.

Change history

An audit trail showing who changed an event or censoring date and why, which matters when dates move after review.

Build your event and follow-up forms before the first participant

Set up randomization, event forms and discontinuation reasons in the free sandbox and enter dummy participants. No credit card, no time limit.

Try Capture free

In Capture

Clean dates for survival analysis

Capture combines EDC, randomization and ePRO in one system with one audit trail. Date fields, skip logic and edit checks keep event and censoring dates consistent (for example, an event date cannot precede randomization without raising an auto-query), and calculated fields can show the time between two date-times read-only. Exports come as CSV/Excel with a data dictionary, or as CDISC SDTM datasets in SAS XPT with Define-XML, so your statistician can build the time-to-event analysis without re-keying.

  • Edit checks raise auto-queries on impossible date sequences.
  • Field-level audit trail with old value, new value and reason.
  • SDTM export as SAS XPT with Define-XML.
EDC for oncology trials
Data and exports
Clinical data (codes + labels)CDISC SDTM + Define-XMLData dictionaryAnnotated CRFE2B safetyAudit trail
SUBJECGPERF_CODEECGPERF_LABEL
01-001YYes
01-002NDNot done

FAQ

Common questions

Something not covered here? Ask us directly.

What does a hazard ratio of 0.7 mean?

At any point during follow-up, participants in the treatment arm have about 70% of the event rate of those in the control arm, a 30% lower hazard. It does not mean 30% fewer events overall or that people live 30% longer.

What is the difference between a hazard ratio and a relative risk?

A relative risk compares the proportion with the event by a fixed time. A hazard ratio compares event rates over the whole follow-up and uses the timing of events and censored data. They are similar when events are rare, but not the same.

What does censored mean on a Kaplan-Meier curve?

A censored participant stopped being followed without having the event, for example at the data cut-off or after withdrawal. They count as at risk until that time and are shown as a tick mark on the curve.

Is a log-rank test the same as a hazard ratio?

No. The log-rank test gives a p-value for whether two survival curves differ. The hazard ratio, usually from a Cox model, estimates the size of the difference with a confidence interval.

What if the Kaplan-Meier curves cross?

Crossing curves suggest the proportional hazards assumption does not hold, so a single hazard ratio may be misleading. Analysts then report other measures, such as restricted mean survival time or event-free rates at landmark times, as pre-specified in the SAP.

How is median survival read from the curve?

Draw a horizontal line at 50% event-free and read the time where the curve first reaches or drops below it. If the curve never reaches 50%, the median is "not reached".

Get your time-to-event data right from day one

Free sandbox with every feature: randomization, event forms, edit checks and audit trail. No credit card, no time limit.

Try Capture free