GROMACS
Very high performance molecular dynamics; the reference for proteins and membranes.
Tool 027 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 GROMACS is
GROMACS is a molecular dynamics engine. Molecular dynamics (MD) integrates Newton's equations of motion for every atom in a system, using a force field: a set of simple functions and parameters that describe bond stretching, angle bending, torsions, electrostatics and van der Waals forces. GROMACS was built for biomolecules in solution and remains a reference for proteins, nucleic acids, lipids and membranes. It is written in C++ with hand-tuned kernels and runs on CPUs, GPUs and clusters.
A typical study starts from a PDB file. The pdb2gmx tool assigns a force field (AMBER, CHARMM, OPLS-AA and GROMOS variants are shipped), solvate and genion add water and ions, and grompp compiles coordinates, topology and a parameter file into a single run input. mdrun then produces compressed trajectories, energies and logs, which the gmx analysis commands or libraries such as MDAnalysis and MDTraj turn into RMSDs, distributions and free energies. PLUMED, CP2K for QM/MM and many workflow tools connect to it.
GROMACS does not do reactive chemistry or electronic structure. Learning the toolchain takes time, and preparing ligands or non-standard residues needs external parametrisation tools.
Features
- Bundled AMBER, CHARMM, OPLS-AA and GROMOS force fields with topology builder pdb2gmx
- GPU offload of non-bonded, PME and update steps through CUDA, OpenCL and SYCL
- Hybrid MPI and OpenMP parallelism with dynamic load balancing
- Free-energy perturbation, pull code and replica exchange built into mdrun
- A suite of gmx analysis commands for RMSD, RDF, diffusion and energies
- Interfaces to PLUMED for enhanced sampling and CP2K for QM/MM
What it is for
- Simulate a solvated protein or protein-ligand complex over microseconds
- Model lipid bilayers and membrane proteins
- Compute binding or solvation free energies with alchemical transformations
- Run replica-exchange or pulling simulations of folding and unbinding
Verified facts
| Family | Classical molecular dynamics |
|---|---|
| Language or basis | Biomolecules |
| Repository | https://github.com/gromacs/gromacs (GitHub) |
| Licence | LGPL-2.1 (SPDX identifier as declared in the repository) |
| Main language on GitHub | C++ |
| Last commit | 2026-11-28 |
| Latest release | No GitHub release tagged; follow the repository's own versioning |
| Stars | 981 on 2026-11-28 |
| Open issues and pull requests | 0 on 2026-11-28 |
| Repository created | 2009-06-06 |
| Verified | 2026-11-28 by MolForge's checking script, against the host's API |
Where GROMACS fits
Force-field simulation engines for biomolecules, materials and soft matter. AMBER is commercial (AmberTools is free) and NAMD is free under its own licence.
GROMACS appears in this chain of the directory: Biomolecular molecular dynamics.
It is the first place to look when you want simulating atomic motion (MD).
Questions people ask
- Does GROMACS run on GPUs?
- Yes. Short-range non-bonded forces, PME electrostatics, bonded terms and the integration step can all be offloaded to NVIDIA, AMD and Intel GPUs through CUDA, OpenCL or SYCL builds. A single GPU with a few CPU cores is a common configuration, and multi-GPU runs are supported with direct GPU communication.
- How is GROMACS different from LAMMPS?
- GROMACS is built around biomolecular workflows: a topology builder for proteins, bundled biomolecular force fields and PME electrostatics by default. LAMMPS is a general particle simulator with hundreds of interaction styles for metals, polymers, granular matter and reactive systems. Both can be scripted and extended, but each has its home community and file formats.
- What input files does GROMACS need?
- Three things: coordinates (a .gro or .pdb file), a topology (.top with .itp includes) describing atoms, bonds and parameters, and an .mdp file with simulation settings such as integrator, time step, thermostat and cut-offs. grompp combines them into a binary .tpr file that mdrun executes.
- Can GROMACS simulate small molecules or ligands?
- Yes, but the bundled force fields cover amino acids, nucleotides, lipids and common solvents only. Ligands need parameters from an external tool such as the Open Force Field Toolkit, CGenFF, ACPYPE or antechamber, converted to GROMACS topology format with ParmEd or the tool's own exporter.
- Is GROMACS 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 GROMACS source code?
- At https://github.com/gromacs/gromacs (GitHub). This is the address the host reported on the day of verification; renamed repositories are followed to their new home.
- Is GROMACS still maintained?
- The last commit was pushed on 2026-11-28, and no release is tagged on GitHub; the repository had 0 open issues and pull requests on 2026-11-28.
- Does MolForge use GROMACS?
- 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); GROMACS is listed because of its place in classical molecular dynamics, not because we run it.
Our comments on GROMACS
MolForge does not run GROMACS 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 GROMACS 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 GROMACS 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.