XtalOpt

Crystal structure prediction by evolutionary algorithm: candidate cells are generated, relaxed with an external DFT or force-field code, and bred over generations.

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

XtalOpt, open-source tool for materials science: structures and properties: Crystal structure prediction by evolutionary algorithm: candidate cells are generated, relaxed with an external DFT or force-field code, and bred over generations.

What XtalOpt is

XtalOpt predicts crystal structures by an evolutionary algorithm. Given a composition, it generates random unit cells, sends each to an external code for relaxation, ranks them by enthalpy and breeds the fitter ones through operations such as cut-and-splice crossover, lattice strain, atom exchange and ripple deformation. A duplicate detector removes structures that are the same up to symmetry, so the population keeps exploring. The search continues over generations until a target or a stopping criterion is reached.

It began as an Avogadro extension and is now a standalone Qt application with a graphical interface and a command-line mode. Relaxations are delegated to VASP, Quantum ESPRESSO, GULP, CASTEP or Siesta, run locally or submitted to queue systems such as PBS, SGE, Slurm and LSF over SSH. The interface shows the population as it evolves, lets parameters be changed at run time and exports structures as CIF or POSCAR. Recent releases add variable-composition searches and multi-objective optimisation.

The cost is dominated by the relaxations; a DFT-driven search means many jobs, and the external code's licence is the user's own.

Features

What it is for

Verified facts

FamilyMaterials science: structures and properties
Language or basisC++
Repositoryhttps://github.com/xtalopt/XtalOpt (GitHub)
LicenceNo licence detected by GitHub; read the repository before reuse
Main language on GitHubC++
Last commit2026-09-11
Latest releasev14.3.0 (2025-09-24)
Stars55 on 2026-11-28
Open issues and pull requests5 on 2026-11-28
Repository created2015-04-30
Verified2026-11-28 by MolForge's checking script, against the host's API

Where XtalOpt fits

Analyse and generate crystal structures, then derive phonons, transport and other properties.

Our comments on XtalOpt

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

Does XtalOpt do the energy calculations itself?
No. It generates and evolves structures, and hands every relaxation to an external code such as VASP, Quantum ESPRESSO, GULP, CASTEP or Siesta. The user provides input templates for that code and the queue settings. GULP with a classical potential is the usual way to learn the program before spending DFT time.
How is XtalOpt different from random structure searching?
Ab initio random structure searching relaxes many independent random cells and keeps the lowest. XtalOpt also starts from random cells but then breeds new candidates from the better ones, so information from earlier generations guides later ones. Both need many relaxations; the evolutionary approach concentrates them around promising regions.
Can XtalOpt run on a cluster?
Yes. It submits relaxations through PBS, SGE, Slurm, LSF or LoadLeyeler over SSH from the workstation running the interface, monitors the jobs and collects results. It can also run everything locally for small tests. The connection details and job templates are set in the interface.
What input does XtalOpt need?
The chemical formula and the number of formula units per cell, limits on cell volume and interatomic distances, the choice of relaxation code with its input templates, and the queue configuration. Optionally, seed structures can be added to the first generation.
Where is the XtalOpt source code?
At https://github.com/xtalopt/XtalOpt (GitHub). This is the address the host reported on the day of verification; renamed repositories are followed to their new home.
Is XtalOpt still maintained?
The last commit was pushed on 2026-09-11 and the latest tagged release is v14.3.0 from 2025-09-24; the repository had 5 open issues and pull requests on 2026-11-28.
Does MolForge use XtalOpt?
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); XtalOpt is listed because of its place in materials science: structures and properties, not because we run it.

Other tools in materials science: structures and properties