Error · VASP · 6 min read

ZBRENT: fatal error in bracketing

Example
ZBRENT: fatal error in bracketing
     please rerun with smaller EDIFF, or copy CONTCAR
     to POSCAR and continue

That is the message as a user posted it on the VASP forum in July 2013; the VASP version was not given. A 2010 post shows a variant of the first line, ZBRENT: fatal error: bracketing interval incorrect, with the same two lines of advice under it. The relaxation stops there.

Checked against the docs · VASP wiki and VASP forum · Last checked 12 November 2026 · Spot a mistake? Tell us

Short answer

During a conjugate-gradient relaxation (IBRION = 2), VASP's line search could not pin down the lowest energy along its search direction. A bug in that step is fixed in VASP 6.6, so check your version first; then make sure the electronic steps and the forces converge, and continue from CONTCAR, as the message itself suggests.

What does this error mean?

A relaxation moves the atoms (and, with some ISIF values, the cell) toward the nearest energy minimum. With IBRION = 2, the conjugate-gradient method, VASP does it in rounds. The wiki's Structure optimization page describes each round:

  1. Choose a search direction, conjugate to the previous ones.
  2. Take a trial step along it, of a length set by POTIM.
  3. From the energy before and after the trial step and the change of the forces, fit a curve and jump to its expected minimum: the corrector step.
  4. If the forces and stress along the direction have not vanished there, improve the line minimization with further corrector steps "using a variant of Brent's algorithm".

That refinement is ZBRENT. The wiki says that occasional output from ZBRENT is normal: it means the corrector step was too far off and the line search is being refined. To refine, Brent's method needs the minimum bracketed, a stretch of the search direction with higher energy on both sides. The fatal error most likely means it could not find one, so the relaxation stops. That reading comes from the wiki's description of the line search; neither the wiki nor the forum posts below explain the fatal error itself.

What usually causes it?

A bug in VASP before 6.6. The VASP Changelog for version 6.6.0 lists a fix: "The ionic CG algorithm (IBRION = 2) for the Brent algorithm determined the bracketing interval improperly." On the VASP forum, a moderator answering for the VASP team wrote on 8 April 2026 that this specific error should be fixed in VASP 6.6, quoting that entry, and added that the error alone was probably not the main issue in the case at hand (VASP forum, 8 April 2026). The Known issues page, as of 12 November 2026, does not list it.

Forces that are not converged. In that same case (a relaxation on VASP 6.3.2), the moderator found that the electronic minimization did not converge, and neither did the forces; once the electronic steps converged, the relaxation went on. An older answer from the forum's administrator (27 May 2010) points the same way: look at the forces of the last ionic step before Brent's algorithm fails (VASP forum, 27 May 2010).

A starting geometry that is far off. The same 2010 answer says that if the error appears early in the relaxation, check that the input geometry is reasonable, for example the interatomic distances written in OUTCAR, or the forces of the first geometries.

What the wiki says about forces bears on all of this: they are only as accurate as the electronic loop that produced them, and that loop stops when the energy changes by less than EDIFF (default 1E-4 eV). The EDIFF page "strongly" recommends 1E-6 for well-converged calculations.

What should I try, in order?

  1. Check your VASP version. It is printed at the top of OUTCAR and the job's output (vasp.6.x.x). Before 6.6.0, the bracketing bug above may be the cause; ask whoever maintains VASP on your cluster whether 6.6 or later is available.
  2. Look at the forces before the failure. In OUTCAR, read the forces of the last ionic step, and check in OSZICAR that each ionic step's electronic loop converged before reaching NELM.
  3. Make the forces more accurate, as the message suggests: lower EDIFF, to 1E-6 as the wiki recommends. The 2010 answer also suggests PREC = Accurate and a higher ENCUT when the error comes early.
  4. Continue from where it stopped. CONTCAR holds the structure after the last ionic step, in POSCAR format; the wiki says it can be copied to POSCAR to restart. The message suggests this too. A restart alone may not be enough: the 2010 poster reports it did not clear the error, so make the forces more accurate as well.
  5. Choose the method for where the structure is.
    • Already close to converged: the 2010 answer suggests switching to IBRION = 1 (RMM-DIIS) with ADDGRID = .TRUE. and a larger ENCUT. The Structure optimization page warns that RMM-DIIS needs very accurate forces, and suggests a minimum number of electronic steps per ionic step, NELMIN = 4 for simple bulk materials and up to 8 for complex surfaces.
    • Failing early: the 2010 answer suggests a smaller POTIM, to avoid too large a first step. The default for relaxations is POTIM = 0.5, which the wiki calls around the optimum for many systems; after each corrector step, conjugate gradient prints a trialstep, and POTIM times this number is the optimal step.
  6. Look at the stopping rule. EDIFFG ends the relaxation; a negative value stops when every force is below its size, which the wiki calls the more convenient setting. The wiki does not say whether a very tight EDIFFG makes this error more likely. If yours is tight, check in step 2 whether the last forces were accurate enough to meet it: forces are only as good as the electronic loop, so a tight EDIFFG needs a tight EDIFF.

Fix a relaxation that won't converge covers the relaxation settings in full.

Verlet recognizes this message in a job's output and names it among the problems that Explain this error, in the Inspector, gathers with the job log's last lines, showing you the exact text before anything is sent. Monitor shows the job's log, and Continue from here starts a new run from the last structure; everything on this page works without it.

Updated
12 November 2026
Applies to
VASP 5.4 and 6.x
Source check
Checked against the docs, 12 November 2026

Where can I read more?

The VASP wiki:

  • Structure optimization: the conjugate-gradient line search and where ZBRENT fits
  • IBRION: the relaxation methods
  • POTIM: the step length
  • EDIFF and EDIFFG: when the electronic and ionic loops stop
  • NELMIN: the minimum number of electronic steps
  • CONTCAR: restarting from the last ionic step
  • Changelog: the 6.6.0 fix to the conjugate-gradient bracketing

The VASP forum:

What was this page checked against?

Checked against the VASP wiki and the VASP forum, 12 November 2026. Every statement about VASP was read against these pages (with the date each was last edited): Structure optimization (22 July 2026), IBRION (18 June 2026), POTIM (18 October 2024), EDIFF (24 October 2025), EDIFFG (24 October 2025), NELMIN (7 April 2022), CONTCAR (18 October 2024), the Changelog (3 September 2026) and Known issues (12 November 2026). Forum posts are cited as forum posts, not as documentation: the moderator's answer of 8 April 2026 and the administrator's answer of 27 May 2010; the message's full text and its 2010 variant are quoted from users' posts of 28 July 2013 and 24 May 2010. Every link on this page was opened.

The wiki mentions ZBRENT only as normal line-search output, so where it gives no answer (what the fatal error means exactly, whether a tight EDIFFG provokes it, and how often a restart is enough) the page is worded cautiously, and these points are with an expert reviewer.