Guide · VASP · 12 min read
How do I find a reaction or diffusion barrier with NEB in VASP?
Checked against the docs · VASP wiki · Last checked 12 November 2026 · Spot a mistake? Tell us
Short answer
Relax the initial and final states carefully, put their POSCAR files in folders 00 and the last number, fill the folders between with interpolated images, and run VASP from the parent folder with IMAGES set to the number of intermediate images and the default SPRING = -5. Use IBRION = 1 or 3 rather than conjugate gradient, keep the images few, and ask for a number of cores that is a multiple of IMAGES. The barrier is the highest image's energy minus the initial state's.
What does an NEB calculation find?
The minimum energy path between two known states. The wiki's Nudged elastic bands page: NEB builds an initial path between the initial and final state from a series of images, intermediate structures, linked by springs into an elastic band. VASP then adjusts the images along the band, lowering their energy, until they lie on the minimum energy path.
The transition state sits at its highest point. The Transition states page defines the transition state as a saddle point on the potential-energy surface; its NEB figure marks it as the maximum along the band. The barrier for the forward reaction is the energy difference between the reactant and the transition state; for the reverse reaction, between the product and the transition state.
NEB needs both ends. As the Transition states page says, the initial and final states must be known. VASP has two other ways in, each set by IBRION:
| Method | Tag | Starts from |
|---|---|---|
| Nudged elastic band | IMAGES and SPRING | The initial and final states |
| Improved dimer method | IBRION = 44 | A guess for the transition state, without the final state |
| Intrinsic reaction coordinate | IBRION = 40 | A known transition state, followed down to reactant and product |
Not for changes of the lattice. The NEB page warns that this NEB cannot be applied to structural transitions: changing the lattice needs a variable-cell NEB, which VASP does not have.
How do I set it up?
The Nudged elastic bands page, step by step.
1. Relax the two ends carefully. The elastic band is attached to these fixed structures, the page says, so any error in them affects the path you get. See How do I fix a relaxation that won't converge?
2. Make numbered folders. For n images, make n + 2 folders numbered from 00, always with two characters. For three images:
mycalc -- 00
|_ 01
|_ 02
|_ 03
|_ 04Put the initial state's POSCAR in 00 and the final state's in the last folder (04 here).
3. Make the images between them. Fill 01, 02 and so on with a starting guess for each intermediate structure. The wiki points to a script in its tutorial on a silicon atom diffusing to a vacancy; the Pt adatom example uses a short script that interpolates the positions linearly between the two ends. The images should be somewhat close to the real path, or the optimization may fail. Three things to check in every POSCAR:
- The same order of elements in the initial, final and intermediate states (the NEB page).
- No atom crossing the cell boundary between the ends. The Pt adatom example warns that if an atom sits on opposite sides of the cell in the two end structures, interpolation drags it through the whole cell. Write the end positions so every atom is on the same side.
- The same center for free systems. If every degree of freedom may relax (an isolated molecule, some surfaces), the NEB page says the sum of all positions must stay the same in every image; otherwise artificial forces make the images drift apart. It does not change VASP's result, but it makes the path hard to look at.
4. Write one INCAR in the parent folder with IMAGES set to the number of intermediate images (three in the tree above). SPRING sets the spring constant; a negative value, such as the default −5, selects the nudged elastic band method. The SPRING page warns against large values, which slow convergence, and says the default usually works reliably. Set IBRION, NSW, EDIFFG and the other relaxation tags as for a relaxation.
5. Put KPOINTS and POTCAR in the parent folder too, and run VASP from the parent folder. The IMAGES page explains what VASP reads where: the INCAR from the parent folder (an INCAR in an image folder is read after it), KPOINTS and POTCAR from the image folder if there is one and otherwise from the parent, POSCAR always from the image folders. Every output file, OUTCAR and OSZICAR included, is written to the image folders.
The number of cores must be a multiple of IMAGES. VASP splits its MPI processes into one group per image, so with IMAGES = 3, ask your job for 3, 6, 9 … MPI ranks; see How do I use my cores well?
The IMAGES page marks the tag as available from VASP 6.2.0, while the wiki's Pt adatom example still refers to VASP 5.2. The wiki does not say which of the details above are new in 6.2.0, so if your cluster runs an older version, put every tag in the parent INCAR and, after a short test, check the start of 01/OUTCAR, where VASP lists the tags it read.
What settings should I start with?
The wiki's Pt adatom example (a Pt atom diffusing on Pt(001), with two images) uses this INCAR:
ISTART = 0
EDIFF = 1e-6
PREC = Normal
IBRION = 1
NSW = 10
EDIFFG = -0.01
NELMIN = 5
IMAGES = 2
SPRING = -5The page calls this a "quick and dirty" setup for learning; its results do not reproduce the experiment, and the full example uses more layers, a denser k-point mesh and a higher PREC and ENCUT.
| Setting | Start with | Why, from the wiki |
|---|---|---|
IMAGES | As few as you can: one to start, more once that converges | The NEB page: convergence is faster with fewer images; start with one image and add more after the first run converges. The Pt example: better convergence with up to about four. |
SPRING | -5 (the default) | Selects the nudged elastic band; larger values slow convergence. |
IBRION | 1 (RMM-DIIS) or 3 (quick-min) | The NEB and SPRING pages: NEB's constraint is non-linear, so the conjugate-gradient relaxer (IBRION = 2) usually fails to converge. |
| First steps | IBRION = 1 with NFREE = 2, or IBRION = 3 with SMASS = 2 | The images drift from equal spacing in the first steps; these settings pre-converge them. |
EDIFF | 1E-6 | Both wiki examples use it; the Structure optimization page says RMM-DIIS needs very accurate forces or it fails to converge. |
EDIFFG | A negative value: a force threshold in eV/Å | The Pt example uses −0.01, though its own comment says "max forces: 0.1eV/AA". The wiki gives no general value for an NEB; choose the threshold the property you need calls for, and check it on your system. |
NELMIN | 5 | The Pt example: at least five electronic steps per ionic step. |
The wiki's ammonia example (TS search using the NEB Method) uses IBRION = 2, against the advice of the NEB and SPRING pages. The wiki does not explain the difference; use IBRION = 1 or 3, as the NEB and SPRING pages advise.
What it depends on:
- How close the starting images are to the real path. Far from it, the optimization may fail; fewer, better images help.
- How well the ends are relaxed. Errors in the end states go straight into the path and the barrier.
- Your cores. Each image is its own VASP calculation on its share of the cores (the IMAGES page).
How do I read the barrier?
Each image keeps its own output. Look in 01/OSZICAR, 02/OSZICAR and so on: each ends with an F= line per ionic step, as in any relaxation (How do I read OSZICAR and OUTCAR?). The Pt example says calculations are done only for the intermediate images; the end folders hold fixed structures. If a post-processing script you use needs output files in the end folders, its own documentation says which.
To list each image's latest energy:
for d in [0-9][0-9]; do echo "$d $(grep ' F= ' $d/OSZICAR 2>/dev/null | tail -n 1)"; doneThe barrier is the highest image minus the initial state. Take the initial state's energy from its own relaxation (step 1). The images are discrete points, so the highest image is close to the transition state but not on it. The Pt example's last step fits a spline through the images' energies; its other hint: to refine the region near the transition state, run another NEB with the two images either side of the highest one as the new ends. The NEB pages do not say whether the end-state relaxations must use the same ENCUT, k-points and PREC as the NEB; keeping them the same is the cautious choice, since the barrier is a difference between those energies.
For more advanced calculations, the NEB page points to the Transition State Tools for VASP (VTST), a separate package. Its methods, such as the climbing-image NEB, are not part of VASP's own documentation, so this page does not describe them; VTST's own pages do.
How do I know the barrier is right?
Every image converged. Each image is relaxed under the band's constraint: check the forces in every image folder's OUTCAR against your EDIFFG, as for a relaxation. If the run ran out of NSW steps, the Pt example says it can be continued like a standard ionic relaxation (Should I start fresh or continue a run?). The wiki does not spell out how that applies to the image folders, so keep a copy of every folder before you change anything, and after the restart check that each image's first F= line in its OSZICAR picks up near where the last run ended.
The highest point is a saddle point. The Transition states page: a single unstable vibrational mode, one imaginary frequency, connects reactant and product. A frequency calculation is how you look for that mode; see How do I run a phonon calculation? The highest image is near the transition state but not on it, and the wiki does not say how clean a frequency check on it will be, so treat a result other than one imaginary mode as a question to look into, not a verdict.
Your build is sound. The Known issues page lists an open problem (entry dated 18 November 2025; first noticed in VASP 6.4.3): NEB runs do not run properly and give wrong results if libMBD was compiled with ScaLAPACK or MPI. That is a matter for whoever built VASP on your cluster; see How do I tell a code bug from my own mistake?
What do people mix up?
| Mix-up | What you would see | What to do |
|---|---|---|
| Starting from end states that are not fully relaxed | Errors in the ends carried into the path and the barrier (the NEB page) | Relax both ends carefully first; the band is attached to them. |
Using the conjugate-gradient relaxer (IBRION = 2) | A band that usually fails to converge (the SPRING page) | IBRION = 1 or 3, as the NEB and SPRING pages advise. |
| Too many images from the start | Slower convergence (the NEB page) | Start with one image, then add more; the Pt example works best with up to about four. |
A core count that is not a multiple of IMAGES | A job that breaks the NEB page's rule | Ask for a multiple of IMAGES. |
Element order differing between the end POSCAR files | Images that do not match the ends atom for atom | Keep one element order in every POSCAR, as the NEB page asks. |
| An atom on opposite sides of the cell in the two ends | An image with an atom dragged across the cell | Write both ends with the atom on the same side. |
| Reading the highest image as the exact transition state | A point near the top of the path, not on it | Fit a spline, or run a second NEB around the top, as the Pt example suggests. |
| Using NEB for a phase transition that changes the cell | A band that cannot change the lattice | The NEB page: variable-cell NEB is not available in VASP. |
Verlet cannot set up a nudged-elastic-band run yet: it writes one folder per run, not the numbered image folders an NEB needs. What it can do today is step 1: relax the initial and final states as two relaxation runs, chart each one's energy and forces in Analyze, and tell you when each has converged. The NEB itself you build and run on the cluster as above.