How Are STO-nG Basis Sets Constructed?

This page writes out, step by step, the toolkit of Lecture 5 (derivation of STO-3G) and Lecture 6 (Gaussian trial functions). Normalization of the Gaussian → how α of STO-1G is chosen → extension to two and three Gaussians → the Gaussian product theorem → the closed-form overlap integral → ζ scaling of the off-the-shelf basis — a single straight path.

0. Why Bother with Gaussians?

The correct form of a hydrogen-like orbital is the Slater-type e−ζr. In molecular calculations, however, a huge number of integrals between functions centered on different atoms (two-, three-, and four-center integrals) are needed. A two-center integral over Slater-type functions requires a heavy tool called elliptic coordinates, and for the four-center electron repulsion integrals there is not even a closed-form expression. With the Gaussian-type e−αr², thanks to the product theorem shown later, everything closes with elementary integrals. So “imitate the correct form (Slater) with a sum of n easy-to-compute functions (Gaussians)” — that is STO-nG.

1. The Conclusion First (30-Second Version)

  1. The normalized s-type Gaussian is φ = (2α/π)3/4e−αr².
  2. STO-1G: maximize the overlap with 1s to get α = 0.27095 (minimizing the energy instead gives 8/9π = 0.28294; the optimum changes with the objective).
  3. As the number of Gaussians increases, the error goes 15 % → 3.8 % → 1.0 % (energy), and the overlap 0.9784 → 0.9984 → 0.9998.
  4. Gaussian product theorem: the product of two Gaussians on different centers = a one-center Gaussian in between × a constant K. As a result, the 1s–1s overlap integral becomes a one-line formula.
  5. The off-the-shelf STO-3G scales the exponents by ζ = 1.24 (for the contracted H in a molecule). That is why PySCF gives −12.696 eV for the H atom, while the ζ = 1 fit on this page gives −13.467 eV.

2. Normalization of the Gaussian Function

We normalize φt = Ne−αr² so that ⟨φt|φt⟩ = 1. Using the Gaussian integral ∫0∞e−2αr²r²dr = (1/8)√(2π/(2α)³)·2 …, we have ∫|φt|²dV = N²(π/2α)3/2, so

φt(r) = (2απ)3/4 e−αr2 … ①

From here on, lengths are written in units of a0 (and α in units of a0−2).

3. STO-1G — How Do We Choose the Single α?

The target we want to imitate is the hydrogen 1s: φ1s = (1/√π)e−r. The approach of Lecture 5 is to maximize the overlap integral.

maxα ∫ φ1s (r) φt (r) dV ⟹ α=0.27095 … ②

On the other hand, minimizing the energy, as done in Lecture 6, gives α = 8/9π = 0.28294. The two “optima” do not coincide because the overlap looks at the shape of the wave function as a whole, while the energy (by way of the variational principle) looks at it with a different weighting. Fortunately, ⟨E⟩(α) is flat at the bottom, so whichever one you use, the energy difference is only 0.005 eV.

Fig. 1 | The two “optimal α” values. Top: overlap with the exact solution ⟨1s|φt⟩ (maximum at α = 0.271). Bottom: energy ⟨E⟩(α) (minimum at α = 0.283). Both the peak and the valley are flat, so you can see that the difference between the two α values does no real harm.

4. Increasing the Number of Gaussians — STO-2G and STO-3G

A single Gaussian cannot match the origin (the cusp) and the tail at the same time, so we superpose Gaussians of different widths and assign them different roles. The coefficients are constants determined by a least-squares fit (Lecture 5, Szabo–Ostlund).

STO-1GSTO-2GSTO-3G
Components (c, α) (1, 0.27095) (0.678914, 0.151623)
(0.430129, 0.851819)
(0.444635, 0.109818)
(0.535328, 0.405771)
(0.154329, 2.22766)
⟨1s|φ⟩0.97840.99840.9998
⟨E⟩ [eV]−11.544−13.093−13.467
Error15.2 %3.8 %1.0 %
Narrow Gaussians handle the origin; wide Gaussians handle the tail Looking at the three Gaussians of STO-3G, the one with α = 2.23 (the narrow one) takes care of the steep rise near the origin, and the one with α = 0.11 (the wide one) takes care of the tail. Even so, the cusp (the sharp point at the origin) cannot be built no matter how many Gaussians are added — because every component has zero slope at the origin (the cusp condition on the variational page).

5. The Gaussian Product Theorem — The Source Code Behind the Payoff

For two Gaussians placed at the centers RA and RB (written in one dimension; in three dimensions the same holds for each component), we complete the square in the exponent of their product.

−α(x−RA)2 −β(x−RB)2 = −(α+β) (x− αRA+βRBα+β )2 − αβα+β (RA−RB)2 … ③

The first term is “a single Gaussian centered at the weighted-average position,” and the second term is a constant independent of x (the distance-decay factor K). In other words, a two-center integral turns into a mere one-center Gaussian integral. Computing the 1s–1s overlap integral with the normalization ① included gives

SGG (α,β,R) = (4αβ)3/4 (α+β)3/2 e− αβα+β R2 … ④

No elliptic coordinates or Jacobians are needed. The overlap of STO-nG is just Eq. ④ summed with the coefficients: S(R) = ΣijcicjSGG(αi, αj, R). For the kinetic energy, the nuclear attraction, and the four-center electron repulsion as well, the same completion of the square collapses all the centers (the repulsion integral simply brings in a single error function).

Fig. 2 | Error of S(R), SSTO-nG − Sexact. Around the bond length (1.4 a0 for H₂, the vertical dotted line) the error of STO-3G is almost zero. At long range, because the tail of a Gaussian dies off quickly, a negative error (underestimation) remains for every n.

6. The Off-the-Shelf STO-3G Is Shrunk to ζ = 1.24

Eqs. ①–④ were all about ζ = 1 (the isolated hydrogen). The Gaussian exponent scales with ζ as α → ζ²α (because lengths shrink by a factor of 1/ζ). The standard STO-3G of quantum chemistry packages adopts ζ = 1.24 for H: the exponents are 0.109818 × 1.24² = 0.168856, 0.405771 × 1.24² = 0.623913, and 2.22766 × 1.24² = 3.425251. The 1s orbital of H in a molecule is contracted by bonding, so this is a ready-made garment cut to fit the molecule, not the isolated atom.

This reconciles the two numbers in the lectures The H atom in the PySCF calculation of Lecture 6 (standard STO-3G) gives −12.696 eV (error 6.7 %). On the other hand, calculating with the ζ = 1 fit of STO-3G derived in Lecture 5 gives −13.467 eV (error 1.0 %). ζ = 1 suits the isolated atom, and ζ = 1.24 suits the molecule — a good example of the principle that choosing a basis set includes asking “for an atom in which environment was this basis built?”.

7. Weaknesses and Remedies in Practice

8. Correspondence with the Lectures and Connections

References: lecture course “Computational Materials Science,” Lecture 5 (derivation of STO-nG), Lecture 6 (Gaussian trial functions), and Lecture 10 (molecular calculation exercise) / A. Szabo and N. S. Ostlund, Modern Quantum Chemistry (Japanese translation: Atarashii Ryoshi Kagaku; table of STO-nG coefficients) / W. J. Hehre, R. F. Stewart, and J. A. Pople, J. Chem. Phys. 51, 2657 (1969) (the original STO-nG paper). The formulas are typeset with the browser’s standard MathML (no external libraries).