Guide · VASP · 14 min read
How do I calculate a band structure or density of states from a static run?
Checked against the docs · VASP wiki and VASP tutorial Bulk systems part 1 · Last checked 11 November 2026 · Spot a mistake? Tell us
Short answer
In two steps. First a self-consistent static run on a regular k-point mesh that writes the charge density (CHGCAR) and gives the Fermi energy. Then a non-self-consistent run that reads that CHGCAR with ICHARG = 11: along a line-mode KPOINTS path for a band structure, with EFERMI set to the first run's Fermi energy, or on a denser Γ-centered mesh with ISMEAR = -5, more NEDOS points and LORBIT = 11 for a density of states. Use the primitive cell for a band structure.
What are a band structure and a density of states?
An electron in a crystal can only have certain energies, and those energies depend on its crystal momentum, a wave vector k that labels how the electron's wave changes from one cell to the next. Each allowed energy, followed as k changes, traces a band.
- A band structure plots the bands along a path through the Brillouin zone (the cell of k-space that holds every distinct k), usually a path joining high-symmetry points such as Γ (the center) and X. It shows where the gap is, whether it is direct or indirect, and how the bands curve.
- A density of states (DOS) counts how many states there are at each energy, over the whole Brillouin zone. It shows the gap, whether the material is a metal, and, projected onto atoms and orbitals, which atoms and orbitals the states come from.
The Fermi energy is the energy that separates filled states from empty ones; plots are usually drawn with it at zero.
Why two runs and not one?
VASP finds the electrons' ground state by iterating to self-consistency: the charge density sets the potential, the potential sets the orbitals, the orbitals set a new density, until nothing changes. That density is only right if the k-points cover the whole Brillouin zone evenly, on a regular mesh.
A band path does not: it samples a few lines. The KPOINTS page warns that a line-mode mesh is not suitable for a self-consistent calculation. So the work is split:
- The SCF step (self-consistent field): an ordinary static run on a regular mesh, which converges the charge density and writes it to
CHGCAR. - The non-self-consistent step: a second run that reads that
CHGCARand keeps it fixed (ICHARG = 11), and only works out the orbitals and their energies at the k-points you ask for: a path for bands, a denser mesh for a DOS.
The second step is cheap compared with the first because the density no longer changes, and it is where you choose the k-points you want to look at.
Since VASP 6.3 there is also a one-job route: put the path in a KPOINTS_OPT file beside the regular KPOINTS, and VASP does the extra one-shot calculation on it after the SCF has converged. The wiki finds it convenient but with less control, and sometimes slower than the split run. This page follows the split run, which works in every version.
Step 1: how do I set up the self-consistent run?
A static run (NSW = 0, IBRION = -1) on the structure you want, usually a relaxed one: copy CONTCAR to POSCAR first (see Should I start fresh or continue?). Use your converged cutoff and a regular k-point mesh, the same quality you would use for an energy (How do I test convergence?).
What this run needs for the next step:
NSW = 0
IBRION = -1
LCHARG = .TRUE. # write CHGCAR (the default; set it in case your INCAR turned it off)
LMAXMIX = 4 # for d elements; 6 for f elements; leave the default 2 for s and p onlyLCHARGdecides whetherCHGCARis written. It defaults to.TRUE., but manyINCARfiles switch it off to save disk. WithLH5 = .TRUE.the density goes tovaspwave.h5instead, and the wiki notes a fixed-density restart cannot read it from there yet: write theCHGCAR.LMAXMIXsets how much of each atom's PAW density is written toCHGCAR. The band-structure page asks for 4 for d-electron systems and 6 for f-electron systems; theICHARGpage puts the rule as twice the largest l-quantum number in your potentials. For DFT+U theLMAXMIXpage calls it strictly required.- Spin. For a magnetic material, run this step spin-polarised (see How do I set up a magnetic calculation?) and keep
ISPINandMAGMOMthe same in step 2, sinceMAGMOMis still used for the symmetry on a restart.
Not from molecular dynamics. The CHGCAR of a dynamics run is a prediction for the next step, and the wiki says not to run a band structure on it. A static run's or a relaxation's CHGCAR is the self-consistent density of its last step.
Note the Fermi energy. You need it in step 2. VASP prints it in OUTCAR, on a line that starts with E-fermi in the VASP tutorial's output:
grep E-fermi OUTCAR | tail -1Then make a folder for the next step with copies of the inputs and the density:
mkdir bands
cp INCAR POSCAR POTCAR CHGCAR bands/Step 2a: how do I run the band structure?
The INCAR. Start from the SCF INCAR and change it as the wiki's band-structure page says: remove NSW, IBRION and ISTART, and add
ICHARG = 11 # read CHGCAR and keep the density fixed
LORBIT = 11 # optional: which atoms and orbitals each band comes from (PROCAR)
EFERMI = 5.1234 # the SCF run's Fermi energy (this number is an example)
ISMEAR = 0 # as in the VASP tutorial's band-structure runEFERMI matters because the Fermi energy cannot be computed from k-points along a path: the value the band run works out for itself is unreliable, especially for a metal. The EFERMI page says to take the band energies from the path run and the Fermi energy from a run on a mesh, and setting EFERMI to it does that. If you plot with py4vasp, you can pass the SCF value at the plotting stage instead.
The KPOINTS in line mode. The wiki's example for face-centered cubic silicon:
k points for band structure
10 ! points per line
line
Fractional
0.50000 0.50000 0.50000 L
0.00000 0.00000 0.00000 Γ
0.00000 0.00000 0.00000 Γ
0.00000 0.50000 0.50000 X
0.00000 0.50000 0.50000 X
0.25000 0.62500 0.62500 U
0.37500 0.7500 0.37500 K
0.00000 0.00000 0.00000 ΓLine by line: a comment; the number of points per segment; a word starting with L to switch line mode on; the coordinate system (fractional coordinates of the reciprocal lattice vectors here); then pairs of lines, each pair one straight segment from its first point to its second. The labels after the coordinates and the blank lines are optional; py4vasp uses the labels on the plot. VASP spaces the points evenly along each segment and includes both ends, so a point where two segments meet appears twice. Segments need not join: U to K is skipped here, a jump in the path.
Ten points per segment is the wiki's example; more points give smoother bands at more cost.
Which path? The high-symmetry points depend on the crystal's space group. The wiki points to external tools to find the space group and a standard path (it cites SeeK-path from Materials Cloud and the Bilbao Crystallographic Server), and warns that the primitive cell and the conventional cell have different reciprocal coordinates, so a path written for one is wrong for the other. Take the coordinates the tool gives for the very cell in your POSCAR.
Step 2b: how do I run the density of states?
A DOS needs the whole Brillouin zone, sampled more finely than for the energy: the wiki's density of states page recommends a non-self-consistent run on a denser k-point mesh after the density has converged, for smoother and more accurate curves.
ICHARG = 11 # read CHGCAR and keep the density fixed
ISMEAR = -5 # tetrahedron method with Blöchl corrections
LORBIT = 11 # projected DOS: per atom and per orbitaland a denser regular mesh in KPOINTS, Γ-centered because the tetrahedron method requires it:
Regular k-point mesh
0
Gamma
16 16 16 ! example: denser than your SCF mesh
0 0 0What each choice does:
ISMEAR = -5, the tetrahedron method, gives sharp band edges and no smearing width to converge, and the VASP tutorial uses it for its DOS. TheISMEARpage asks for a Γ-centered mesh with it; its other limits, and why it is the method for a DOS, are in Which smearing should I use?NEDOSis the number of energy points betweenEMINandEMAX(by default, around the whole range of band energies). The default of 301 can be too coarse to resolve narrow peaks. The wiki's check: compare the DOS with the integrated DOS, also inDOSCAR; at least one peak should show at every step of the integrated DOS. You can also narrow the window withEMINandEMAX, as the VASP tutorial does around the Fermi energy. The wiki gives no starting value above the default; raiseNEDOSuntil that check passes.LORBIT = 11projects the states onto each atom's s, p and d orbitals with the PAW projectors (noRWIGSneeded), and writes the projected DOS toDOSCARandPROCAR. The wiki calls the projection a qualitative approach that often serves as a good estimate.
For the DOS, the Fermi energy from this run is fine: it comes from a mesh, and the EFERMI page names a denser mesh on the same fixed density as a way to converge the Fermi energy further, which matters for metals.
Do not take a DOS from a relaxation's DOSCAR: the wiki says it is averaged over the ionic steps and usually useless. Use a static run on the final structure.
What should I set for each step?
Starting points from the wiki's band-structure and DOS pages. Converge the SCF mesh and the cutoff first; the second step only adds k-points.
| Step | ICHARG | KPOINTS | Smearing | Also |
|---|---|---|---|---|
| 1. SCF static run | 2, or leave it out with no WAVECAR in the folder | Your converged regular mesh | What suits the material (smearing guide) | LCHARG = .TRUE.; LMAXMIX = 4 (d) or 6 (f) |
| 2a. Band structure | 11 | Line mode along the high-symmetry path of your cell | ISMEAR = 0, as in the VASP tutorial | EFERMI = the SCF Fermi energy; LORBIT = 11 for orbital character |
| 2b. Density of states | 11 | A denser Γ-centered regular mesh | ISMEAR = -5 | NEDOS above the default 301; LORBIT = 11 for a projected DOS |
Choose yours:
| The run | Set | Why |
|---|---|---|
| 1. The SCF run | A static run that writes CHGCAR | A regular mesh over the whole Brillouin zone, so the density is right. LMAXMIX = 4 for d elements (6 for f) keeps enough of each atom's density in CHGCAR for the fixed-density step. Note the Fermi energy: grep E-fermi OUTCAR. |
| 2a. Band structure | ICHARG = 11, a line-mode path, EFERMI | The density is read from the SCF CHGCAR and held fixed; remove NSW, IBRION and ISTART. The Fermi energy cannot be computed on a path, so EFERMI takes the SCF value (the number here is an example). |
| 2b. Density of states | ICHARG = 11, a denser Γ-centered mesh, ISMEAR = -5 | The tetrahedron method on a denser mesh gives sharp, smooth curves. Raise NEDOS above the default 301 until narrow peaks are resolved; LORBIT = 11 adds the projected DOS. |
What it depends on:
- The functional. This route is for LDA and GGA (and, from VASP 6.6, meta-GGAs that need the kinetic energy density; deorbitalised meta-GGAs before). Hybrid functionals and older meta-GGA versions need a regular mesh in every run and a different procedure; the wiki has a page for each.
- The elements. d and f elements need the larger
LMAXMIX; DFT+U needs it without exception. - Whether the material is magnetic. Keep the spin setup of the SCF run.
- The cell. A band path belongs to one cell; see the next section.
Why do my bands look folded? (primitive cells and supercells)
A path of high-symmetry points is defined for one particular cell. If your POSCAR is a supercell (several primitive cells repeated) or a conventional cell (the larger cell that shows the crystal's symmetry, such as the cubic cell of an fcc crystal, with four times the atoms), its Brillouin zone is smaller than the primitive cell's by the same factor. The bands of the primitive cell are then folded back into that smaller zone: the same physics, but drawn as many more bands, crossing and overlapping, and hard to compare with published band structures. The VASP wiki does not discuss band folding, so take this as a plain picture of the idea; the part to act on is the wiki's own point below: draw a perfect crystal's bands in its primitive cell.
What the wiki does say: the high-symmetry path depends on the space group, and the primitive and the conventional cell have different reciprocal coordinates. So:
- For a band structure of a perfect crystal, use the primitive cell, with the path a tool gives for that cell.
- For a defect or a surface, the supercell is the system, and its bands are folded by nature. A density of states does not depend on a path, so it can be the more useful picture there; the wiki does not say which to prefer.
How do I know the result is right?
Check that the fixed density reproduces the SCF. The band-structure page's test for LMAXMIX: restart with fixed density (ICHARG = 11) on the SCF's own regular mesh, and the total energy should be identical to the SCF run. If it is not, raise LMAXMIX.
Check that VASP read what you wrote. OUTCAR starts with VASP's reading of your INCAR:
grep -E "ICHARG|LORBIT|NEDOS|EFERMI" OUTCARCheck the DOS resolution. In DOSCAR each line holds the energy, the DOS and the integrated DOS (with two of each for a spin-polarised run). Narrow peaks that the integrated DOS steps over without a matching peak mean NEDOS is too small. The header line also carries the energy range, NEDOS and the Fermi energy.
Look at the gap in the DOS too. A band gap read off a path only sees the k-points on that path; the DOS comes from a mesh over the whole zone, so it is a second view of the same gap. If the two look very different, find out why before you report a number.
What goes wrong with band structures and DOS?
| Mistake | What you would see | What to do |
|---|---|---|
No CHGCAR in the folder of the ICHARG = 11 run | The run cannot start from a converged density. | Copy the SCF run's CHGCAR in, or rerun the SCF with LCHARG = .TRUE. |
A line-mode KPOINTS in a self-consistent run | A density converged on a path, not over the zone: wrong everything. | Line mode only with ICHARG = 11. |
| The Fermi energy taken from the band run | Bands shifted against zero, worst in metals. | EFERMI = the SCF value, or pass it at plotting. |
LMAXMIX left at 2 for d or f elements | Fixed-density energies that differ from the SCF; large errors with DFT+U. | LMAXMIX = 4 (d) or 6 (f) in the SCF run, which writes the CHGCAR. |
| A band path for the primitive cell on a conventional cell or supercell | Folded bands, or a path through the wrong points. | Use the primitive cell, or a path generated for your cell. |
CHGCAR from molecular dynamics | A density that is not self-consistent for the structure. | A static run on the final structure first. |
The SCF ran spin-polarised, the band run did not (or MAGMOM dropped) | A different, often non-magnetic, electronic structure. | Keep ISPIN and MAGMOM the same in both steps. |
A DOS from a relaxation's DOSCAR | A DOS averaged over the ionic steps. | A static run on the final structure, then the DOS step. |
ISMEAR = -5 on a Monkhorst-Pack mesh | The tetrahedron method asks for a Γ-centered mesh. | Use a Γ-centered mesh. |
| Jagged or blocky DOS peaks | NEDOS or the mesh too coarse. | More NEDOS points, a narrower EMIN to EMAX window, or a denser mesh. |
A KPOINTS_OPT file left in the folder of a split run | VASP takes the one-job route instead. | Remove it, or set LKPOINTS_OPT = .FALSE. |
Try it
Try it: find the line that breaks the band structure
Each INCAR below belongs to the split route on the VASP wiki: a self-consistent run writes CHGCAR, then a fixed-density run with ICHARG = 11 reads it. Each has one line the wiki says is wrong for its job. Choose the line you think it is.
Script 1.
# step 1: self-consistent run
# the band structure reads its CHGCAR next
ISMEAR = 0
SIGMA = 0.1
LCHARG = .FALSE.The problem is line 5, LCHARG = .FALSE.: LCHARG decides whether VASP writes the charge density. With LCHARG = .TRUE. it writes CHGCAR and CHG; this line turns that off. The fixed-density run reads its density from CHGCAR, and the ICHARG page says that file must come from a fully self-consistent run beforehand. Delete the line, or set LCHARG = .TRUE..
Script 2.
# step 1 for fcc Ni: self-consistent run
# its CHGCAR feeds the band structure
ISPIN = 2
LCHARG = .TRUE.
LMAXMIX = 2The problem is line 5, LMAXMIX = 2: LMAXMIX sets up to which l-quantum number the one-center PAW densities are written to CHGCAR. The wiki's band-structure steps say to set LMAXMIX = 4 for d-electron systems in the self-consistent run, and the PBE Ni potential has 3d⁹ 4s¹ in its valence. 2 is the default, the value for s and p elements. LMAXMIX = 4. The wiki adds a check: rerun at fixed density on the regular mesh and see that the total energy matches the self-consistent run.
Script 3.
# step 2: bands at fixed density
# copied from the relaxation's INCAR
ICHARG = 11
LORBIT = 11
NSW = 40The problem is line 5, NSW = 40: Before the fixed-density run, the wiki says to remove NSW, IBRION and ISTART, then add ICHARG = 11. NSW is the number of ionic steps, and a band structure moves no atoms. With no IBRION line, NSW = 40 also switches IBRION to its default for NSW above 0, which is 0: molecular dynamics. Delete the NSW line.
In Set up, choose a band structure or a density of states as what the run is for: the preset sets the fixed-density settings and, for bands, a line-mode KPOINTS along the standard path for your cell's lattice; Continue from here on your finished static run copies its CHGCAR into the new run. Pre-flight checks the run before you submit, and Analyze draws the density of states and the bands once the run has finished.