Huntington disease (HD) is one of eight progressive neurodegenerative disorders in which the underlying mutation is a CAG expansion encoding a polyglutamine tract. The mechanism of trinucleotide expansion is poorly understood. Expansion is mediated by misaligned pairing of repeats and the inappropriate formation of DNA secondary structure as the duplex unpairs. It has never been clear, however, whether duplex unpairing occurs during mitotic replication or during strand-break repair. In simple organisms, trinucleotide expansion arises by replication slippage on either the leading or the lagging strand, homologous recombination, gene conversion, double-strand break repair and base excision repair; it is not clear which of these mechanisms is used in mammalian cells in vivo. We have followed heritable changes in CAG length in male transgenic mice. In germ cells, expansion is limited to the post-meiotic, haploid cell and therefore cannot involve mitotic replication or recombination between a homologous chromosome or a sister chromatid. Our data support a model in which expansion in the germ cells arises by gap repair and depends on a complex containing Msh2. Expansion occurs during gap-filling synthesis when DNA loops comprising the CAG trinucleotide repeats are sealed into the DNA strand.