ChemServer Sign in

How to do a DFT calculation

Density functional theory from a SMILES string to trustworthy numbers: which functional and basis set to pick, why you always check frequencies, and how to read the output.

What DFT gives you

DFT calculates the electronic structure of a molecule. From it you get optimized geometries, relative energies of conformers and reactions, orbital energies such as the HOMO LUMO gap, partial charges, electrostatic potential maps and IR, UV Vis and NMR spectra. Popular programs are Gaussian, ORCA (free for academic use), Psi4 and PySCF (open source), Q-Chem and NWChem.

Step 1. Build a starting geometry

Step 2. Set charge and multiplicity

Getting these wrong is the most common reason a calculation fails or gives nonsense.

Step 3. Choose the level of theory

GoalA sensible choice
Geometries of organic moleculesB3LYP-D3(BJ)/def2-SVP or 6-31G(d), or the fast r2SCAN-3c
Reaction and conformer energiesωB97X-D or PBE0-D3(BJ) with def2-TZVP on those geometries
UV Vis (TD-DFT)CAM-B3LYP or ωB97X-D, especially for charge transfer states
AnionsAdd diffuse functions, for example 6-31+G(d,p) or aug-cc-pVDZ

Always include a dispersion correction such as D3(BJ); without it, stacking and other weak interactions are badly wrong. Use a solvent model (CPCM or SMD) when the property in solution matters.

Step 4. Optimize the geometry

The program moves the atoms until the forces vanish. Check that it converged and that the structure still looks chemically right.

Step 5. Run a frequency calculation

Step 6. Calculate the properties you need

Common mistakes

Do it on ChemServer

DFT on ChemServer sets up all of the above from a SMILES string or a structure file and returns the numbers, orbitals and spectra. It is available on request: email chris@chemserver.online with your molecules.

Explore your molecules first

Descriptors, 3D structures and docking are open to every free account.