A molecular system can look perfectly prepared and still have a problem that is hard to spot: its periodic box may be too small. In a periodic simulation, the box is repeated in every direction. If a molecule interacts with its own image across a box boundary, the simulation may no longer represent an isolated solute in the way you intended.
This is a common preparation dilemma: choose a box that is large enough to avoid unwanted image interactions, but do not add space without understanding what the setting means. In GROMACS Wizard, the key choice is between specifying box lengths and specifying a solute-box distance.
First, understand the minimum image concern
Periodic boundary conditions let a simulation model a repeating environment using a finite box. The minimum image convention is important because interactions are calculated using nearby periodic copies. For a protein or another non-solvent molecule, you generally want to prevent it from interacting with its own periodic image.
The preparation guidance recommends at least 1.0 nm between the solute and the box boundary. In a simple arrangement, that corresponds to at least 2.0 nm between periodic images of the solute. This is a practical recommendation, not a guarantee for every setup: the appropriate spacing can depend on the cutoff scheme, force field, and how the molecule changes shape during the simulation. Check the relevant force-field guidance when using a custom force field.
Choose the setting that matches your workflow
Solute-box distance is a straightforward option when you want to set a margin around the system. GROMACS Wizard fits the box to the selected structure and applies the specified distance. For a batch project, the resulting box can differ for each conformation or trajectory frame. That may be useful when each structure should have a margin around itself, but it means the box dimensions are not necessarily identical throughout the batch.
Box lengths let you specify the dimensions directly. The fitted box initially follows the system, so you need to increase its size as needed to provide adequate separation from the boundaries. For batch preparation, the initial size is based on all conformations or the entire trajectory path. This is the option to consider when a consistent box size across the batch is important.

A practical preparation sequence
- Select the structures you intend to prepare. If several models are in the document, confirm that the selection includes the structures you want. The box must include all structures selected for preparation.
- Choose a unit-cell shape. GROMACS Wizard supports cubic, orthorhombic, triclinic, rhombic dodecahedron, and truncated octahedron cells. The tutorial’s example uses an orthorhombic cell; the best choice depends on your system and workflow.
- Compute a fitted box. This sets an initial position and size from the selected system. It is a starting point, not a substitute for checking the solute-to-boundary spacing.
- Choose distance or lengths deliberately. Use the distance option when a margin around each structure is appropriate. Use lengths when you need control over dimensions or a shared initial size across a batch.
- Review the spacing before adding solvent. For the recommended 1.0 nm solute-box distance, check that the margin is appropriate for the system and simulation settings. If you are setting lengths manually, add sufficient space yourself.

Why batch preparation deserves extra attention
A structure may change size across conformations or along a trajectory. With solute-box distance, each frame can receive a different box size. With box lengths, the initial size is determined using the full set of conformations or the whole path, which can help when the batch should share dimensions. In either case, make sure the selected box accommodates every structure—not just the first one you inspect.
Once the box is defined, you can continue preparing the system. If you plan to add ions, remember that solvent must also be added: ions replace water molecules. The box and solvent choices are connected parts of preparation, rather than independent cosmetic settings.
For details on periodic boundary conditions and the complete preparation workflow, see the GROMACS Wizard preparation tutorial.
Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON.
