GSAS-II

Rietveld refinement and diffraction analysis for powders and single crystals.

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

GSAS-II, open-source tool for crystallography: Rietveld refinement and diffraction analysis for powders and single crystals.

What GSAS-II is

GSAS-II is a program for crystallographic analysis of diffraction data. Its core is Rietveld refinement, which fits a structural model to the whole powder pattern at once, peak shapes and background included, for X-ray and neutron data (both constant wavelength and time-of-flight) and for several data sets and phases together. It also refines single-crystal data, indexes patterns, extracts intensities with Pawley or Le Bail fits, solves structures by charge flipping or Monte Carlo simulated annealing, and computes pair distribution functions. It succeeds the original GSAS and EXPGUI programs.

Data come from laboratory and synchrotron instruments in many text formats, from two-dimensional detector images that GSAS-II calibrates and integrates itself, and structures from CIF. Work is organised in a project file through a graphical interface, with plots at each step. A scripting interface, GSASIIscriptable, performs the same refinements from Python for batch work and notebooks, and refined structures export to CIF.

GSAS-II targets small-molecule and materials crystallography; it is not a macromolecular refinement program. The interface has many options, and sensible refinement strategy still has to come from the user.

Features

What it is for

Verified facts

FamilyCrystallography
Language or basisPython
Repositoryhttps://github.com/AdvancedPhotonSource/GSAS-II (GitHub)
LicenceNo licence detected by GitHub; read the repository before reuse
Main language on GitHubPython
Last commit2026-11-28
Latest releaseNo GitHub release tagged; follow the repository's own versioning
Stars127 on 2026-11-28
Open issues and pull requests30 on 2026-11-28
Repository created2024-03-08
Verified2026-11-28 by MolForge's checking script, against the host's API

Where GSAS-II fits

Symmetry, diffraction and macromolecular file handling.

Our comments on GSAS-II

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

Is GSAS-II free?
Yes. It is open source, developed at Argonne National Laboratory's Advanced Photon Source, and runs on Windows, macOS and Linux with installers that bundle the Python environment. There is no licence fee and no registration required, which distinguishes it from commercial Rietveld packages.
Can GSAS-II be scripted?
Yes. The GSASIIscriptable module exposes projects, phases, histograms and refinement controls from Python, so a refinement set up once in the interface can be repeated across many data sets or driven from a Jupyter notebook. Results and plots can be exported without opening the graphical program.
How is GSAS-II different from FullProf or TOPAS?
All three perform Rietveld refinement. FullProf is free but closed source and driven by control files; TOPAS is commercial with its own macro language. GSAS-II is open-source Python with a graphical interface, a Python scripting layer and built-in image integration. Which to choose depends mostly on workflow habits and the instrument-specific features each handles.
Does GSAS-II solve structures or only refine them?
Both, within limits. Starting from a powder pattern it can index the cell, extract intensities, attempt charge flipping, and search for a structure by Monte Carlo simulated annealing with rigid bodies, before Rietveld refinement. Structure solution from powders remains harder than from single crystals, so difficult cases may need dedicated programs.
Where is the GSAS-II source code?
At https://github.com/AdvancedPhotonSource/GSAS-II (GitHub). This is the address the host reported on the day of verification; renamed repositories are followed to their new home.
Is GSAS-II still maintained?
The last commit was pushed on 2026-11-28, and no release is tagged on GitHub; the repository had 30 open issues and pull requests on 2026-11-28.
Does MolForge use GSAS-II?
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); GSAS-II is listed because of its place in crystallography, not because we run it.

Guides that explain the methods

Other tools in crystallography