Per 1 person-time unit (Raw Rate)
Per 100 person-time units
Per 1,000 person-time units
Per 10,000 person-time units
Per 100,000 person-time units
Calculation Results
function calculateIDR() {
// Get input values
var cases = document.getElementById('newCases').value;
var time = document.getElementById('personTime').value;
var unit = document.getElementById('timeUnit').value;
var multi = document.getElementById('multiplier').value;
var resultBox = document.getElementById('resultOutput');
var valueBox = document.getElementById('rateValue');
var explainBox = document.getElementById('rateExplanation');
// Validation
if (cases === "" || time === "" || parseFloat(time) <= 0) {
alert("Please enter valid positive numbers for New Cases and Person-Time.");
return;
}
var casesNum = parseFloat(cases);
var timeNum = parseFloat(time);
var multiNum = parseInt(multi);
// Calculation Logic
// Formula: (New Cases / Total Person-Time) * Multiplier
var rawRate = casesNum / timeNum;
var finalRate = rawRate * multiNum;
// Formatting format to max 4 decimal places, removing trailing zeros
var formattedRate = parseFloat(finalRate.toFixed(4));
var formattedMulti = multiNum.toLocaleString();
// Show result
resultBox.style.display = "block";
// Construct the display string
valueBox.innerHTML = formattedRate + " cases";
// Detailed explanation string
var explanationHTML = "Result Interpretation:";
explanationHTML += "Based on " + casesNum + " new cases occurring over " + timeNum + " " + unit + ", the incidence density rate is " + formattedRate + " cases per " + formattedMulti + " " + unit + ".";
explanationHTML += "Raw Calculation:";
explanationHTML += "(" + casesNum + " ÷ " + timeNum + ") × " + formattedMulti + " = " + formattedRate;
explainBox.innerHTML = explanationHTML;
}
How to Calculate Incidence Density Rate
In epidemiology, measuring the frequency of disease occurrence with precision is vital for public health interventions and medical research. Unlike cumulative incidence, which assumes a static population, the Incidence Density Rate (also known as Incidence Rate) accounts for varying periods of time that individuals are at risk of developing a disease.
This calculator helps researchers, students, and health professionals quickly determine the true rate of new cases relative to the actual time observed.
What is Incidence Density Rate?
Incidence Density Rate (IDR) is a measure of the frequency with which a disease or other incident occurs over a specified period of time. It is specifically designed to handle dynamic populations where people may enter or leave the study at different times, or be followed for different lengths of time.
The denominator in this calculation is Person-Time, rather than just the total number of people. This makes IDR a more accurate measure when the observation period is long or when there is significant turnover in the population.
Formula:
IDR = (Number of New Cases / Total Person-Time at Risk) × Multiplier
Understanding the Variables
1. Number of New Cases
This is the count of new events (e.g., disease diagnoses, injuries, recoveries) that occurred during the study period. It does not include pre-existing cases (prevalence).
2. Person-Time at Risk
This is the sum of the time periods that each individual in the study population was at risk for the event. For example, if you follow 10 people for 1 year, your denominator is 10 person-years. If you follow 1 person for 10 years, it is also 10 person-years.
Person-time stops accumulating for an individual when:
They develop the disease (the event occurs).
They die from another cause (competing risk).
They are lost to follow-up (move away, stop participating).
The study ends.
3. The Multiplier
Because the raw rate often results in a very small decimal (e.g., 0.00045), epidemiologists standardly multiply the result by a power of 10 (1,000, 10,000, or 100,000) to make the number more readable and comparable. A rate of 0.00045 becomes "45 cases per 100,000 person-years".
Example Calculation
Imagine a 5-year study on heart disease involving a dynamic cohort.
New Cases: During the study, 15 people are diagnosed with heart disease.
Person-Time: By summing the days every participant was observed before getting sick or the study ending, you calculate a total of 2,500 person-years.
Result: The incidence density rate is 6 cases per 1,000 person-years.
Incidence Density vs. Cumulative Incidence
While Cumulative Incidence calculates the risk (probability) of developing a disease over a period (New Cases / Total Population at Start), Incidence Density calculates the speed at which the disease is occurring (New Cases / Total Time Observed). Incidence Density is preferred in clinical trials and cohort studies with varying follow-up times.