Guide · VASP · 14 min read
How do I run a phonon or vibrational-frequency calculation in VASP?
Checked against the docs · VASP wiki · Last checked 12 November 2026 · Spot a mistake? Tell us
Short answer
Start from a tightly relaxed structure and set IBRION = 6 (finite differences with symmetry), NFREE = 2 and POTIM = 0.015, with EDIFF at 1E-6 or tighter and PREC = Accurate. VASP displaces the atoms, builds the dynamical matrix and writes each mode to OUTCAR (grep THz OUTCAR); f/i marks an imaginary mode. Only Γ-point frequencies come out, so for a dispersion use a supercell and LPHON_DISPERSION (VASP 6.3.2 and later).
What does a phonon calculation compute?
The second derivatives of the energy with respect to the positions of the atoms, called the force constants. The IBRION page explains how VASP gets them: from the first derivative of the forces. VASP then builds the dynamical matrix from them, diagonalizes it, and reports the phonon modes and frequencies in OUTCAR (and in vaspout.h5).
VASP offers two ways to get the force constants, each with and without symmetry:
IBRION | Method | Symmetry |
|---|---|---|
5 | Finite differences: displace each atom, recompute the forces | Without (the IBRION page marks it deprecated: use 6) |
6 | Finite differences | With: only symmetry-inequivalent displacements, the rest filled in by symmetry |
7 | Density-functional perturbation theory (DFPT) | Without (deprecated: use 8) |
8 | DFPT | With |
The IBRION page strongly recommends the symmetric versions (6 or 8), which can cut the cost by several orders of magnitude without losing accuracy. Between the two methods, the DFPT page calls VASP's own DFPT routines "somewhat rudimentary": they are limited to LDA and GGA functionals and do not give the elastic tensors, and their only advantage is that you do not choose a displacement size. Finite differences work with any exchange-correlation functional, the finite-differences page notes. This guide uses IBRION = 6.
Only the Γ point. Both pages say it plainly: only zone-center (Γ-point) frequencies are calculated. For a molecule or an adsorbate that is all you need. For phonons at other wave vectors (a dispersion, a phonon density of states), you compute the force constants in a supercell and interpolate; see "How do I get a phonon dispersion?" below.
With IBRION = 5 the cost grows with every atom. Each atom is displaced along all three Cartesian directions, by NFREE displacements each. The wiki's CO example (one free direction per atom, two atoms, NFREE = 2) runs 4 displaced structures plus the undisplaced one: five in all. IBRION = 6 computes only the displacements symmetry cannot supply.
When do I need one?
- Vibrational frequencies of a molecule, or of an adsorbate on a surface, such as the wiki's CO stretch.
- Dynamical stability. The How to handle imaginary phonon modes page: an imaginary (soft) mode means the structure is a saddle point; moving the atoms along that mode lowers the energy.
- Checking a transition state. The wiki's Transition states page: a single unstable mode (one imaginary frequency) connects the reactant and the product. A barrier found with the nudged elastic band method is confirmed this way; see How do I find a reaction or diffusion barrier with NEB?
- Phonon dispersion and density of states, from a supercell.
- Elastic constants. With
IBRION = 6andISIFof 3 or more, VASP also distorts the lattice and computes the elastic tensor. The finite-differences page warns that the stress then needs a higherENCUT, usually about 30% above the default, and strongly recommends raising it systematically until converged.
What do I need before I start?
A well-relaxed structure. VASP displaces the atoms of the structure you give, so the force constants describe that structure. The imaginary-modes page warns that an unrelaxed or poorly converged cell can produce spurious imaginary modes from Pulay stress or leftover forces, and its advice when imaginary modes appear unexpectedly is to tighten the ionic relaxation first (ISIF = 3, a tight EDIFFG) and recompute. The wiki gives no number for "tight"; if imaginary modes still appear, tighten further and recompute, as it advises. How do I fix a relaxation that won't converge? covers the relaxation.
Tested settings. The check below varies ENCUT, PREC and the k-points, so start from values you have already tested, as in How do I test convergence?
What settings should I start with?
The imaginary-modes page gives a finite-differences INCAR that works for a primitive cell or a supercell:
IBRION = 6 ! exploit crystal symmetry (use IBRION=5 to disable symmetry)
NFREE = 2 ! central differences (±POTIM)
POTIM = 0.015 ! displacement amplitude (Å)
PREC = Accurate
EDIFF = 1E-8 ! tight convergence for reliable forces
NSW = 1
LWAVE = .FALSE.
LCHARG = .FALSE.Add your ENCUT and smearing, as the wiki's restarting example does. What each line does:
| Setting | Start with | Why, from the wiki |
|---|---|---|
IBRION | 6 | Finite differences with symmetry; the recommended choice. |
NFREE | 2 | Central differences: each atom displaced by +POTIM and −POTIM along each direction. 4 adds ±2×POTIM. 1, a single displacement, is strongly discouraged. Any other value is reset to 2. |
POTIM | 0.015 | For IBRION = 5 and 6, POTIM is the displacement in Å, not a time step. Since VASP 5.1 an unreasonably large value is reset to 0.015 Å, which the wiki calls a very reasonable compromise. |
EDIFF | 1E-6 or tighter | The IBRION page: the default 1E-4 often gives unacceptably large errors. The EDIFF page: finite differences may need 1E-7; the imaginary-modes and restarting pages use 1E-8. |
PREC | Accurate | Force constants need accurate forces. The finite-differences page also says not to set ADDGRID = .TRUE. without careful testing. |
NSW | 1 | The wiki's examples set it. Versions before 5.1 required it, because NSW = 0 reset IBRION to −1. |
What it depends on:
- How tightly the structure is relaxed. Leftover forces and Pulay stress can produce spurious imaginary modes.
- The cell. A primitive cell gives the Γ-point modes of the crystal; a supercell gives the force constants for a dispersion and must be large enough that they die away.
- The k-points. In a supercell, lower the k-point density in proportion, so the sampling stays the same. The finite-differences page's example: silicon's primitive cell needs a 12×12×12 Γ-centered mesh for accurate Γ frequencies; a 2×2×2 supercell needs 6×6×6, and a 4×4×4 supercell 3×3×3.
- Which atoms move. For an adsorbate, you may want to displace only some atoms. Selective dynamics in
POSCARis supported only withIBRION = 5; the flags then refer to the Cartesian components of the Hessian matrix, unlike in a relaxation. The CO vibration example uses it.
How do I read the result?
The modes are in OUTCAR after these lines:
Eigenvectors and eigenvalues of the dynamical matrix
----------------------------------------------------Each mode then looks like this, from the finite-differences page:
1 f = 14.329944 THz 90.037693 2PiTHz 477.995462 cm-1 59.263905 meV
X Y Z dx dy dz
0.000000 0.000000 0.000000 0.009046 -0.082007 -0.006117
0.000000 2.731250 2.731250 0.009046 0.106244 0.006563
...- The first number labels the mode.
fmeans a real mode, vibrationally stable;f/imeans an imaginary ("soft") mode. The imaginary-modes page prints one asf/i= 7.234 THz 45.423 2PiTHz 241.31 cm-1 29.92 meV. - The frequency follows in four units: THz, 2πTHz, cm⁻¹ and meV.
- The table lists each atom's Cartesian position (
X Y Z) and the normalized eigenvector (dx dy dz): how that atom moves in the mode. - There are 3N modes for N atoms in the cell, in descending order of frequency. The last three are the translations of the whole cell and are usually disregarded. The wiki mentions only the translations; for an isolated molecule, count the modes near zero, and before reading any beyond those three as real, tighten the relaxation and recompute, as the wiki advises for unexpected modes.
To list the frequencies quickly, the wiki's own command:
grep THz OUTCARWith ISIF of 3 or more, the elastic moduli follow under SYMMETRIZED ELASTIC MODULI (kBar), ELASTIC MODULI CONTR FROM IONIC RELAXATION (kBar) and, at the very end, TOTAL ELASTIC MODULI (kBar). Tools such as phonopy can also post-process VASP's finite-differences and DFPT results, as both phonon pages note.
How do I know the frequencies are right?
Converge them. The finite-differences page's check: watch the Γ-point optical frequencies while you vary ENCUT, PREC and the k-point density, and compare with a DFPT calculation (IBRION = 8). The DFPT page suggests the comparison the other way too: DFPT has no displacement size, so it shows you how large a POTIM still agrees with it.
Tell noise from a real imaginary mode. The imaginary-modes page gives a rule of thumb: the three acoustic modes always come out near zero, and an imaginary part below about 0.5 meV there is numerical noise from the finite differences; an imaginary part above about 5 to 20 meV is a genuine soft mode, a structural instability.
When an imaginary mode is not expected, the finite-differences page says it is likely a convergence issue: try a larger cell or a denser k-point mesh, then the smearing, a higher PREC or ENCUT. The imaginary-modes page adds the step before all of these: relax the structure more tightly and recompute. If the mode survives, it may be real: that page walks through finding where in the Brillouin zone it lives and following it to the lower-energy structure.
At a transition state, expect exactly one. One imaginary mode, along the reaction path, is the sign of a first-order saddle point (the Transition states page).
How do I get a phonon dispersion?
The Computing the phonon dispersion and DOS page, in three steps:
- Compute the force constants in a supercell (
IBRION = 6or8), large enough that the force constants vanish at large distances. The frequencies must be converged with respect to the supercell size. - Give a q-point path in a
QPOINTSfile, in the line mode of theKPOINTSformat. - Set
LPHON_DISPERSION = .TRUE., available from VASP 6.3.2. For a phonon density of states, use a uniform q-point mesh andPHON_DOSabove 0.
Steps 1 to 3 can run in one calculation, or you can reuse the force constants of an earlier run: rename its vaspout.h5 to vaspin.h5 and set LPHON_READ_FORCE_CONSTANTS = .TRUE.. For a polar material, the page says to set LPHON_POLAR = .TRUE. and supply the dielectric tensor and Born effective charges from a separate, well-converged unit-cell calculation with LEPSILON or LCALCEPS.
A documented limit: the Known issues page lists an open bug (entry dated 28 September 2026; first noticed in VASP 6.2.0, not fixed as of 12 November 2026): phonons interpolated with LPHON_DISPERSION or PHON_DOS from elongated or low-symmetry supercells can be wrong away from the commensurate q-points. n×n×n supercells of cubic and hexagonal cells are unaffected.
What if the job is too long for the walltime?
From VASP 6.6.0, a finite-differences run with IBRION = 6 can be restarted and split, with CHECKPOINT_FD (the Restarting finite differences calculations page). VASP writes the displacements to vaspcheckfd.h5 as it goes; CHECKPOINT_FD = CONTINUE resumes from the last completed displacement, and PREPARE and SINGLE let you run the displacements as separate jobs. It works only with IBRION = 6, which that page recommends over IBRION = 5 in general.
Which documented bugs touch phonon runs?
From the Known issues page, with each entry's date and versions. Check yours before blaming your settings (see How do I tell a code bug from my own mistake?):
IBRION = 6fails for some trigonal cells withISIF = 3(entry dated 19 October 2023; first noticed in 6.2.1, fixed in 6.4.3). VASP prints an error that it could not find some k-points of the original mesh; the workaround wasKBLOWUP = F.- Machine-learned force-field fast-mode predictions crash with
IBRION = 5or6(31 May 2023; first noticed in 6.4.0, fixed in 6.4.2). - Noncollinear DFPT (
LEPSILON,IBRION = 7or8) on GPUs can give wrong results (23 October 2026; first noticed in 6.2.0, open). Workaround: run on CPUs withOMP_NUM_THREADS=1. - The interpolation bug above (28 September 2026, open).
What do people mix up?
| Mix-up | What you would see | What to do |
|---|---|---|
Treating POTIM as a time step or a relaxation step | A relaxation's POTIM left in the INCAR; VASP 5.1 and later reset an unreasonably large value to 0.015 Å, older versions use what you give | For IBRION = 5 and 6, POTIM is the displacement in Å; set 0.015. |
Leaving EDIFF at its default | What the IBRION page calls unacceptably large errors | EDIFF = 1E-6 or tighter; the wiki's phonon examples use 1E-8. |
| Running phonons on a structure that was not relaxed tightly | Spurious imaginary modes | Relax again with a tight EDIFFG, then recompute. |
| Expecting a dispersion from a primitive-cell run | Only a handful of Γ-point frequencies | VASP computes only Γ; use a supercell and LPHON_DISPERSION. |
| Keeping the primitive cell's k-point mesh in a supercell | Denser sampling than the primitive cell had, at extra cost | Scale the mesh down with the supercell (12×12×12 → 6×6×6 for 2×2×2). |
| Counting the three near-zero modes as an instability | Three modes near zero at the end of the list, sometimes marked f/i | They are the translations; an imaginary part below about 0.5 meV is noise. |
Using IBRION = 6 with selective dynamics | Flags the finite-differences page does not support with IBRION = 6 | Selective dynamics is supported only for IBRION = 5. |
Choosing DFPT (IBRION = 8) for a hybrid or meta-GGA run | A method the DFPT page limits to LDA and GGA | Use finite differences (IBRION = 6), which work with any functional. |
Setting NFREE = 1 to save time | One displacement per direction instead of a central difference | The wiki strongly discourages it; keep 2. |
Verlet has no phonon preset yet. You can still run one: start a run from your relaxed structure (Continue from here carries a relaxation's end into a new run), open Edit the whole INCAR in Set up and enter the settings above, and Files shows the INCAR exactly as it will go to the cluster. Verlet does not read the frequencies, so use grep THz OUTCAR in the run's folder on the cluster. Everything above works without it.