Error · VASP · 6 min read
ZBRENT: fatal error in bracketing
ZBRENT: fatal error in bracketing
please rerun with smaller EDIFF, or copy CONTCAR
to POSCAR and continueThat 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:
- Choose a search direction, conjugate to the previous ones.
- Take a trial step along it, of a length set by
POTIM. - 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.
- 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?
- Check your VASP version. It is printed at the top of
OUTCARand 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. - Look at the forces before the failure. In
OUTCAR, read the forces of the last ionic step, and check inOSZICARthat each ionic step's electronic loop converged before reachingNELM. - Make the forces more accurate, as the message suggests: lower
EDIFF, to1E-6as the wiki recommends. The 2010 answer also suggestsPREC = Accurateand a higherENCUTwhen the error comes early. - Continue from where it stopped.
CONTCARholds the structure after the last ionic step, inPOSCARformat; the wiki says it can be copied toPOSCARto 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. - Choose the method for where the structure is.
- Already close to converged: the 2010 answer suggests switching to
IBRION = 1(RMM-DIIS) withADDGRID = .TRUE.and a largerENCUT. The Structure optimization page warns that RMM-DIIS needs very accurate forces, and suggests a minimum number of electronic steps per ionic step,NELMIN = 4for 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 isPOTIM = 0.5, which the wiki calls around the optimum for many systems; after each corrector step, conjugate gradient prints atrialstep, andPOTIMtimes this number is the optimal step.
- Already close to converged: the 2010 answer suggests switching to
- Look at the stopping rule.
EDIFFGends 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 tightEDIFFGmakes 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 tightEDIFFGneeds a tightEDIFF.
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.