Quantum chemistry / DFT calculations

DFT Calculations for Beginners

The first time you run DFT on a molecule, three things usually get in the way: how to write the input file, how to tell whether the optimized structure is actually correct, and which energy to use. This page uses an ethanol optimization plus frequency calculation as its main thread, and explains what each step does, why it is done, and what you should see when it is finished. Errors and pitfalls from older tutorials are collected in the troubleshooting section at the end.

Short answer

The usual approach to DFT on a molecule is to optimize the structure and check its frequencies at a cheaper level first, and then compute single-point energies at a higher level. Dispersion correction must be included; without it, B3LYP cannot even describe the binding of a benzene dimer. Academic users can use ORCA for free, and the input files on this page use ORCA as the example.

About this page

Tutorial
What this page solves
You have drawn the structure of a molecule and want to calculate its most stable shape and energy. But you are not sure how to write the input file or which output lines to check afterward.
Who it is for
Graduate students or researchers running molecular DFT with ORCA or Gaussian for the first time. You understand basic quantum chemistry concepts but have not yet run a complete optimization and frequency calculation on your own.
What you will have
After reading, you will have a runnable ethanol optimization-plus-frequency input file; a way to check whether a structure has converged and is a minimum; a method for reading the electronic energy and thermal correction from the output and computing the free energy; and a checklist of settings for the methods section of a paper.
Covers
  • Writing an ethanol optimization-plus-frequency input file for ORCA, with the Gaussian equivalent
  • How to choose the functional, basis set and dispersion correction, and the recommended level for each task
  • Judging whether an optimization has converged and whether the frequencies contain imaginary modes, and reading the free energy
  • Searching for a transition state and verifying it with IRC
  • Common errors, optimizations that do not converge, and imaginary frequencies (see the troubleshooting section)
Does not cover
  • Installing and compiling quantum chemistry programs; only run-related troubleshooting entries are included
  • Plane-wave calculations for periodic systems such as crystals and surfaces; the software section gives a brief overview
  • Molecular dynamics simulation (see the GROMACS protein-ligand guide)
  • The full analysis workflow in Multiwfn; this page lists only the common entry points

Main steps

Input file

Why this stepThe input file tells the program which molecule to calculate, which method to use and which task to run. This example uses ethanol for one geometry optimization plus frequency calculation. Ethanol has nine atoms, which makes it a good first exercise.

ORCA input is case-insensitive except for file names. Text after # is a comment that the program ignores, so you can read each line alongside the explanation below.

If the charge or multiplicity does not match the number of electrons, the program will report an error. See troubleshooting: multiplicity does not match the number of electrons.

ethanol.inp (ORCA 6.1)orca
! B3LYP D3BJ def2-SVP Opt Freq      # method, dispersion, basis, task; case-insensitive
%pal nprocs 8 end                    # 8 MPI processes
%maxcore 3000                        # 3000 MB per process, about 24 GB in total
* xyz 0 1                            # coordinate format, charge, spin multiplicity
  C   -1.1855   -0.2259    0.0000
  C    0.1586    0.4880    0.0000
  O    1.2075   -0.4708    0.0000
  H   -1.2848   -0.8641    0.8823
  H   -1.2848   -0.8641   -0.8823
  H   -2.0068    0.4987    0.0000
  H    0.2384    1.1393    0.8822
  H    0.2384    1.1393   -0.8822
  H    2.0491    0.0005    0.0000
*
  1. 01

    ! keyword line

    Starts with !. It specifies the method, dispersion, basis set and task, and can span several lines, each starting with !. Common tasks are Opt (geometry optimization), Freq (analytical frequencies), NumFreq (numerical frequencies), OptTS (transition-state optimization), IRC, TightOpt and TightSCF. This example uses ! B3LYP D3BJ def2-SVP Opt Freq. From ORCA 5.0 onward, hybrid functionals enable RIJCOSX by default (ORCA's acceleration method), and the auxiliary basis set def2/J is selected automatically, so you do not need to write it. Optimization tasks use TightSCF automatically.

  2. 02

    %pal nprocs N end

    The number of parallel processes; this example uses 8. The equivalent form is PAL8 on the keyword line. For parallel runs, call orca with its full path; do not wrap it in mpirun.

  3. 03

    %maxcore M

    The memory available to each process, in MB; the default is 4096. The total memory is about M × nprocs. This example uses M = 3000, which means 3000 MB per process and about 24 GB for eight processes. ORCA often uses more than M in practice. For how to choose the value, see Choices: software and memory.

  4. 04

    * xyz charge multiplicity

    The first line gives the coordinate format, the total charge and the spin multiplicity (2S+1). End the coordinates with a separate line containing *. You can also write * xyzfile 0 1 file.xyz to read the coordinates from a file. A closed-shell neutral molecule is 0 1; a radical is 0 2. If the number of electrons is even, the multiplicity must be odd; if it is odd, the multiplicity must be even.

Run and convergence

Why this stepA normal program exit does not mean that the geometry optimization has converged. Convergence means that the energy change, the forces and the displacements have all dropped below the program's thresholds, and the output should contain the matching convergence marker.

Run the program by calling orca with its full path and redirect the output to a .out file. The commands below also show how to grep for the convergence marker, the final energy and imaginary frequencies.

The meaning of the thresholds and their default values for each program are given in the explanation section: convergence criteria. If the output has no convergence marker, see troubleshooting: optimization ran out of steps.

Running and checking the ethanol calculationbash
# Parallel runs must call orca by its full path; do not start it with mpirun
/opt/orca_6_1_1/orca ethanol.inp > ethanol.out

# Check real convergence (ORCA TERMINATED NORMALLY at the end is not enough)
grep "THE OPTIMIZATION HAS CONVERGED" ethanol.out
grep "FINAL SINGLE POINT ENERGY" ethanol.out | tail -1
grep "imaginary mode" ethanol.out          # no output means no imaginary frequency

Frequencies

Why this stepA frequency calculation gives the vibrational modes of the molecule. An imaginary frequency is a vibration shown as a negative value, and it means the structure is not a stable minimum.

Frequencies must be calculated at exactly the same level as the optimization: the same functional, basis set, dispersion, solvent model and integration grid. If the level differs, the frequencies are meaningless and may show spurious imaginary modes. The simplest approach is to put Opt and Freq in the same task.

The six zero frequencies from translation and rotation (five for linear molecules) are projected out, and they do not indicate the quality of the Hessian. In a measured run on this page, the lowest frequency of ethanol was 259.8 cm⁻¹ with no imaginary frequency; the test conditions are given in the reference section.

If imaginary frequencies appear, handle them according to their number and size. See Choices: what to do when imaginary frequencies appear.

  • In ORCA, imaginary modes are labeled ***imaginary mode***. If this line does not appear in the output, there is no imaginary frequency.

Thermal correction

Why this stepThe electronic energy describes the energy of the atoms at rest. A thermal correction is a temperature-dependent correction computed from the frequency calculation, including contributions from the zero-point energy, enthalpy and entropy. Adding it to the electronic energy gives a free energy (G) that can be compared.

Thermal corrections come from the frequency calculation and must be read from its output. When you use a higher-level single-point energy, add the correction from the lower-level frequencies to the higher-level electronic energy: G = higher-level electronic energy + G correction from the lower-level frequencies.

Absolute energies from different functionals cannot be compared with each other; only energy differences at the same level are meaningful. The reason is given in the explanation section.

QuantityORCA output lineGaussian output lineUse
Electronic energyFINAL SINGLE POINT ENERGYSCF Done: E(RB3LYP) =Only differences at the same level are comparable
Zero-point energy (ZPE)Zero point energyZero-point correction=E(0 K) = E + ZPE
Enthalpy correctionTotal thermal correction + kB·T (the output gives Total Enthalpy directly)Thermal correction to Enthalpy=H = E + enthalpy correction
Free energy correctionG-E(el)Thermal correction to Gibbs Free Energy=G = E(high-level single point) + G correction (low-level frequencies)
Free energyFinal Gibbs free energySum of electronic and thermal Free Energies=Use directly only when single point and frequencies are at the same level

Transition state

Why this stepA transition state is the highest-energy point along a reaction path. This section uses four steps to find it and to verify which reactant and product it connects. The example on this page is the isomerization of HCN to HNC.

Transition-state optimization needs a much better initial guess and better Hessian quality than minimum optimization. The Hessian is the matrix of second derivatives of the energy with respect to the atomic coordinates. An exact Hessian is computed directly rather than replaced by an approximation.

The standard four-step workflow is: scan to get an initial guess, optimize the transition state with an exact Hessian, confirm exactly one imaginary frequency with a frequency calculation, and use IRC to confirm that the correct reactant and product are connected.

Three ORCA 6.1 inputsorca
# Step 1: relaxed scan for a TS guess (ORCA counts atoms from 0)
! B3LYP D3BJ def2-SVP Opt
%pal nprocs 8 end
%maxcore 3000
%geom
  Scan B 0 5 = 3.00, 1.50, 16 end   # distance between atoms 0 and 5 from 3.00 to 1.50 Angstrom, 16 points
end
* xyzfile 0 1 reactant.xyz

# Step 2: take the highest-energy scan point, compute an exact Hessian, optimize the TS, then frequencies
! B3LYP D3BJ def2-SVP OptTS Freq
%pal nprocs 8 end
%maxcore 3000
%geom
  Calc_Hess true      # exact Hessian at the first step
  Recalc_Hess 5       # recompute every 5 steps for difficult cases
end
* xyzfile 0 1 tsguess.xyz

# Step 3: IRC to check which reactant and product the TS connects
! B3LYP D3BJ def2-SVP IRC
%pal nprocs 8 end
%maxcore 3000
%irc
  MaxIter 60                     # default is 20, often too few to reach the minima
  InitHess read
  Hess_Filename "ts.hess"        # reuse the Hessian from step 2
end
* xyzfile 0 1 ts.xyz
  1. 01

    Scan for a guess

    Run a relaxed scan along a bond-forming or bond-breaking distance (at each point, the other coordinates are re-optimized) and take the highest-energy point. ORCA can also use ScanTS to scan and optimize the transition state in one step. ORCA atom numbering starts from 0; in the Scan line below, 0 and 5 follow this numbering.

  2. 02

    OptTS needs an exact Hessian

    In ORCA, write Calc_Hess true or read an existing .hess file; in Gaussian, write opt(ts,calcfc,noeigentest). With the default approximate Hessian, transition-state optimization often goes astray.

  3. 03

    Confirm with frequencies

    There should be exactly one imaginary frequency. Animate that vibration in GaussView, Chemcraft or orca_pltvib and confirm that the atomic motion corresponds to the target reaction. The transition state, the IRC and the minimum optimizations should use the same level.

  4. 04

    Verify with IRC

    IRC starts from the transition state and follows the reaction path toward both sides. ORCA runs both directions by default (Direction both) and writes _IRC_F.xyz, _IRC_B.xyz and _IRC_Full_trj.xyz. The default MaxIter is 20, which often does not reach a minimum. The IRC endpoints are not strict minima, so optimize them again and then compare them with the reactant and the product.

Choose by your situation

Software and memory

For DFT on molecular systems, academic users usually choose ORCA or Gaussian first. Use xtb/CREST for conformer searches and pre-optimization, and switch to plane-wave or mixed-basis programs for periodic systems such as crystals and surfaces.

When you search for “orca”, only about one tenth of the Bing results point to a quantum chemistry program; the rest are mostly about orcas (killer whales) and software with the same name. To download ORCA, go directly to orcaforum.kofo.mpg.de or the FACCTs website.

For %maxcore, use about 75% of physical memory and divide by the number of processes. Sobereva gives this example: on a 32 GB, 8-core machine, about 30 GB remain after the system's own use, so 30000 ÷ 8 = 3750. In practice he uses 3000, because ORCA processes often use more than maxcore. The ORCA manual also recommends a total of no more than 75–80% of physical memory.

Gaussian's %mem is the total memory for the whole job, with a default of 800 MB. If memory is insufficient, set it to about 75% of physical memory.

ProgramHow to get itSuitable tasksLimits to know
ORCA 6.1 (current 6.1.1, Dec 2025)Free for academic users after registering on the ORCA forum; the Linux build needs a matching OpenMPI (4.1.8 for 6.1.0)Molecular DFT, TDDFT, DLPNO-CCSD(T), double hybrids; RIJCOSX makes hybrid functionals much faster than in GaussianParallel runs need the full path; %maxcore is memory per core; atoms are numbered from 0
Gaussian 16Commercial; bought by the group or universityMolecular DFT, TS and IRC, solvent models; GaussView is the most convenient for building and viewing vibrationsNo ωB97M-V; no RI acceleration for hybrids; %mem is the total memory of the job
xtb 6.7 / CREST 3.0Open source, on conda-forgeGFN2-xTB pre-optimization, conformer search, screening of large systemsEnergies are not accurate enough for the paper; re-rank conformers with DFT
Psi4 1.11 / PySCF 2.14Open source, on conda-forgePractising the full workflow without ORCA or Gaussian; scripted batch jobsSlower than ORCA for large systems; Psi4 computes frequencies of most dispersion-corrected functionals by finite differences
VASP, Quantum ESPRESSO, CP2KVASP commercial; QE and CP2K open sourcePeriodic systems: crystals, surfaces, adsorption, catalyst modelsPlane-wave basis sets differ from the Gaussian basis sets on this page; for near-spherical clusters of hundreds of atoms CP2K is much faster than ORCA

Functional and basis set

The usual practice is to use a cheaper level for optimization and frequencies, and a higher level for single-point energies. Geometries and frequencies are not very sensitive to the basis set, whereas energies are sensitive to both the basis set and the functional.

B3LYP/6-31G* is no longer recommended for energies. The reason is given in the explanation section: why B3LYP/6-31G* is no longer recommended.

Dispersion correction must be included. Van der Waals attraction is the weak attraction between molecules.

Ordinary functionals such as B3LYP and PBE0 cannot describe it, and dispersion correction adds it back. The 2022 best-practice guide by Grimme and coworkers states that dispersion correction is “indispensable in any DFT treatment”. Adding D3(BJ) hardly increases the cost.

ωB97M-V in ORCA has analytical gradients but no analytical Hessian, so its frequency calculations are expensive; it is suited to single-point energies only. M06-2X is sensitive to the integration grid, and optimizations with it often show small imaginary frequencies and convergence difficulties.

The analytical Hessian in ORCA is supported only for SCF methods, so double-hybrid functionals and RI-JK must use NumFreq. The error of numerical frequencies can reach 50 cm⁻¹.

Flexible molecules (with more than two or three rotatable single bonds) need a conformer search first; otherwise the optimization only finds the local minimum closest to the starting structure. The 2022 guide by Grimme et al. suggests an automated CREST search, followed by DFT re-optimization and ranking of the conformers within an energy window. The xtb relative energies are used only for screening.

For excited states, note that ORCA's TD-DFT uses the Tamm–Dancoff approximation (TDA) by default, while Gaussian's TD keyword defaults to full TDDFT. In ORCA, the number of excited states is set with %tddft NRoots 10 end; in Gaussian, use TD(NStates=10). If the two results differ, see troubleshooting: TDA and full TDDFT disagree.

TaskRecommended level (ORCA syntax)Basis for the recommendation
Organic molecule optimization + frequenciesB3LYP D3BJ def2-SVP; or r2SCAN-3cSobereva recommends B3LYP-D3(BJ) for optimization and vibrational analysis; Grimme 2022 recommends r2SCAN-3c for structures
Reaction energies, barriers, conformer energy differences (single point)wB97M-V def2-TZVP; or wB97X-D3 / M06-2X def2-TZVPSobereva 272: ωB97M-V first, then M06-2X for organic thermochemistry; Grimme 2022: range-separated hybrids for barriers
High-accuracy single point (small systems)revDSD-PBEP86-D4 / PWPB95-D4 def2-TZVPP, or DLPNO-CCSD(T)Double hybrids are one tier above ordinary functionals; with RI in ORCA the cost is acceptable
Noncovalent interactions (π stacking, hydrogen bonds)Dispersion correction is mandatory; energies at ma-def2-TZVP level with counterpoiseSobereva 336: the more dispersion-dominated the system, the more it needs diffuse functions and BSSE correction
Excited states (TDDFT)PBE0 for local excitations; CAM-B3LYP or ωB97X-D for charge transfer and large conjugated systemsSobereva 272, 265
Transition-metal complexesTPSSh, PBE0-D3(BJ), r2SCAN-3c; avoid M06-2XM06-2X was parameterized for main-group elements and performs badly for transition metals
Pre-screening of large systems, initial conformer rankingGFN2-xTB (xtb/CREST)Grimme 2022 recommends automated conformer search before DFT
D3BJ is written D3BJ or D3 in ORCA and EmpiricalDispersion=GD3BJ in Gaussian. ωB97M-V is not available in Gaussian 16.

Solvent models

Reactions in solution need a solvent model, and the choice of solvent model affects whether the optimization and frequency calculations converge smoothly.

Use IEFPCM for optimization and frequencies, and SMD for energies. Sobereva notes in several blog posts that the numerical noise of SMD makes optimization hard to converge and can produce spurious imaginary frequencies. The solvent model for optimization and for single-point energies does not need to be the same.

The free energy of a reaction in solution needs a standard-state correction. The gas-phase calculation corresponds to 1 atm, whereas the standard state in solution is 1 mol/L; at 298.15 K, add 1.89 kcal/mol to each species (Sobereva 327). For a reaction such as A + B → C, omitting this term introduces an error of 1.89 kcal/mol in ΔG.

Gaussian

The Gaussian 16 input file has a different structure from ORCA. The same ethanol example is shown below with the Gaussian equivalents.

ethanol.gjf (Gaussian 16; the file must end with a blank line)text
%nprocshared=8
%mem=24GB
%chk=ethanol.chk
# opt freq B3LYP/def2SVP EmpiricalDispersion=GD3BJ

ethanol opt freq

0 1
C   -1.1855   -0.2259    0.0000
C    0.1586    0.4880    0.0000
O    1.2075   -0.4708    0.0000
H   -1.2848   -0.8641    0.8823
H   -1.2848   -0.8641   -0.8823
H   -2.0068    0.4987    0.0000
H    0.2384    1.1393    0.8822
H    0.2384    1.1393   -0.8822
H    2.0491    0.0005    0.0000
  1. 01

    %nprocshared

    Corresponds to %pal in ORCA. This example uses 8 processes.

  2. 02

    %mem

    The total memory for the whole job (default 800 MB). Its meaning differs from ORCA's per-process maxcore. This example uses 24 GB.

  3. 03

    # route line

    Corresponds to the ! line in ORCA. This example is written as opt freq B3LYP/def2SVP EmpiricalDispersion=GD3BJ. Basis set names have no hyphen (def2SVP), and dispersion is written as EmpiricalDispersion=GD3BJ.

  4. 04

    Blank lines

    A blank line is required after the title line and after the coordinates, and the file must end with one blank line.

  • The opt part shows four YES entries and Stationary point found; the file ends with Normal termination.
  • In the frequency part, a negative value in the Frequencies line indicates an imaginary frequency.
  • ωB97M-V is not available in Gaussian 16; see the table in the functional and basis set section.
  • Gaussian TS optimization uses opt(ts,calcfc,noeigentest). A guess from QST2 interpolation is usually worse than a manually built structure.

Imaginary frequencies

First check the number and size of the imaginary frequencies, since they determine how to handle them. A minimum (reactant, product, intermediate) should have no imaginary frequency. A transition state must have exactly one, and its vibration must correspond to the reaction coordinate under study.

Adjusting the structure along the imaginary mode is effective mainly for imaginary frequencies caused by symmetry. Sobereva notes that the common advice “when you see an imaginary frequency, push the structure along it” is not advisable. Small imaginary frequencies should first be addressed through convergence accuracy, the integration grid and Hessian quality.

A small imaginary frequency that cannot be removed has little effect on the electronic energy and zero-point energy, but it does affect entropy and the free energy. See the explanation: how small imaginary frequencies affect the free energy. State how it was handled in the paper.

An example of a symmetry-induced imaginary frequency is in the reference section. An eclipsed ethane structure optimized with its symmetry kept shows an imaginary frequency at 308.3i cm⁻¹. Changing one H–C–C–H dihedral to 20° to break the symmetry and re-optimizing gives a staggered conformer with no imaginary frequency (lowest frequency 317.9 cm⁻¹), 2.93 kcal/mol lower in energy; this is the torsional barrier of ethane.

SituationMeaningWhat to do
Minimum with 1 large imaginary frequency (> 100 cm⁻¹)Not a minimum, often due to excessive symmetryDisplace the structure along the mode in GaussView (Manual Displacement) and re-optimize
Minimum with a small imaginary frequency (< 50 cm⁻¹, often methyl rotation or intermolecular motion)Optimization not tight enough or integration grid too coarseTry opt=tight, a finer grid, calcfc/recalc in turn; recompute frequencies at the same level
TS with 1 imaginary frequency that is not the reaction coordinateAnother saddle point (for example methyl rotation)Build a new guess; scan the key coordinate
TS with 2 or more imaginary frequenciesHigher-order saddle point or extra small imaginary modesTreat the extra modes as in the two rows above
Optimization and frequencies at different levelsBasic mistake; inconsistent potential energy surfacesRedo the frequencies at the same level

Hand off to an agent

You can describe the calculation in one sentence and let Scientify's science agent run it in a cloud computer.

Example instruction: “Here are xyz files of the reactant and product. Run a CREST conformer search first, optimize the lowest conformer at B3LYP-D3(BJ)/def2-SVP with frequencies; scan the C1–O5 distance for a TS guess, optimize the TS with OptTS and an exact Hessian, confirm a single imaginary frequency and run an IRC; finally compute ωB97M-V/def2-TZVP single points and report ΔG‡ and ΔG including thermal corrections and the 1 M standard-state correction.”

What the agent does: installs the needed programs in the project (xtb, CREST, open-source quantum chemistry codes; ORCA can run from an installer you provide or on your own server over SSH), writes the inputs, checks the convergence lines and imaginary frequencies at every step, works through non-convergence in the order on this page and logs each change; compiles the energy table, converts units, and reviews the results adversarially, for example checking the direction of the imaginary mode and whether the IRC end points match the reactant and product. The task keeps running after you shut down your computer.

Outputs: all inputs, outputs and logs, xyz files of the optimized structures, a summary table of energies and thermal corrections, scan curves and IRC energy profiles. The project keeps code and parameters so the work can be reproduced.

You still need to check: the chemical plausibility of the mechanism and guess structures, charge and multiplicity, whether the functional and basis set suit your system, the choice of solvent model, and whether the TS imaginary mode corresponds to the reaction you study.

Concepts and judgment

Convergence criteria

Whether an optimization has finished is judged by three groups of thresholds: energy, forces and displacement. The table gives the default values for each program in atomic units, together with ORCA's TightOpt values.

The frequency calculation at the end of a Gaussian run checks convergence once more. The optimization uses an approximate Hessian and the frequency calculation uses an exact one, so the two judgments can disagree; see troubleshooting: NO after the frequency step. If a displacement exceeds its threshold by less than a factor of 2 and there is no imaginary frequency, it is generally acceptable (Sobereva 278).

Criterion (atomic units)ORCA default OptORCA TightOptGaussian default
Energy change TolE5e-61e-6not used
Maximum gradient / force3e-41e-40.00045
RMS gradient / force1e-43e-50.00030
Maximum displacement4e-31e-30.0018
RMS displacement2e-36e-40.0012
In Gaussian, when the forces are below 1/100 of the threshold, the optimization counts as converged even if the displacements are not (Sobereva 164). opt=loose corresponds to a maximum step of 0.01 and an RMS force of 0.0017.

Principle

There are two reasons B3LYP/6-31G* is considered outdated: the lack of dispersion leads to excessive repulsion, and the small basis set causes a serious basis set superposition error.

The first reason is “excessive repulsion”. Kruse, Goerigk and Grimme discussed the error cancellation of this combination in thermochemical calculations in J. Org.

Chem. in 2012. Bursch et al. stated in the 2022 best-practice guide in Angew. Chem. that improved methods have made B3LYP/6-31G* calculations “outdated”.

The second reason is the basis set superposition error (BSSE). In a dimer, each monomer borrows the basis functions of the other, which creates a spurious stabilization; the smaller the basis set, the larger the error. When calculating binding energies with 2-zeta basis sets, use the counterpoise correction, which computes each monomer in the full dimer basis set to cancel this part of the error.

For bond energies, Sobereva considers the counterpoise correction superfluous or even harmful. Sobereva lists 6-31G* as the “minimum acceptable level” among 2-zeta basis sets, and notes that “minimum acceptable” does not mean it can be used directly in a publication.

Energy and entropy

The absolute energy depends on the functional and the basis set, so energies from different levels cannot be subtracted directly.

In a measured run on this page, the same ethanol structure gives −155.11617 Eh with B3LYP-D3(BJ)/def2-TZVP and −155.02666 Eh with M06-2X/def2-TZVP, a difference of 56 kcal/mol. Only energy differences at the same level are meaningful.

Entropy also depends on the program. ORCA uses Grimme's quasi-RRHO by default for entropy (reference frequency QRRHORefFreq 100 cm⁻¹), while Gaussian uses the harmonic-oscillator RRHO by default. The G values for the same structure can differ by a few tenths of a kcal/mol, or more than 1 kcal/mol, between the two programs, and the difference is larger for flexible molecules.

To match Gaussian results, write QuasiRRHO false in the %freq block in ORCA, or recompute with Shermo to unify the treatment.

Small imaginary frequencies

Small imaginary frequencies (for example, below 50 cm⁻¹) have little effect on the electronic energy and zero-point energy, but a larger effect on entropy and the free energy.

For example, a 30 cm⁻¹ mode contributes only 0.18 kJ/mol to the zero-point energy. Its effect on entropy and the free energy is larger: if a mode of about 20 cm⁻¹ is treated as an imaginary frequency and ignored, the free-energy error can reach about 5 kJ/mol (Sobereva 699).

Grimme et al. (2022) suggest treating small imaginary frequencies below 50–100 cm⁻¹ as real and using mRRHO to compute the entropy. Sobereva considers this approach not systematically tested and does not recommend it lightly. Either approach should be stated in the paper.

Reference and appendix

Reference

Unit conversions (CODATA 2018)text
1 Eh (Hartree) = 627.5095 kcal/mol = 2625.4996 kJ/mol = 27.2114 eV = 219474.63 cm⁻¹
1 kcal/mol = 4.184 kJ/mol
1 bohr = 0.529177 Å
Example: ΔE = −0.0046731 Eh → −0.0046731 × 627.5095 = −2.93 kcal/mol

Reference

These data are the basis for the functional and basis set choice, and they show the effect of dispersion and counterpoise correction.

Measured on this page: S22 dimer interaction energies (kcal/mol; reference is S22B CCSD(T)/CBS)text
Level                   water dimer noCP / CP   benzene dimer (parallel-displaced) noCP / CP
B3LYP/6-31G*            -7.32 / -5.70           +2.39 / +4.58
B3LYP/def2-SVP          -8.11 / -4.81           +2.52 / +4.03
B3LYP-D3(BJ)/def2-SVP   -8.75 / -5.45           -4.18 / -2.67
B3LYP/def2-TZVP         -5.53 / -4.91           +3.43 / +3.76
B3LYP-D3(BJ)/def2-TZVP  -6.17 / -5.55           -3.27 / -2.94
Reference               -4.99                   -2.65
noCP: no counterpoise correction; CP: counterpoise-corrected. Negative values mean binding.

Reference

The ORCA parts were checked against the ORCA 6.1 manual and tutorials, the Gaussian parts against the G16 documentation, and the functional and basis set recommendations come from the 2022 best-practice guide by the Grimme group and from Sobereva's blog posts. Optimization, frequencies, the transition state and IRC were actually run on a local machine with Psi4 1.11 and xtb 6.7.1. Test conditions: Psi4 1.11 and xtb 6.7.1 (both from conda-forge), an Apple Silicon laptop with 8 cores and 16 GB of memory, 8 threads.

Psi4 computes the B3LYP-D3(BJ) frequencies by finite differences of gradients, so the ethanol frequency calculation took 13 times as long as its optimization. ORCA and Gaussian have analytical Hessians for B3LYP, so the ratio of frequency to optimization time is much smaller.

Harmonic frequencies are generally higher than experimental fundamentals. The three harmonic frequencies of water in the measured run on this page are 1639, 3792 and 3887 cm⁻¹, with a zero-point energy of 13.32 kcal/mol. When comparing with experimental infrared spectra, multiply by a frequency scaling factor looked up for the functional and basis set used (Sobereva 221).

ethanol_psi4.py: B3LYP-D3(BJ)/def2-SVP optimization + frequencies + higher-level single pointpython
# conda env: micromamba create -n qc -c conda-forge python=3.11 psi4 dftd3-python dftd4-python
import psi4
psi4.set_num_threads(8)
psi4.set_memory('10 GB')                       # Psi4 memory is the total for the job
psi4.core.set_output_file('ethanol.out', False)
mol = psi4.geometry("""
0 1
C   -1.1855   -0.2259    0.0000
C    0.1586    0.4880    0.0000
O    1.2075   -0.4708    0.0000
H   -1.2848   -0.8641    0.8823
H   -1.2848   -0.8641   -0.8823
H   -2.0068    0.4987    0.0000
H    0.2384    1.1393    0.8822
H    0.2384    1.1393   -0.8822
H    2.0491    0.0005    0.0000
""")
e_opt = psi4.optimize('b3lyp-d3bj/def2-svp')            # geometry optimization
e, wfn = psi4.frequency('b3lyp-d3bj/def2-svp', return_wfn=True)  # frequencies and thermochemistry
print('freqs (cm-1):', wfn.frequencies().to_array())    # negative values are imaginary
print('G correction (Eh):', psi4.variable('GIBBS FREE ENERGY CORRECTION'))
e_sp = psi4.energy('wb97x-d/def2-tzvp')                 # higher-level single point
xtb and CRESTbash
# Install: micromamba create -n xtb -c conda-forge xtb crest
export OMP_NUM_THREADS=8 OMP_STACKSIZE=1G
xtb ethanol.xyz --ohess --gfn 2 > xtb.out      # optimization + frequencies, writes xtbopt.xyz
crest ibuprofen.xyz --gfn2 -T 8 > crest.out    # conformer search, writes crest_conformers.xyz and crest_best.xyz
System and taskMeasured timeResult
Water: optimization / frequencies / def2-TZVP single point25.7 s / 8.6 s / 0.6 sE = −76.35889972 Eh; ZPE 13.32 kcal/mol; G correction 0.00357 Eh
Ethanol: optimization / frequencies8.2 s / 104.8 sE = −154.93049253 Eh; no imaginary frequency
Ethanol: def2-TZVP single points (B3LYP-D3(BJ) / ωB97X-D / M06-2X)2.6 s / 3.1 s / 6.4 s−155.11617 / −155.05547 / −155.02666 Eh
Ethane: eclipsed (symmetry kept) → re-optimized after perturbation3.9 + 28.7 s → 34.3 + 51.3 s308.3i cm⁻¹ → no imaginary frequency; torsional barrier 2.93 kcal/mol
HCN → HNC: OptTS / frequencies / IRC both directions5.8 s / 7.4 s / 35 s + 29 s1 imaginary frequency, 1117.8i cm⁻¹; barrier 47.84 kcal/mol
S22 benzene dimer interaction energy (5 levels, with CP)56–205 s per levelall positive without dispersion; B3LYP-D3(BJ)/def2-TZVP with CP gives −2.94 kcal/mol
xtb GFN2: ethanol optimization + analytic Hessian (--ohess)0.05 sno imaginary frequency; writes xtbopt.xyz and G(RRHO)

Reference

The data below come from the measured HCN isomerization and serve as a reference for the four steps in the main section.

Reference

Multiwfn analyses wavefunction files. Gaussian's formchk converts .chk to .fchk; ORCA's orca_2mkl name -molden writes .molden.input; Psi4 can write .fchk directly.

Basis sets with diffuse functions make basis-function-based analyses (Mulliken, Mayer bond order, orbital composition) meaningless; real-space analyses such as electron density, ELF and electrostatic potential need only 6-31G* to def2-TZVP (Sobereva 336).

ORCA: generate a molden file that Multiwfn can readbash
# Write a molden file that Multiwfn can read
/opt/orca_6_1_1/orca_2mkl ethanol -molden
AnalysisMultiwfn entryNotes
View the structure and orbitals (HOMO/LUMO)Main function 0Pick the orbital number in the GUI to see isosurfaces
Atomic charges (ADCH, CM5, RESP, etc.)Main function 7Needs a file with basis-function information (fchk, molden)
Electrostatic potential surface analysisMain function 12ESP extrema on the molecular surface, area distribution
Noncovalent interaction visualization (RDG/NCI, IGMH)Main function 20Render with VMD
Hole–electron analysis of excited statesMain function 18Reads TDDFT output
Plot IR, Raman, UV-Vis spectraMain function 11Reads frequency or TDDFT output
Generate ORCA input filesType oi in the main menu (same as 100 → 2 → 12)Choose task and level to get an .inp with suitable keywords, then edit nprocs and maxcore
Multiwfn 3.8 was released on 2026-01-07; later versions are named by date (for example 2026.1.12). Papers should cite both original articles, J. Comput. Chem. 2012 and J. Chem. Phys. 2024.

Community practice

The items below come from the Computational Chemistry Commune (keinsci), Sobereva's blog and CSDN. Only items with concrete parameters or error messages that agree with the official manuals or the runs on this page are included.

Use recalc and maxstep when the TS cannot be found

Keinsci user qingmang (Feb 2025) wrote that when the imaginary mode of a TS or intermediate turns into methyl rotation, opt(recalc=5,maxstep=3) separates closely spaced saddle points and minima. Sobereva's article on helping geometry optimizations converge gives the same combination (recalc=3~5, maxstep=3~5 with notrust); the two reached it independently.

Leave 25% headroom for maxcore

In his note on generating ORCA inputs with Multiwfn, Sobereva gives the example: 32 GB and 8 cores leave about 30 GB, 30000/8 = 3750 MB, but ORCA processes often exceed maxcore, so use 3000. The ORCA 6.1 manual and memory tutorial give the same 75–80% rule.

ORCA 6.1.0 needs OpenMPI 4.1.8

CSDN author qq_52487425 (June 2025) recorded while installing ORCA 6.1.0 on Ubuntu that openmpi418 in the archive name means OpenMPI 4.1.8 is required, and that gfortran must be installed before building OpenMPI or ORCA cannot run in parallel. Sobereva's installation article gives the same rule for ORCA 6.0.0 / OpenMPI 4.1.6.

Do not use SMD for optimization and frequencies

Sobereva repeats in three posts that numerical noise in the SMD solvent model makes optimizations hard to converge and produces spurious imaginary frequencies; use IEFPCM for optimization and frequencies and SMD for the single-point energy. The two steps do not need the same solvent model.

Do not follow APFD from Exploring Chemistry

Sobereva notes that the third edition of Gaussian's official textbook uses APFD almost throughout, although APFD is mediocre in functional benchmarks and rarely used in the literature, which makes it hard to justify to reviewers. Beginners choosing functionals from that book should keep this in mind.

Writing a paper

Reviewers and readers need the following to reproduce the calculations; missing any of them may prompt a request for more information.

  • Programs and versions: ORCA 6.1.1, Gaussian 16 Rev. C.02, xtb 6.7.1, CREST 3.0.2, Multiwfn version date
  • Optimization and frequency level: functional, dispersion correction (D3(BJ) or D4), basis set, and whether RIJCOSX was used
  • Single-point level and how the final energy was combined (E single point + G correction)
  • Solvent model and solvent, and whether optimization and single point used different models
  • Thermochemistry settings: temperature, pressure, RRHO or quasi-RRHO, standard-state correction, frequency scaling factor
  • Conformer search method (CREST, energy window)
  • How transition states were confirmed: imaginary frequency value, IRC
  • Treatment of imaginary frequencies: whether small imaginary modes remain and how they were handled
  • Citations: functional, dispersion correction, basis set, program papers; Multiwfn requires both papers

Troubleshooting by error message or symptom

Each entry is titled with the exact error message or the visible symptom, and the cause and fix are kept together. Entries are roughly ordered from most to least common. The order is a judgment call and was not counted.

SCF NOT CONVERGED AFTER … CYCLES (ORCA)

Cause: The SCF did not converge within the limit (125 cycles by default). ORCA does not compute properties or numerical frequencies on an unconverged wavefunction. Raising the iteration limit almost never fixes this. If the SCF is very hard to converge, check the structure first: atoms too close together, missing hydrogens, an unsaturated truncation in a cluster model, or a transition-metal multiplicity that is not the ground state all make SCF convergence difficult.

Fix: Add SlowConv or VerySlowConv. From ORCA 5 onward, AutoTRAH is enabled automatically. Use an initial guess from a smaller basis set, or from an orbital converged with BP86 (MORead).

L502 Convergence failure -- run terminated.; from G16 B.01 onward only Convergence criterion not met is printed

Cause: The SCF did not converge. From G16 B.01 onward, an unconverged SCF only prints a warning and does not stop the calculation, so you must check it yourself. An SCF failure at one step during an optimization also stops the optimization. The default Gaussian limit is 128 cycles; if the SCF does not converge within that limit, continuing usually does not help (Sobereva 61). Raising scf=maxcyc=500 almost never fixes non-convergence.

Fix: First check the structure, charge and multiplicity. Then try scf=vshift=300~500, an initial guess from a smaller basis set or from another functional's wavefunction (guess=read), and put scf=xqc last.

Not enough memory available! Please increase MaxCore to more than: … MB

Cause: %maxcore is lower than the memory this module requires.

Fix: Increase maxcore, and keep maxcore × nprocs within 75–80% of physical memory. For how to choose the value, see Choices: software and memory.

galloc: could not allocate memory.

Cause: %mem is larger than the memory available on the machine.

Fix: Set %mem to about 75% of physical memory.

The optimization gives no error, but the energy and forces oscillate near the minimum and never converge

Cause: Non-convergence is mostly caused by oscillation around the minimum. If the energy and forces are still decreasing overall, the step count is simply too low.

Fix: Work through these steps. (1) Animate the trajectory in GaussView or Chemcraft and look at the energy and force curves. (2) If they are still decreasing, add steps: Gaussian uses opt=maxcycles=N, and ORCA uses MaxIter N in %geom; restart from the last structure. If they are oscillating, adding steps does not help. (3) Rule out SCF problems; see the SCF entries. (4) Improve the integration grid: this is most effective for Minnesota functionals such as M06-2X. G16 already uses int=ultrafine by default; ORCA 6 uses DefGrid2 by default, and DefGrid3 can be set. (5) Use an exact Hessian: in Gaussian, opt=calcfc (computed only at the first step), opt=recalc=3~5 (G16, recalculated every 3–5 steps) or opt=calcall (computed at every step, only for small systems); in ORCA, write Calc_Hess true and Recalc_Hess 5 end in %geom. (6) Change the algorithm or reduce the step size: for weak interactions and flexible large molecules in Gaussian, try opt=gdiis first; when the structure oscillates repeatedly with small amplitude, use opt(gdiis,maxstep=3~5,notrust); in ORCA, adjust Trust in %geom (default -0.3; a negative value fixes the trust radius). (7) Check symmetry: if the starting structure has higher symmetry than the true minimum, the optimization stops at a saddle point and the symmetry must be broken. (8) Relax the convergence thresholds only as a last resort: opt=loose or LooseOpt is suitable only for rough structures, and frequency calculations afterwards often show imaginary frequencies.

The optimization did not converge but reached the maximum number of optimization cycles.

Cause: The optimization ran out of steps before converging. In this case ORCA may still print ORCA TERMINATED NORMALLY at the end of the file, so checking only the end of the output is misleading.

Fix: Restart from the last structure and follow the entry on optimization oscillation.

Error termination via Lnk1e … l9999.exe, with Optimization stopped. -- Number of steps exceeded printed above it

Cause: The optimization reached the step limit, usually because of oscillation.

Fix: Follow the entry on optimization oscillation. Increase maxcycles only if the energy and force curves are still decreasing.

A minimum shows a small imaginary frequency below 50 cm⁻¹ (usually a methyl rotation or relative motion between molecules)

Cause: The optimization was not precise enough, or the integration grid is insufficient.

Fix: Try opt=tight, a finer integration grid, and calcfc or recalc in turn, and recompute the frequencies at the same level. If it still cannot be removed, see the explanation: how small imaginary frequencies affect the free energy.

A minimum shows one imaginary frequency above 100 cm⁻¹ (labeled imaginary mode in ORCA)

Cause: The structure is not a minimum, which is common when the symmetry is too high.

Fix: In GaussView, push the structure manually along the imaginary mode (Manual Displacement), then optimize again.

The frequency results do not match the optimized structure, and imaginary frequencies appear at a minimum

Cause: The functional, basis set, dispersion or solvent model used for the optimization and the frequencies differ, so the potential energy surfaces are not consistent.

Fix: Redo the frequencies at the same level as the optimization.

When SMD is used for opt freq, the optimization is hard to converge and spurious imaginary frequencies appear

Cause: The numerical noise of the SMD solvent model makes optimization hard to converge and produces spurious imaginary frequencies.

Fix: Use IEFPCM for optimization and frequencies, and SMD only for the single-point energy (see Choices: calculations in solution).

The transition state has one imaginary frequency, but its vibration is not the target reaction (for example, a methyl rotation)

Cause: The calculation found a different saddle point.

Fix: Build a new initial guess and scan the key coordinate. For saddle points very close to minima, see the reference section on using recalc and maxstep when a transition state cannot be found.

The transition state has two or more imaginary frequencies

Cause: A higher-order saddle point, or extra small imaginary frequencies.

Fix: Handle the extra imaginary frequencies one by one, by number and size. See Choices: what to do when imaginary frequencies appear.

The scan does not involve the intended atoms, and the scan curve does not match expectations (ORCA)

Cause: ORCA atom numbering starts from 0. Copying Gaussian numbering would scan the wrong atoms.

Fix: Write the Scan line with 0-based numbering. For example, Scan B 0 5 is the distance between atoms 0 and 5.

After the four YES entries of a Gaussian optimization, the displacement in the freq section shows NO

Cause: The optimization uses an approximate Hessian and the frequency calculation uses an exact one, so their judgments differ.

Fix: If a displacement exceeds its threshold by less than a factor of 2 and there is no imaginary frequency, it is generally acceptable (Sobereva 278).

The combination of multiplicity 1 and 9 electrons is impossible. (L301)

Cause: The charge or multiplicity does not match the parity of the number of electrons.

Fix: Change the charge or the multiplicity. An even number of electrons needs an odd multiplicity; an odd number of electrons needs an even multiplicity.

Output is interleaved or duplicated, or an MPI error appears in parallel runs

Cause: orca was not called with its full path, or the OpenMPI version is wrong, or gfortran is missing. If gfortran was not installed before OpenMPI was compiled, ORCA cannot run in parallel.

Fix: Run with /full/path/orca. Compile against the OpenMPI version named in the installer filename: for example, openmpi418 means OpenMPI 4.1.8, which corresponds to ORCA 6.1.0.

Typing orca starts a program that is not quantum chemistry software

Cause: CentOS and some other systems ship a screen reader with the same name, orca.

Fix: Call ORCA with its full path or through an alias.

Program s-dftd3 is registered with QCEngine, but cannot be found.

Cause: In Psi4 1.11, functionals with -d3bj need dftd3-python to be installed separately.

Fix: Install dftd3-python in the conda environment.

micromamba create -n qc -c conda-forge python=3.11 psi4 dftd3-python dftd4-python
Multiwfn or OfakeG cannot read the ORCA .out file

Cause: Under Windows, redirecting output in PowerShell 5 produces a .out file in Unicode encoding, which Multiwfn and OfakeG cannot read.

Fix: Run ORCA and redirect its output from cmd or cmder.

Excitation energies or oscillator strengths differ between ORCA and Gaussian

Cause: ORCA's TD-DFT uses the Tamm–Dancoff approximation (TDA) by default, while Gaussian's TD defaults to full TDDFT.

Fix: When comparing with Gaussian results or the literature, write TDA false in the %tddft block of ORCA.

CREST 3.0.2 (conda-forge macOS arm64) stops with ERROR STOP at Setting up backup calculator in default mode

Cause: In the tests on this page, this version did not run on this machine. With --legacy --quick, the metadynamics part for ibuprofen (33 atoms) finished (347 seconds), but ERROR STOP appeared again in the CREGEN sorting stage.

Fix: Run conformer searches on Linux. In full mode, CREST is estimated to need 1 hour 38 minutes for ibuprofen on 8 threads.

References

FAQ

Should I use ORCA or Gaussian for DFT?

Academic users should start with ORCA: it is free, supports ωB97M-V, double hybrids and DLPNO-CCSD(T), and accelerates hybrid functionals with RIJCOSX. If your group already has Gaussian and you need GaussView for building molecules and animating vibrations, a common combination is Gaussian for optimization and frequencies and ORCA for high-level single points.

Can I still use B3LYP/6-31G*?

B3LYP/6-31G* without dispersion correction is not recommended for energies. At minimum switch to B3LYP-D3(BJ)/def2-SVP for optimization and frequencies, and use def2-TZVP or larger with a better functional for energies. In our test, B3LYP without dispersion gives a positive (unbound) interaction energy for the benzene dimer.

What should I do about a very small imaginary frequency after optimization?

First make sure the frequencies are at the same level as the optimization, then tighten the optimization criteria, use a finer integration grid, and re-optimize with an exact Hessian. A remaining imaginary mode below 50 cm⁻¹ has little effect on the electronic energy and ZPE but affects entropy and free energy, so state how you handled it in the paper.

What should ORCA's %maxcore be?

%maxcore is memory per process in MB. Divide about 75% of physical memory by the number of processes, for example 3000 for 32 GB and 8 cores. ORCA uses more than this value, so do not set it to the full amount.

How do I confirm that a transition state is correct?

The frequencies must contain exactly one imaginary mode, its animation must match the target reaction, and an IRC must connect it to the reactant and product after the end points are optimized.

Where do I read the zero-point energy and free energy correction?

In ORCA read Zero point energy and G-E(el); in Gaussian read Zero-point correction and Thermal correction to Gibbs Free Energy. With a high-level single point, G = high-level electronic energy + G correction from the low-level frequencies. Reactions in solution also need the 1.89 kcal/mol standard-state correction.

Hand your DFT workflow to Scientify

The science agent runs conformer search, optimization and frequencies, transition states and IRC, single-point energies and thermal-correction summaries in an isolated cloud computer, checks convergence and imaginary frequencies at every step, and keeps all inputs and outputs. The task keeps running after you shut down your computer. New users get USD 5 of free credit.