A gene is a sentence written in a four-letter alphabet β A, C, G, T β read three letters (a codon) at a time, each spelling one amino acid in a protein. A mutation is a typo in that sentence: a swapped letter, an inserted one, a dropped one. Most typos do nothing; some break the protein; a rare few make something new. Those typos are the only source of new genetic variation there is β the raw material that evolution edits.
Below is a short gene and the protein it codes for, read codon by codon (the real standard genetic code). Click any base to select it, then apply a mutation and watch the protein update. A substitution swaps one letter; an insertion or deletion adds or removes one β shifting every codon downstream (a frameshift).
Tip: substituting can be silent, missense, or nonsense depending on the codon β codon redundancy means many third-position swaps change nothing.
Every individual carries random copying errors. Most are neutral, many are harmful, and a rare few are beneficial. Mutation creates the variation; selection sifts it β keeping carriers of helpful changes, weeding out the harmful. Press Play to run a small population over generations and watch mean fitness climb as good mutations accumulate.
Silent: the new codon still codes the same amino acid (the code is redundant). Missense: a different amino acid β may be harmless or, like sickle-cell (GluβVal), disease-causing. Nonsense: a STOP codon appears early, truncating the protein.
Adding or removing bases (not in multiples of three) shifts the reading frame, so every codon after the change is misread. Usually catastrophic for the protein.
61 codons spell just 20 amino acids, so many bases β especially the third in a codon β can change with no effect. This redundancy absorbs a large share of mutations harmlessly.
Mutation is the only source of genuinely new alleles. Selection, drift, and recombination shuffle and filter that variation β but without mutation there is nothing new to act on.