Skip to content

Understanding the Gaussian Input File

Although GaussView automatically generates Gaussian input files, understanding their structure is essential for creating, modifying, and troubleshooting calculations. Every Gaussian input file follows a well-defined format, where each section provides specific instructions to the Gaussian program.

The input file used in this tutorial is reproduced below.

%nprocshared=1
%mem=2GB
%chk=formicacid-opt-energy.chk
# b3lyp/6-31g geom=connectivity

Title Card Required

0 1
 C                 -0.11131000    1.89246900   -0.00024600
 H                 -0.16211200    2.98106100   -0.00117300
 O                  1.14244500    1.44697500    0.00021700
 H                  1.22534700    0.42975100    0.00008700
 O                 -1.14244500    1.18616900    0.00010300
 C                  0.11131000   -1.89246900   -0.00024600
 H                  0.16211200   -2.98106100   -0.00117300
 O                 -1.14244500   -1.44697500    0.00021700
 O                  1.14244500   -1.18616900    0.00010300
 H                 -1.22534700   -0.42975100    0.00008700

1 2 1.0 3 1.5 5 2.0
2
3
4
5
6 7 1.0 8 1.5 9 2.0
7
8
9
10

Overall Structure

A Gaussian input file is organized into six logical sections.

Link 0 Commands
Route Section
Title Section
Charge and Multiplicity
Cartesian Coordinates
Connectivity Section

Each section has a specific purpose and must appear in the correct order.


1. Link 0 Commands

%nprocshared=1
%mem=2GB
%chk=formicacid-opt-energy.chk

The Link 0 commands appear at the beginning of every Gaussian input file. These commands define the computational resources that Gaussian will use during the calculation.

%nprocshared

%nprocshared=1

Specifies the number of CPU cores available to Gaussian.

For example,

%nprocshared=8

instructs Gaussian to use eight shared-memory processors.


%mem

%mem=2GB

Defines the maximum amount of RAM available for the calculation.

Examples include

%mem=4GB
%mem=8GB
%mem=16GB

Larger and more complex calculations generally require more memory.


%chk

%chk=formicacid-opt-energy.chk

Creates a checkpoint file, which stores important information generated during the calculation, including

  • Molecular orbitals
  • Wavefunction
  • Geometry
  • Density matrix
  • Restart information

Checkpoint files are frequently reused in subsequent Gaussian calculations.


2. Route Section

# b3lyp/6-31g geom=connectivity

The Route Section is the most important line in the Gaussian input file. It specifies

  • the type of calculation,
  • the electronic structure method,
  • the basis set,
  • and any additional computational keywords.

For this example,

Keyword Meaning
# Indicates the beginning of the Route Section
B3LYP Density Functional Theory method
6-31G Basis set
geom=connectivity Read molecular connectivity from the input file

Since no keyword such as Opt or Freq is present, Gaussian performs a Single Point Energy calculation.


3. Title Section

Title Card Required

The title section is a user-defined description of the calculation.

For example,

Single Point Energy Calculation of Formic Acid Dimer

This text is printed in the Gaussian output file and helps identify the calculation. It has no effect on the computational results.


4. Charge and Multiplicity

0 1

The first number specifies the total molecular charge, while the second specifies the spin multiplicity.

For the present example,

Quantity Value
Charge 0
Multiplicity 1

A multiplicity of 1 corresponds to a closed-shell singlet molecule with all electrons paired.


5. Cartesian Coordinates

C   -0.11131000    1.89246900   -0.00024600
H   -0.16211200    2.98106100   -0.00117300
...

The Cartesian coordinate section specifies the three-dimensional geometry of the molecule.

Each line contains

Atom   X-coordinate   Y-coordinate   Z-coordinate

The coordinates are expressed in Ångström (Å) unless specified otherwise.

For a Single Point Energy calculation, these coordinates remain fixed throughout the calculation.


6. Connectivity Section

1 2 1.0 3 1.5 5 2.0

The connectivity section specifies which atoms are chemically bonded.

Each line contains

Current Atom
Connected Atom
Bond Order

For example,

1 2 1.0

indicates

  • Atom 1 is bonded to Atom 2
  • Bond order = 1 (single bond)

Similarly,

1 3 1.5

represents a bond order of 1.5, commonly used to describe delocalized or aromatic bonding.

This section is required only when the keyword

geom=connectivity

appears in the Route Section.


Summary

The Gaussian input file consists of six logical sections:

Section Purpose
Link 0 Commands Define computational resources
Route Section Specify the calculation type, method, and basis set
Title Section Provide a descriptive title
Charge & Multiplicity Define the electronic state of the molecule
Cartesian Coordinates Specify the molecular geometry
Connectivity Define chemical bonding between atoms

Although GaussView generates these sections automatically, understanding their purpose allows users to modify calculations manually, troubleshoot errors, and prepare more advanced Gaussian input files.