I see a lot of post-processing tools for VASP, including ASE, VASPKIT,Pymagten and some other customized codes. They all read the VASP output files like a normal text file. Sometimes I would meet incompatibility issues between the parsers of some tools and VASP output files. I am wondering if there is a standard format or parser of the VASP output files?

  • $\begingroup$ Not to dismiss the question outright (since I'm definitely not an expert in VASP), but I suspect the answer is no, at least for the standard parser. While I suspect the output files have a (roughly) consistent format, the fact that there are such a wide variety of third-party tools to process VASP output as text files suggests there isn't an official interface that can more directly and consistently handle the output beyond just scanning the output files. $\endgroup$
    – Tyberius
    Jan 11, 2022 at 22:38

1 Answer 1


If by "standard", you mean an "official" VASP-supported program, then the answer is no. VASP gives you the raw text output for you to deal with on your own. That being said, the vasprun.xml file produced at the end of a run contains many of the important calculation results, so any parser than can read an XML file can also parse this data in a trivial fashion.

It sounds like you're already aware of it, but I highly recommend Pymatgen's VASP output parsers. They are thorough and battle-tested. I don't think you'll run into many "incompatibility issues". If you do, please open an issue on GitHub, and I can try and address it personally.

from pymatgen.io.vasp.outputs import Outcar, Vasprun
vr = Vasprun('vasprun.xml')
outcar = Outcar('OUTCAR')

Disclaimer: I work with the Materials Project team, which develops and maintains pymatgen.

  • $\begingroup$ is there any tutorials about how to draw the projected DOS or band structure with pymatgen? $\endgroup$
    – Jack
    Jan 12, 2022 at 21:46
  • 2
    $\begingroup$ @Jack Have you got an answer to your follow-up question? In the future I'd recommend asking questions like this on the main site. $\endgroup$ Aug 8, 2022 at 0:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .