In the acid base reaction $$\ce{NH4+ + H2O <-> NH3 + H3O+}$$
the acidity constant, which is a relation between concentrations is given by $$K_{\mathrm{a}}=\frac {\ce{[NH3]} \cdot \ce{[H3O+]}}{\ce{[NH4+]} \cdot \ce{[H2O]}}$$
Since $\ce{[H2O]}$ is constant, it can be included inside the constant to obtain a new $K_\mathrm{a}$ which is $6.3 \times 10^{-10}$.
(Being a constant allows us to relate the molar concentration to the density of water.)
And so, even though some quantity of water reacts with $\ce{NH4+}$, but the volume of water varies in a way that $\ce{[H2O]}$ would still be constant.
What I don't understand is why the molar concentration of water is constant. Why isn't it handled the same way as the other reactant? I understand that if $\ce{H2O}$ was the only liquid and the rest of the reactants and products were of different state (gaseous or solid), then water would exist alone in the beaker and its concentration would therefore remain constant, but this is not the case.
That was about heterogeneousness. Trying another guess; in the reaction of esterification $$\ce{{alcohol} + {carboxylic acid} <-> {ester} + H2O}$$ $\ce{H2O}$ is considered as a product which concentration is not constant, so it is counted explicitly in the equilibrium constant.
Could the answer be that $\ce{NH4+}$, $\ce{NH3}$ and $\ce{H3O+}$ are dissolved in water, while the alcohol, the carboxylic acid, and the ester are not?
I'm looking for an answer that clearly shows which volume is considered (water or the solution), because I'm confused as to why something would or wouldn't be included in the equilibrium constant.
$_$
. So$\ce{NH4+}$
becomes $\ce{NH4+}$. Do not use MathJax/LaTeX in question titles as it messes with searching. $\endgroup$