# Kin selection
## Microsim (three.js)
<div class="microsim-player">
<iframe src="https://wikitube-3d-microsims.netlify.app/Kin_selection.html" width="100%" height="620" frameborder="0" loading="lazy" sandbox="allow-scripts allow-same-origin"></iframe>
</div>
*A costly good deed can spread a gene — as long as it lands on kin. Sitting in the GENOMICS hub beside Reciprocal altruism and [[Evolutionarily_stable_strategy]], this microsim turns the shared ancestry and pedigree math of relatives into one cost–benefit inequality you can tune by hand.*
> Kin selection is evolution's answer to a puzzle: how can self-sacrificing, "altruistic" behaviour evolve if it lowers the helper's own survival or breeding? The answer is that helping close relatives passes on shared copies of the same genes, so a costly good deed can still spread through a population. W. D. Hamilton captured this in a single inequality — Hamilton's rule — that weighs the benefit to the recipient against the cost to the actor, discounted by how closely the two are related. In this microsim you set the cost *C* and the benefit *B*, trigger an altruistic act, and auto-play generations to watch whether the helpful gene wins or vanishes.
## About this microsim
The simulation exposes two sliders and three buttons — there is no free camera or hidden menu. The **Cost to actor, C** slider (0–10) sets the direct fitness the helper gives up, and the **Benefit to recipient, B** slider (0–10) sets the fitness gained by the individual being helped, both in units of offspring-equivalents. **Perform Altruistic Act** applies one round of helping at your chosen *C* and *B*; **Auto-Play Generations** repeats the act across successive generations so you can watch the altruistic gene's frequency climb or crash; **Reset** returns the population to its starting state. Relatedness *r* — the third variable in Hamilton's rule — is not adjustable in this build; with *r* held fixed, the sim isolates how cost and benefit alone push the altruistic gene toward fixation or loss.
## Related microsims
- Reciprocal altruism — cooperation between non-relatives, the other main route to altruism: help now, repaid later.
- [[Evolutionarily_stable_strategy]] — the game-theory test for whether a cooperative or selfish strategy resists invasion.
- Mendelian inheritance — where the coefficient of relatedness *r* actually comes from.
- Genetics — genes as the unit that selection ultimately counts.
- [[Quorum_sensing]] — cooperation and cheating among microbes, kin selection at the cellular scale.
## Links (Wikipedia order)
<!-- injected from _registry/childlinks/Kin_selection.json (2026-07-30T02:09:12Z) -->
`Abiogenesis` · `Abortion` · `Accident-proneness` · `Acquired_characteristic` · [[Adaptation]] · `Adaptationism` · `Adaptive_radiation` · `Adaptive_unconscious` · `Affect_(psychology)` · `Affect_display` · `Affectional_bond` · `Affective_neuroscience` · `Age_disparity_in_sexual_relationships` · `Aggression` · `Agriculture_in_ants` · `Alan_Grafen` · `Allele` · `Allopatric_speciation` · `Alternatives_to_Darwinian_evolution` · `Altruism` · `Altruism_(biology)` · `Anagenesis` · `Animal` · `Animal-made_art` · `Animal_Behaviour_(journal)` · `Animal_cognition` · `Animal_communication` · `Animal_consciousness` · `Animal_culture` · `Animal_language` · `Animal_navigation` · `Animal_training` · `Anisogamy` · `Anne_Campbell_(academic)` · `Ant` · `Antagonistic_pleiotropy_hypothesis` · `Aphididae` · `Apidae` · `Approximate_number_system` · `Arachnophobia` · `Astrobiology` · `Attachment_in_adults` · `Attachment_in_children` · `Attachment_theory` · `Austroplatypus_incompertus` · `Automatic_and_controlled_processes` · `Baldwin_effect` · `Bees_in_mythology` · `Beetle` · `Behavioral_Ecology_and_Sociobiology` · `Behavioral_contagion` · `Behavioral_economics` · `Behavioral_epigenetics` · `Behavioral_modernity` · `Behavioral_neuroscience` · `Behavioural_genetics` · `Bert_Hölldobler` · `Biocultural_anthropology` · `Biodiversity` · `Biogeography` · `Biolinguistics` · `Biological_anthropology` · `Biological_determinism` · `Biological_life_cycle` · `Biological_process` · `Biological_psychiatry` · `Biological_rules` · `Biology_and_sexual_orientation` · `Biology_of_human_bonding` · `Biology_of_romantic_love` · `Biosocial_criminology` · `Blending_inheritance` · `Blesmol` · `Canalisation_(genetics)` · `Canidae` · `Cat_gap` · `Catagenesis_(biology)` · `Catastrophism` · `Cell_nucleus` · `Challenge_hypothesis` · `Charles_Darwin` · `Charles_Duncan_Michener` · `Cheating_(biology)` · `Chromosome` · `Cinderella_effect` · `Cladistics` · `Cladogenesis` · `Coalescent` · `Coefficient_of_relationship` · `Coevolution` · `Cognitive_bias_in_animals` · `Cognitive_development` · `Cognitive_ergonomics` · `Cognitive_ethology` · `Cognitive_module` · `Cognitive_neuroscience` · `Cognitive_psychology` · [[Cognitive_science]] · `Cognitive_specialization` · `Cognitive_tradeoff_hypothesis` · `Cognitivism_(psychology)` · `Common_descent` · `Comparative_cognition` · `Comparative_psychology` · `Computational_theory_of_mind` · `Computer-mediated_communication` · `Concealed_ovulation` · `Connectionism` · `Convergent_evolution` · `Coolidge_effect` · `Cooperation_(evolution)` · `Corina_Tarnita` · `Cospeciation` · `Costly_signaling_theory_in_evolutionary_psychology` · `Countershading` · `Crabronidae` · `Criticism_of_evolutionary_psychology` · `Crop` · `Cross-cultural_psychology` · `Crustacean` · `Cultural_determinism` · `Cultural_evolution` · `Cultural_group_selection` · `Cultural_selection_theory` · `Cultural_universal` · `Current_Biology` · `Daniel_Dennett` · `Darwinian_anthropology` · `Darwinian_literary_studies` · `Darwinism` · `David_Hume` · `Death` · `Deep_time` · `Determinism` · `Dialogues_Concerning_Natural_Religion` · `Digital_media_use_and_mental_health` · `Dinosaur` · `Display_rules` · `Distracted_driving` · `Divergent_evolution` · `Dollo's_law_of_irreversibility` · `Domain-general_learning` · `Domain-specific_learning` · `Domain_specificity` · `Domestication_of_the_dog` · `Douglas_J._Futuyma` · `Dual_inheritance_theory` · `Dual_process_theory` · `Dunbar's_number` · `E._O._Wilson` · `Earliest_known_life_forms` · `Ecological_genetics` · `Ecological_speciation` · `Effects_of_hormones_on_sexual_motivation` · `Embryo` · `Emery's_rule` · `Emotion_in_animals` · `Emotional_contagion` · `Empathising–systemising_theory` · `Empathy` · `Endomembrane_system` · `Engineering_psychology` · `Environmental_determinism` · `Epidemiology_of_representations` · `Erasmus_Darwin` · `Ergonomics` · `Ethology` · `Eukaryote` · `Eusociality` · `Evidence_of_common_descent` · [[Evolution]] · `Evolution_of_Macropodidae` · `Evolution_of_ageing` · `Evolution_of_bacteria` · `Evolution_of_biological_complexity` · `Evolution_of_birds` · `Evolution_of_brachiopods` · `Evolution_of_butterflies` · `Evolution_of_cells` · `Evolution_of_cephalopods` · `Evolution_of_cetaceans` · `Evolution_of_cognition` · `Evolution_of_color_vision` · `Evolution_of_color_vision_in_primates` · `Evolution_of_emotion` · `Evolution_of_eusociality` · `Evolution_of_fish` · `Evolution_of_flagella` · `Evolution_of_fungi` · `Evolution_of_human_intelligence` · `Evolution_of_insects` · `Evolution_of_lemurs` · `Evolution_of_mammalian_auditory_ossicles` · `Evolution_of_mammals` · `Evolution_of_molluscs` · `Evolution_of_morality` · `Evolution_of_nervous_systems` · `Evolution_of_primates` · `Evolution_of_reptiles` · `Evolution_of_schizophrenia` · `Evolution_of_sexual_reproduction` · `Evolution_of_sirenians` · `Evolution_of_snake_venom` · `Evolution_of_spiders` · `Evolution_of_tetrapods` · `Evolution_of_the_brain` · `Evolution_of_the_eye` · `Evolution_of_the_horse` · `Evolution_of_the_wolf` · [[Evolutionarily_stable_strategy]] · `Evolutionary_aesthetics` · `Evolutionary_anthropology` · `Evolutionary_approaches_to_depression` · `Evolutionary_arms_race` · `Evolutionary_biology` · [[Evolutionary_developmental_biology]] · `Evolutionary_developmental_psychology` · `Evolutionary_economics` · `Evolutionary_educational_psychology` · `Evolutionary_epistemology` · `Evolutionary_ethics` · `Evolutionary_history_of_plants` · `Evolutionary_ideas_of_the_Scientific_Revolution_and_Enlightenment` · `Evolutionary_invasion_analysis` · `Evolutionary_linguistics` · `Evolutionary_medicine` · `Evolutionary_mismatch` · `Evolutionary_models_of_food_sharing` · `Evolutionary_musicology` · `Evolutionary_neuroscience` · `Evolutionary_pressure` · `Evolutionary_psychiatry` · `Evolutionary_psychology` · `Evolutionary_psychology_and_culture` · `Evolutionary_psychology_of_language` · `Evolutionary_psychology_of_religion` · `Evolutionary_taxonomy` · `Evolutionary_tradeoff` · `Exaptation` · `Extended_evolutionary_synthesis` · `Extinction` · `Extinction_event` · `Facial_expression` · `Family` · `Fear_of_falling` · `Fecundity` · `Female_intrasexual_competition` · `Fight-or-flight_response` · `Fisher's_principle` · `Fitness_(biology)` · `Flynn_effect` · `Folk_biology` · `Folk_psychology` · `Folk_taxonomy` · `Foster's_rule` · `Frans_de_Waal` · `Freda_Friedman_Salzman` · `Functional_psychology` · `Functionalism_(philosophy_of_mind)` · `G_factor_in_non-humans` · `Gamergate_(ant)` · `Gender_differences_in_suicide` · `Gender_role` · `Gene` · `Gene-centered_view_of_evolution` · `Gene_flow` · `Genetic_assimilation` · `Genetic_drift` · `Genetic_variation` · `Genetics` · `Genomic_imprinting` · `George_R._Price` · `Germination` · `Great_ape_language` · `Green-beard_effect` · `Group_selection` · `Hair` · `Haldane's_rule` · `Halictidae` · `Hamilton's_principle` · `Hamiltonian_spite` · `Handicap_principle` · `Haplodiploidy` · `Hemiptera` · `Herbivore` · `History_of_evolutionary_psychology` · `History_of_evolutionary_thought` · `History_of_life` · `History_of_molecular_evolution` · `History_of_paleontology` · `Hologenome_theory_of_evolution` · `Homology_(biology)` · `Honey_bee` · `Human_bonding` · `Human_evolution` · `Human_female_sexuality` · `Human_male_sexuality` · `Human_multitasking` · `Human_sexual_activity` · `Human_sexuality` · `Human–animal_communication` · `Human–computer_interaction` · `Hybrid_(biology)` · `Hybrid_speciation` · `Hyena` · `Hymenoptera` · `Identity_in_social_insects` · `Immune_system` · `Imprinted_brain_hypothesis` · `Inbreeding_avoidance` · `Incest_taboo` · `Inclusive_fitness` · `Inclusive_fitness_in_humans` · `Indeterminism` · `Index_of_evolutionary_biology_articles` · `Introduction_to_evolution` · `Inversion_(evolutionary_biology)` · `J._B._S._Haldane` · `John_Maynard_Smith` · `Journal_of_Evolutionary_Biology` · `Journey_to_the_Ants` · `Karl_von_Frisch` · `Kin_recognition` · `Kinship` · `Kladothrips` · `Kleiber's_law` · `Lamarckism` · `Language_acquisition` · `Last_universal_common_ancestor` · `Lead–crime_hypothesis` · `Leigh_Van_Valen` · `Leon_Kamin` · `List_of_evolutionary_psychologists` · `Locus_(genetics)` · `Macroevolution` · `Male_intrasexual_competition` · `Male_warrior_hypothesis` · `Mammal` · `Mandible_(insect_mouthpart)` · `Martin_Nowak` · `Marvin_Harris` · `Mate_choice` · `Mate_guarding_in_humans` · `Maternal_bond` · `Maternal_deprivation` · `Mating_type` · `Media_naturalness_theory` · `Meerkat` · `Memetics` · `Mendelian_inheritance` · `Mental_disorders_and_gender` · `Metabolism` · `Microevolution` · `Mind-blindness` · `Missing_heritability_problem` · `Mobile_phones_and_driving_safety` · `Models_of_DNA_evolution` · `Modern_synthesis_(20th_century)` · `Modularity_(biology)` · `Modularity_of_mind` · `Molecular_evolution` · `Monogamy_in_animals` · `Moral_foundations_theory` · `Mosaic_evolution` · `Motor_control` · `Motor_skill` · `Multicellular_organism` · `Multilineal_evolution` · `Mutation` · `Mutationism` · `Mutualism_(biology)` · `Mycorrhiza` · `Natural_selection` · `Nature_(journal)` · `Nature_versus_nurture` · `Naïve_physics` · `Neo-Darwinism` · `Neuroergonomics` · `Neuronal_recycling_hypothesis` · `Neuropsychology` · `Neuroscience_of_sex_differences` · `Neuroscience_of_sleep` · `Neutral_theory_of_molecular_evolution` · `Noam_Chomsky` · `Nonadaptive_radiation` · `Nonecological_speciation` · `Not_in_Our_Genes` · `Number_sense` · `Number_sense_in_animals` · `Numerical_cognition` · `Nurture_kinship` · `On_the_Origin_of_Species` · `Ophidiophobia` · `Organ_(biology)` · `Origin_and_function_of_meiosis` · `Origin_of_avian_flight` · `Origin_of_birds` · `Origin_of_language` · `Origin_of_speech` · `Orthogenesis` · `Oryza_sativa` · `Outline_of_evolution` · `Ovary_(botany)` · `Ovulatory_shift_hypothesis` · `Ovule` · `Pair_bond` · `Panspermia` · `Parallel_evolution` · `Parallel_individuation_system` · `Parapatric_speciation` · `Parental_investment` · `Parent–offspring_conflict` · `Paternal_bond` · `Peripatric_speciation` · `Personality_development` · `Phenotypic_plasticity` · `Philosophy_of_mind` · `Phyletic_gradualism` · `Phylogenetic_tree` · `Phylogenetics` · `Physical_attractiveness` · `Plant` · `Plant_defense_against_herbivory` · `Plant_root_exudates` · `Plastid` · `Pleiotropy` · `Point_mutation` · `Pollen` · `Pollinator-mediated_selection` · `Polyethism` · `Polymorphism_(biology)` · `Population_(biology)` · `Population_(human_biology)` · `Population_genetics` · `Price_equation` · `Primate_cognition` · `Primates_(journal)` · `Primatology` · [[Probability]] · `Programmed_cell_death` · `Protocell` · `Psychological_adaptation` · `Psychological_effects_of_Internet_use` · `Psychological_nativism` · `Punctuated_equilibrium` · `Rank_theory_of_depression` · `Rapoport's_rule` · `Recent_human_evolution` · `Receptor_(biochemistry)` · `Reciprocal_altruism` · `Reciprocal_altruism_in_humans` · `Red_Queen_hypothesis` · `Reinforcement_(speciation)` · `Reproductive_success` · `Richard_Dawkins` · `Richard_Lewontin` · `Robert_Wright_(journalist)` · `Romanticism_in_evolution_theory` · `Ruth_Hubbard` · `Saltation_(biology)` · `Sarah_Blaffer_Hrdy` · `Science_of_reading` · `Screen_time` · `Selective_breeding` · `Sewall_Wright` · `Sex-determination_system` · `Sex_and_gender_differences_in_autism` · `Sex_differences_in_cognition` · `Sex_differences_in_crime` · `Sex_differences_in_emotional_intelligence` · `Sex_differences_in_intelligence` · `Sex_differences_in_memory` · `Sex_differences_in_narcissism` · `Sex_differences_in_psychology` · `Sex_differences_in_schizophrenia` · `Sexology` · `Sexual_arousal` · `Sexual_attraction` · `Sexual_desire` · `Sexual_dimorphism` · `Sexual_division_of_labour` · `Sexual_fantasy` · `Sexual_jealousy` · `Sexual_selection` · `Sexual_selection_in_flowering_plants` · `Sexual_selection_in_fungi` · `Sexual_selection_in_humans` · `Sexual_selection_in_insects` · `Sexy_son_hypothesis` · `Signalling_theory` · `Smartphones_and_pedestrian_safety` · `Social_Bonding_and_Nurture_Kinship` · `Social_aspects_of_television` · `Social_conflict_in_ants` · `Social_constructionism` · `Social_contagion` · `Social_determinism` · `Social_selection` · `Sociality` · `Socialization` · `Societal_effects_of_cars` · `Sociobiology` · `Sociobiology:_The_New_Synthesis` · `Sociocultural_evolution` · `Spandrel_(biology)` · `Speciation` · `Species` · `Species-typical_behavior` · `Species_complex` · `Standard_social_science_model` · `Stephen_Jay_Gould` · `Steven_Pinker` · `Steven_Rose` · `Stigma_(botany)` · `Structuralism_(biology)` · `Substance_abuse` · `Symbiogenesis` · `Sympatric_speciation` · `Synalpheus` · `Synalpheus_regalis` · `Systematics` · `Taxon` · `Teleology_in_biology` · `Teleonomy` · `Tempo_and_Mode_in_Evolution` · `Termite` · `Texting_while_driving` · `The_Ants` · `The_Selfish_Gene` · `The_eclipse_of_Darwinism` · `Theistic_evolution` · `Thelytoky` · `Theoretical_foundations_of_evolutionary_psychology` · `Theory_of_mind` · `Theory_of_mind_in_animals` · `Thorson's_rule` · `Thrips` · `Transgenerational_epigenetic_inheritance` · `Transitional_fossil` · `Transmutation_of_species` · `Trivers–Willard_hypothesis` · `Unconscious_cognition` · `Uniformitarianism` · `Unilineal_evolution` · `Unit_of_selection` · `University_of_Montpellier` · `Variability_hypothesis` · `Vervet_monkey` · `Vespidae` · `Vicar_of_Bray_(scientific_hypothesis)` · `Viral_evolution` · `Visual_perception` · `Vitalism` · `Von_Baer's_laws_(embryology)` · `W._D._Hamilton` · `War_in_ants` · `Wason_selection_task` · `Westermarck_effect` · `Willi_Hennig` · `Worker_policing` · `Zygote`
## Overview
Kin selection is a form of natural selection that favours behaviours increasing the reproductive success of an organism's relatives, even at a cost to the organism's own survival and reproduction. It is the leading explanation for the evolution of altruism and social cooperation, from alarm calls in Belding's ground squirrels to the sterile worker castes of ants, bees, and wasps. The idea is usually expressed through **inclusive fitness** — the sum of an individual's own (direct) reproduction and its effect on relatives' (indirect) reproduction, each relative weighted by genetic relatedness. J. B. S. Haldane anticipated it with his quip that he would lay down his life for two brothers or eight cousins; W. D. Hamilton formalised it mathematically in 1964, and John Maynard Smith named it "kin selection."
## The mechanism: Hamilton's rule
At the centre of kin selection is **Hamilton's rule**, which states that an altruistic gene spreads when
$rB > C$
where $C$ is the fitness cost to the actor, $B$ is the fitness benefit to the recipient, and $r$ is the **coefficient of relatedness** — the probability that the two individuals share a given gene by common descent. Relatedness acts as an exchange rate: the more closely kin are related, the smaller the benefit needed to justify a given cost.
| Relationship | Coefficient of relatedness, *r* |
|---|---|
| Identical twin / clone | 1.0 |
| Parent–offspring | 0.5 |
| Full siblings | 0.5 |
| Half siblings | 0.25 |
| Grandparent–grandchild | 0.25 |
| First cousins | 0.125 |
| Full sisters, haplodiploids (Hymenoptera) | 0.75 |
With full siblings ($r = 0.5$), the rule becomes $0.5\,B > C$: a helper should sacrifice one offspring-equivalent only if the sibling gains more than two — Haldane's "two brothers" in algebra. The unusually high relatedness of haplodiploid sisters ($r = 0.75$) was long invoked to explain why eusociality, complete with sterile helpers, arose repeatedly in ants, bees, and wasps.
## Controls -> what each maps to
| Control | Maps to | Range / values | Meaning |
|---|---|---|---|
| Cost to actor, C | The cost term $C$ in $rB > C$ | Slider, 0–10 | Direct fitness (offspring-equivalents) the altruist loses by helping |
| Benefit to recipient, B | The benefit term $B$ | Slider, 0–10 | Fitness the recipient gains from being helped |
| Perform Altruistic Act | One application of the rule | Button | Runs a single helping event at the current *C* and *B* |
| Auto-Play Generations | Iterated selection | Button | Repeats the act over successive generations to show gene-frequency change |
| Reset | Initial state | Button | Restores the starting population and gene frequency |
## Learning objective
By adjusting cost and benefit, you should be able to predict — and then watch — when Hamilton's rule $rB > C$ lets an altruistic gene spread through a population of relatives rather than die out.
## Limits and connections
Hamilton's rule assumes additive, independent costs and benefits and a well-defined relatedness; real systems add reciprocity between non-kin, spite, greenbeard genes, and ecological limits on dispersal. Inclusive-fitness accounting is mathematically equivalent to multilevel (group) selection, and it complements rather than replaces Reciprocal altruism as a route to cooperation. Because *r* flows from ordinary Mendelian inheritance, the same pedigree logic that predicts eye colour also predicts when helping evolves.
## Poster & source
<div class="microsim-fallback">
<!-- poster image pending backfill -->
<p><em>Live microsim · <a href="https://wikitube-3d-microsims.netlify.app/Kin_selection.html">open full</a> · source: Microsims for Dissemination/GENOMICS_ThreeJS_Microsims/Kin_selection.html</em></p>
</div>
<!-- CRAFT-LINK:START g12 -->
*Built to the [[WT!Three_js_Microsim_Master_Class|three.js Master Class]].*
<!-- CRAFT-LINK:END -->
## Wikipedia : Wikitube
**Strict pair:** [Wikipedia](https://en.wikipedia.org/wiki/Kin_selection) : [Wikitube](https://en.wikitube.io/wiki/Kin_selection)
## Previous hub tags
Tree parents: [[Emergence]] · [[Game_theory]].
Legacy hubs: `GENOMICS`.
---
*Sources: 1 legacy note. Minted wave 1, 2026-07-30 (v1.6 order).*