Internal validity is the degree to which a study's design and analysis support a causal claim about the people, places, and conditions actually studied. External validity is the degree to which those findings hold for other people, settings, times, and measures. Researchers care about both because a study that is internally invalid cannot support any causal claim, and a study that is externally invalid cannot guide decisions beyond its own sample. The two trade off against each other, and most real designs buy one at the expense of the other.

The mechanism: confounding versus transportability

Internal validity fails when something other than the treatment changes the outcome. That something is a confounder: a variable that affects the outcome and is unevenly distributed between groups. Randomization protects against confounding because, on average, it balances both measured and unmeasured confounders across arms. With large enough groups, the balance is tight. With small groups, it is not, and imbalance can appear by chance.

Three other threats operate inside a study. Selection bias occurs when groups differ before treatment starts. Attrition bias occurs when people drop out differentially, so the groups compared at the end no longer resemble the groups randomized at the start. Detection bias occurs when outcome assessment differs between groups, especially when assessors know who received what.

External validity fails through a different route. A result estimated in one population must be "transported" to another, and transport fails when the effect modifiers differ. An effect modifier is a variable that changes the size of the treatment effect. If a drug works through a pathway that is more active in younger patients, a trial in older adults may not generalize. This is why generalizability is not a property of a study alone; it is a relationship between the study and a target population.

Plain language: internal validity asks whether the study got the right answer for its own participants; external validity asks whether that answer travels.

Quantified context: how large the threats can be

The magnitudes are not trivial. In a landmark analysis of randomized trials, John Ioannidis estimated that for small trials with fewer than 25 participants per arm, the majority of "significant" findings were later contradicted or shown to be inflated. The pattern is consistent: small samples produce unstable effect estimates that regress toward the null when replicated.

Attrition is a leading practical threat. A common rule of thumb treats differential attrition above roughly 5 percentage points between arms as a serious concern, and overall attrition above 20 percent as a major threat to validity in prevention trials. These are conventions, not laws, and they should be reconciled with the outcome's sensitivity: losing 15 percent of participants in a mortality trial is different from losing 15 percent in a trial of a subjective symptom score.

Detection bias has measurable effects. When outcome assessors are not blinded, effect sizes for subjective outcomes such as pain scores can be inflated substantially, sometimes by 30 percent or more in meta-epidemiological comparisons. For objective outcomes such as all-cause mortality, the inflation is much smaller. The contamination of a control group is another quantifiable threat: if 20 percent of controls receive the active treatment outside the protocol, the observed effect is diluted toward zero, potentially masking a real benefit.

Timeline: where threats enter a study

Stage Internal validity threat External validity threat
Question and target population Wrong comparison group chosen Population defined so narrowly it excludes decision-relevant patients
Randomization Allocation concealment fails; selection bias Volunteer bias: participants healthier than the target population
Intervention delivery Co-interventions differ between arms Protocol rigid; adherence in real practice differs
Follow-up Differential attrition; detection bias Short follow-up misses long-term effects
Analysis Confounder adjustment after the fact; multiple comparisons Subgroup effects presented as generalizable
Reporting Selective outcome reporting Findings framed as universal

The order matters. A flaw at randomization cannot be repaired at analysis. A flaw in the target population cannot be repaired by statistics. This is why design decisions dominate validity.

The trade-off: why you cannot maximize both at once

The classic formulation is that internal validity and external validity sit in tension. An efficacy trial maximizes internal validity by using a homogeneous sample, a strict protocol, and intensive monitoring. That same design reduces external validity because real patients are heterogeneous, less adherent, and managed with less supervision. An effectiveness trial flips the trade: it enrolls a broad population and allows usual care, gaining transportability but accepting more noise and more confounding.

A counterintuitive detail: a perfectly controlled trial can be less useful than a messier one. If a treatment only works under monitoring that does not exist in practice, the "clean" result misleads. Conversely, a highly generalizable observational study may be so confounded that its estimate is wrong everywhere. The right balance depends on the decision the study is meant to inform. Regulators typically want efficacy evidence first; payers and clinicians often want effectiveness evidence.

Misconceptions and red flags

Several beliefs are common and wrong. A statistically significant result is not automatically internally valid; significance says the estimate is unlikely under the null, not that confounding was controlled. A large sample does not fix bias; it only narrows the confidence interval around a biased estimate. Generalizability is not proven by a single study; it is an inference that must be tested.

Red flag: baseline table shows a large imbalance in a prognostic variable despite randomization, especially in a small trial. Red flag: attrition is differential between arms and the analysis excludes dropouts. Red flag: outcome assessors or participants are unblinded for a subjective outcome. Red flag: the paper claims broad generalizability from a single-site, single-population sample. Red flag: subgroup effects are presented as definitive without pre-specification. Red flag: the protocol or registered analysis plan differs from the published analysis without explanation.

One more caveat professionals apply: external validity is not a yes-or-no property. A finding can be valid for one target population and invalid for another. Statements like "this works in adults" hide the modifier that decides whether it works in your patient.

Practical actions: what to check and what to do

For readers appraising a study, work through a short sequence. First, identify the causal claim and the comparison. Second, check randomization and allocation concealment. Third, check attrition by arm. Fourth, check blinding for subjective outcomes. Fifth, ask whether the sample resembles the population you care about, including effect modifiers you can name.

Concrete thresholds help. Treat differential attrition above 5 percentage points as a warning. Treat overall attrition above 20 percent as a major concern unless the outcome is robust to missing data and a sensitivity analysis supports the result. Treat any unblinded subjective outcome as at least a moderate risk of bias. Treat a single-center study as requiring replication before you generalize.

For researchers designing a study, the steps are equally concrete. Pre-register the primary outcome and analysis plan. Conceal allocation using a central system. Blind outcome assessors where feasible. Pre-specify a primary estimand that states the population and the effect of interest. Report attrition by arm and conduct a sensitivity analysis for missing data. State explicitly which populations the result may not apply to, and name the effect modifiers you suspect. That last step is what separates a defensible paper from an overreaching one.

Comparison: design choices and their validity profiles

Design Internal validity External validity Typical use
Randomized controlled trial, strict protocol High Moderate to low Efficacy and regulatory decisions
Pragmatic randomized trial Moderate to high High Effectiveness in routine care
Prospective cohort with adjustment Moderate High Long-term or rare outcomes
Case-control study Low to moderate Moderate Rare diseases, exploratory
Cross-sectional survey Low Moderate Prevalence and associations only
Single-arm pre-post study Very low Low Early signal generation

The table is a heuristic, not a verdict. A well-conducted cohort can outperform a flawed trial. The design label matters less than the specific threats controlled.

Limitations of the framework

The internal/external distinction is a useful simplification, not a complete theory. It does not resolve questions about statistical conclusion validity (whether the analysis was appropriate) or construct validity (whether the measure captures the intended concept). It also does not tell you which population matters; that is a value judgment about the decision at hand. The magnitudes cited here are conventions and meta-epidemiological averages, not universal constants, and they vary by field. A reader should treat any single threshold as a prompt for judgment, not a pass-fail test. What the framework does deliver is discipline: it forces researchers to name the causal claim, the population, and the threats, and it forces readers to check those names before trusting a result.