Wannier90

Maximally localised Wannier functions for transport, band interpolation and tight-binding models.

Tool 020 of 100 in the MolForge directory of open-source tools. Every fact below was read from the repository's host on 2026-11-28.

Wannier90, open-source tool for electronic structure of solids (periodic DFT): Maximally localised Wannier functions for transport, band interpolation and tight-binding models.

What Wannier90 is

Wannier90 computes maximally localised Wannier functions (MLWFs): localised real-space orbitals built from the delocalised Bloch states of a periodic DFT calculation. A unitary mixing of the Bloch states is optimised to minimise the total spread of the resulting functions (the Marzari-Vanderbilt procedure), and a disentanglement step handles bands that cross others. The result is a compact tight-binding model whose Hamiltonian in the Wannier basis reproduces the DFT bands and can be interpolated to any k-point cheaply.

A DFT code produces the overlap (.mmn), projection (.amn) and eigenvalue (.eig) files through its interface; Quantum ESPRESSO, ABINIT, VASP, SIESTA, GPAW, WIEN2k, FLEUR, exciting and others provide one. Wannier90 reads these plus a .win control file and writes the Wannier Hamiltonian (_hr.dat), interpolated bands, and Wannier functions in xsf or cube format. The postw90 programme computes Berry-curvature properties such as anomalous Hall conductivity, orbital magnetisation, optical conductivity and Boltzmann transport. A library mode lets codes call it directly; downstream tools include WannierTools, EPW and WannierBerri.

Good initial projections are needed; the SCDM method helps automate this but inspection of the spreads remains part of the job.

Features

What it is for

Verified facts

FamilyElectronic structure of solids (periodic DFT)
Language or basisPost-processing
Repositoryhttps://github.com/wannier-developers/wannier90 (GitHub)
LicenceLGPL-2.1 (SPDX identifier as declared in the repository)
Main language on GitHubFortran
Last commit2026-11-26
Latest releasev4.0.4 (2026-11-26)
Stars349 on 2026-11-28
Open issues and pull requests47 on 2026-11-28
Repository created2016-06-16
Verified2026-11-28 by MolForge's checking script, against the host's API

Where Wannier90 fits

Codes for crystals, surfaces and periodic materials, with plane waves, augmented plane waves or localised bases. VASP, WIEN2k and CASTEP are the proprietary references.

Our comments on Wannier90

MolForge does not run Wannier90 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 Wannier90 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 Wannier90 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.

Questions people ask

Which DFT codes work with Wannier90?
Many. Quantum ESPRESSO ships pw2wannier90, and ABINIT, VASP, SIESTA, GPAW, WIEN2k (through wien2wannier), FLEUR, exciting, Octopus and others have interfaces that write the required .amn, .mmn and .eig files. Wannier90 itself is code-agnostic: anything that supplies those overlaps in its format can be used, which is why it has become a shared layer across the field.
What are Wannier functions used for?
Interpolating band structures and Fermi surfaces at negligible cost, building tight-binding models for topological or transport analysis, computing Berry-phase properties such as polarisation and anomalous Hall conductivity, analysing chemical bonding through localised orbitals, and providing the real-space basis that electron-phonon codes such as EPW use. They are also used in DMFT and model Hamiltonian studies.
Is Wannier90 hard to use?
The mechanics are simple: a small .win file plus files from the DFT interface. The difficulty is in choosing initial projections and energy windows so that the minimisation converges to well-localised, physically meaningful functions. The SCDM method automates projections, and checking spreads and band interpolation against the DFT bands is part of normal practice.
Does Wannier90 do electron-phonon calculations?
Not itself. It provides the localised basis and the Wannier Hamiltonian; electron-phonon interpolation is done by EPW, distributed with Quantum ESPRESSO, which uses the output of Wannier90. Similarly, topological invariants and surface states are computed by downstream packages such as WannierTools or WannierBerri.
Is Wannier90 open source?
Yes. The repository declares the LGPL-2.1 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 Wannier90 source code?
At https://github.com/wannier-developers/wannier90 (GitHub). This is the address the host reported on the day of verification; renamed repositories are followed to their new home.
Is Wannier90 still maintained?
The last commit was pushed on 2026-11-26 and the latest tagged release is v4.0.4 from 2026-11-26; the repository had 47 open issues and pull requests on 2026-11-28.
Does MolForge use Wannier90?
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); Wannier90 is listed because of its place in electronic structure of solids (periodic DFT), not because we run it.

Other tools in electronic structure of solids (periodic DFT)