phonopy
Phonons and thermal properties by the harmonic supercell method.
Tool 065 of 100 in the MolForge directory of open-source tools. Every fact below was read from the repository's host on 2026-11-28.

What phonopy is
phonopy computes phonons, the quantised lattice vibrations of a crystal, within the harmonic approximation using the finite-displacement supercell method. It generates supercells in which one atom is displaced, the user computes the forces in each with a first-principles code, and phonopy assembles the force constants, builds the dynamical matrix and diagonalises it to obtain vibrational frequencies at any wave vector. Crystal symmetry, handled through spglib, reduces the number of displacements needed.
The workflow is three commands: create displaced supercells, collect forces from the DFT outputs, and post-process. Interfaces exist for VASP, Quantum ESPRESSO, ABINIT, CRYSTAL, Siesta, CP2K, CASTEP, FHI-aims, Wien2k, TURBOMOLE and LAMMPS, among others. Outputs include phonon band structures, total and projected densities of states, heat capacity, entropy and Helmholtz free energy against temperature, mode symmetry labels, group velocities and the quasi-harmonic approximation for thermal expansion. Born effective charges and the dielectric tensor add the non-analytical correction that splits longitudinal and transverse optical modes in polar crystals. A Python API exposes everything to scripts, and phono3py extends the method to anharmonic properties.
Harmonic phonons describe a crystal near its equilibrium structure; imaginary frequencies signal instability, and strongly anharmonic materials need the extended methods.
Features
- Finite-displacement supercell method with symmetry reduction via spglib
- Interfaces to VASP, Quantum ESPRESSO, ABINIT, CP2K, CASTEP, Siesta, FHI-aims and more
- Phonon band structures, densities of states and projected densities
- Harmonic thermal properties: heat capacity, entropy and free energy
- Quasi-harmonic approximation for thermal expansion and temperature-dependent volume
- Non-analytical term correction from Born charges and dielectric tensor
- Python API and YAML or HDF5 outputs
What it is for
- Check the dynamical stability of a predicted crystal structure
- Compute a phonon dispersion to compare with inelastic scattering data
- Obtain vibrational free energies for finite-temperature phase stability
- Estimate thermal expansion with the quasi-harmonic approximation
Verified facts
| Family | Materials science: structures and properties |
|---|---|
| Language or basis | Python, C |
| Repository | https://github.com/phonopy/phonopy (GitHub) |
| Licence | BSD-3-Clause (SPDX identifier as declared in the repository) |
| Main language on GitHub | Python |
| Last commit | 2026-11-24 |
| Latest release | No GitHub release tagged; follow the repository's own versioning |
| Stars | 507 on 2026-11-28 |
| Open issues and pull requests | 7 on 2026-11-28 |
| Repository created | 2012-12-11 |
| Verified | 2026-11-28 by MolForge's checking script, against the host's API |
Where phonopy fits
Analyse and generate crystal structures, then derive phonons, transport and other properties.
phonopy appears in this chain of the directory: High-throughput materials screening by DFT.
Questions people ask
- What input does phonopy need?
- A relaxed unit cell in the format of your DFT code, a supercell size, and after the displacement step, the forces computed on each displaced supercell. For polar materials, Born effective charges and the dielectric tensor are also needed to correct the long-wavelength optical modes. Everything else is derived.
- Which DFT codes work with phonopy?
- VASP, Quantum ESPRESSO, ABINIT, Siesta, CRYSTAL, CP2K, CASTEP, FHI-aims, Wien2k, TURBOMOLE, Elk, Fleur, LAMMPS and others have built-in interfaces that read their force outputs. For any other code, forces can be supplied in a simple text format, and the Python API accepts force arrays directly.
- What do imaginary frequencies in phonopy mean?
- A negative frequency in the output indicates a direction along which the structure lowers its energy, so the input cell is not a local minimum in the harmonic sense. Causes range from genuine instability, pointing to a lower-symmetry phase, to numerical noise from an under-converged supercell or DFT settings.
- How is phonopy different from phono3py?
- phonopy stops at second-order force constants: harmonic frequencies and the thermodynamic quantities that follow. phono3py, by the same authors, adds third-order force constants from a larger set of displaced supercells, giving phonon lifetimes and lattice thermal conductivity. phono3py requires a phonopy-style harmonic calculation as its starting point.
- Is phonopy open source?
- Yes. The repository declares the BSD-3-Clause licence (SPDX identifier read from the host on 2026-11-28). Read the licence text in the repository before redistributing or embedding it.
- Where is the phonopy source code?
- At https://github.com/phonopy/phonopy (GitHub). This is the address the host reported on the day of verification; renamed repositories are followed to their new home.
- Is phonopy still maintained?
- The last commit was pushed on 2026-11-24, and no release is tagged on GitHub; the repository had 7 open issues and pull requests on 2026-11-28.
- Does MolForge use phonopy?
- No. MolForge runs nine of the hundred tools in this directory (RDKit, OpenMM, AutoDock Vina, Open Babel, MDTraj, pymbar and NGL, plus PySCF and xTB in MFsig); phonopy is listed because of its place in materials science: structures and properties, not because we run it.
Our comments on phonopy
MolForge does not run phonopy in production. This page is a verified pointer, not a review: the facts above come from the repository on the date shown, the description is ours, and we make no claim about accuracy or speed that we have not measured. If you maintain phonopy and something here is wrong or out of date, write to hello@molforge.ai and we will correct the source file.
Test status
Not tested by MolForge. To check phonopy yourself: clone the repository, follow the installation section of its README, and run the test suite the project ships before trusting a result; the last-commit date and the open issue count above tell you how alive the project is.