What Is a Case-Control Study?
A case-control study is an observational, retrospective epidemiological design that begins with the outcome and works backward to examine past exposures. Participants are selected based on whether or not they have the disease or condition of interest, rather than based on whether they were exposed to a risk factor.
Individuals With the Disease
- Confirmed diagnosis of the condition under study
- Incident cases (newly diagnosed) preferred over prevalent cases
- Selected from hospital records, disease registries, or referral centers
- Exposure history collected retrospectively (interviews, medical records)
Individuals Without the Disease
- Free of the disease at the time of selection
- Must come from the same source population that gave rise to the cases
- Matched to cases (on age, sex, etc.) or selected independently (unmatched)
- Same exposure history collection method as cases critical for validity
The fundamental measure of association in a case-control study is the odds ratio (OR) not relative risk. The OR approximates the relative risk when the outcome is rare in the population (prevalence < 10%), which holds for most diseases studied using case-control designs.
Case-control studies occupy a specific niche in the epidemiological hierarchy. They are particularly appropriate for:
- Rare diseases (cohort studies would require enormous populations to observe enough cases)
- Conditions with long latency periods (cancer, neurodegenerative disease)
- Preliminary risk factor identification before a more expensive cohort study is launched
- Post-outbreak investigations (food-borne illness, hospital outbreaks)
- Conditions where prospective follow-up is not ethically or logistically feasible
Why Sample Size Calculation Matters Before Data Collection
The sample size for your study must be determined before data collection begins. Calculating it retrospectively after results are known is a form of statistical manipulation that inflates or deflates the apparent power of the study and invalidates the reasoning behind the chosen sample.
There are four concrete consequences of inadequate sample size planning:
- Type II error (false negative): An underpowered study fails to detect a real association between exposure and disease. You conclude there is no relationship when in fact there is a potentially serious error in public health or clinical contexts.
- Inconclusive results: A non-significant result from an underpowered study cannot be interpreted as evidence of no effect. It simply means the study lacked the statistical resolution to detect whatever effect exists.
- Wasted resources: All the time, money, and effort invested in data collection, patient recruitment, and laboratory analysis produces an unreportable result.
- Ethical failure: Exposing patients to research procedures without reasonable prospect of a meaningful result is not ethically justifiable. Institutional review boards increasingly require formal sample size justification as a condition of ethical approval.
The Four Key Parameters for Case-Control Sample Size
Before applying any formula, you must define four parameters. Each represents a deliberate research decision grounded in prior literature, clinical judgment, or convention.
1. Confidence Level (+/-) Type I Error Rate
The significance level +/- defines the probability you are willing to accept of rejecting the null hypothesis when it is actually true a false positive. By convention in medical research, +/- = 0.05 is the universal standard, corresponding to a 95% confidence interval and a critical Z-value of 1.96 for a two-sided test. Some regulatory or safety studies use +/- = 0.01 (Z = 2.576), which requires a larger sample to compensate for the more stringent threshold.
2. Statistical Power (1 2) Type II Error Rate
Power is the probability of detecting a real effect if one truly exists, set conventionally at 80% (2 = 0.20) for most medical research. A power of 80% means your study has a 20% chance of producing a false negative of missing a real association. Higher power (90%, 95%) is preferred for high-stakes research but requires larger samples.
3. Exposure Prevalence Among Controls (p)
The proportion of people in the control group who have been exposed to the risk factor of interest. This must come from population data, published literature, or prior pilot studies it represents background exposure in the disease-free population. This is the parameter researchers most frequently misestimate, and errors here have a large impact on the final sample size.
4. Expected Odds Ratio (OR)
The anticipated strength of association between the exposure and the disease. This should come from prior case-control studies, cohort studies, systematic reviews, or meta-analyses on the same or similar exposure-outcome relationship. The OR is the most powerful driver of sample size: increasing the expected OR from 1.5 to 3.0 can reduce the required sample by 80%.
| Parameter | Common Value | Z Critical Value | Effect on n |
|---|---|---|---|
| +/- = 0.05, two-sided | Most common | Z+/-/2 = 1.96 | Baseline |
| +/- = 0.01, two-sided | High rigor studies | Z+/-/2 = 2.576 | Larger n |
| Power = 80% (2 = 0.20) | Most common | Z2 = 0.842 | Baseline |
| Power = 90% (2 = 0.10) | Preferred | Z2 = 1.282 | ~30% larger n |
| Power = 95% (2 = 0.05) | High-stakes | Z2 = 1.645 | ~60% larger n |
The Kelsey Formula for Case-Control Sample Size
For unmatched (or individually unmatched) case-control studies, the most widely referenced sample size formula is the Kelsey formula (Kelsey, Whittemore, Evans & Thompson, 1996), used in EpiInfo, OpenEpi, and most biostatistics texts:
(p p)2
The Control-to-Case Ratio (r) and Sample Efficiency
When recruiting cases is difficult (rare disease, specialized registry), increasing the number of controls per case can compensate for insufficient cases. The marginal gain in power from adding more controls diminishes rapidly beyond a 1:4 ratio. Common choices in medical research:
- r = 1 (1:1 ratio): Equal cases and controls. Most statistically efficient per total participant. Standard default.
- r = 2 (1:2 ratio): Two controls per case. Increases power ~19% compared to 1:1 for the same number of cases. Use when cases are scarce.
- r = 3 (1:3 ratio): Three controls per case. ~24% more efficient than 1:1. Practical upper bound for most studies.
- r = 4 (1:4 ratio): Maximum commonly recommended. Beyond this ratio, additional controls add negligible power at substantial cost.
Step-by-Step Worked Calculation: Smoking and COPD
The following worked example demonstrates a complete sample size calculation for an unmatched case-control study investigating smoking as a risk factor for COPD in a tertiary care respiratory clinic. You can verify this calculation using the StatClinic Sample Size Calculator (select the OR/RR option).
Recommended recruitment target: 95 cases + 95 controls = 190 total (including 15% buffer for exclusions and non-response)
How the Expected Odds Ratio Drives Sample Size
The expected OR is the single most consequential parameter in your calculation. Even small changes in the anticipated OR produce dramatic changes in the required sample size. The following table shows required case numbers for varying ORs, holding all other parameters constant (p = 0.25, +/- = 0.05, power = 80%, r = 1):
| Expected OR | p (cases) | Cases Required | Controls Required | Total N |
|---|---|---|---|---|
| 1.3 | 0.302 | 786 | 786 | 1,572 |
| 1.5 | 0.333 | 310 | 310 | 620 |
| 2.0 | 0.400 | 95 | 95 | 190 |
| 2.5 | 0.455 | 51 | 51 | 102 |
| 3.0 | 0.500 | 32 | 32 | 64 |
| 4.0 | 0.571 | 18 | 18 | 36 |
| 5.0 | 0.625 | 12 | 12 | 24 |
This table illustrates a critical point: overestimating the expected OR leads to a dangerously underpowered study. A researcher who anticipates OR = 3.0 but the true OR is 1.5 will recruit 32 cases when 310 are needed and will produce a non-significant result with 90% probability, regardless of whether the exposure truly is a risk factor.
Examples from Epidemiology Research
Context: A nephrology researcher at a tertiary hospital designs a case-control study to quantify the association between Type 2 diabetes and early-stage CKD (eGFR 3059 mL/min/1.73 m2). Cases are incident CKD patients from the nephrology outpatient clinic; controls are age- and sex-matched patients from general internal medicine without kidney disease.
Parameters (from regional epidemiology literature): Diabetes prevalence in the general adult population = 12.5% (p = 0.125). Prior studies suggest OR 2.8. +/- = 0.05, power = 80%, r = 2 (two controls per case, as CKD cases are limited).
Derived p: (2.8 - 0.125) / (1 0.125 + 2.8 - 0.125) = 0.35 / (0.875 + 0.35) = 0.35 / 1.225 = 0.286
Context: A gynecology oncology department investigates the association between high-risk HPV (types 16/18) and cervical cancer (squamous cell carcinoma) in a population with limited prior vaccination. Cases are confirmed incident cervical cancer patients; hospital-based controls are women attending the same hospital for non-gynecological complaints.
Parameters: HPV prevalence among control women = 18% (p = 0.18, from prior cervical screening data). Published case-control studies in similar populations report OR 4.06.0; the researcher conservatively uses OR = 4.0. +/- = 0.05, power = 90%, r = 1.
Derived p: (4.0 - 0.18) / (1 0.18 + 4.0 - 0.18) = 0.72 / (0.82 + 0.72) = 0.72 / 1.54 = 0.468
Context: An infectious disease researcher designs a hospital-based case-control study investigating whether fluoroquinolone exposure (5 days in the preceding 3 months) is associated with C. difficile infection (CDI). Cases are confirmed CDI patients identified from the microbiology lab. Controls are hospitalized patients without CDI from the same wards during the same time period.
Parameters: Fluoroquinolone use among hospitalized non-CDI controls 22% (p = 0.22, from hospital antibiotic stewardship records). Prior studies: OR 3.2. +/- = 0.05, power = 80%, r = 2.
Derived p: (3.2 - 0.22) / (1 0.22 + 3.2 - 0.22) = 0.704 / (0.78 + 0.704) = 0.704 / 1.484 = 0.474
Matched vs Unmatched Case-Control Studies: Different Formulas
The Kelsey formula applies to unmatched (or frequency-matched) case-control studies. When individual matching is used each case is paired with one or more specific controls matched on age, sex, or other confounders a different formula is required.
For a 1:1 individually matched case-control study, the McNemar-based formula is appropriate:
Understanding Confidence Intervals in Case-Control Sample Size
The confidence level in the sample size formula (typically 95%, corresponding to +/- = 0.05) determines the width of the confidence interval around the estimated odds ratio in your final results. A 95% CI means that if the study were repeated 100 times under identical conditions, 95 of the resulting intervals would contain the true population OR.
Wider confidence intervals (from small samples) include more plausible values for the OR and therefore provide less precise estimates of the true association. A study reporting OR = 2.4, 95% CI [0.87.3] is virtually uninterpretable in clinical terms the true OR could be anywhere from a weak protective to a strong harmful association. Adequate sample size narrows the CI to a range that permits confident clinical interpretation, such as OR = 2.4, 95% CI [1.44.1].
Common Mistakes During Sample Size Estimation for Case-Control Studies
Mistake 1: Overestimating the Expected Odds Ratio
The most damaging error. Researchers routinely select the highest OR they can find in the literature or the OR from the single most optimistic study to justify a smaller, more feasible sample. A study powered for OR = 3.0 when the true OR is 1.8 will return a non-significant result with approximately 75% probability. This is called "winner's curse" bias, and it is rampant in medical thesis sample size sections.
Mistake 2: Using the Wrong Formula for Matched Designs
Many researchers apply the Kelsey (unmatched) formula to an individually matched study design or use the McNemar formula for an unmatched study. Beyond the formula mismatch, they then analyze matched data using ordinary logistic regression instead of conditional logistic regression, which produces biased odds ratios and incorrect p-values. The design, sample size formula, and analysis method must all be internally consistent.
Mistake 3: Ignoring Non-Response and Exclusions
The calculated sample size is the minimum needed for adequate power it assumes complete data from every participant. In reality, some recruited participants will decline consent, fail eligibility screening, have missing data, or withdraw. Failing to add a buffer for expected attrition means the actual analyzable sample falls below the required number.
Mistake 4: Using Exposure Prevalence from an Unrepresentative Population
The exposure prevalence among controls (p) must reflect the true background exposure in the source population from which your cases arise. Using a national smoking prevalence figure of 22% when your study population is a rural Egyptian governorate with 40% smoking prevalence among males can result in substantial underestimation of the required sample.
Mistake 5: Calculating Sample Size for the Primary Outcome Only
A case-control study often tests multiple exposure-outcome associations as secondary objectives. Each analysis has its own power requirement. A study adequately powered for the primary OR (2.5) may be severely underpowered for a secondary exposure with OR 1.5. Reporting non-significant secondary findings as meaningful "negative results" from an underpowered sub-analysis is a common and serious methodological error.
Mistake 6: Presenting the Sample Size Calculation Without a Literature Reference
Thesis committees and journal reviewers will ask where the OR, p, and other inputs came from. "Assumed" or "estimated" without citation is unacceptable. Every parameter in the sample size formula must be traceable to a published source or explicitly justified as a clinically meaningful threshold.
Frequently Asked Questions
Need Help With Your Sample Size Calculation?
StatClinic's AI Statistical Assistant helps you identify the right formula, input the correct parameters, and generate a sample size that will satisfy your thesis committee and ethics board in minutes, for free.
Try StatClinic AI Statistical Assistant