Molecular dynamics free-energy calculations of base pair opening within double helical DNA and RNA are used to explain why A-tracts (oligo-adenine repeats) greatly increase the lifetimes of AT base pairs, whereas the structural and the chemical changes involved in passing from B-DNA to A-RNA have comparatively small effects.