A simulation box can look like a setup detail, but its size affects how a molecular system interacts with its periodic copies. If a protein is too close to its image across a box boundary, the simulation may not represent the isolated or solvated system you intended. Choosing a suitable box is therefore a practical way to avoid a common preparation problem before minimization even begins.
In GROMACS Wizard, you can define the box after choosing the molecular system and model. The key decision is how the box should be fitted to the system: by specifying box lengths, or by specifying a solute-box distance.
Two ways to size the box
- Solute-box distance: set the desired spacing between the system and the box. GROMACS Wizard fits the box around the system using that distance. The tutorial recommends at least 1 nm to help satisfy the minimum image convention. For a batch project, each conformation or trajectory frame can have a different box size.
- Box lengths: specify the dimensions of the box yourself. The fitted box initially fits tightly around the system, so you need to increase its size to leave enough space around the solute. For a batch project, this option determines the initial box size from all conformations or the full path, which can be useful when you want one consistent box size across the batch.
These options solve slightly different practical needs. If you want a straightforward margin around one structure, solute-box distance is a convenient choice. If your workflow needs a shared box size across conformations, box lengths may be more appropriate—but remember to add enough space rather than leaving the tight fit unchanged.
Fit the box around the whole system
Before computing a fitted box, select the structures you plan to prepare in the Document view. If you leave the selection empty, the whole system in the document may be used. The box must include every structure selected for preparation; this matters especially when working with multiple models or conformations.
Choose a supported unit-cell shape—cubic, orthorhombic, triclinic, rhombic dodecahedron, or truncated octahedron—then click Compute fitted box. For the tutorial example, the workflow uses an orthorhombic cell and the solute-box distance option. The computed box includes the selected atoms, and you can adjust its parameters afterward.


Why the margin matters
Periodic boundary conditions make the system behave as if copies of the box repeat in space. The minimum image convention is important because a molecule should not interact with its own periodic image in a way that compromises the intended calculation. The preparation tutorial recommends adding at least 1.0 nm between the system and the box edge when using box lengths. It describes this as leaving at least 2.0 nm between periodic images of a protein or other non-solvent molecules.
That spacing is a recommendation, not a substitute for checking the needs of your setup. Molecules can adopt different conformations, and a custom force field may require you to verify the appropriate cutoff guidance in its publication. For a batch, also consider whether one fixed box or per-conformation box dimensions better match your project.
A quick pre-run check
- Select all structures that will be included in preparation.
- Choose the unit-cell shape and fitting method that suit your single-system or batch workflow.
- Check that the box includes every selected structure and leaves the intended solute-to-edge margin.
- If setting box lengths manually, increase the initial tight fit rather than assuming it already provides sufficient clearance.
A few careful choices here can prevent a box that is too tight from becoming a problem later in the workflow. For the complete preparation steps and additional details, learn more in the GROMACS Wizard preparation tutorial.
Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON.
