Fact-checked by Grok 2 weeks ago

GROMACS

GROMACS is a package designed for high-performance simulations and energy minimization, solving Newton's for atomic systems ranging from hundreds to millions of particles. Primarily focused on biochemical molecules such as proteins, , and nucleic acids, it also supports simulations of non-biological systems like polymers and . Developed as a versatile, community-driven tool, GROMACS emphasizes efficiency, user-friendliness, and extensibility, making it one of the most widely used programs in and molecular modeling. Originating in the early 1990s from Herman Berendsen's group in the Department of Biophysical Chemistry at the , , GROMACS was initially created to address the need for efficient parallel simulations of biomolecular systems. It has since evolved through contributions from an international team of developers, now led by Berk Hess and Erik Lindahl from the Royal Institute of Technology (KTH) and , with coordination at the Science for Life Laboratory in . Released under the GNU Lesser General Public License (LGPL) version 2.1, the software encourages , including bug fixes, feature additions, and documentation improvements from the global community. Key features of GROMACS include optimized performance through SIMD intrinsics, support for GPU acceleration via , , and , and advanced parallelization with MPI and Thread-MPI for load balancing across CPUs and GPUs. It provides tools for topology generation, analysis, and enhanced sampling methods, often without requiring scripting, though a is under development. Widely adopted in and for predicting properties like binding affinities and viscosities, GROMACS continues to advance with regular releases, such as version 2025 as of November 2025.

Introduction

Overview

GROMACS is a free, suite designed for high-performance (MD) simulations and energy minimization of biomolecular systems, including proteins, , and nucleic acids. It enables researchers to model the behavior of these systems at the atomic level, supporting simulations of systems ranging from hundreds to millions of particles. The core purpose of GROMACS is to simulate the Newtonian for atoms and molecules, allowing the study of dynamic processes such as , ligand binding, and membrane dynamics. Key capabilities include preparation of input structures from (PDB) files, generation of simulation trajectories over time, and basic analysis of output data like energies and coordinates. Originating in the 1990s at the in the , GROMACS has evolved into a widely used tool in and chemistry. The latest version, GROMACS 2025.3, released on August 29, 2025, incorporates ongoing enhancements for improved performance, new features, and compatibility with modern hardware.

Licensing and Availability

GROMACS has been distributed as since 2000, initially under the GNU General Public License (GPL) version 2 or later, which permits free use, study, modification, and distribution provided that derivative works are also released under the GPL and is made available. In 2010, with the release of version 4.6, the licensing transitioned to the GNU Lesser General Public License (LGPL) version 2.1 or later to facilitate broader integration as a while maintaining open-source principles; this allows linking with without requiring the entire application to be open-sourced, as long as modifications to GROMACS itself are shared under the LGPL. The current licensing remains under LGPL 2.1 or later, emphasizing freedom for academic, research, and commercial use within the license terms. The software is freely downloadable from the official website at gromacs.org, where users can access the latest stable releases, such as version 2025.3, in form for on various platforms. Pre-compiled binaries are available for major operating systems including distributions, macOS, and Windows (often via the or ), simplifying for non-experts, while the supports custom builds optimized for (HPC) clusters using tools like MPI and . GROMACS is also designed for easy deployment on supercomputers, with guides covering architectures like x86_64, , and GPU-accelerated systems. Development and distribution are community-driven, with the primary source repository hosted on GitLab at gitlab.com/gromacs/gromacs, enabling version control, issue tracking, and contributions through merge requests. Comprehensive documentation, including user manuals, tutorials, and API references, is hosted at manual.gromacs.org, ensuring accessibility for users ranging from beginners to advanced developers. Special licensing considerations exist for certain projects; for instance, a non-LGPL variant of GROMACS has been provided to the Folding@home distributed computing initiative, allowing integration into their proprietary client software for large-scale protein folding simulations without imposing open-source requirements on the entire application.

History

Origins and Early Development

GROMACS originated in 1991 at the Department of Biophysical Chemistry, , in the , under the leadership of Professor Herman J.C. Berendsen. The project was initiated to address the need for efficient (MD) simulations of biomolecules, particularly proteins in aqueous environments. Berendsen's group aimed to create a high-performance software package optimized for , building on prior work in the field. The name GROMACS stands for GROningen MAchine for Chemical Simulations, reflecting its initial close association with the development of a custom parallel computer featuring a 32-processor ring architecture. This hardware was designed specifically to accelerate MD calculations, with the software rewritten in the portable ANSI C language to leverage its capabilities. Unlike the earlier Fortran 77-based GROMOS package, which Berendsen had co-developed, GROMACS emphasized speed and flexibility for large-scale simulations without relying on proprietary hardware. During its early development from 1991 to 2000, the focus was on constructing a core MD engine capable of handling proteins, solvents, and other biomolecules under . Key milestones included implementing message-passing parallelism for and ensuring compatibility with force fields like GROMOS for accurate biomolecular modeling. The software remained an internal academic tool within the group, prioritizing research efficiency over public distribution. In 2000, GROMACS transitioned to an open-source model, broadening its accessibility.

Open-Source Transition and Modern Evolution

In 2000, GROMACS transitioned to an open-source model by releasing its source code under the GNU General Public License (GPL), which facilitated community-driven development and broader adoption by researchers worldwide. This shift coincided with a relocation of primary leadership from the in the to the Royal Institute of Technology (KTH) and in , where developers like Erik Lindahl and David van der Spoel played key roles in expanding its scope. The GPL licensing ensured that modifications and extensions remained freely available, fostering a collaborative that has since involved hundreds of contributors globally. In 2010, with version 4.6, GROMACS was relicensed under the GNU Lesser General Public License (LGPL) version 2.1. Key evolutions in the following years included its integration into large-scale projects, such as starting in 2001, where a modified version of GROMACS powered volunteer-based simulations of on thousands of machines. By around 2005, GROMACS adopted an annual release cycle to incorporate user feedback and performance enhancements rapidly, culminating in major rewrites like version 4.5 in 2010, which introduced initial GPU acceleration via for faster non-bonded force calculations. These updates significantly boosted simulation throughput, enabling studies of larger biomolecular systems. Institutional support evolved further with the establishment of the Science for Life Laboratory in as the current lead development hub, complemented by the EU-funded BioExcel Center of Excellence since 2016, which has driven optimizations in scalability, usability, and integration with resources. Notable milestones underscore GROMACS' modern trajectory, including version 5.0 in 2015, which implemented multi-level parallelism to distribute workloads across CPU cores, GPUs, and nodes for exascale simulations. In 2023, the project added support for heterogeneous GPU acceleration, extending compatibility to , , and hardware while improving portability across accelerators. The 2025 series further advanced interoperability with a built-in interface to the PLUMED library for enhanced free-energy calculations, support for amino-acid-specific CMAPs enabling the ff19SB , and potential support using PyTorch-trained models. These developments have solidified GROMACS as a cornerstone of open computational , with ongoing contributions from international teams ensuring its relevance in cutting-edge .

Core Functionality

Molecular Dynamics Algorithms

GROMACS employs molecular dynamics (MD) simulations to model the time evolution of atomic systems by numerically integrating Newton's equations of motion, m \mathbf{a} = \mathbf{F}, where m is the particle mass, \mathbf{a} is the acceleration, and \mathbf{F} represents the total force on each particle derived from interatomic potentials such as Lennard-Jones for van der Waals interactions and Coulombic terms for electrostatics. These forces are computed from the system's potential energy, enabling the prediction of trajectories over discrete time steps. The software's algorithms prioritize numerical stability, accuracy, and efficiency for biomolecular systems. The core integrator in GROMACS is the leap-frog algorithm, a variant of the Verlet method that staggers position and velocity updates for integration, preserving energy and phase-space volume over long simulations. In this scheme, velocities are first updated at half-steps t + \Delta t/2, followed by positions at integer time steps t + \Delta t, using the relations: \mathbf{v}(t + \Delta t/2) = \mathbf{v}(t - \Delta t/2) + \mathbf{a}(t) \Delta t \mathbf{r}(t + \Delta t) = \mathbf{r}(t) + \mathbf{v}(t + \Delta t/2) \Delta t where accelerations \mathbf{a}(t) = \mathbf{F}(t)/m are evaluated from forces at time t. An equivalent formulation is the velocity Verlet scheme, which updates both positions and velocities within a full step and produces identical trajectories to leap-frog: \mathbf{r}(t + \Delta t) = \mathbf{r}(t) + \mathbf{v}(t) \Delta t + \frac{1}{2} \mathbf{a}(t) (\Delta t)^2 \mathbf{v}(t + \Delta t) = \mathbf{v}(t) + \frac{1}{2} \left[ \mathbf{a}(t) + \mathbf{a}(t + \Delta t) \right] \Delta t This derivation ensures second-order accuracy and time-reversibility, with typical time steps of 1-2 fs to resolve high-frequency vibrations while maintaining stability. To simulate bulk behavior without surface artifacts, GROMACS applies periodic boundary conditions (PBC), replicating the simulation box infinitely in all directions using a triclinic unit cell defined by vectors \mathbf{a}, \mathbf{b}, and \mathbf{c}. The minimum image convention restricts interactions to the nearest periodic image of each particle, ensuring that distances are computed modulo the box vectors to select the shortest vector \mathbf{r}_{ij} satisfying |\mathbf{r}_{ij}| \leq \frac{1}{2} times the shortest box dimension. This approach, combined with cut-off radii not exceeding half the minimum box edge, accurately models infinite systems like liquids or crystals. Non-bonded interactions, encompassing van der Waals and , are handled efficiently to capture long-range effects. For , GROMACS implements the Particle Mesh Ewald (PME) method, which decomposes interactions into short-range real-space sums (via direct cut-off) and long-range reciprocal-space contributions evaluated on a grid using fast Fourier transforms. The potential is given by: V_{\text{Coulomb}} = \frac{1}{4\pi\epsilon_0} \sum_{i<j} q_i q_j \frac{\mathrm{erfc}(\kappa r_{ij})}{r_{ij}} + \text{reciprocal terms} where \mathrm{erfc} is the complementary error function that screens the short-range parts, achieving O(N \log N) scaling for N particles. Van der Waals forces follow the Lennard-Jones form, V_{\text{LJ}}(r) = 4\epsilon \left[ \left( \frac{\sigma}{r} \right)^{12} - \left( \frac{\sigma}{r} \right)^6 \right], truncated at a cut-off with optional shifting. Both are optimized using buffered pair lists, which precompute interacting particle pairs within an extended cut-off radius (Verlet buffer) to reduce recalculation frequency, updated every few steps based on a tolerance for energy drift. Prior to dynamics, GROMACS performs energy minimization to relax initial structures from overlaps or strains, using iterative optimization of the V. The steepest descent method displaces atoms opposite the \mathbf{F} = -\nabla V, with step size \delta scaled by the component: \mathbf{x}_{\text{new}} = \mathbf{x} + \delta \frac{\mathbf{F}}{|\mathbf{F}|_{\max}} where \delta \approx 0.01 , accepting steps only if V decreases and halting when the falls below a tolerance (e.g., 1-10 kJ mol⁻¹ ⁻¹). For finer convergence near minima, the conjugate gradient algorithm builds orthogonal search directions from prior , accelerating descent via the Fletcher-Reeves update: \mathbf{p}_{k+1} = -\mathbf{g}_{k+1} + \beta_k \mathbf{p}_k, \quad \beta_k = \frac{|\mathbf{g}_{k+1}|^2}{|\mathbf{g}_k|^2} where \mathbf{g} = -\mathbf{F} is the gradient; it is slower initially but more efficient overall, though incompatible with constraints like rigid water models.

Supported Force Fields and Integrators

GROMACS provides native support for several widely used biomolecular force fields, enabling simulations of proteins, lipids, nucleic acids, and small molecules. These include the AMBER family (versions such as AMBER94, AMBER96, AMBER99, AMBER99SB, AMBER99SB-ILDN, AMBER03, and AMBERGS), the CHARMM series (including CHARMM19 united-atom, CHARMM22, CHARMM27, and CHARMM36), the GROMOS force fields (43a1, 43a2, 45a3, 53a5, 53a6, and 54a7 united-atom variants), and the OPLS-AA parameters (united-atom OPLS-UA, all-atom OPLS-AA, and OPLS-AA/M). Each force field parameter set is distributed with GROMACS or available through official ports, ensuring compatibility for standard biomolecular systems. Topology files in GROMACS, typically with the .top extension, define the molecular and interaction parameters for these s. These files specify bonded terms such as bond stretching, modeled as potentials U_{\text{bond}} = \frac{1}{2} k (r - r_0)^2, where k is the force constant, r the current , and r_0 the length, as well as angle bending and torsions. Non-bonded interactions, including van der Waals and electrostatic forces, are handled via Lennard-Jones and potentials, respectively, with parameters derived from the selected . The core integration in GROMACS relies on the leap-frog Verlet algorithm for propagating . Supported integrators include stochastic dynamics (), which applies a leap-frog scheme with friction and random forces for constant temperature control using parameters like coupling time \tau_t and reference temperature T. Langevin dynamics, implemented for simulations, incorporates velocity updates with friction coefficients and thermal noise to maintain temperature. Temperature coupling options feature the velocity rescaling thermostat, which combines kinetic energy rescaling with stochastic terms to sample the accurately. For pressure control, the Parrinello-Rahman barostat couples the simulation box to an external pressure via an extended Lagrangian, allowing anisotropic scaling with a coupling constant \tau_p. Specialized simulation methods in GROMACS enhance sampling and thermodynamic calculations. Replica exchange molecular dynamics (REMD) enables across multiple replicas at different temperatures, with periodic attempts to swap configurations to overcome energy barriers and improve conformational sampling. Free energy perturbation (FEP) supports alchemical transformations, such as mutating one molecule into another, through λ-parameter scaling that interpolates between initial (λ=0) and final (λ=1) states, often using soft-core potentials to avoid singularities during the process. Key file formats facilitate input and output for these features. The .gro format stores atomic coordinates (in nanometers) and optional velocities (in nm/ps), along with box dimensions, serving as a lightweight file or concatenated trajectory. The .tpr file, generated by the preprocessor, combines , coordinates, and parameters into a portable run input essential for executing with specified fields and integrators.

Performance and Parallelization

Hardware Acceleration

GROMACS optimizes CPU computations through extensive support for (SIMD) instructions, enabling vectorized force calculations on modern processors. It leverages instructions such as on x86 architectures and ARM Scalable Vector Extension (SVE) on -based systems to accelerate core operations like non-bonded interactions. Additionally, multi-threading is implemented via , allowing efficient parallelization across CPU cores for tasks including bonded interactions and particle mesh Ewald (PME) calculations. For GPU acceleration, GROMACS has supported offloading since version 4.5 released in 2010, with native integration from version 4.6 in 2013. It utilizes for GPUs, for and GPUs, and via oneAPI for and GPUs, enabling up to 90% of non-bonded computations—such as short-range electrostatic and van der Waals interactions—to be performed on the GPU while the CPU handles remaining tasks. This approach minimizes data transfer overhead and maximizes hardware utilization in single-node setups. In cluster environments, GROMACS employs hybrid CPU-GPU execution through domain decomposition, which partitions the simulation space into subdomains assigned to MPI processes, balancing load across CPU cores and associated GPUs. Each domain's non-bonded work is offloaded to its GPU, with dynamic adjustments to maintain efficiency as simulation conditions evolve. Support for via AdaptiveCpp enables GPU acceleration on GPUs, while backend recognizes Apple-designed GPUs for portability on hardware (initial support added in 2023). The 2025 version (up to 2025.3, released August 2025) introduced HIP as a direct GPU backend for devices and addressed bugs in builds and GPU handling to enhance performance and stability on diverse accelerators.

Optimization and Scalability Techniques

GROMACS employs sophisticated software strategies to enhance computational efficiency and scalability in s, focusing on algorithmic optimizations that minimize communication overhead and maximize load distribution across processing units. Central to these techniques is a domain decomposition approach that partitions the simulation space into cells assigned to processes, enabling efficient handling of large systems with millions of atoms. This supports weak , where performance remains stable as system size increases proportionally with the number of cores, achieving simulations of up to millions of atoms on over 1000 cores. Parallelization in GROMACS utilizes the Message Passing Interface (MPI) for inter-node communication in multi-node setups, facilitating scalable distribution of computational tasks across clusters. For single-node operations, thread-MPI provides an efficient alternative to full MPI, optimizing intra-node parallelism without the overhead of inter-process messaging, and is compatible with OpenMP for multi-core utilization. Dynamic load balancing is implemented through a grid search algorithm that adjusts the decomposition of particles into spatial domains, ensuring even workload distribution by independently tuning cell volumes in 2D or 3D, which is particularly effective for heterogeneous systems with varying particle densities. To reduce the frequency of expensive neighbor searches, GROMACS uses buffered pair lists that precompute interacting atom pairs within a defined cut-off radius, extended by a to account for atomic displacements over multiple time steps. Typical cut-off schemes range from 1.0 to 1.4 for van der Waals interactions, allowing pair lists to be reused for 20-40 steps depending on the size, which significantly lowers computational cost while maintaining accuracy. This buffering strategy integrates seamlessly with , minimizing data redistribution during updates. Tuning options further optimize performance, such as the gmx tune_pme tool, which systematically benchmarks and selects the optimal number of ranks dedicated to Particle Mesh Ewald (PME) electrostatics calculations by varying FFT grid configurations to balance reciprocal and real-space workloads. For constraint handling, the LINCS algorithm enforces bond lengths non-iteratively after unconstrained updates, projecting atomic positions onto the constraint manifold in two steps to achieve high stability and enable larger time steps, with adjustable parameters like cell size limits to prevent extrapolation errors. These techniques contribute to precise energy conservation, with drift typically below $10^{-5} kT per step in standard simulations.1096-987X(199709)18:12%3C1463::AID-JCC4%3E3.0.CO;2-H)

Usage

Installation and Setup

GROMACS source code is freely available under the GNU Lesser General Public License (LGPL) for version 2.1 or later, with some components under the GNU General Public License (GPL) version 2. The latest version can be downloaded as a tarball from the official FTP site or cloned from the repository. Pre-compiled binaries are accessible via package managers, including apt on - and Ubuntu-based systems, conda through the conda-forge channel, and as loadable modules on (HPC) clusters, though these may lag behind the current release. For optimal performance and the newest features, compiling from source is recommended, especially on custom hardware configurations. The compilation process relies on (version 3.28 or later) and requires a C99-compliant C compiler and C++17-compliant C++ compiler, such as 11 or later or 14 or later. Key dependencies include the library (version 3 or later) for transforms; optional libraries like BLAS and can enhance linear algebra operations. To enable , configure with the CMake flag -DGMX_MPI=on for MPI support. For GPU acceleration, use flags such as -DGMX_GPU=CUDA for hardware, -DGMX_GPU=OpenCL for or GPUs, -DGMX_GPU=SYCL for oneAPI, or -DGMX_GPU=HIP for ROCm. The build sequence typically involves creating a separate build directory, invoking cmake with options (e.g., cmake .. -DGMX_BUILD_OWN_FFTW=ON if building internally), followed by make -j for parallel compilation, make check to run unit tests, and make install to deploy binaries and libraries. Post-installation, configure the environment by sourcing the GMXRC script (e.g., source /usr/local/gromacs/bin/GMXRC), which appends the GROMACS binary path to $PATH and sets the $GMXDATA environment variable to locate essential data files, including force field parameters. This step ensures tools access topology and residue data correctly. For initial system preparation, the pdb2gmx utility converts standard Protein Data Bank (PDB) files into GROMACS-compatible formats, producing a .gro file for atomic coordinates and a .top file for molecular topology, while selecting appropriate force fields like AMBER or CHARMM. Installation integrity can be confirmed by executing gmx -version in , which outputs the GROMACS , compilation date, and enabled features such as MPI or GPU . A basic functional test involves running a short energy minimization (em) on a sample system from the lysozyme-in-water tutorial, verifying that the process generates output files without runtime errors and completes in expected time. If issues arise, regression test suites downloadable from the official FTP site provide comprehensive validation.

Running Simulations

Running simulations in GROMACS follows a structured that begins with preparing the necessary input files and culminates in executing the (MD) trajectory using dedicated command-line tools. The core process involves preprocessing the system with the gmx grompp command to generate a portable binary run input file (.tpr), which encapsulates the , coordinates, and simulation parameters, followed by running the with gmx mdrun. This separation allows for flexible setup and efficient execution, particularly on resources. The .mdp file defines the MD parameters and is a key input to gmx grompp. Essential settings include nsteps to specify the total number of integration steps (e.g., 50000000 for a 100 ns simulation at a 2 fs time step), dt for the time step size (typically 0.002 ps), integrator = md to select the standard integrator (which employs the leap-frog Verlet scheme), tcoupl = v-rescale for temperature coupling via velocity rescaling to maintain constant , and pcoupl = parrinello-rahman for pressure coupling using the Parrinello-Rahman barostat to control system volume. These parameters ensure stable and realistic dynamics while adhering to thermodynamic constraints. Once the .tpr file is prepared via gmx grompp -f simulation.mdp -c coordinates.gro -p topology.top -o run.tpr, the is executed with gmx mdrun -s run.tpr, optionally using flags like -deffnm to set default prefixes for output files (e.g., -deffnm sim generates sim.trr for the ). GROMACS produces several output files for and analysis: .trr for full-precision trajectories including coordinates, velocities, and forces; .xtc for compressed coordinate-only trajectories to save storage; and .edr for energy data such as , , and . Real-time during runs can be enabled through these files, allowing users to assess without interrupting the process. A typical example for a solvated biomolecular system includes and equilibration phases before production . After initial and setup, ions are added for charge neutralization using gmx genion -s ions.tpr -p topology.top -neutral -o ionized.gro, replacing molecules (e.g., ) with counterions like Na⁺ or Cl⁻ as needed. Equilibration proceeds in two stages: first, an NVT (constant number, volume, ) run with an .mdp setting tcoupl = v-rescale and nsteps = 50000 to stabilize at 300 K; second, an NPT (constant number, pressure, ) run adding pcoupl = parrinello-rahman and ref-p = 1.0 bar to adjust . The production then uses a similar .mdp but with extended nsteps (e.g., 5000000 for 10 ns) and all couplings active, executed via gmx mdrun on the final .tpr . This stepwise approach minimizes artifacts and ensures reliable trajectories.

Analysis Tools

Built-in Modules

GROMACS provides a suite of built-in command-line modules for and analyzing simulation outputs, enabling users to extract physical quantities, manipulate trajectories, and perform statistical evaluations directly from native file formats such as .xtc. These tools are integrated into the core package and operate on data generated by simulations, facilitating post-processing without external dependencies. Among the core analysis tools, gmx energy extracts components of potential and kinetic energies, as well as virials, from energy files produced during simulations, allowing computation of time averages and export to plotting formats like XVG for further visualization or statistical analysis. The tool supports selection of specific energy terms and time ranges via options such as -f for input files and -o for output, making it essential for evaluating thermodynamic properties like pressure or temperature fluctuations. Similarly, gmx rms computes root-mean-square deviations (RMSD) between atomic positions in a trajectory and a reference structure, fitting the trajectory to minimize deviations and outputting RMSD values over time to assess structural stability or conformational changes. It includes options like -s for the reference structure and group selections for focusing on specific atoms, such as backbone residues. Complementing these, gmx gyrate calculates the radius of gyration, a measure of molecular compactness based on the mass-weighted root-mean-square distance of atoms from their center of mass, tracking changes in shape and size across the trajectory. Key options include -pbc for periodic boundary condition handling and output to XVG files for time-series analysis. For trajectory manipulation and , gmx trjconv enables editing and conversion of files, such as centering molecules, fitting to a reference, or selecting subsets of atoms and frames to prepare data for . It supports input from compressed formats and options like -ur for representation, ensuring compatibility with various workflows. The gmx cluster tool performs structural clustering using the GROMOS , which iteratively groups conformers based on RMSD cutoffs to identify representative structures and quantify in ensembles. It generates output files detailing cluster sizes and central structures, with tunable parameters like the -cutoff for RMSD thresholds. In preparation for visualization and advanced profiling, gmx sham constructs free energy landscapes by processing one- or two-dimensional histograms from simulation data, applying the Boltzmann relation to convert probability densities into free energy estimates (in units of kT). Users specify histogram inputs via -f and control binning or normalization options to generate contour plots or XVG outputs. Additionally, gmx do_dssp assigns secondary structure elements to protein residues using the DSSP algorithm, analyzing hydrogen bonds and dihedral angles in trajectories to classify helices, sheets, and turns over time. It outputs per-residue assignments to index or XVG files, with options for trajectory fitting to align structures prior to assignment. For statistical evaluation, gmx analyze processes time-series data to compute functions and time correlations, incorporating block averaging to estimate errors and assess the reliability of averages from finite simulations. It handles inputs from XVG files with options like -ac for autocorrelations and -bw for block widths, providing normalized correlation coefficients and integrated times for quantities such as energies or coordinates. This module is particularly useful for validating simulation convergence by quantifying statistical uncertainties.

External Integrations

GROMACS provides seamless integration with the PLUMED library for enhanced sampling techniques, enabling methods such as and directly within simulations. This built-in support was introduced in the 2025 release, allowing users to activate PLUMED functionality via the command gmx mdrun -plumed plumed.dat on non-Windows systems without requiring external patching, by bundling a feature-limited version of the library. The interface relies on the PLUMED_KERNEL to link the PLUMED , supporting plain-text input files for defining variables and biases, though it does not interact with GROMACS energy minimization or replica exchange. For visualization, GROMACS outputs in formats like .gro and .pdb are natively compatible with tools such as VMD and PyMOL, facilitating the display and analysis of molecular structures and trajectories. VMD directly reads GROMACS trajectory files including .trr and .xtc, supporting 3D graphics, animation, and scripting for large biomolecular systems. PyMOL, while not reading GROMACS trajectories by default, imports them through incorporated VMD plugins, enabling rendering of bonds and structures, though topology details from GROMACS .top or .tpr files may require manual adjustment for accurate . GROMACS interoperates with tools through format conversion utilities, supporting hybrid simulations by transferring topologies and parameters between the packages for multi-scale or mixed-force-field workflows. Tools like ParmEd allow conversion of AMBER .prmtop files to GROMACS .top formats, enabling the use of AMBER force fields in GROMACS simulations with minimal adjustments to non-bonded interactions. This interoperability facilitates hybrid setups, such as combining AMBER-parameterized regions with GROMACS dynamics for enhanced accuracy in biomolecular modeling. Additionally, GROMACS integrates with QwikMD, a for VMD, to streamline -based setup and preparation. QwikMD supports the generation of input files compatible with GROMACS workflows, allowing users to configure systems visually before exporting topologies and coordinates for GROMACS execution, particularly useful for novices handling complex biomolecular setups. This integration leverages VMD's visualization capabilities to bridge GUI ease with GROMACS's computational power. Advanced integrations include density-fit simulations with cryo-EM data, supported through dedicated tutorials available since 2025, which guide users in refining atomic models against maps. These simulations apply additional forces to fit protein structures into cryo-EM densities, using GROMACS options like density-guided-simulation for and map alignment, as demonstrated in interactive Jupyter notebooks for systems like the calcitonin receptor-like receptor. GROMACS also couples to quantum mechanics via the CP2K interface for hybrid simulations, enabling electrostatic embedding of quantum regions within classical . This interface, requiring CP2K version 8.1 or later linked as libcp2k, supports DFT methods like PBE and BLYP with DZVP-MOLOPT basis sets, activated through .mdp options such as qmmm-cp2k-active=true and QM group selection, though it excludes topology changes in the QM region and virial contributions from QM/MM forces.

Applications

Biomolecular Research

GROMACS has been extensively applied in biomolecular research to simulate the dynamics of proteins, enabling detailed investigations into folding pathways and conformational changes. For instance, in peptide folding studies, GROMACS integrates NMR-derived restraints into molecular dynamics simulations to refine structures and explore folding trajectories, as demonstrated in simulations of the 1LB0 peptide where restrained runs converged to low RMSD values compared to unrestrained ones over 100 ns production time. These capabilities allow researchers to model protein folding under physiological conditions using force fields like AMBER or CHARMM. In ligand binding scenarios, GROMACS facilitates free energy perturbation (FEP) calculations to quantify binding affinities, crucial for drug discovery. A notable example is the virtual screening of approximately 12,000 compounds against SARS-CoV-2 main protease (Mpro) and TMPRSS2, where FEP simulations identified 50 potent Mpro inhibitors with IC50 values below 100 µM, including dipyridamole (IC50 = 0.6 µM), validated through experimental assays. Similarly, FEP applied to known inhibitors of SARS-CoV-2 Mpro achieved a high correlation (R = 0.94) with experimental binding free energies, outperforming docking methods and highlighting compounds like delamanid with nanomolar affinity. In membrane and studies, GROMACS supports to access longer timescales relevant to biological processes. For bilayers, the , implemented in GROMACS, enables simulations of self-assembled membranes, accurately reproducing properties such as area per , thickness, and bending in implicit environments. This approach has been used to study multicomponent bilayers, including domain coexistence and membrane fusion events, providing insights into cellular membrane organization without explicit overhead. For s, GROMACS simulations reveal flexibility differences between and duplexes; all-atom MD runs on 40-bp ds and ds showed ds exhibiting lower stretch due to enhanced base-pair inclination and slide, with twist-stretch coupling signs differing between B-form and A-form , consistent with experimental data across multiple force fields. Enhanced sampling techniques in GROMACS, such as replica exchange molecular dynamics (REMD), improve exploration of rare events in biomolecular systems, particularly for enzyme mechanisms and allostery. REMD simulations of the oncogenic phosphatase SHP2, using 76 replicas across 300–400 K, demonstrated high mobility in the N-SH2 domain during activation, revealing allosteric regulation via EF and BG loops that modulate binding site accessibility, rather than the central β-sheet, in both wild-type and E76K mutant forms. These runs, spanning 250–300 ns, highlighted conformational instability of the crystallographic active state in solution, informing drug design strategies for allosteric inhibitors. Case studies underscore GROMACS' integration with experimental methods in biomolecular research. In validating AlphaFold-predicted structures, GROMACS-based simulations assess dynamic stability; for example, refinements of mutants like variants revealed limitations in capturing latent or transitions, with RMSD analyses showing persistent native conformations despite predicted changes, emphasizing the need for extended simulations to probe mutation effects. For cryo-EM refinement, GROMACS employs correlation-driven molecular dynamics (CDMD) to fit atomistic models into density maps via and gradual resolution scaling, achieving superior agreement without manual restraints, as implemented in workflows using options like DensityFitting = yes. A 2025 BioExcel details these density-guided simulations for cryo-EM structure reconstruction, demonstrating automated refinement across resolutions from near-atomic to subnanometer.

Broader Scientific Domains

GROMACS has been extensively applied in for simulating complex systems such as polymers, colloids, and nanostructures, particularly through approaches that reduce while capturing essential mesoscale behaviors. The coarse-grained force field, integrated with GROMACS, enables efficient simulations of polymer-nanoparticle composites and diblock-arm star polymers, revealing structure-property relationships like and mechanical properties. For instance, coarse-grained models in GROMACS have been used to study silica in aqueous solutions and carbon-based , providing insights into realistic molecular weight distributions and confinement effects in nanostructures. These applications leverage GROMACS's core to model particle interactions at larger scales than all-atom simulations. In , GROMACS facilitates calculations for processes, which are crucial for understanding molecular interactions in solution. Techniques like and thermodynamic integration within GROMACS allow computation of free energies for small organic molecules, such as ethanol or nitrocyclohexane in , achieving accuracies within 0.2 kcal/mol across different setups. Additionally, GROMACS supports simulations of ion transport in electrolytes, including water-in-bisalt systems where lithium- dynamics are analyzed to probe ionic and structures. These methods extend to modeling through channels in electrolyte environments, highlighting transport mechanisms driven by electrostatic and forces. GROMACS plays a key role in projects that scale simulations across global networks. It serves as a core engine in the initiative, enabling large-scale for protein-related studies by distributing workloads to resources worldwide. Similarly, the EvoGrid integrates GROMACS to simulate artificial chemistry and evolutionary processes in a primordial soup-like digital environment, supporting computational origins-of-life research through of tasks. Emerging applications of GROMACS in 2025 include enhanced support for the PLUMED library, which extends its capabilities to dynamics via collective variables and enhanced sampling techniques. This integration, introduced in GROMACS 2025, allows simulations of complex soft materials like melts and colloidal assemblies without full compatibility for all advanced features yet. In modeling, GROMACS contributes to hybrid / workflows, simulating adsorbate interactions on catalytic surfaces to capture coverage effects and reaction kinetics in porous materials.

Development and Community

Current Teams and Contributions

The development of GROMACS is led by project leaders Berk Hess at the in and Erik Lindahl at and the , with the core team based at the Science for Life Laboratory in . The project maintains an active community of approximately 40 contributors, including experts in and , who collaborate on enhancements to performance, usability, and scientific accuracy. This effort is supported by funding from the BioExcel Centre of Excellence for Computational Biomolecular Research, backed by Horizon 2020 and subsequent programs since 2016, which enable focused advancements in areas like parallelization and integration with resources. Contributions to GROMACS follow an open-source model hosted on , where developers submit changes via pull requests on the main branch, ensuring individual commits for review and integration. Guidelines emphasize adherence to specific coding standards, such as consistent formatting and language features, enforced through provided tools and the developer manual. All new code must include unit tests using the framework, alongside automated high-level tests integrated into 's pipeline to verify functionality across platforms. Documentation requirements are rigorous, mandating comments for and updates to the and reference manual to ensure and reproducibility. The community plays a vital role through structured channels for involvement, including biweekly developer videoconferences and an online discussion forum for coordination. Bug reports and feature requests are handled via the issue tracker, facilitating rapid resolution and iterative improvements. Outreach efforts include regular workshops and webinars organized by BioExcel, such as the February 2025 "What's New in GROMACS 2025" series, which highlight recent updates and encourage broader participation from users and potential contributors. Key figures in GROMACS's evolution include historical contributors like David van der Spoel, who played a foundational role in early development, alongside current leaders and Lindahl who guide ongoing innovations. The project emphasizes collaborative and inclusive practices, welcoming input from beginners to experts while prioritizing software quality and scientific integrity.

Release History and Future Directions

GROMACS has followed an annual major release cadence since , with each major version introducing significant enhancements to performance, functionality, and hardware support. Early milestones include the introduction of GPU acceleration in version 4.5, which enabled heterogeneous CPU-GPU simulations for faster computations. Subsequent releases built on this foundation, such as version 5.1, which added dynamic integrators for more flexible and accurate simulation of and temperature-controlled systems. The shift to yearly versioning began with the 2016 release, aligning development cycles with advancing computational hardware and user needs. In 2023, GROMACS incorporated support as a primary backend for and GPUs, facilitating broader on exascale architectures and improving portability across accelerators. More recently, the 2025 series expanded force field capabilities, including bundled support for the PLUMED library in version 2025.0 and further expansions in 2025.3 for free energy and sampling methods. Patch releases occur multiple times per year to address bugs and incorporate minor features; for instance, the 2025 series includes 2025.0 (February 2025), 2025.1 (March 2025), 2025.2 (June 2025), and 2025.3 (September 2025), each building incrementally on the major release. Looking ahead, GROMACS development emphasizes improved integration of quantum-classical hybrid methods, such as enhanced interfaces with external quantum chemistry packages like CP2K, to better model reactive processes in biomolecular systems. and integration is a priority, with planned interfaces to libraries like for incorporating ML-based potentials in mixed simulations, streamlining setup and parameterization workflows. The TNG trajectory format is evolving toward HDF5-based implementations for handling larger, more complex datasets with improved extensibility and I/O performance. Sustainability efforts focus on energy-efficient coding, including advanced GPU offloading, auto-tuning of CPU-GPU task distribution, and SIMD optimizations for emerging architectures like , to reduce computational resource demands. Legacy file formats, such as .trr for full-precision trajectories, continue to be supported but are being phased toward more efficient alternatives like compressed .xtc for coordinates to optimize and in large-scale simulations. Community-driven contributions guide these directions, ensuring alignment with diverse user requirements.

References

  1. [1]
    About GROMACS
    GROMACS is a versatile package to perform molecular dynamics, ie simulate the Newtonian equations of motion for systems with hundreds to millions of particles.
  2. [2]
    Introduction - GROMACS 2025.3 documentation
    ### Summary of GROMACS History, Origins, and Purpose
  3. [3]
    Development - Gromacs
    GROMACS was first developed in Herman Berendsen's group, department of Biophysical Chemistry of Groningen University, and now lead in Stockholm from the Science ...Missing: history | Show results with:history
  4. [4]
    Welcome to GROMACS — GROMACS webpage https://www ...
    A free and open-source software suite for high-performance molecular dynamics and output analysis. New to GROMACS: Try the introduction tutorial.About GROMACS · Tutorial · GROMACS workshop · Documentation
  5. [5]
    Release notes - GROMACS 2025.3 documentation
    These release notes record the changes made in all major and patch releases of GROMACS. Major releases contain changes to the functionality supported, whereas ...Missing: history | Show results with:history
  6. [6]
    [PDF] GROMACS USER MANUAL
    GROMACS is the Groningen Machine for Chemical Simulations, a software for MD simulations, covering both physical background and software details.
  7. [7]
    [PDF] manual-4.5.4.pdf - Index of /
    The entire GROMACS package is available under the GNU General Public License. This means it's free as in free speech, not just that you can use it without ...
  8. [8]
    [PDF] Version 4.6.4 - USER MANUAL - Gromacs
    The entire GROMACS package is available under the GNU Lesser General Public License, version. 2.1. ... lgpl-2.1.html. The GROMACS source code and and ...
  9. [9]
    Preface and Disclaimer - GROMACS 2025.3 documentation
    The entire GROMACS package is available under the GNU Lesser General Public License (LGPL), version 2.1. This means it is free as in free speech, not just ...
  10. [10]
    Downloads - Gromacs
    Downloads¶ ... This document was moved to the GROMACS user manual. Please refer to the latest version. Older releases of the source code can be downloaded here.Missing: license | Show results with:license
  11. [11]
    Installation guide - GROMACS 2025.3 documentation
    GROMACS can be compiled for many operating systems and architectures. These include any distribution of Linux, macOS or Windows, and architectures including ...
  12. [12]
    Gromacs - GitLab
    Mar 24, 2020 · ... LGPL v2.1 license under which you received this copy of GROMACS. We request that it must clearly be labeled as derived work. It should not ...
  13. [13]
    Welcome to the GROMACS documentation! — GROMACS ...
    This page is linked for the convenience of current GROMACS developers. Normal users should refer to the documentation for their numbered version.Manual · GROMACS Online Reference · Gromacs 2025.1... · Gromacs 2024.4...
  14. [14]
    Molecular dynamics recipes for genome research - Oxford Academic
    Feb 18, 2017 · Under a non-GPL license, GROMACS is used in the Folding@home distributed computing project for the simulation of protein folding.<|control11|><|separator|>
  15. [15]
    GROMACS: A message-passing parallel molecular dynamics ...
    Conversion programs between GROMOS and GROMACS formats are included. The MD program can handle rectangular periodic boundary conditions with temperature and ...
  16. [16]
    GROMACS: A message-passing parallel molecular dynamics ...
    A parallel message-passing implementation of a molecular dynamics (MD) program that is useful for bio(macro) molecules in aqueous environment is described.
  17. [17]
    GROMACS: fast, flexible, and free - PubMed
    This article describes the software suite GROMACS (Groningen MAchine for Chemical Simulation) that was developed at the University of Groningen, The NetherlandsMissing: history | Show results with:history
  18. [18]
    Gromacs development | Research | University of Groningen
    Jun 25, 2015 · Gromacs, the world famous simulation software suite, originates from our MD group in Groningen. The “GROningen MAChine for Chemical ...Missing: history origins
  19. [19]
    GROMACS: Fast, flexible, and free - Van Der Spoel - 2005
    Oct 6, 2005 · GROMACS is a very fast program for molecular dynamics simulation. It does not have a force field of its own, but is compatible with GROMOS, OPLS, AMBER, and ...<|control11|><|separator|>
  20. [20]
    GROMACS 2022 Advances Open Source Drug Discovery with oneAPI
    May 6, 2022 · GROMACS is the bedrock for the Folding@home distributed computing project aimed to help scientists develop new therapeutics for a variety of ...<|control11|><|separator|>
  21. [21]
    GROMACS 4.5: a high-throughput and highly parallel open source ...
    The development of GROMACS was originally largely driven by our own needs for efficient modeling. However, in hindsight, the decision to release the package ...
  22. [22]
    BioExcel – Centre of Excellence for Computation Biomolecular ...
    Check your inbox or spam folder now to confirm your subscription. FOLLOW US. FUNDING. BioExcel is funded by the European Union Horizon 2020 program under ...
  23. [23]
    GROMACS: High performance molecular simulations through multi ...
    Historically, GROMACS has made use of MPI for domain-level parallel decomposition across nodes, and later CPU cores too, and supplied hand-tuned assembly ...
  24. [24]
    GROMACS 2023 Released With Better SYCL For Intel / AMD / NVIDIA
    Feb 8, 2023 · The SYCL improvements with GROMACS 2023 are aplenty with now implementing more GPU offloading features, support for direct GPU-GPU communication ...
  25. [25]
    New and improved features - GROMACS 2025.0 documentation
    With a non-Windows installation, it is possible to invoke PLUMED directly from the command line using the -plumed option of the gmx mdrun command, followed by ...
  26. [26]
    Molecular Dynamics - GROMACS 2025.3 documentation
    For temperature- and pressure-control schemes, however, velocity Verlet with half-step-averaged kinetic energies and leap-frog will be different, as will be ...
  27. [27]
    Periodic boundary conditions - GROMACS 2025.3 documentation
    ### Summary of Periodic Boundary Conditions (PBC) in GROMACS
  28. [28]
    Energy Minimization - GROMACS 2025.3 documentation
    ### Energy Minimization Algorithms in GROMACS
  29. [29]
    Force fields in GROMACS
    GROMACS supports the GROMOS force fields, with all parameters provided in the distribution for 43a1, 43a2, 45a3, 53a5, 53a6 and 54a7.
  30. [30]
    Molecular dynamics parameters (.mdp options)
    The molecule to be inserted should be centered at 0,0,0. GROMACS does not do this for you, since for different situations a different way of centering might be ...Missing: GPL | Show results with:GPL
  31. [31]
    Free energy implementation - GROMACS 2025.3 documentation
    For free energy calculations, there are two things that must be specified; the end states, and the pathway connecting the end states. The end states can be ...Missing: perturbation | Show results with:perturbation
  32. [32]
    File formats - GROMACS 2025.3 documentation
    Files with the gro file extension contain a molecular structure in Gromos87 format. gro files can be used as trajectory by simply concatenating files.
  33. [33]
    Installation guide — GROMACS 2021.3 documentation
    GROMACS has extensive support for detecting and using the SIMD capabilities of many modern HPC CPU architectures. If you are building GROMACS on the same ...
  34. [34]
    Getting good performance from mdrun - GROMACS documentation
    The particle-mesh Ewald (PME) algorithm treats the long-ranged component of the non-bonded interactions (Coulomb and possibly also Lennard-Jones). Either ...
  35. [35]
    Getting good performance from mdrun - GROMACS documentation
    GROMACS mdrun supports OpenMP multithreading for all parts of the code. OpenMP is enabled by default and can be turned on/off at configure time with the ...Parallelization Schemes · Running Mdrun Within A... · Running Mdrun With Gpus
  36. [36]
    Heterogeneous parallelization and GPU acceleration - Gromacs
    GROMACS has supported GPU acceleration since version 4.5 (2010), and natively since version 4.6 (2013). Reformulated fundamental MD algorithms for modern ...
  37. [37]
    Heterogeneous parallelization and acceleration of molecular ...
    Our first GPU support was introduced in GROMACS 4.511 and relied on a homogeneous acceleration by implementing the entire MD calculation on the GPU. The ...<|control11|><|separator|>
  38. [38]
    Getting good performance from mdrun - GROMACS documentation
    Domain Decomposition: The domain decomposition (DD) algorithm decomposes the (short-ranged) component of the non-bonded interactions into domains that share ...Hardware Background... · Running Mdrun Within A... · Running Mdrun On More Than...
  39. [39]
    [PDF] manual-2025.0.pdf - GROMACS documentation
    Feb 10, 2025 · Dynamic linking of the GROMACS executables will lead to a smaller disk footprint when installed, and so is the.
  40. [40]
    Portability - GROMACS 2025.1 documentation
    We now recognize Apple-designed GPUs as a supported architecture in the OpenCL backend. VkFFT support for improved portability and performance on GPUs with ...Missing: Metal | Show results with:Metal
  41. [41]
    GROMACS 2025.3 release notes
    Aug 29, 2025 · New and improved features · Performance improvements · GPU improvements · CPU improvements · Threading improvements · Other improvements ...Missing: Apple Metal<|control11|><|separator|>
  42. [42]
    gmx tune_pme - GROMACS 2025.3 documentation
    gmx tune_pme systematically times gmx mdrun with various numbers of PME-only ranks and determines which setting is fastest.Missing: paper | Show results with:paper<|control11|><|separator|>
  43. [43]
    Getting started - GROMACS 2025.3 documentation
    This file contains all information needed to start a simulation with GROMACS. The gmx grompp program processes all input files and generates the run input tpr ...
  44. [44]
    Suggested workflow for GROMACS simulations
    This part of the GROMACS best practice guide walks you through a suggested workflow for preparing, running, and analysing the results of your GROMACS ...
  45. [45]
  46. [46]
  47. [47]
  48. [48]
    Using PLUMED - GROMACS 2025.3 documentation
    ### Summary of PLUMED Integration in GROMACS 2025
  49. [49]
    New and improved features - GROMACS 2025.1 documentation
    A basic version of the PLUMED interface is now bundled by default in GROMACS. With a non-Windows installation, it is possible to invoke PLUMED directly from the ...Missing: integration | Show results with:integration
  50. [50]
    Visualization Software - GROMACS 2025.3 documentation
    ### Summary: Compatibility with VMD and PyMOL for GROMACS Outputs
  51. [51]
    Hands-on 2: Transferring AMBER simulation to GROMACS
    Moving simulations from AMBER to GROMACS. A specific MD software may provide you with a method that you cannot find in other software.Missing: interoperability hybrid
  52. [52]
    QwikMD — Integrative Molecular Dynamics Toolkit for Novices and ...
    May 24, 2016 · Integrating two widely used modeling programs, namely NAMD and VMD, we have created a robust, user-friendly software, QwikMD, which enables ...
  53. [53]
    a WEB application for molecular dynamics simulation using ...
    Mar 22, 2023 · A WEB tool developed to automate biological simulations performed in Gromacs using a graphical interface to make molecular dynamics simulation user-friendly ...
  54. [54]
    Density-fit simulation - the GROMACS tutorials!
    Here we learn step-by-step how to run a density-fit simulation of a protein in water solution using GROMACS.Missing: 2025 | Show results with:2025
  55. [55]
    GROMACS tutorial: Density fit simulations - Zenodo
    Mar 3, 2025 · Here, we use the GROMACS to perform density-fit (or density-guided) simulations. In density-guided simulations, additional forces are ...
  56. [56]
    Hybrid Quantum-Classical simulations (QM/MM) with CP2K interface
    The current version of GROMACS provides an interface to the popular Quantum Chemistry package CP2K 188. Overview¶. GROMACS interactions between the QM and ...
  57. [57]
  58. [58]
  59. [59]
  60. [60]
  61. [61]
  62. [62]
  63. [63]
  64. [64]
  65. [65]
    BioExcel Webinar #82 Cryo-EM structure refinement with density ...
    Mar 4, 2025 · In this webinar, I will provide an introduction to the density fitting functionality in GROMACS, demonstrate you a basic use-case example, and discuss ...Missing: workflows tutorial
  66. [66]
    GROMACS - BioExcel
    Feb 2, 2021 · The GROMACS project started in 1995 as one of the first-ever parallel simulation codes, the international development team is lead by the KTH ...
  67. [67]
    Contribute to GROMACS
    Contributions are welcome in many forms, including improvements to documentation, patches to fix bugs, advice on the forums, bug reports that let us reproduce ...
  68. [68]
    Webinar: What's new in GROMACS 2025 (2025-2-18) - BioExcel
    Feb 18, 2025 · This webinar gives an overview of the new features and performance improvements that have been included in the recently released 2025 version of GROMACS.
  69. [69]
    Preface and Disclaimer — GROMACS 2019.6 documentation
    Contributions from: Emile Apol, Rossen Apostolov, Paul Bauer, Herman J.C. Berendsen, Pär Bjelkmar, Christian Blau, Viacheslav Bolnykh, Kevin Boyd, Aldert van ...
  70. [70]
    GROMACS on AMD GPU-Based HPC Platforms: Using SYCL ... - arXiv
    May 2, 2024 · Since the GROMACS 2022 release, the SYCL backend has been the primary means to target AMD GPUs in preparation for exascale HPC architectures ...
  71. [71]
  72. [72]
  73. [73]
    GROMACS future development
    ### Summary of Future Directions for GROMACS