What Is the Role of a Basis Set in DFT?
At a glance
- 1. Choose a representation
A basis set represents the spatial Kohn–Sham orbitals using a finite collection of functions.
- 2. Match it to the system
Use polarization functions for angular flexibility and diffuse functions for anions, weakly bound electrons, or long-range density.
- 3. Check convergence
Repeat key calculations with a larger basis set to see whether the property of interest changes materially.
- 4. Separate errors
Assess basis-set effects separately from the choice of exchange-correlation functional.
A DFT calculation needs a practical way to represent how electrons are distributed in space. For molecules, that is often done with a basis set: a finite collection of mathematical functions combined to approximate the Kohn–Sham orbitals. The basis set controls how flexible that representation is; it is not the same thing as the density functional, which supplies an approximation for exchange and correlation.
This distinction matters when you interpret a result. A calculation can use a sophisticated functional but still be limited by a basis that is too small. Conversely, making the basis larger does not fix errors in the functional itself.
What the basis set represents
In Kohn–Sham DFT, the electron density is built from occupied Kohn–Sham orbitals. In an atom-centered orbital calculation, each orbital is approximated as a linear combination of basis functions:
Here, is a basis function, is a coefficient found during the calculation, and is the number of functions available. The calculation solves for coefficients that give a self-consistent density and energy within this finite representation.
Many molecular programs use Gaussian-type functions centered on atoms. Other approaches use plane waves, numerical atomic orbitals, or real-space grids. These are different representations of the same electronic problem; the term “basis set” is most often used for the finite function lists in atom-centered molecular calculations.
What changes when you enlarge it?
A small basis restricts the shapes and directions that orbitals can take. Larger basis sets add flexibility, which can improve the electron density, energy, geometry, and predicted properties. Basis-set error is the difference caused by representing the orbitals with a finite set rather than a sufficiently complete one.
Common features of molecular basis sets include:
- Valence splitting: More than one radial function can describe valence orbitals, letting them change size as bonding changes.
- Polarization functions: Functions with higher angular momentum let the density distort away from spherical atomic shapes, as it does in bonds and lone pairs.
- Diffuse functions: More spatially extended functions help describe density far from nuclei. They are often important for anions, excited states, and weak interactions.
Basis-set names encode some of these choices. For example, def2-SVP is a split-valence polarized basis of modest size, while def2-TZVPP is a larger triple-zeta basis with additional polarization. The precise contents depend on the basis family, so consult its documentation rather than interpreting a label as a complete specification.
A practical example: optimizing water
Suppose you want a reasonable molecular geometry for an isolated water molecule. One practical first calculation is an optimization with a chosen functional and a moderate basis, such as PBE0/def2-SVP. The notation means “use the PBE0 functional and the def2-SVP basis set”; it does not define a single method by itself.
To check the basis effect on the predicted geometry, repeat the optimization with PBE0/def2-TZVPP and compare the O–H bond lengths and H–O–H angle. To compare energies at a fixed geometry, calculate both basis-set energies without reoptimizing, so the geometry is not another changing variable. If the quantities you care about change appreciably, a larger basis or a more careful convergence study may be needed.
For an anion or a system with a diffuse electron distribution, include diffuse functions—for example, use an augmented basis such as aug-cc-pVTZ when appropriate. A compact basis can artificially confine the electron density and distort the result. For production work, also converge the numerical integration grid and other program settings; otherwise, a change attributed to the basis may partly come from a different numerical setting.
How to choose a basis set
Start from the property and system, not from a rule that one basis is always best. A modest polarized double-zeta basis is often useful for exploratory structures. Larger triple-zeta or better bases are more suitable when you need reliable energies or properties. Add diffuse functions when the electron density is expected to extend far from the atoms, especially for anions and weakly bound complexes.
Then test the choice: calculate the property with a larger basis while keeping the functional and other settings fixed. For energy differences, use comparable basis sets for all species and check whether the difference is stable. In intermolecular interaction energies, finite basis sets can also cause basis-set superposition error: each fragment can effectively borrow functions from the other. Counterpoise correction is one way to estimate this effect, though whether to use it depends on the system and the target quantity.
There is no universal basis size that guarantees accuracy. The required basis depends on the molecule, charge, property, and desired precision. For some calculations, specialized basis sets are designed for particular tasks, such as describing core electrons or calculating NMR properties.
Common mistakes
- Treating the basis and functional as interchangeable. PBE0/def2-SVP and PBE0/def2-TZVPP use the same functional but different orbital representations.
- Assuming a larger basis fixes every error. A larger basis addresses basis-set incompleteness, not shortcomings in the functional or an unsuitable physical model.
- Ignoring diffuse functions for anions. Without them, the calculated density may be too compact, affecting energies and other properties.
- Comparing unlike calculations. When assessing basis effects, keep the functional, geometry (for single-point comparisons), and numerical settings consistent.
- Assuming a basis-set label guarantees convergence. Check the property you need by repeating the calculation with a larger or more suitable set.
References
- Introduction to Computational Chemistry, 3rd edition — Frank Jensen
- Molecular Electronic-Structure Theory — Trygve Helgaker, Poul Jørgensen, and Jeppe Olsen
- Basis Set Exchange
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.