Guide · VASP · 11 min read

How do I make a point defect (vacancy, substitution, interstitial) in VASP?

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

Short answer

Start from a supercell of your bulk crystal and edit its POSCAR: for a vacancy, delete one atom's line and lower its species count; for a substitution, move the atom into its own species group and add that element's POTCAR in the same order; for an interstitial, add a line and raise the count. Then relax, nudging the atoms off any symmetry you want broken, and make the supercell large enough that the defect barely feels its periodic copies.

What is a point defect?

A point defect is a fault at a single site in a crystal:

  • a vacancy: an atom is missing from its site;
  • a substitution: an atom of another element sits on a lattice site;
  • an interstitial: an extra atom sits between the lattice sites.

In VASP you make one by editing the list of atoms in POSCAR, the file that holds the cell and the atoms. Because VASP repeats the cell periodically, you always edit a supercell, a larger cell built by repeating the crystal's cell (see How do I build a supercell?), never the primitive cell itself.

Why does a defect need a big supercell?

Whatever you put in the cell is repeated in every periodic copy of it, so a defect is really a regular array of defects. The VASP wiki's page on dipole corrections for defects describes the spurious interactions this causes between a defect and its copies in the neighboring supercells:

  • Electrostatic, for charged defects, and for neutral defects or defect complexes of low symmetry, which can carry a dipole. The page names three cases where these get large: semiconductors with first-row elements (small lattice constants put the copies close), semiconductors with a small dielectric constant, and high charge states, since the error grows roughly with the square of the charge: about 16 times larger for 4+ than for 1+.
  • Elastic: the strain each defect causes in the lattice. The page says these should fall off as 1/L³, where L is the size of the supercell, and are rarely larger than about 0.1 eV.

The way to see whether your supercell is large enough is to compute the same defect in more than one supercell size; the wiki's page shows extrapolating the relaxation energy against 1/L³. The wiki gives no target for how closely two sizes must agree; that depends on what you will report. For charged defects, the same page recommends cubic supercells whenever possible, because the full correction is only possible for cubic cells.

How do I make each kind of defect in POSCAR?

The POSCAR page explains the two lines that matter: the species names line and the ions per species line, followed by one position line per atom, all atoms of the first species first. The examples below edit a silicon supercell; they show only the lines that change.

A vacancy. Delete the atom's position line and lower its species' count by one:

Example
Si
63
Direct
...

(an example: a 64-atom silicon supercell with one atom removed). Delete a whole line, including any Selective dynamics flags on it.

A substitution. Move the atom's position line to the end of the list, under a new species, and add that species to both lines. For one phosphorus atom on a silicon site in the same supercell (an example):

Example
Si P
63 1
Direct
... 63 silicon positions ...
 0.2500000  0.2500000  0.2500000

The last line is the position of the silicon atom that phosphorus replaces, moved from the silicon group to its own.

Then add the phosphorus POTCAR after the silicon one. The POSCAR page is explicit that the species names line is only a helpful comment: VASP takes the species from POTCAR and the counts line, and "switching species names here will not actually change the species of ions in a calculation if the POTCAR file stays the same". Renaming an atom in POSCAR without changing POTCAR does not substitute anything. The page also notes that a species name can be only two characters long.

An interstitial. Add a position line for the new atom in its species' group, and raise that species' count by one. Where to put it is a choice: the wiki's Structure optimization page explains that VASP finds the closest local minimum to where you start, and that you may need several starting structures if you are not sure which is the most reasonable. For an interstitial, that means trying the candidate sites, not only one.

Keep the positions to at least 7 significant digits, as the POSCAR page recommends, or VASP's symmetry analysis can go wrong.

How do I relax the structure around the defect?

Break the symmetry you want broken. VASP determines the symmetry from POSCAR and keeps it during a relaxation. The Structure optimization page warns that with the default ISYM = 2, structures of lower symmetry are inaccessible to the relaxation, and says it is usually better to break the symmetry on purpose by displacing atoms slightly in the starting structure than to switch symmetry off with ISYM = 0. A vacancy that should distort its neighbors needs those neighbors nudged.

Read the symmetry VASP found. OUTCAR records the point group and space group VASP found for the supercell (the ISYM page lists what the analysis reports). Compare it with what you expect for the defect.

Fix the far-away atoms if you want to. The POSCAR page says Selective dynamics is useful "if only certain shells around a defect" should relax: add the line Selective dynamics after the counts, then T T T after the atoms that may move and F F F after those that may not. The flags refer to directions along the lattice vectors, whether the positions are written in direct or Cartesian coordinates.

Decide about the cell. You can relax the positions only (ISIF = 2) in the perfect crystal's relaxed cell, or the cell as well; the wiki pages read do not say which is right for a defect, so choose one, keep it for every defect you compare, and say which in your write-up. For the relaxation itself, see How do I fix a relaxation that won't converge?

What settings must match the perfect crystal?

A defect is usually reported as an energy difference with the perfect supercell, so the two calculations must be comparable.

SettingWhat to doWhy
ENCUTSet it yourself, the same in both runsThe ENCUT and PREC pages warn that the default cutoff can differ between calculations, and then "the total energies ... can not be compared". A substitution can bring a POTCAR with a higher ENMAX, which changes the default.
The supercellThe same size and lattice vectorsThe defect's interactions with its copies depend on the supercell (above).
The k-point meshThe same mesh, as the cautious choiceThe wiki pages read do not say it is required.
The species orderMatching POTCAR in each runThe POSCAR page: the order of the counts follows POTCAR.

What it depends on:

  • The defect's charge. A neutral defect needs none of the corrections below; a charged one does.
  • The material. Small lattice constants and small dielectric constants make the interactions with the copies larger.
  • What you will report. A formation energy or a migration barrier needs reference energies computed with matching settings. For a migration path, the wiki's nudged elastic band page links a tutorial on a silicon atom moving into a vacancy.

What about charged defects?

A charged defect is made by changing the number of electrons with NELECT; the NELECT page warns not to set it unless you want a charged calculation. VASP then adds a uniform background charge to keep the cell neutral, and the NELECT page warns that without a correction the energy converges very slowly with the size of the supercell.

The wiki's defect page is careful about what VASP can and cannot correct here, and worth reading in full before a charged-defect project:

  • The corrections VASP prints are computed for a dielectric constant of 1, so the corrected total energy printed after the last electronic step is "meaningless" for a defect in a solid; you correct the energies by hand from the lines in OUTCAR (starting at DIPCOR: dipole corrections for dipole) and scale them by the bulk dielectric constant.
  • The quadrupole part needs the quadrupole moment of the perfect cell subtracted first; the page gives the procedure.
  • A potential correction (LDIPOL = .TRUE.) is "currently impossible" for defects in a solid; use LDIPOL = .FALSE..
  • The corrections are only meaningful when the extra charge stays localized at the defect.

The LMONO page says its primary use is defect calculations in charged supercells, where the dipole at the defect often cannot be determined accurately; it corrects the monopole term only. The wiki also describes an external package, SCPC, that applies a self-consistent correction for charged supercells.

How do I check the defect?

Count the atoms and species. The counts line should add up to the number of position lines, and POTCAR should hold one entry per species, in the same order.

Check what VASP read. The POSCAR page suggests reading the positions back from OUTCAR, which lists them in Cartesian and in direct coordinates.

Check the symmetry. A symmetry in OUTCAR higher than you expect means the relaxation cannot leave it: displace atoms and run again.

Check the supercell size. Run the defect in a bigger supercell and compare. If the result moves noticeably, the copies still interact.

What goes wrong with point defects?

MistakeWhat you would seeWhat to do
Renaming an atom in POSCAR without changing POTCARA "substitution" that computes the original elementAdd the new species to POTCAR in the same order as the counts line.
A defect in a supercell too small for itA defect energy that changes when the supercell growsRepeat with a larger supercell until it settles.
Starting from a perfectly symmetric defectA relaxed structure that keeps a symmetry it should have brokenDisplace the neighboring atoms slightly before relaxing, as the wiki recommends.
Different ENCUT in the defect and perfect runsEnergy differences that include the change of cutoffSet ENCUT yourself, the same in both.
Trusting the corrected total energy of a charged defectA correction computed for a dielectric constant of 1Correct by hand from OUTCAR, scaled by the dielectric constant, as the defect page explains.
LDIPOL = .TRUE. for a defect in a solidA potential correction the wiki says is not possible for this caseUse LDIPOL = .FALSE..
One interstitial site onlyA local minimum that may not be the lowestTry the other candidate sites.

In Build, click an atom in the picture and remove it to make a vacancy; the species counts follow, and the POSCAR tab under Files shows the result. For a substitution or an interstitial, edit the POSCAR yourself and bring it in with Replace in Build; Verlet's job builds the POTCAR in the order of your POSCAR's species, from your lab's own POTCAR library on the cluster. Everything above works without it.