Search

Search papers and lessons

Hazard Ratio

Level 3 · 10 min read

The hazard ratio divides one group's instantaneous event rate by another's, so 0.5 means half the rate at every moment, which is not the same as half the risk.

On this page

  • Colour = topic mix
  • Probability
  • Discrete math
  • Calculus
  • Epidemiology
  • ReadReady to readNot yet

TL;DR

The hazard ratio compares how fast two groups are having an event at the same moment. It is the hazard in one group divided by the hazard in the other, so a value of 0.5 means that group's instantaneous rate is half the other's at every time. It is a ratio of rates, not of probabilities, and that is the source of most mistakes about it. Under the proportional hazards assumption it is one number for the whole follow-up, which is why trials report it.

Builds on: Hazard Function · Leads to: Cox Proportional Hazards Model, Kaplan–Meier Estimator

This is an educational explanation, not medical advice. The clinical examples show how the statistics works. They say nothing about any treatment or about any individual patient.

Where it's used

Clinical trials that follow people until an event. A trial of a new drug may follow patients until death, relapse or hospital admission. Because patients join at different times and some leave before the event, their times are censored, and the trial reports a hazard ratio from a Cox model, with a confidence interval. A reader sees "HR 0.75 (95% CI 0.60 to 0.94)" and learns the treated group's event rate was lower at each moment, with the interval telling how precisely.

Vaccine efficacy. Vaccine trial reports often convert the hazard ratio into an efficacy figure, using efficacy = 1 − HR. An efficacy of 90% corresponds to a hazard ratio of 0.10. The conversion is a convention for reporting, and it is only as meaningful as the proportional hazards assumption behind it.

Reliability and engineering. A manufacturer compares two designs of a pump by how fast each fails once it is running. The hazard ratio says whether one design fails faster at every age, which can matter more than the total number of failures when the pumps run for different lengths of time.

How it works

Take one tiny instance: two groups, each with a steady rate of events per year. The treated group has a hazard of 0.1 per year and the control group 0.2 per year.

  1. Write each group's hazard. The hazard is the event rate among those still event-free at a given time. Here the rate is constant: h1=0.1h_1 = 0.1 per year for treated and h0=0.2h_0 = 0.2 per year for control. Check: each has units of events per year, so it is not a probability and need not be below 1.
  2. Divide them at the same time. At any time tt, the hazard ratio is HR=h1(t)/h0(t)HR = h_1(t) / h_0(t). Here it is 0.1/0.2=0.50.1 / 0.2 = 0.5 at year 1, year 5 and year 10 alike. Check: the number does not carry tt, so it is one value for the whole follow-up.
  3. Turn the rates into survival. The probability of still being event-free by time tt, the Survival Function, is S(t)=e−htS(t) = e^{-h t} when the hazard is constant (the Exponential Distribution case). At 6 years, S0=e−1.2≈0.30S_0 = e^{-1.2} \approx 0.30 and S1=e−0.6≈0.55S_1 = e^{-0.6} \approx 0.55. Check: the treated group has the higher survival, as its lower rate predicts.
  4. Compare the risks, and see the difference. Risk by year 6 is 1−S1 - S: about 0.70 in the control and 0.45 in the treated. Using the unrounded survivals, the risk ratio is (1−0.549)/(1−0.301)≈0.65(1 - 0.549) / (1 - 0.301) \approx 0.65, not 0.5. Check: the hazard ratio and the risk ratio are different numbers, even though the same data produced both.
  5. Read the plot. The figure below shows the two survival curves. The treated curve falls more slowly at every moment, but the gap in risk widens and narrows as time passes.
02468101200.20.40.60.81years since startevent-free probability
  • control, hazard 0.2 per year
  • treated, hazard 0.1 per year
The hazard ratio is 0.5 at every time, yet the event-free probabilities differ by a time-dependent amount. At 6 years the risk ratio is about 0.65.

The math

Definition

For two groups with hazard functions h1(t)h_1(t) and h0(t)h_0(t), the hazard ratio is

HR(t)=h1(t)h0(t).HR(t) = \frac{h_1(t)}{h_0(t)}.

When this ratio is the same at every tt, it is written HRHR with no tt. That constancy is the proportional hazards assumption.

Estimating the ratio: the Cox model

A covariate is a measured characteristic of each person, such as treatment or age. The Cox model writes the hazard for a covariate xx as

h(t∣x)=h0(t) eβx.h(t \mid x) = h_0(t)\, e^{\beta x}.

Here h0(t)h_0(t) is the baseline hazard, the hazard for a person with x=0x = 0. For a binary treatment flag xx (1 treated, 0 control), the ratio of hazards is eβe^{\beta} at every tt, because the baseline h0(t)h_0(t) cancels. So HR=eβHR = e^{\beta}. The model estimates β\beta without specifying h0(t)h_0(t); see Cox Proportional Hazards Model.

Step 3 in symbols: from hazard to survival

The cumulative hazard is H(t)=∫0th(u) duH(t) = \int_0^t h(u)\,du, and the survival function is the exponential of its negative

S(t)=e−H(t).S(t) = e^{-H(t)}.

Under proportional hazards, the cumulative hazards also have a constant ratio, H1(t)/H0(t)=HRH_1(t) / H_0(t) = HR. The survival curves do not have a constant ratio, which is why the risk ratio drifts with time.

Step 4 in symbols: risk and rate

The risk of the event by time tt is 1−S(t)1 - S(t), and the risk ratio is

RR(t)=1−S1(t)1−S0(t).RR(t) = \frac{1 - S_1(t)}{1 - S_0(t)}.

The two ratios agree only when events are rare and the time is short. In the walkthrough they differ: HR=0.5HR = 0.5, while RR(6)≈0.65RR(6) \approx 0.65.

Worked examples

Example
Example 1: a hazard ratio from event counts
  1. Treated group: 10 events in 500 person-years of follow-up. Rate =10/500=0.02= 10 / 500 = 0.02 per person-year.
  2. Control group: 20 events in 500 person-years. Rate =20/500=0.04= 20 / 500 = 0.04 per person-year.
  3. Divide: HR=0.02/0.04=0.5HR = 0.02 / 0.04 = 0.5.
  4. Interpretation: at any moment, a treated person is half as likely to have the event as a control person who is still event-free at that moment. This is an estimate from counts, not the full Cox fit.
Example
Example 2: the hazard ratio is not the risk ratio

Take a constant hazard of 0.2 per year in the control group and 0.1 per year in the treated group. The hazard ratio is 0.5.

  1. Over 5 years, S0=e−0.2×5=e−1≈0.368S_0 = e^{-0.2 \times 5} = e^{-1} \approx 0.368. Risk in control =1−0.368=0.632= 1 - 0.368 = 0.632.
  2. Over 5 years, S1=e−0.1×5=e−0.5≈0.607S_1 = e^{-0.1 \times 5} = e^{-0.5} \approx 0.607. Risk in treated =1−0.607=0.393= 1 - 0.607 = 0.393.
  3. Risk ratio =0.393/0.632≈0.62= 0.393 / 0.632 \approx 0.62.
  4. Interpretation: the rate is half, but over five years the risk is about 62% of the control risk, not 50%. As time grows, both risks approach 1, so the ratio of risks moves toward 1 and away from the hazard ratio.
Example
Example 3: a reported hazard ratio with a confidence interval

A trial reports HR=0.75HR = 0.75 with a 95% confidence interval from 0.60 to 0.94. These numbers are illustrative, not from a real trial.

  1. The point estimate, 0.75, says the treated rate is 25% lower than the control rate at each moment, under proportional hazards.
  2. The interval from 0.60 to 0.94 lies entirely below 1, so the data are not consistent with no difference in rates.
  3. The interval also says the true reduction could be anywhere from 6% to 40%, so the size of the effect is uncertain.
  4. Interpretation: the trial found a lower rate, and it does not tell you the absolute number of people spared without the baseline risk. That needs the survival curves.

Try it: the treated group's hazard is 0.15 per year and the control group's is 0.25 per year. What is the hazard ratio, and how much lower is the treated rate? Answer: 0.15/0.25=0.60.15 / 0.25 = 0.6, so the treated rate is 40% lower at each moment.

Common mistakes and tradeoffs

It is tempting to read a hazard ratio of 0.5 as "half the risk of the event." In fact it is half the rate at each moment among those still event-free, and the risk over a period depends on how long the period is and how many events have already happened, as Example 2 shows. Read a hazard ratio as a comparison of speeds, and use the survival curves for risks.

It is tempting to assume one hazard ratio fits the whole study. In fact it fits only when the curves are proportional. If two survival curves cross, the early and late hazards point in opposite directions, and a single number averages two effects that cancel. Check with a log-log plot or a formal test before reporting one number, as the Cox Proportional Hazards Model lesson describes.

It is tempting to treat the hazard ratio as an estimate of the effect for each person. In fact it compares the group rates among people still at risk, and those people are a selected set once some have had the event. Treat it as a population-level comparison of rates.

MeasureQuestion it answersUse whenWeakness
Hazard ratioHow much faster is the event in one group, moment to moment?Times to events, censored follow-up, proportional hazards plausibleHard to convert to absolute risk; misleads if curves cross
Risk ratioHow much more likely is the event by a fixed time?Fixed-period risk, simple designsDepends on the chosen time
Risk differenceHow many more events per 100 people?Absolute impact for decisionsNeeds the baseline risk
Restricted mean survival timeHow much event-free time is gained, up to a horizon?Curves that crossNeeds a chosen horizon

History

Life tables and failure-rate calculations go back centuries in actuarial and engineering work, where the hazard was a natural way to describe how quickly things wear out. The hazard ratio became the standard reporting number in medicine after Cox's regression model, published in 1972, let researchers estimate the ratio for several covariates at once without fixing the baseline hazard. Clinical trials then adopted it because a single interpretable number could be compared across studies. The idea caught on because it turned a survival-curve comparison into one figure with a confidence interval.

Recap

  • The hazard is the event rate among those still event-free at a moment; it is a rate, not a probability.
  • The hazard ratio divides two groups' hazards at the same time: 0.5 means half the rate at each moment.
  • Under proportional hazards the ratio is constant, and the Cox model estimates it as eβe^{\beta}.
  • Risk ratios over a period differ from the hazard ratio; read survival curves for absolute risk.
  • Check the proportional hazards assumption before reporting one hazard ratio.

Read next: Cox Proportional Hazards Model for how the ratio is estimated, Kaplan–Meier Estimator for the survival curves it is read against, and Relative Risk for the fixed-period comparison.

Check yourself

QuestionIn one sentence, what does a hazard ratio of 0.5 say, and what does it not say?Show answer
It says the event rate in one group is half the other group's rate at every moment, among those still event-free. It does not say the risk over a period is half, because risk accumulates and depends on the period.
QuestionA group's hazard is 0.4 per year and the comparison group's is 0.8 per year, both constant. What is the hazard ratio, and what is the survival probability by 2 years in the first group?Show answer
The hazard ratio is 0.4/0.8=0.50.4 / 0.8 = 0.5. The first group's survival by 2 years is e−0.4×2=e−0.8≈0.45e^{-0.4 \times 2} = e^{-0.8} \approx 0.45.
QuestionWhy can a single hazard ratio mislead when two survival curves cross?Show answer
The hazard ratio is constant only under proportional hazards. When the curves cross, one group's hazard is higher early and lower later, so one number averages effects that point in opposite directions, and it hides when each effect happens.
QuestionA paper reports a hazard ratio of 1.2 for an adverse event and says the risk of that event is '20% higher' on treatment. Is that a fair reading?Show answer
Only partly. A hazard ratio of 1.2 means the event rate is 20% higher at each moment, under proportional hazards. The risk over a fixed period is a different quantity, and its ratio depends on the baseline risk and the length of follow-up, so the absolute risks and the survival curves are needed before calling the risk 20% higher.

Sources