Basics 11 · LAMMPS · 4 min read

What is an interatomic potential?

Checked against the docs · LAMMPS manual, stable release 30 Sep 2026 · Last checked 12 November 2026 · Spot a mistake? Tell us

Short answer

An interatomic potential is the rule a simulation uses to work out the energy of a group of atoms from where they sit, and from that the force on every atom, without solving for the electrons. In LAMMPS you choose it with pair_style and set its parameters with pair_coeff, and the results are only as good as the potential is for your material.

The film plays from YouTube's privacy-enhanced player; nothing loads from YouTube until you press play.

Chapters

Data shown. Copper at 300 K, a demo run: 500 atoms, run with LAMMPS (4 Feb 2025) using the Foiles, Baskes and Daw EAM potential Cu_u3.eam (Phys. Rev. B 33, 7983, 1986) · Lennard-Jones and EAM formulas: the LAMMPS manual · pair_style deepmd: DeePMD-kit documentation. MACE through ML-IAP: MACE documentation. The file names graph.pb and model.pt are the docs' own placeholders.

What does an interatomic potential do?

To move atoms in a simulation you need the force on each one. A quantum-mechanical code such as VASP gets the forces from the electrons, which is accurate and slow. An interatomic potential (the LAMMPS manual also calls it a force field) takes a shortcut: it is a formula, chosen with pair_style, that LAMMPS uses to compute the interactions between atoms from their positions. Its parameters come with it, set with pair_coeff or read from a potential file, so no electrons are solved for during the run.

That shortcut is why classical molecular dynamics can follow many more atoms for much longer. It is also the main limit: the formula only knows what it was built and fitted to describe.

What kinds are there?

The LAMMPS manual groups its potentials in families. Three show the range:

KindThe idea, in the manual's termsExample in LAMMPS
Pair potentialThe energy is a sum over pairs of atoms within a cutoff; the 12/6 Lennard-Jones form is the classic onepair_style lj/cut
Many-body potentialAn atom's energy depends on all its neighbors together. EAM, for metals and alloys, adds an embedding energy that depends on the electron density from the surrounding atoms; Tersoff is a three-body formpair_style eam, pair_style tersoff
Machine-learned potentialA model trained on reference calculations; LAMMPS includes ACE, GAP, SNAP and others, and has interfaces to models distributed by other groups, such as DeepPot (DeePMD)packages such as ML-PACE and ML-SNAP

The manual notes that LAMMPS calls even the many-body ones "pairwise" styles, because the set of interacting atoms changes as they move, so a neighbor list is used to find them.

What does it look like in practice?

Two commands in the input script set the potential:

LAMMPS input
pair_style eam
pair_coeff * * Cu_u3.eam
  • pair_style chooses the formula.
  • pair_coeff sets its parameters for each pair of atom types. For many styles the parameters live in a potential file, named here; the number and meaning of the coefficients depend on the style. Cu_u3.eam is a copper EAM file, the one the film's copper run uses.

The units matter: the eam page notes that its potential files are written in LAMMPS's metal units, so the script must use units metal to match. Each style's page in the manual says which units, files and atom types it expects.

What do people mix up?

The mix-upWhat is true
"LAMMPS knows the chemistry."LAMMPS computes forces from the potential you choose; the physics of the run rests on that choice.
"A potential that worked for one property works for all."A potential is fitted to some properties; others need checking against published values or your own reference calculations.
"Any potential file works with any units."Each file is written in particular units; the script must match them.
"Machine-learned means exact."It is only as good as the reference data and the range of structures it was trained on.

Which value should I use?

The guide How do I choose an interatomic potential? covers which potential to choose, how to check it and how to cite it. It never picks one for you; the choice is yours and your group's.

Try it

Spot the problem

Each short script below has one line the LAMMPS manual says is wrong for it. Choose the line you think it is.

Script 1.

units        real
atom_style   atomic
read_data    copper.data
pair_style   eam
pair_coeff   * * Cu_u3.eam

The problem is line 1, units real: The eam page says the EAM files that come with LAMMPS, Cu_u3.eam among them, are parameterized in metal units (energy in eV, distance in Å); the file's own first line says UNITS: metal. units real measures energy in kcal/mol, so the script and the file disagree. Use units metal.

Script 2.

units        metal
atom_style   atomic
# nial.data holds two atom types: 1 = Ni, 2 = Al
read_data    nial.data
pair_style   eam/alloy
pair_coeff   1 1 NiAlH_jea.eam.alloy Ni

The problem is line 6, pair_coeff 1 1 NiAlH_jea.eam.alloy Ni: For eam/alloy the manual says the first two arguments must be * *, to span all the atom types, followed by one element name for each atom type. pair_coeff * * NiAlH_jea.eam.alloy Ni Al, one element name for each of the two types.

Script 3.

atom_style   atomic
read_data    copper.data
units        metal
pair_style   eam
pair_coeff   * * Cu_u3.eam

The problem is line 3, units metal: The units page: the command cannot be used after the simulation box is defined by a read_data or create_box command. (With no units command at all, LAMMPS uses units lj.) Move units metal to the top of the script.

Verlet explains each pair style's settings in plain words when you set up a LAMMPS run; everything on this page works without it.