Hamilton's Rule Calculator

Calculate kin selection benefit-cost ratio and predict altruistic behavior evolution.

Sibling: 0.5, Parent-offspring: 0.5, Cousin: 0.125
Please check your inputs and try again.

Inclusive Fitness

Hamilton's rule states that an altruistic act spreads when rB > C — when the benefit to the recipient, weighted by relatedness, exceeds the cost to the actor. Genes can propagate by helping copies of themselves in other bodies.

Relationshipr
Identical twin1.0
Parent–offspring, full sibling0.5
Haplodiploid full sisters0.75
Half sibling, grandchild, nephew0.25
First cousin0.125

Haldane's remark captures the arithmetic: he would lay down his life for two brothers or eight cousins. At r = 0.5, two siblings carry one sibling's worth of shared genes; at r = 0.125, eight cousins do.

Haplodiploidy and Eusociality

In Hymenoptera, males are haploid so all their sperm is identical. Full sisters therefore share all paternal genes and half their maternal genes, giving r = 0.75 — higher than to their own offspring at 0.5.

A worker bee propagates her genes more effectively by raising sisters than by reproducing herself, which is the classic explanation for eusociality in bees, wasps and ants.

The hypothesis is now contested. Termites are eusocial but diploid; naked mole rats likewise. And multiple mating by queens lowers average sisterly relatedness below 0.75. Ecological factors — defensible nests, high dispersal cost — are increasingly emphasised alongside relatedness.

Where the Rule Applies and Where It Does Not

MechanismBasis
Kin selectionShared genes — rB > C
Reciprocal altruismExpected return; needs repeated interaction
Group selectionContested; effects usually weaker than individual selection
ManipulationBenefit to the manipulator, not the actor

Not all cooperation is kin selection. Reciprocal altruism explains help between unrelated individuals when interactions repeat and defectors can be recognised. Distinguishing them requires knowing both relatedness and whether interactions are repeated — observing cooperation alone does not identify its cause.

Note also that r is a measure of relatedness above the population baseline. In a highly inbred population, everyone is related, and it is the excess relatedness that drives the calculation.

Worked Examples

Example 1: Worker bee helps queen: r=0.75 (haplodiploid), B=4, C=1
rB=0.75×4=3 > C=1
Result: Altruism strongly favored
Explains eusociality in Hymenoptera
Example 2: Human helping cousin: r=0.125, B=4, C=1
rB=0.125×4=0.5 < C=1
Result: Not favored by kin selection alone
Need reciprocity or group selection to explain
Example 3: Why worker bees forgo reproduction
r = 0.75 to sisters versus 0.5 to offspring
Result: Raising sisters propagates more genes
Haploid fathers give all sisters identical paternal genes. This asymmetry is the classic haplodiploidy argument, though it is now contested.
Example 4: Cooperation without relatedness
Unrelated individuals, repeated interaction
Result: Reciprocal altruism, not kin selection
Hamilton's rule does not apply when r is near zero. Expected return and the ability to detect defectors drive cooperation instead.

Common Mistakes

⚠️
Using r as absolute genetic similarity

It measures relatedness above the population baseline. In inbred populations everyone shares most genes, and only the excess matters.

⚠️
Assuming all cooperation is kin selection

Reciprocal altruism explains help between unrelated individuals when interactions repeat. Relatedness and repetition must both be assessed.

⚠️
Treating haplodiploidy as a complete explanation for eusociality

Termites and naked mole rats are eusocial and diploid, and multiple mating lowers sisterly relatedness. Ecological factors matter alongside.

⚠️
Forgetting that B and C are fitness units

They are measured in offspring equivalents, not effort or resources. A costly act with little fitness consequence has a low C.

Frequently Asked Questions

Haldane's quip?
'I would lay down my life for two brothers or eight cousins' — mathematically correct if each has the same B/C ratio (rB≈1 for r=0.5×2 or r=0.125×8). Hamilton formalized this intuition.
r values for different relationships?
r=1.0: identical twins, clones. r=0.5: parents, siblings, offspring. r=0.25: grandparent, half-sibling, aunt/uncle, niece/nephew. r=0.125: first cousins. r=0.0625: second cousins. r=0: unrelated individuals.
What is Hamilton's rule?
Altruism spreads when rB exceeds C — relatedness times benefit to the recipient exceeds cost to the actor. Genes propagate by helping copies in other bodies.
Why is r = 0.75 between hymenopteran sisters?
Males are haploid, so all sperm is genetically identical. Sisters share all paternal genes plus half their maternal genes.
Does haplodiploidy explain eusociality?
Partly, but it is contested. Termites and naked mole rats are diploid and eusocial, and multiple mating by queens lowers sisterly relatedness.
Is all cooperation explained by kin selection?
No. Reciprocal altruism accounts for cooperation between unrelated individuals when interactions repeat and defectors can be identified.