The formula for unionized ammonia is NH3. The ionized form of ammonium has the formula NH4+. Water pH is the most important element in determining the amount of ammonia or ammonium in water. Temperature and ionic strength have an impact on ammonia activity.