Guide · LAMMPS · 15 min read

How do I choose and cite an interatomic potential for LAMMPS?

Checked against the docs · LAMMPS stable release 30 Sep 2026 and the potentials/README file of the LAMMPS stable branch · Last checked 12 November 2026 · Spot a mistake? Tell us

Short answer

Choose it yourself from the literature on your material and the property you need, since the potential decides every number the run gives. Before you trust it, check what it was fitted to, the units and elements its file expects, and that it reproduces a property you know; then cite the potential's own paper as well as LAMMPS.

What is an interatomic potential?

LAMMPS moves atoms by Newton's laws, and for that it needs the force on every atom at every step. An interatomic potential (also called a force field, or an interatomic model) is the formula that gives the energy of the atoms from their positions; the force on each atom is the negative derivative of that energy, the direction in which the energy falls fastest.

In LAMMPS two commands set it:

  • pair_style names the formula, such as eam/alloy or tersoff, with any global settings such as a cutoff distance.
  • pair_coeff gives its numbers for each pair of atom types, often by naming a potential file that holds them.
Example
pair_style      eam/alloy
pair_coeff      * * NiAlH_jea.eam.alloy Ni Al

This follows the example on the manual's eam page and is there to show the syntax, not as a suggestion: the style is the embedded-atom method for alloys, and the file NiAlH_jea.eam.alloy is one the LAMMPS distribution includes, holding nickel, aluminum and hydrogen. * * means every pair of atom types, and Ni Al says atom type 1 is nickel and type 2 aluminum.

The manual calls all of these pair styles, even the ones where three or more atoms interact at once (EAM, Tersoff, Stillinger-Weber), because the set of neighbors each atom interacts with changes as the atoms move (pair_style).

Why does the choice matter so much?

Because the potential is the physics of your simulation. A lattice constant, a melting point, a diffusion coefficient, a surface energy: every number the run gives comes from the potential, and none is better than the potential is for that property.

A potential is fitted to a set of data (measured properties, quantum-mechanical calculations or both) and is trustworthy near that data. Away from it, it may still run smoothly and give wrong answers with no warning. The README of the potentials directory in LAMMPS says it plainly: for a given material and application, a different potential than the one supplied may be more suitable, and whatever you choose, you should check that you have defined it and are using it correctly by comparing with published results for that potential.

So no guide, this one included, can tell you which potential to use. That is a research decision, yours and your advisor's, made from the literature on your material and the property you need. What follows is how to make it well.

What kinds of potential are there?

The families below are the ones the LAMMPS manual describes on each pair_style page; the pair_style page lists them all.

FamilyStylesWhat it describesWhat the manual notes
Pair potentialslj/cut, buck, morseAn energy for each pair of atoms that depends only on their distancelj/cut is the 12/6 Lennard-Jones form, with ε and σ for each pair of types set by pair_coeff.
Embedded-atom method (EAM)eam, eam/alloy, eam/fsMetals and alloys: a pair term plus an embedding energy that depends on the electron density around each atomThe cutoff and usually the masses are in the file. The potentials directory has several DYNAMO-format files, all in metal units (eam).
Many-body (bond-order and three-body)tersoff, swCovalent solids, where bond angles matterThe files in potentials are in metal units (tersoff, sw).
ReactivereaxffBonds that form and break, through distance-dependent bond ordersNeeds a charge on each atom and, by default, a charge-equilibration fix; the files in potentials are in real units (reaxff).
Machine-learnedsnap, pace, mliap, and othersA flexible function of each atom's neighborhood, fitted to quantum-mechanical energies, forces and stressessnap is fitted to ab initio data with compute snap; pace is the atomic cluster expansion; mliap is a general interface for several models.
From OpenKIMkimAny model archived in the OpenKIM repositoryUsed through the kim command.

Some machine-learned potentials are not in the manual's list at all: they come as plugins from the people who built them, and those developers' documentation is the reference for them.

Each family lives in a package, which your LAMMPS build must include: EAM, Tersoff and Stillinger-Weber in MANYBODY, ReaxFF in REAXFF, SNAP in ML-SNAP, ACE in ML-PACE, the mliap interface in ML-IAP, kim in KIM. Each style's page names its package under Restrictions. lmp -h lists the styles your build has (How do I install or compile LAMMPS?).

Where do potential files come from?

The potentials directory that ships with LAMMPS. It holds example files for many styles, named by element and style: Si.tersoff, NiAlH_jea.eam.alloy. Its README is frank about what they are: they are there mainly to show the kinds of potential LAMMPS supports. Each file's first line carries a DATE:, often a CITATION: for the paper it comes from, a contributor, and a UNITS: tag; the README says these are not a guarantee that the potential was transcribed correctly or that the paper had no errors, though many have been checked against their papers.

Curated repositories. The manual's eam page and the potentials README point to two: the NIST Interatomic Potentials Repository and the Open Knowledgebase of Interatomic Models (OpenKIM, with its models listed by type at openkim.org/browse/models/by-type); these are the addresses the eam page gives. OpenKIM models run directly in LAMMPS with the kim command; each has a model page with its citation, its authors and the results of OpenKIM's tests and verification checks (kim command).

The developers of the potential. For ReaxFF, the manual says LAMMPS ships only a few parameter files and names Adri van Duin's group at Penn State as the central source for others. For a published potential of any kind, the paper or its supplementary material often provides the file.

Wherever it comes from, LAMMPS first looks for the file where pair_coeff says (a bare name means the folder the job runs in), then in the folders listed in the LAMMPS_POTENTIALS environment variable (pair_coeff):

Terminal
export LAMMPS_POTENTIALS=/path/to/lammps/potentials

How do I choose a potential?

Start from your question, not from the list of files. For each candidate you find in the literature or a repository, check these, in this order:

CheckWhyWhere to look
It covers every element in your system, and their mixturesA potential for pure nickel says nothing about nickel next to aluminum; an alloy needs the cross interactions too.The file's element list; the paper
It was fitted to, or tested on, situations like yoursFitted to the perfect crystal at 0 K, it may be poor for the liquid, a surface or a defect.The paper's fitting data and its tested properties; OpenKIM's test results
It reproduces the property you will report, in someone's published testA good lattice constant does not guarantee a good diffusion barrier.Papers that used it for your property; the repository's notes
Your LAMMPS build has the styleWithout the package, LAMMPS stops at pair_style.lmp -h
You can afford itStyles differ in cost per atom, and the time you have sets the size and length of run you can do.A short test run's Performance: line
You can cite itA result you cannot attribute to a published potential is hard to publish.The CITATION: line, the repository's page

What it depends on:

  • Your material. The elements, the bonding (metallic, covalent, ionic, molecular) and whether bonds must break.
  • The property. Elastic constants, defects, surfaces, melting, diffusion and fracture each test a potential differently.
  • The conditions. Temperature and pressure outside what the potential was fitted to are where it is least reliable.
  • What your group already uses. Results compared within a study must share one potential, as they must share one cutoff in DFT.

How do I give LAMMPS the potential correctly?

Units. The units command sets the units of everything in the script, the data file and the potential files (units). It must come before the box is made (read_data or create_box), and its default is lj, reduced units with no physical size. The two you will meet most:

unitsDistanceEnergyTimePressureMass
metalÅeVpsbarg/mol
realÅkcal/molfsatmg/mol

A potential file is written in one unit system. If its first line carries a UNITS: tag, LAMMPS compares it with your units and stops with an error when they differ; in a few cases it converts the parameters itself and prints a warning saying so. Without the tag, nothing checks: the manual leaves it to you (pair_coeff).

Mapping atom types to elements. LAMMPS knows atoms by type number (1, 2, 3); the potential file knows elements. For the many-body styles, one pair_coeff * * line names the file and then one element for each atom type, in order:

Example
pair_coeff      * * SiC.tersoff Si Si Si C

This is the manual's tersoff example: atom types 1 to 3 are silicon, type 4 is carbon. NULL in place of an element leaves that type to another style in a hybrid setup. The order must match the types in your data file; nothing checks that it does. The single-element eam style is different: each pair_coeff line names a file for one or more I,I pairs of types, as in the manual's pair_coeff *2 1*2 cuu3.eam, which makes types 1 and 2 copper.

Masses. Each atom type needs a mass, given by the mass command or in the data file's Masses section, in the mass units of your units (g/mol in metal and real). All must be set before the run (and before velocity), and each must be greater than zero (mass). EAM files carry their own masses, so the mass command is normally not needed with them; if the file holds a dummy mass such as 0.0, LAMMPS warns and you must set it (eam).

How do I know the potential fits my problem?

Read its first line. head -1 of the file shows its DATE:, UNITS: and often CITATION:. For the styles that support it, LAMMPS also prints the file's date to the screen and the log when it reads it, so a later log shows whether the file changed (the potentials README suggests comparing old and new logs).

Reproduce something you know. The potentials README's own advice is to compare with published results for that potential. The cheapest test is a property of the perfect crystal, such as the lattice constant at zero pressure: build the crystal, relax the atoms and the box together, and compare with the value the potential's paper reports.

Example
fix             1 all box/relax iso 0.0 vmax 0.001
minimize        0.0 1.0e-8 10000 100000

fix box/relax iso 0.0 lets the box change size until the pressure is zero, during the minimization (fix box/relax); minimize takes an energy tolerance, a force tolerance in force units, and two limits on iterations and force evaluations (minimize). The vmax 0.001 is the first example on the fix's page; the tolerances are an example. Then test the property closer to your question (a vacancy energy, a surface energy, the liquid's density) against published values or your own DFT. The manual does not say how close counts as agreement; that depends on the question you are asking.

Watch for the potential's own warnings. An EAM file tabulates its embedding energy only up to some electron density. When atoms get closer than that, LAMMPS extrapolates and prints a warning; the manual says this may be acceptable at the start of an equilibration, but in a production run it means the potential is probably not a good model for the system (eam).

For a machine-learned potential, ask whether your structures look like its training data. Outside it, the model has nothing to go on. ACE offers a direct measure: pair_style pace/extrapolation computes an extrapolation grade for each atom, which grows as a structure moves away from the training set; the manual's example writes out the structures whose grade exceeds 5 (pace).

How do I cite LAMMPS and the potential?

Cite both, and the potential is the one people forget.

LAMMPS. The manual's Citing LAMMPS page asks every project that uses LAMMPS to cite "LAMMPS - A flexible simulation tool for particle-based materials modeling at the atomic, meso, and continuum scales", Comp. Phys. Comm. 271, 108171 (2022), DOI 10.1016/j.cpc.2021.108171, and to give the address of the LAMMPS website, https://www.lammps.org. For the source code itself, the canonical DOI is 10.5281/zenodo.3726416, which points to the latest stable release.

The methods your run used. At the end of a run, LAMMPS prints a reminder of the papers for the optional features it used: by default a short summary on screen and the full references, in BibTeX, in the log file. The -cite switch changes where it goes (Command-line options). The manual asks you to give the proper citations for what you used.

The potential. Cite the paper that published its parameters: the CITATION: line in the file, the repository's page or the paper you took it from. Write in your methods which file you used and its DATE:, so someone can reproduce the run. For an OpenKIM model, the kim page asks you to cite the OpenKIM project, the KIM API and the model's own code as well as its scientific references; OpenKIM shows the citation on each model's page and LAMMPS adds it to the citation reminder (kim command). For ReaxFF, the manual names the papers its implementation follows (Chenoweth and co-workers, 2008, and Aktulga and co-workers) on the reaxff page.

What goes wrong with potentials?

MistakeWhat you would seeWhat to do
units left out, or the wrong oneWith a UNITS: tag in the file, LAMMPS stops with an error about the mismatch. Without one, nothing stops it: it runs with the file's numbers read in the wrong units, and every result is meaningless.Set units to the units the potential was written in, before read_data.
The potential file is not foundLAMMPS stops at pair_coeff, unable to open the file.Give its full path, copy it into the run folder, or set LAMMPS_POTENTIALS.
Elements mapped to the wrong typesNo error: type 1 is treated as whatever element pair_coeff names first. The structure behaves like another material.Write the element list in the order of the types in your data file, and check it against the Masses.
A style your build does not haveLAMMPS stops at pair_style with an error that the style is unknown or invalid.lmp -h; load a build with the package, or build one.
A mass missing, or zeroLAMMPS stops before the run: every mass must be set, and greater than zero.Set mass for each type, or the Masses section, unless an EAM file provides them.
ReaxFF without charges or a charge-equilibration fixLAMMPS stops: the style needs an atom_style with charge and, unless checkqeq no, a fix such as qeq/reaxff.Use atom_style charge (or fix property/atom q) and add the fix the reaxff page lists.
Restarting with a many-body potentialMany-body and tabulated styles do not store their coefficients in restart files (read_restart).Repeat pair_style and pair_coeff after read_restart.
A potential used far from its fitting dataNo error. Results that disagree with experiment or DFT, or EAM's warning about densities beyond its table.Check it against a known property for your conditions, or choose another.

How do I run a machine-learned potential efficiently?

How a machine-learned potential's job is spread over the machine decides how fast it runs. Several have accelerated versions: snap/kk and snap/intel, pace/kk, which run through the KOKKOS package on GPUs or the INTEL package on CPUs (snap, pace). The manual does not say how many MPI processes or nodes each style uses well. Run a short test at two sizes of job and compare the Performance: lines before a long run (How do I use my cores well?).

Set up's Potential section lists the pair styles Verlet can write, each with a sentence on what it describes, and takes the path of your potential file on the cluster; you choose the potential, and Verlet never picks one for you. Before you submit, pre-flight checks your potential settings.

Updated
11 November 2026
Applies to
LAMMPS stable release 30 Sep 2026
Source check
Checked against the docs, 12 November 2026

Where can I read more?

The official LAMMPS manual pages for each command on this page:

What was this page checked against?

Checked against the LAMMPS stable release 30 Sep 2026, 11 November 2026. Every statement about LAMMPS was read against these pages of the stable manual, each reporting git info "30Sep2026 update1" (the manual's pages carry no last-edited date): pair_style, pair_coeff, eam, tersoff, sw, reaxff, lj/cut, snap, pace, mliap, kim command, units, mass, read_restart, fix box/relax, minimize, Citing LAMMPS, Command-line options and Include packages in build; and the potentials README on the LAMMPS stable branch. Every link on this page was opened. The NIST Interatomic Potentials Repository and OpenKIM's own pages could not be reached from the drafting environment, so the page describes them only as the LAMMPS manual does, and links them at the addresses the manual's eam page gives (checked 12 November 2026).

The manual does not say how close a tested property must come to count as agreement; the page words this cautiously, and it is with an expert reviewer.