Person-years measure how much watching a study actually did. Each person adds the years they were followed while still at risk, and those years are summed across everyone.1Centers for Disease Control and Prevention (CDC). Principles of Epidemiology in Public Health Practice, Third Edition: Section 2: Morbidity Frequency Measures Real participants join late, leave early, move away or get sick before the study ends, so simply counting people hides how long each one was really observed.2Broadly Epi. Person-Years: Calculation and Incidence Rates The total becomes the bottom of a fraction that tells you how fast new cases appear, not just how many appeared. The hard part is deciding which stretches of time should count at all.
The Basic Calculation Step by Step
Each person’s contribution is their own observed time. One person followed for 5 years without developing the disease contributes 5 person-years.1Centers for Disease Control and Prevention (CDC). Principles of Epidemiology in Public Health Practice, Third Edition: Section 2: Morbidity Frequency Measures The same works in any unit: five people followed for 53, 70, 24, 70 and 19 days add up to 236 person-days.3ERIC Notebook Series. Calculating Person-Time Dividing 236 by 365 gives about 0.65 person-years.
For any dataset, the steps are:
- Step 1: Set a start date for each person, usually the day they enter the study.
- Step 2: Set an end date, the first of disease onset, death, dropping out, or study end.4Centers for Disease Control and Prevention. Lesson 3: Measures of Risk
- Step 3: Subtract start from end to get that person’s time, in one consistent unit.
- Step 4: Add every person’s time to get the total person-years.5IUSSP Population Panel. Rates
Try it with five people in a four-year study. Ana, Ben and Cruz are followed the whole time and contribute 4 years each. Dev falls ill early in year 2 and stops counting then, contributing 1.5. Elsa moves away after 3 years and contributes 3. Add the column: 4 + 4 + 4 + 1.5 + 3 = 16.5 person-years.
With a real dataset, use a spreadsheet. Put each person’s entry date and exit date in two columns, subtract them to get days, and divide by 365.25 to get years. Sum that column for the total. Negative or blank values signal date errors, so scan for them before you trust anything.
Pick one unit before you start, whether days, months or years, and convert everything into it. Mixing units is the easiest way to get a total that looks plausible but is wrong. If your data are in days and the question asks for a rate per year, do the adding in days and convert once at the end. Rounding each person’s time along the way can shift the total, so keep full precision until the final division.
When Each Person’s Time Starts and Stops
Each person is watched from a set starting time until disease onset, death, leaving the study, or the end of the study, whichever comes first.4Centers for Disease Control and Prevention. Lesson 3: Measures of Risk Someone who gets the disease stops adding time, because they are no longer at risk of becoming a new case. People who leave and can’t be traced are called lost to follow-up.
“Whichever comes first” means only one event ends a person’s time, even if several would eventually happen. Someone diagnosed in March who dies in June stops counting in March. For a rate of new disease, death from another cause still ends the time, because a person who has died can no longer become a new case.
People who join after the study starts get their own clock. Their time begins on their own entry date, which is why late joiners add fewer person-years. Never backdate entry to the study’s start.
When exact dates aren’t known, a half-year rule is common. If checkups are yearly, many researchers assume people who dropped out were disease-free for half of that year.1Centers for Disease Control and Prevention (CDC). Principles of Epidemiology in Public Health Practice, Third Edition: Section 2: Morbidity Frequency Measures Someone followed one year before being lost then contributes 1.5 person-years.1Centers for Disease Control and Prevention (CDC). Principles of Epidemiology in Public Health Practice, Third Edition: Section 2: Morbidity Frequency Measures People diagnosed at a yearly exam are assumed to have become ill halfway through that year.1Centers for Disease Control and Prevention (CDC). Principles of Epidemiology in Public Health Practice, Third Edition: Section 2: Morbidity Frequency Measures So someone lost in year 3 and someone diagnosed in year 3 each contribute 2.5 years.1Centers for Disease Control and Prevention (CDC). Principles of Epidemiology in Public Health Practice, Third Edition: Section 2: Morbidity Frequency Measures
The rule is a convention of convenience. When you only know an event happened between two visits, the midpoint is the best neutral guess. It works on average because some events happen early in the interval and some late, so errors tend to cancel across many people. With very few people, or when events cluster at a certain time, the midpoint can be a poor guess, so say that you used it.
Some studies set a fixed cutoff instead. One HIV-treatment study stopped each person’s time at death, last visit, or 12 months after starting treatment, whichever came first.6PubMed Central. Adjusting Mortality for Loss to Follow-Up: Analysis of Five ART Programmes in Sub-Saharan Africa It counted a patient as lost if their last visit was nine months or more before data closed with no death recorded.6PubMed Central. Adjusting Mortality for Loss to Follow-Up: Analysis of Five ART Programmes in Sub-Saharan Africa
For your own dropouts, using the last known visit as the end date is a common choice. The half-year rule fits only when contact happens at set intervals. Decide and write down your rule before counting, apply it to everyone the same way, and report it so readers can judge it.
Who Should Not Be Counted at All
Only people who can become new cases belong in the count. People who already have the disease, or can’t get it, are left out, and existing cases can’t be counted as new ones.7Canadian Nurse. Terminologie 101: incidence cumulative et taux d’incidence One dementia study removed people who already had dementia at the start of each calendar year from both the top and bottom of the rate.8PubMed Central. Dementia incidence trend over 1992-2014 in the Netherlands: Analysis of primary care data Examples of people who can’t be new cases include men in a study of cervical cancer, people who have had the organ removed, and, depending on the disease, people who are already immune.
Whoever you exclude comes out of both the case count and the person-years. Leaving someone in one but not the other makes the rate wrong. Do this step before any calculation so the numbers you divide come from the same group.
Records that start mid-history can hide old cases. Health-record studies can count people diagnosed before records began as still at risk.9PubMed Central. Impact of Washout Duration to Account for Left Truncation in Register-based Epidemiologic Studies: Estimating the Risk of Mental Disorders Rates for some mental disorders came out up to 60% higher without first screening out old cases.9PubMed Central. Impact of Washout Duration to Account for Left Truncation in Register-based Epidemiologic Studies: Estimating the Risk of Mental Disorders
In practice, you look back over a stretch of record history before each person’s start, and anyone with an earlier diagnosis is excluded. A longer window catches more old cases but drops more people. State the window length you used.
Time when people weren’t truly at risk also shrinks the real total. In a pregnancy study, counting months when couples weren’t trying gave 62% pregnant by the second cycle, versus 70% when those months were removed.10PubMed Central. Time at Risk and Intention-to-treat Analyses
Turning Person-Years Into a Rate
The incidence rate is the number of new cases divided by the total person-years at risk.4Centers for Disease Control and Prevention. Lesson 3: Measures of Risk Ten new cases over 4,000 person-years is 2.5 per 1,000 person-years. It shows the speed at which new cases appear in the group.4Centers for Disease Control and Prevention. Lesson 3: Measures of Risk
Dividing 10 by 4,000 gives 0.0025 cases per person-year; multiply by 1,000 to put it in readable form. The answer should be a count of cases per unit of time, not a plain proportion.
That differs from simply counting people. A simple risk divides new cases by people at the start and assumes everyone was watched the same length of time.7Canadian Nurse. Terminologie 101: incidence cumulative et taux d’incidence In one example, 16 cases among 2,100 people gave 7.6 per 1,000 over four years, about 1.9 per year.11archive.cdc.gov. Lesson 3: Measures of Risk That simple figure treats dropouts as disease-free for all four years, so it understates the true rate.11archive.cdc.gov. Lesson 3: Measures of Risk
A rate has time built into the denominator, while a risk is the proportion of people who got the disease over a stated period. You can convert between them only if the rate is roughly steady; for rare diseases over short spans, risk is close to rate multiplied by time.
Report the result in plain language. Write 2.5 per 1,000 person-years as 2.5 new cases per 1,000 people per year so non-specialists follow it.4Centers for Disease Control and Prevention. Lesson 3: Measures of Risk Researchers usually add a range showing uncertainty, worked out from the case count.12StatsDirect. Poisson Rate Confidence Interval When comparing groups while accounting for age or other factors, the usual method is Poisson regression using the person-years total.13MetricGate. Person-Time and Poisson Rate Modeling Explained
Per 1,000 suits common diseases and per 100,000 suits rare ones. Pick the one that gives a number between about 1 and 100, and keep it the same across groups you compare.
One person followed for 10 years is not the same as ten people followed for 1 year, even though both give 10 person-years. Risk can change with age and time, so the total hides who contributed it. Report how long people were typically followed.
The Most Common Mistake With Treatment Groups
If people who start a drug later are counted as treated from the day they enter, the time before they started is credited to the drug.14Red Door Analytics. Immortal time bias: definition, examples and how to avoid it They had to survive that time to start the drug at all, which is why researchers call it immortal time bias, a term you may see in study critiques.14Red Door Analytics. Immortal time bias: definition, examples and how to avoid it In a worked example, a drug with no effect seemed to cut deaths by 44% when that time was misplaced.14Red Door Analytics. Immortal time bias: definition, examples and how to avoid it
In a dataset, treated patients are often defined as anyone who ever received the drug during follow-up, with their time counted from entry. The early months are guaranteed to be event-free, so treated patients look healthier than they really are.
Real studies have flipped because of it. One study suggested statins lowered the risk of diabetes getting worse, but correct time counting showed nearly double the risk instead.15Catalogue of Bias. Immortal time bias In another drug study, an apparent drop in deaths vanished once time was counted correctly.16PubMed. Immortal time bias in observational studies of drug effects The longer the waiting time, the bigger the distortion.15Catalogue of Bias. Immortal time bias
The fix is to split each person’s time: count them as unexposed from entry until treatment starts, and exposed after that.17PubMed Central. Cancer risk in 680 000 people exposed to computed tomography scans in childhood or adolescence: data linkage study of 11 million Australians One person can therefore add years to both groups. In practice, make two rows for someone who starts treatment mid-study. The first runs from entry to the start date, untreated. The second runs from the start date to exit, treated. Any event goes in the row where it happened.
Simply deleting the waiting time isn’t a full fix. In the worked example it still left a 25% false benefit. Moving it to the untreated group is the correct choice.
To spot the trap in a study you read or design, ask whether exposure is defined by something that happens after entry, such as “ever used” or “started within a year.” Then ask whether the time before that moment was counted as exposed. If it was, the trap is probably present.
When a Person-Years Rate Can Mislead
A person-years rate works best when the chance of the event stays about the same over time.18PubMed. Events per person-time (incidence rate): a misleading statistic? That steady pattern seldom holds in medical research.18PubMed. Events per person-time (incidence rate): a misleading statistic? Comparing two groups’ rates can also mislead when one group was followed much less long on average than the other.19PubMed Central. Limitations of the incidence density ratio as approximation of the hazard ratio Dividing cases by total time treats a person-year in the first month the same as one in the tenth year, so if events cluster early or late, the single rate describes none of those periods well.
After surgery, complications are often most likely in the first days or weeks, then fall as people recover. A single rate over a year blends that early burst with the quiet months afterward, hiding the part that matters most to patients. Cancer risk, by contrast, rises with age. To spot changing risk, split follow-up into periods and calculate a rate for each. If rates differ a lot, report them separately, such as one for the first month and one for the rest of the year.
To check follow-up balance, compute the average follow-up per person in each group and compare those before comparing rates. Large gaps call for a statistician or survival methods.
Tools That Do the Counting for You
R’s pyears function totals person-years by subgroup and can count events in each.20R Documentation. pyears Stata has a stsplit command for splitting time, while SAS users rely on add-on macros such as LEXIS.21Biostatistics III: Survival analysis for epidemiologists. Computing notes for SAS users Published SAS programs also exist to calculate exact person-years.22PubMed. Generating person-years and calculating SMR using SAS: a simple program for exact calculations
Small homework datasets are fine in a spreadsheet. Switch when you split by age band or calendar year, because one person becomes many rows and doing that by hand invites mistakes. Software applies the same split rules to everyone, and it totals person-years and events by subgroup in one step, which is tedious in a spreadsheet.
Before trusting totals for the whole dataset, pick two or three people and work out their person-years by hand using dates. Compare these with the software’s output for the same people. A mismatch usually reveals a date format or entry error.

