# Setting pH in gromacs

**URL:** <https://gromacs.bioexcel.eu/t/setting-ph-in-gromacs/9205>\
**Category:** User discussions\
**Created:** [May 22, 2024, 3:04pm UTC](https://gromacs.bioexcel.eu/t/setting-ph-in-gromacs/9205 "2024-05-22T15:04:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sounak\_Biswas](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@Sounak\_Biswas](https://gromacs.bioexcel.eu/u/Sounak_Biswas)\
**Post date:** [May 22, 2024, 3:04pm UTC](https://gromacs.bioexcel.eu/t/setting-ph-in-gromacs/9205/1 "2024-05-22T15:04:02Z")

</div>

GROMACS version: 2023.3  
GROMACS modification: Yes/No

How set a requisite pH in gromacs for MD?

---

<div class="post-metadata">

**Author:** ![milosz.wieczor](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@milosz.wieczor](https://gromacs.bioexcel.eu/u/milosz.wieczor)\
**Post date:** [May 23, 2024, 9:49am UTC](https://gromacs.bioexcel.eu/t/setting-ph-in-gromacs/9205/2 "2024-05-23T09:49:46Z")

</div>

If you’re talking about fixed protonation states, the common and quick way is to pass your structure through a pKa predictor like [PropKa](https://www.ddl.unimi.it/vegaol/propka.htm), and then - if needed, according to the output - set non-standard protonation states in `gmx pdb2gmx`, using flags like `-his`, `-asp` and so on.

If you want to run “true” constant-pH dynamics, i.e. with dynamically changing protonation states, you should take a look [at the early implementation](https://gitlab.com/gromacs-constantph) available from the teams in Finland & Sweden.
