Density Functional Theory Explained

From the Hohenberg–Kohn theorems and Kohn–Sham equations to choosing the right functional — a complete practical guide to the workhorse of modern computational chemistry.

📑 Contents

  1. 01Why DFT?
  2. 02Hohenberg–Kohn Theorems
  3. 03Kohn–Sham Equations
  4. 04SCF Procedure
  5. 05Jacob's Ladder
  6. 06Dispersion Problem
  7. 07Software Overview
  8. 08Running DFT Calculations
  9. 09Limitations of DFT

Overview

Density Functional Theory is, without doubt, the most widely used electronic structure method in all of computational chemistry, physics, and materials science. In 2024, DFT calculations are published in literally hundreds of thousands of papers per year — more than any other computational method. Yet despite its ubiquity, many scientists who use DFT every day do not fully understand why it works, what its limitations are, and how to choose the right functional for their problem. This article provides that understanding.

🏅

The Nobel Prize Behind DFT

Walter Kohn received the 1998 Nobel Prize in Chemistry for the development of Density Functional Theory, shared with John Pople who developed computational methods for quantum chemistry (Gaussian software). The Nobel Committee recognized that DFT had made quantum chemical calculations accessible to all of chemistry.

⚛️ Why DFT? The N-Electron Problem

Traditional wavefunction methods (Hartree-Fock, MP2, CCSD) work with the full N-electron wavefunction Ψ(r₁, r₂, …, rₙ). For a molecule with N electrons in 3D space, this wavefunction depends on 3N variables. For a protein with 10,000 electrons, that means a 30,000-dimensional function — utterly impossible to store or compute exactly.

DFT's revolutionary insight: instead of the 3N-dimensional wavefunction, use only the 3-dimensional electron density ρ(r) — the probability of finding any electron at position r.

Electron Density Definition ρ(r) = N ∫ |Ψ(r, r₂, r₃, …, rₙ)|² dr₂ dr₃ … drₙ
💡
The Key Insight

The electron density is a function of only 3 variables (x, y, z) regardless of how many electrons the system has. This dimensional reduction from 3N → 3 is what makes DFT computationally tractable for systems of hundreds or thousands of atoms.

📐 The Hohenberg–Kohn Theorems (1964)

The mathematical justification for DFT rests on two theorems proved by Pierre Hohenberg and Walter Kohn in 1964. These theorems are the bedrock upon which all of DFT is built.

FIRST THEOREM

The External Potential is Uniquely Determined by ρ(r)

The external potential V_ext(r) is uniquely determined (up to a constant) by the ground-state electron density. Since V_ext determines Ĥ, which determines Ψ, this means: the ground-state density uniquely determines everything about the system, including all observables.

SECOND THEOREM

The Energy is a Functional of ρ, Minimized by the True Ground-State Density

The total energy E[ρ] is a functional of the electron density, and the true ground-state energy is obtained when the true ground-state density is used: E₀ = E[ρ₀]. Any trial density ρ̃ gives E[ρ̃] ≥ E[ρ₀] — the variational principle for DFT.

⚠️
The Critical Limitation of HK Theorems

The HK theorems prove that the functional E[ρ] exists but say nothing about what it looks like. The exact form of the universal functional F[ρ] (kinetic energy + electron-electron interaction) remains unknown. This is the fundamental challenge that all exchange-correlation functional development tries to address.

🔧 The Kohn–Sham Equations (1965)

Hohenberg and Kohn proved DFT is exact in principle, but the exact functional is unknown. Kohn and Sham devised a practical scheme one year later that made DFT computationally useful. They introduced a fictional reference system of non-interacting electrons with the same ground-state density as the real system. The difference is absorbed into the exchange-correlation (XC) functional.

DFT Total Energy Decomposition E[ρ] = Tₛ[ρ] + V_ne[ρ] + J[ρ] + E_xc[ρ]
Kohn–Sham Single-Particle Equations [ −½∇² + V_eff(r) ] φᵢ(r) = εᵢ φᵢ(r)

🔄 The Self-Consistent Field (SCF) Procedure

Because V_eff depends on ρ and ρ depends on the orbitals which depend on V_eff, the Kohn–Sham equations must be solved iteratively — the Self-Consistent Field loop:

1

🧪 Initial Guess

Start with an initial electron density ρ₀ (usually from superposition of atomic densities)

2

⚡ Build V_eff

Construct effective potential V_eff(r) = V_ne + V_H[ρ] + V_xc[ρ] from current density

3

🔢 Solve KS Equations

Diagonalize the KS Hamiltonian to obtain orbitals φᵢ and orbital energies εᵢ

4

📊 Compute New Density

Build new density: ρ_new(r) = Σᵢ|φᵢ(r)|². Mix with previous density for stability

5

✅ Check Convergence

If |ρ_new − ρ_old| < threshold (e.g. 10⁻⁶ a.u.), convergence reached → compute final energy and properties. Otherwise return to step 2.

🪜 Exchange-Correlation Functionals — Jacob's Ladder

The quality of a DFT calculation depends almost entirely on the choice of exchange-correlation functional. John Perdew introduced the "Jacob's Ladder" metaphor: functionals climb from approximations toward the heaven of chemical accuracy, each rung including more information:

1

LDA — Local Density Approximation

E_xc depends only on ρ(r). Simple, fast. Overbinds molecules. Good for solids.

2

GGA — Generalized Gradient Approximation

E_xc depends on ρ(r) and ∇ρ(r). PBE is the standard. Better for molecules.

3

Meta-GGA

E_xc depends on ρ, ∇ρ, ∇²ρ, and τ (kinetic energy density). SCAN, M06-L.

4

Hybrid Functionals

Mixes exact HF exchange with DFT correlation. B3LYP, PBE0 — the workhorse of organic chemistry.

5

Double Hybrids

Also includes MP2-type correlation. B2PLYP — near CCSD accuracy but O(N⁵) cost.

FunctionalRungBest ForKnown Weaknesses
SVWN (LDA)LDASolids, uniform systems, teachingOverbinds molecules; poor for chemistry
PBEGGASolids, periodic DFT (VASP), fast screeningUnderbinds; poor dispersion
BLYPGGAOrganic molecules, historical benchmarkPoor for transition metals
B3LYPHybridOrganic chemistry, spectra, bond lengthsFails for dispersion, transition metals
M06-2XMeta-HybridMain group thermochemistry, kineticsNumerically noisy; grid-sensitive
ωB97X-DRange-SepCharge-transfer, excitation energiesMore expensive than B3LYP
PBE0HybridTransition metal chemistry, solidsNot specialized for organics
B2PLYPDouble HybridHigh-accuracy thermochemistryExpensive O(N⁵); needs large basis set
💡
Practical Recommendation

For most organic chemistry: B3LYP/6-31G* (geometry) → B3LYP/6-311+G** (energy/properties). Add Grimme's D3BJ dispersion correction for any system with non-covalent interactions. For transition metals: use PBE0 or M06-L. For excited states: use TDDFT with ωB97X-D.

🔀 The Dispersion Problem & DFT-D3

Standard DFT functionals dramatically underestimate London dispersion forces (van der Waals interactions) because these arise from long-range electron correlation that local/semi-local functionals cannot capture. This is catastrophic for drug-protein binding (heavily dispersion-driven), π–π stacking in aromatic systems, host-guest chemistry, and molecular crystals.

Solution: Grimme's DFT-D3 Dispersion Correction

Add pairwise corrections to the DFT energy. In Gaussian: add EmpiricalDispersion=GD3BJ to your functional keyword. In ORCA: add ! D3BJ to your input. Always use dispersion correction for molecular systems involving weak interactions.

🖼️
Fig. 1 — Electron density maps generated by DFT calculations reveal charge distribution, reactivity, and binding sites in molecular systems. Color scale: red = high density (lone pairs, bonds), blue = low density.

💻 Running DFT Calculations — Software Overview

Gaussian 16/09 Commercial

Most widely used QC package. Excellent documentation, all standard methods. Best for organic chemistry and academic research.

ORCA Free (Academic)

Excellent for transition metals, spectroscopy (EPR, Mössbauer), and advanced methods (DLPNO-CCSD(T)). Rapidly becoming the standard alternative.

VASP Commercial

Standard for periodic DFT — solids, surfaces, materials science. Uses plane-wave basis sets and PAW pseudopotentials.

Quantum ESPRESSO Free / Open Source

Free, open-source periodic DFT. Widely used in materials and condensed matter physics. Plane-wave, pseudopotential-based.

NWChem Free / Open Source

Broad method coverage including DFT, TDDFT, and plane-wave periodic calculations. Good for HPC clusters.

Psi4 Free / Open Source

Python-driven. Excellent for wavefunction methods and DFT benchmarking. Growing academic community.

🚀 How to Run a DFT Calculation

1

Draw / Prepare Your Molecule

Use ChemDraw, Avogadro, or GaussView to draw your molecule and export a starting geometry (XYZ or PDB format).

2

Write the Input File

Specify method (functional), basis set, charge, multiplicity, and job type. In Gaussian: #P B3LYP/6-31G* Opt

3

Run Geometry Optimization

Optimize to find the energy minimum. Check convergence (RMS gradient < threshold). Run frequency calculation to confirm no imaginary frequencies.

4

Single-Point Energy with Larger Basis

Calculate accurate energies at optimized geometry with a larger basis set: B3LYP/6-311+G(2d,2p)

5

Calculate Properties

Extract NMR shifts, IR frequencies, dipole moments, molecular orbitals, electrostatic potential maps, and HOMO/LUMO energies from the output file.

⚠️ Limitations of DFT

Self-Interaction Error

The Hartree term J[ρ] incorrectly includes the interaction of an electron with itself — partially corrected by adding HF exchange in hybrid functionals.

Dispersion Forces

Semi-local functionals fail to capture long-range van der Waals — use D3/D4 corrections for any system with non-covalent interactions.

Strongly Correlated Systems

DFT fails for systems with multiple near-degenerate configurations (bond breaking, some TM compounds, Mott insulators) — use DFT+U or multi-reference methods.

Charge-Transfer Excited States

Standard TDDFT fails for CT states — use range-separated hybrids (ωB97X-D) for excited-state calculations involving charge transfer.

Delocalization Error

Tendency to over-delocalize electrons — affects reaction barriers and radical systems. Mitigated by adding HF exchange.

References & Further Reading

  1. Hohenberg, P. & Kohn, W. (1964). "Inhomogeneous Electron Gas." Physical Review, 136(3B), B864.
  2. Kohn, W. & Sham, L. J. (1965). "Self-Consistent Equations Including Exchange and Correlation Effects." Physical Review, 140(4A), A1133.
  3. Koch, W. & Holthausen, M. C. (2001). A Chemist's Guide to Density Functional Theory (2nd ed.). Wiley-VCH.
  4. Cramer, C. J. (2004). Essentials of Computational Chemistry (2nd ed.). Wiley.
  5. Grimme, S. et al. (2010). "A consistent and accurate ab initio parametrization of DFT-D." J. Chem. Phys., 132, 154104.
  6. Burke, K. (2012). "Perspective on density functional theory." J. Chem. Phys., 136, 150901.

🎓 The Bottom Line: Density Functional Theory has democratized quantum chemistry. The combination of near-chemical accuracy, O(N³) scaling, and free/low-cost software has made DFT the go-to tool for electronic structure calculations across chemistry, biology, and materials science. Understanding its foundations equips you to use it intelligently and critically evaluate results. The field continues to evolve: machine-learned XC functionals (DM21, SCAN-ML) are approaching chemical accuracy with lower computational cost.

← Previous Article Next Article →