← SciSim / Chemistry
CHEMSIM v1.0

DNA Base Pairing & H-Bonding

Watson-Crick Pairing · A-T (2 H-bonds) · G-C (3 H-bonds) · Double Helix · Melting Temperature (Tm) · GC Content

Interactive Simulation

Sequence Preset
Balanced (50% GC)
GC Content (%)
50.0
Length N (bp)
20
Tm — Long (deg C)
80.0
Tm — Short, Wallace (deg C)
60.0
Total H-Bonds
50
Bonded State
Duplex
Stacking Energy (kJ/mol)
-160
GC Content (%)50
Sequence Length N (bp)20
Temperature (deg C)25
Salt [Na+] (mM)50
Strand Concentration (uM)1
Helix Twist (rotations)1
Animation Speed1.0x

Display

Show H-bond dashes
Show atom labels (N, O, H)
Show backbone
Show major/minor grooves
Show grid (graph)

The Idea, Step by Step

From an everyday zipper to the melting-temperature formula — building the concept one level at a time.

1Start — a zipper that only closes one way. Picture DNA as a twisted ladder, or a zipper with two halves. Each rung is a pair of chemical "letters." There are only four letters — A, T, G, and C — and they are picky about partners: A always clicks with T, and G always clicks with C. Like puzzle pieces, the shapes only fit their one correct partner, so if you know one half of the ladder you automatically know the other half. That single rule is how a cell copies its genetic instructions without scrambling them.
2Build — some rungs grip harder than others. The two letters in a rung are held together by tiny attractions called hydrogen bonds. An A–T rung uses two H-bonds; a G–C rung uses three. More bonds means a stronger grip, so DNA that is rich in G and C is harder to pull apart — you must heat it more before the two strands let go. We track that with the melting temperature $T_m$, the temperature where half the strands have separated. A quick rule for short pieces (the Wallace rule) just counts letters: $T_m = 2(n_A+n_T) + 4(n_G+n_C)$. A 10-letter piece with 5 A/T and 5 G/C melts at $2(5)+4(5)=30^\circ$C.
3Deepen — the precise picture. Pairing a two-ring base (a purine, A or G) with a one-ring base (a pyrimidine, T or C) keeps the helix a constant $\sim 2$ nm wide — that uniform width is why A–T and G–C are the only "Watson–Crick" pairs. For long DNA the melting temperature follows the Marmur–Schildkraut relation, $T_m = 81.5 + 0.41(\%\text{GC}) - \tfrac{675}{N} + 16.6\,\log_{10}[\text{Na}^+]$. Read it slowly: every extra 1 % GC raises $T_m$ by $0.41^\circ$C, longer strands ($N$) melt higher, and more salt ($[\text{Na}^+]$) shields the negatively charged backbone and stabilises the duplex. The sliders map straight onto these terms — GC Content is the $\%$GC, Length N is $N$, Salt is $[\text{Na}^+]$, and Temperature sets where you sit relative to $T_m$. (A subtle twist: the H-bonds mostly decide which letters pair, while most of the bulk stability actually comes from neighbouring bases stacking face-to-face.)
4Try this in the sim above. First, drag GC Content from 0 % up to 100 % and watch the Tm-vs-%GC point climb — going from 40 % to 60 % GC lifts $T_m$ by about $0.41\times20\approx 8^\circ$C. Second, switch to the Melting Curve tab and raise Temperature past $T_m$: the strands unzip and the "Bonded State" readout flips to Single Strands. Third, slide Salt from 1 mM toward 1000 mM and watch $T_m$ rise as the extra ions calm the backbone's self-repulsion.

Equations & Derivation

Watson-Crick Base Pairing
$$\text{A} \cdots \text{T}: \quad 2 \text{ H-bonds} \quad\quad \text{G} \cdots \text{C}: \quad 3 \text{ H-bonds}$$

Adenine pairs with thymine via two hydrogen bonds (N6-H to O4, N1 to H-N3). Guanine pairs with cytosine via three hydrogen bonds (O6 to H-N4, N1-H to N3, N2-H to O2). The 3 vs 2 H-bond difference is why GC pairs are more thermally stable than AT pairs.

Melting Temperature — Wallace Rule (short, < 14 nt)
$$T_m = 2 \cdot (n_A + n_T) + 4 \cdot (n_G + n_C) \quad [\degree \text{C}]$$

Each A or T contributes 2 deg C; each G or C contributes 4 deg C. Simple but only valid for short oligos in standard buffer (1 M NaCl).

Melting Temperature — Marmur-Schildkraut (long DNA, > 50 bp)
$$T_m = 81.5 + 0.41 \cdot (\%\text{GC}) - \frac{675}{N} + 16.6 \cdot \log_{10}[\text{Na}^+] \quad [\degree \text{C}]$$

Captures GC content, length, and salt effects. Higher salt shields backbone phosphate repulsion, stabilizing the duplex. The 675/N term accounts for end-fraying of short duplexes.

Refined formula (medium length, 14-50 nt)
$$T_m \approx 64.9 + 41 \cdot \frac{(n_G + n_C - 16.4)}{N} \quad [\degree \text{C}]$$

Used by primer design tools (e.g., OligoAnalyzer) for PCR primers ~18-30 nt.

Symbol Definitions

SymbolMeaningUnit
TmMelting temperature (50% strands denatured)deg C
%GCPercent guanine + cytosine content%
NLength of duplex in base pairsbp
[Na+]Sodium ion concentration (or equivalent monovalent)M
nA, nT, nG, nCCounts of each base
A260UV absorbance at 260 nm (used to monitor melting)
dH, dSEnthalpy and entropy of duplex formationkJ/mol, J/(mol K)

Step-by-Step: Why GC Pairs Stabilize DNA More Than AT Pairs

1Hydrogen bond geometry: Watson and Crick (1953) proposed that A pairs with T using TWO H-bonds (N6(A)-H to O4(T), N1(A) to H-N3(T)). G pairs with C using THREE H-bonds (O6(G) to H-N4(C), N1(G)-H to N3(C), N2(G)-H to O2(C)). Each H-bond contributes roughly 4-13 kJ/mol of stabilization. The extra H-bond in G-C accounts for some of its enhanced stability.
2Base stacking matters more than people think: Surprisingly, ~50% of duplex stability comes from STACKING (pi-pi interactions between adjacent aromatic bases), not just H-bonds. Stacking energies are sequence-dependent: GC-rich stacks are stronger (e.g., 5'-GC-3' stack ~ -14 kJ/mol) than AT stacks (~ -7 kJ/mol). The famous SantaLucia nearest-neighbor parameters (1998) tabulate all 16 possible dinucleotide stacks.
3Melting temperature Tm definition: Tm is the temperature at which 50% of the duplex has denatured into single strands. Above Tm, base pairs break and the helix unwinds. Monitoring is done by UV absorbance: single-stranded DNA absorbs ~37% MORE at 260 nm than duplex DNA — this is the "hyperchromic effect" from unstacking.
4Wallace rule for short oligos: For primers under ~14 nt, count: Tm = 2(A+T) + 4(G+C) deg C. So a 10-mer with 5 AT and 5 GC: Tm = 2(5) + 4(5) = 30 deg C. This works because for short sequences in standard buffer, end-effects dominate and stacking nearest-neighbor corrections are small.
5Marmur-Schildkraut for long DNA: For genomic DNA fragments > 50 bp, Tm = 81.5 + 0.41(%GC) - 675/N + 16.6 log[Na+]. Each %GC adds 0.41 deg C. So genomic DNA at 40% GC has Tm ~ 81.5 + 16.4 - small = ~95 deg C in 1 M NaCl. At physiological 0.15 M, subtract 16.6(0.82) = ~14 deg C, giving Tm ~ 81 deg C — close to actual values for human genomic DNA.
6Salt and end fraying effects: Higher [Na+] stabilizes the duplex (positively charged Na+ shields the negative backbone phosphates). Short duplexes have lower Tm because ends fray easily — the 675/N correction accounts for this. Mismatches reduce Tm by ~5-10 deg C each (very large effect, useful for SNP detection).

Worked Example — Designing a PCR Primer

Sequence: 5'-AGCGTAGCATGCGTAGCATG-3' (20 nt). Count: A=5, T=4, G=7, C=4. GC = 11/20 = 55%.

Wallace rule: Tm = 2(5+4) + 4(6+5) = 18 + 44 = 62 deg C.

Refined formula (Tm = 64.9 + 41(G+C-16.4)/N): Tm = 64.9 + 41(11-16.4)/20 = 64.9 + 41(-0.27) = 64.9 - 11.1 = 53.8 deg C.

Marmur (long, applied anyway): Tm = 81.5 + 0.41(55) - 675/20 + 16.6 log(0.05) = 81.5 + 22.6 - 33.7 - 21.6 = 48.8 deg C.

Annealing temperature: Typically Tm - 5 deg C, so ~ 49 deg C for PCR. The Wallace rule overestimates because it ignores length and salt corrections.

References:
- Watson, J.D. & Crick, F.H.C. — "Molecular structure of nucleic acids", Nature 171, 737 (1953)
- SantaLucia, J. Jr. — "A unified view of polymer, dumbbell, and oligonucleotide DNA nearest-neighbor thermodynamics", PNAS 95, 1460 (1998)
- Marmur, J. & Doty, P. — "Determination of the base composition of DNA from its thermal denaturation temperature", J. Mol. Biol. 5, 109 (1962)
- Wallace, R.B. et al. — Nucleic Acids Res. 6, 3543 (1979)
- Bloomfield, V.A., Crothers, D.M. & Tinoco, I. — Nucleic Acids: Structures, Properties, and Functions, University Science Books (2000)

Frequently Asked Questions

ConceptualWhy does adenine only pair with thymine and not cytosine?
Three reasons: (1) Geometry — A is a purine (two rings), C is a pyrimidine (one ring). Pairing A with T (purine + pyrimidine) maintains a uniform helix width of ~2.0 nm. A-C pairing would be purine + pyrimidine too but the H-bond donors/acceptors are misaligned. (2) Hydrogen bond donor/acceptor pattern — A has N6-H (donor) and N1 (acceptor); T has O4 (acceptor) and N3-H (donor). They match perfectly. C has different positions: N4-H (donor), O2 (acceptor), N3 (acceptor). A-C would create donor-donor and acceptor-acceptor clashes. (3) Tautomer stability — A and T predominantly exist in their amino/keto tautomers, which give the correct Watson-Crick pairing. Rare tautomers can mispair and cause point mutations.Key Takeaway: A-T pairing is dictated by geometry (purine + pyrimidine) AND complementary H-bond donor/acceptor patterns. Mismatches are sterically and electronically disfavored.
Real LifeWhy do thermophiles have higher GC content than mesophiles?
Thermophilic organisms (e.g., Thermus aquaticus, source of Taq polymerase) live at 70-100 deg C, where standard mesophile DNA would denature. Their DNA has elevated GC content (~55-65%) to raise Tm. Each 1% increase in GC raises Tm by ~0.41 deg C (Marmur formula). So going from 40% GC (human) to 65% GC (Thermus) raises Tm by ~10 deg C — enough to remain stable at hot-spring temperatures. Additionally, hyperthermophilic archaea (Pyrococcus, lives at 100 deg C) use reverse gyrase to introduce POSITIVE supercoils, further stabilizing DNA. Note: in archaea, histone-like proteins and elevated K+/glycerol also help. The Tm rule of thumb: GC content alone explains about half the thermal stability difference.Key Takeaway: Higher GC content raises Tm by ~0.41 deg C per %GC, helping thermophiles survive hot environments. This is selective adaptation.
SimulationWhat is the hyperchromic effect and how is it measured?
When DNA denatures, single-stranded DNA absorbs ~37% more UV light at 260 nm than the duplex form. This is the "hyperchromic effect." The cause: in the duplex, stacked bases shield each other via electronic coupling, reducing absorbance. When unstacked, each base absorbs independently, giving more total absorbance. To measure Tm: heat a DNA solution in a UV spectrophotometer cuvette, plot A260 vs T. The curve is sigmoidal. Tm is the midpoint of the rise (50% denatured). The simulation graphs this melting curve. Modern instruments use UV-Vis spectrophotometers with thermal control (Cary, Perkin-Elmer) and can measure Tm to ±0.1 deg C accuracy. In molecular biology, Tm is also measured by differential scanning calorimetry (DSC), which gives full thermodynamic parameters (dH, dS).Key Takeaway: A260 rises ~37% upon DNA melting (hyperchromic effect). Plotting A260 vs T gives a sigmoidal melting curve; Tm is the midpoint.
Non-ObviousAre H-bonds really the main reason DNA is stable?
Surprisingly, NO. H-bonds in DNA contribute to specificity (A pairs only with T) but not to overall stability. Why? Because the H-bonds between A and T (or G and C) replace H-bonds with water in the unfolded state — energetically neutral. The TRUE source of stability is BASE STACKING. The aromatic rings of adjacent bases interact via pi-pi stacking and dispersion forces in a hydrophobic environment (the duplex interior excludes water). The hydrophobic effect drives nucleobases into the helix interior, away from solvent. Stacking energies (~7-14 kJ/mol per step) integrate over many base pairs and add up. So if you mentally remove stacking, the duplex would not be stable; if you remove H-bonds, you would lose specificity but not bulk stability. This was demonstrated by experiments with abasic sites (which can stack but not H-bond) showing significant residual stability.Key Takeaway: H-bonds give SPECIFICITY (A-T, G-C selectivity), not stability. STACKING (pi-pi + hydrophobic effect) is the main stabilizing force. Counterintuitive but well-established.
MathematicalHow does the nearest-neighbor model calculate dH and dS for DNA duplexes?
The SantaLucia nearest-neighbor (NN) model treats DNA stability as a sum over the 16 possible adjacent base-pair "stacks" (e.g., AA/TT, AT/AT, GC/GC, etc., 10 unique). Each NN has tabulated dH and dS values from melting experiments. To calculate duplex thermodynamics: dH_total = sum_i dH_i (over all NN steps) + initiation terms. dS_total similar. Tm = dH/(dS + R ln(C_T/4)), where C_T is the total strand concentration and R is the gas constant. Example for 5'-AGCT-3': three NN steps: AG/CT, GC/GC, CT/AG. Look up each, sum dH and dS. Add initiation and terminal-AT corrections. Calculate Tm. Modern primer design tools (Primer3, IDT OligoAnalyzer) use this approach for accurate Tm prediction (typically ±2 deg C).Key Takeaway: Tm = dH/(dS + R ln(C_T/4)). Sum NN stacking parameters from SantaLucia tables. This is how all serious primer design tools work.
Real LifeHow is PCR primer design based on melting temperature?
PCR (polymerase chain reaction) cycles through three temperatures: denaturation (94-98 deg C, separates duplex), annealing (~Tm - 5 deg C, primer binds to template), and extension (72 deg C, Taq polymerase synthesizes). The annealing temperature must be slightly BELOW the primer Tm so the primer-template duplex is stable but specific. Primers are typically designed: length 18-25 nt, GC content 40-60%, Tm 50-65 deg C, no self-complementarity, no GC-rich 3' ends. Two primers used in PCR should have Tm within 5 deg C of each other (matched annealing). The simulation lets you tune length and GC content and see how Tm changes — exactly the parameter space a primer designer explores. Tools: Primer3, OligoAnalyzer (IDT), NCBI Primer-BLAST.Key Takeaway: PCR primers are designed with Tm ~ 55-65 deg C, achieved through 18-25 nt length and 40-60% GC. Annealing at Tm - 5 deg C gives optimal specificity.
Deep / AdvancedWhat are Hoogsteen and other non-canonical base pairs?
Beyond Watson-Crick A-T and G-C, several non-canonical pairing geometries exist: (1) Hoogsteen pairs — A uses its N7 and N6 (not N1, N6) to bind T. The geometry has A flipped 180 deg, creating a different helix width. Hoogsteen pairs occur transiently (~1% of bases) in normal duplex DNA and are recognized by some proteins (e.g., p53 binds Hoogsteen sites). (2) Triplex DNA — a third strand binds in the major groove via Hoogsteen H-bonds, forming triple helices (T-A.T, C-G.C+). Therapeutic interest for gene silencing. (3) G-quadruplex (G4) — four guanines form a square planar tetrad held by Hoogsteen H-bonds. G4s form in telomeres and gene promoters, with regulatory roles. (4) Wobble pairs — G-U pairs in RNA, less stable than G-C, important in tRNA decoding. (5) I-motif — cytosine-rich strands form hemiprotonated C-C+ pairs at low pH. Recent evidence (2018) shows i-motifs form in living human cells.Key Takeaway: Watson-Crick is the textbook standard, but biology uses Hoogsteen, triplex, G-quadruplex, wobble, and i-motif pairings for diverse regulatory functions.
Best Resources for Beginners:
- Alberts et al. — Molecular Biology of the Cell, 7th Ed., Ch. 4-5 (Garland, 2022)
- Bloomfield, Crothers & Tinoco — Nucleic Acids: Structures, Properties, and Functions (2000)
- IDT OligoAnalyzer (free online): idtdna.com/oligoanalyzer
- Khan Academy — DNA structure video series

Common Misconceptions

"DNA stability comes from H-bonds between bases."
Wrong by a wide margin. H-bonds in DNA mostly REPLACE bonds with water in the unfolded state — they contribute to specificity (A-T, G-C selectivity) but not to net stability. The MAIN stabilizing force is base stacking (pi-pi interactions + hydrophobic effect, ~50-60% of total stability). Without stacking, DNA would not be stable.
Reference: Yakovchuk, P., Protozanova, E. & Frank-Kamenetskii, M.D., Nucleic Acids Res. 34, 564 (2006)
"GC content determines genome stability ENTIRELY."
Higher GC raises Tm by ~0.41 deg C per %GC (Marmur formula), so it's a major factor. But other factors matter: salt concentration ([Na+] effect ~16.6 log term), supercoiling, protein binding (histones, single-strand binding proteins), and chemical modifications (methylation). Thermophiles use multiple strategies — high GC, K+, glycerol, archaeal histones, and reverse gyrase.
Reference: Marmur, J. & Doty, P., J. Mol. Biol. 5, 109 (1962); Forterre et al., Trends Genet. 22, 532 (2006)
"DNA is a static, rigid structure."
DNA is highly DYNAMIC. Base pairs constantly flip (base flipping, ~1 Hz under physiological conditions), breathe (transient opening of base pairs even at low T), and bend (persistence length ~50 nm). Hoogsteen pairs form transiently. Local melting bubbles allow transcription. NMR studies show DNA is in constant motion on sub-millisecond timescales.
Reference: Alvey, H.S. et al. — "Widespread transient Hoogsteen base pairs in canonical duplex DNA", Nat. Commun. 5, 4786 (2014)
"Wallace rule works for all DNA lengths."
Wallace rule (Tm = 2(A+T) + 4(G+C)) only works for SHORT oligos (< 14 nt) in standard buffer (1 M NaCl). It ignores salt concentration, sequence context (stacking), and length effects. For long DNA (> 50 bp) use Marmur-Schildkraut. For medium primers (18-30 nt) use NN-based tools like OligoAnalyzer. Using Wallace on long DNA gives systematic overestimates of 5-15 deg C.
Reference: Wallace, R.B. et al., Nucleic Acids Res. 6, 3543 (1979); SantaLucia, J. Jr., PNAS 95, 1460 (1998)
"All cells have the same GC content (~50%)."
GC content varies enormously across organisms: Plasmodium falciparum (malaria parasite) ~19%; human ~41%; E. coli ~50%; Streptomyces ~72%; Thermus thermophilus ~69%. Within a single human genome, GC content varies regionally (38-58% across "isochores"), affecting gene density, expression, and recombination. CpG islands are highly enriched (60-80% GC) at promoters of housekeeping genes.
Reference: Bernardi, G. — "Isochores and the evolutionary genomics of vertebrates", Gene 241, 3 (2000)
"DNA melts at a single sharp temperature."
DNA melts over a RANGE (typically 10-15 deg C wide for genomic DNA, narrower for short oligos). Tm is the midpoint of this transition. The width depends on cooperativity — short oligos are highly cooperative (sharp transition), long DNA has multiple "domains" that melt sequentially (broader curve). Differential scanning calorimetry (DSC) shows multiple peaks for genomic DNA, each representing a different region.
Reference: Bloomfield, Crothers & Tinoco — Nucleic Acids, Ch. 6 (2000)
Education Research Sources:
- Yakovchuk et al. — Nucleic Acids Res. 34, 564 (2006) — "Base-stacking and base-pairing contributions"
- Alvey et al. — Nat. Commun. 5, 4786 (2014) — "Transient Hoogsteen pairs"
- SantaLucia & Hicks — Annu. Rev. Biophys. Biomol. Struct. 33, 415 (2004)
- IDT OligoAnalyzer Tool — idtdna.com