Heritability Calculator
Calculate broad-sense and narrow-sense heritability from variance components.
Variance Components
Used for narrow-sense heritability
Selection Response
Heritability Estimates
Variance Breakdown
Realized Heritability
What Is Heritability?
Heritability is a population-level statistic that describes the proportion of phenotypic variation in a trait that can be attributed to genetic variation among individuals. It is one of the most important and most misunderstood concepts in quantitative genetics, animal and plant breeding, and behavioral science. This heritability calculator lets you estimate both broad-sense heritability (H²) and narrow-sense heritability (h²) directly from variance components, and it also derives realized heritability from a selection experiment.
The central idea is that any measurable trait — height, milk yield, seed weight, blood pressure, or grain protein content — varies across a population. That total variation, called the phenotypic variance (Vp), can be partitioned into a genetic portion and an environmental portion. Heritability simply asks: of all the differences we observe between individuals, what fraction is driven by their genes rather than their surroundings? A high value does not mean the trait is fixed at birth or unchangeable; it means that, in this particular population and environment, genetic differences explain most of the observed spread.
Because heritability is a ratio bounded between 0 and 1 (or 0% and 100%), it is always specific to a population and an environment. A heritability of 0.5 for plant height in one field tells you nothing definitive about height heritability in a different climate or genetic background. Researchers, breeders, and students use a heritability calculator to standardize these estimates so they can compare traits, design breeding programs, and predict how a population will respond to selection.
Broad-Sense vs Narrow-Sense Heritability
Two distinct heritability statistics answer different practical questions, and this calculator reports both. Broad-sense heritability (H²) measures the proportion of phenotypic variance explained by all genetic effects combined — additive, dominance, and epistatic. It tells you how much of the trait spread is genetic in the broadest sense. Narrow-sense heritability (h²) isolates only the additive genetic variance, the component that parents reliably transmit to offspring.
This distinction matters enormously. Additive effects are the predictable, "heritable in the everyday sense" effects that respond to selection and pass cleanly from generation to generation. Dominance and epistatic effects depend on specific gene combinations that are reshuffled during meiosis, so they do not transmit reliably. For this reason, breeders care far more about narrow-sense heritability: it is h², not H², that predicts the response to artificial or natural selection.
| Statistic | Variance Used | Best For |
|---|---|---|
| Broad-sense H² | Total genetic Vg / Vp | Overall genetic contribution |
| Narrow-sense h² | Additive Va / Vp | Predicting selection response |
Because additive variance is only part of the total genetic variance, narrow-sense heritability is always less than or equal to broad-sense heritability. The gap between them reflects the contribution of dominance variance (Vd) and epistasis. When H² greatly exceeds h², much of the genetic signal comes from non-additive interactions that selection cannot easily exploit.
Heritability Formulas
The calculator partitions phenotypic variance and computes each heritability ratio exactly as shown below. First it sums the genetic and environmental variance to obtain the total phenotypic variance, then it divides the relevant genetic component by that total.
Broad-sense heritability uses the full genetic variance, while narrow-sense heritability uses only the additive variance. The leftover dominance variance is recovered as the difference between total genetic variance and additive variance, which is why a credible additive estimate must never exceed the total genetic variance.
Heritability from Variance Components
Where:
- Vp= Total phenotypic variance (Vg + Ve)
- Vg= Total genetic variance
- Ve= Environmental variance
- Va= Additive genetic variance
- H²= Broad-sense heritability (Vg / Vp)
- h²= Narrow-sense heritability (Va / Vp)
- Vd= Dominance variance (Vg − Va)
Realized Heritability from Selection
The calculator also estimates realized heritability, an empirical value derived from an actual selection experiment rather than from a variance partition. This is the gold-standard validation of narrow-sense heritability because it is measured directly from how a population responds to selection over a generation.
Two quantities drive it. The selection differential (S) is how much the selected parents deviate from the original population mean — it captures the intensity of selection. The selection response (R) is how much the offspring mean shifts away from that same original population mean — it captures the actual genetic gain achieved. The calculator computes both from the population mean, parent mean, and offspring mean you enter.
Realized heritability is then the response per unit of selection differential, often written as the breeder's equation rearranged. If selecting heavier parents that average 10 units above the population yields offspring that average 5 units above the population, then half of the selection pressure was converted into permanent genetic gain, giving a realized heritability of 0.5. This single number summarizes how efficiently a trait responds to breeding.
Realized Heritability (Breeder's Equation)
Where:
- S= Selection differential (parent mean − population mean)
- R= Selection response (offspring mean − population mean)
- popMean= Original population mean
- parentMean= Mean of the selected parents
- offspringMean= Mean of the offspring generation
- realized h²= Response divided by selection differential (R / S)
How to Interpret Your Heritability Estimate
A heritability value is a proportion, so reading it correctly is as important as computing it. The calculator reports H² and h² both as decimals and as percentages, alongside a variance breakdown that shows the genetic and environmental contributions to the total phenotypic variance.
- 0.0 to 0.2 (low): Most variation is environmental; the trait responds slowly to selection. Examples include many fitness-related and survival traits.
- 0.2 to 0.5 (moderate): A meaningful genetic component exists; breeding and selection can produce steady, predictable progress.
- 0.5 to 1.0 (high): Genetic differences dominate the observed spread; selection is highly effective. Skeletal and morphological traits often fall here.
Three cautions keep interpretation honest. First, heritability is population-specific: changing the environment or the gene pool changes the estimate. Second, a high heritability does not mean a trait is unchangeable — nutrition or treatment can shift the whole population mean without altering the heritability ratio. Third, heritability describes variation between individuals, not the cause of any single individual's trait value. Used with these caveats, this heritability calculator is a powerful tool for plant breeders, animal scientists, geneticists, and students learning quantitative genetics.
Worked Examples
Broad-Sense and Narrow-Sense from Variance Components
Problem:
A plant population has genetic variance Vg = 40, environmental variance Ve = 60, and additive variance Va = 30. Find H², h², and the dominance variance.
Solution Steps:
- 1Total phenotypic variance: Vp = Vg + Ve = 40 + 60 = 100.
- 2Broad-sense heritability: H² = Vg / Vp = 40 / 100 = 0.40 (40%).
- 3Narrow-sense heritability: h² = Va / Vp = 30 / 100 = 0.30 (30%).
- 4Dominance variance: Vd = Vg − Va = 40 − 30 = 10.
Result:
H² = 0.40 (40%), h² = 0.30 (30%), with dominance variance Vd = 10. Genetic factors explain 40% of the total variation, of which additive effects account for 30 percentage points.
Realized Heritability from a Selection Experiment
Problem:
A breeder selects parents whose mean is 150 from a population with mean 140. The resulting offspring mean is 145. What is the realized heritability?
Solution Steps:
- 1Selection differential: S = parentMean − popMean = 150 − 140 = 10.
- 2Selection response: R = offspringMean − popMean = 145 − 140 = 5.
- 3Realized heritability: h² = R / S = 5 / 10 = 0.50 (50%).
Result:
Realized h² = 0.50 (50%). Half of the selection pressure applied to the parents was converted into permanent genetic gain in the offspring.
High-Heritability Morphological Trait
Problem:
For a skeletal trait, Vg = 80 and Ve = 20, with additive variance Va = 70. Calculate H², h², and the genetic versus environmental contributions.
Solution Steps:
- 1Total phenotypic variance: Vp = 80 + 20 = 100.
- 2Broad-sense heritability: H² = 80 / 100 = 0.80 (80%).
- 3Narrow-sense heritability: h² = 70 / 100 = 0.70 (70%).
- 4Contributions: genetic = (80 / 100) × 100 = 80%, environmental = (20 / 100) × 100 = 20%.
Result:
H² = 0.80 (80%) and h² = 0.70 (70%). Genetic differences drive 80% of the variation, so this trait responds strongly to selection.
Tips & Best Practices
- ✓Ensure additive variance (Va) never exceeds total genetic variance (Vg), or dominance variance will be negative and meaningless.
- ✓Report heritability alongside the population and environment it was measured in, since the value is not universal.
- ✓Use narrow-sense heritability (h²), not broad-sense, when predicting response to selection in a breeding program.
- ✓Cross-check variance-based estimates against realized heritability from an actual selection experiment whenever possible.
- ✓Remember that all variance components must share the same measurement units before you combine them.
- ✓Treat a single heritability estimate from a small sample with caution, as sampling error can be substantial.
- ✓Keep the selection differential and selection response in the same trait units so realized heritability is dimensionless.
Frequently Asked Questions
Sources & References
Last updated: 2026-06-05
Help us improve!
How would you rate the Heritability Calculator?
Editorial Note
MyCalcBuddy Editorial Team
This page is maintained as an educational calculator reference.
Formula Source: Standard Mathematical References
by Various