Why exactly does precipitation occur?

In a solution, we have ions floating around but when we have a precipitate, they're arranged as they would be in a solid. This conversion should cause a decrement in the entropy of the system and cause the reaction to be non-spontaneous, but that is not the case. Data of several $K_\mathrm{sp}$'s suggests that the reactions are very spontaneous, with $\log{K_\mathrm{eq}}$ around $30-40$ for some salts. Why does this happen?

One possible explanation I could think of was that all precipitation processes are enthalpy driven instead of entropy driven but in those cases enthalpy should either be really high and all solubilities must increase upon increase in temperature. I haven't studied these enough to know if that is the case or not, so help from someone more experienced would be appreciated.

• Two words: Crystallisation enthalpy. You are basically asking why isn't everything completely soluble in water
– Karl
Jan 8, 2018 at 10:06
• To some extent, most if not all of the massive equilibrium constants are misleading, because they only happen in compounds that dissociate into multiple ions. A brief look at a solubility product table suggests that even the most insoluble ionic compounds have a solubility of ~0.1 nM, which is admittedly quite small, but less impressive than may be inferred from just looking at a $log\ (K_{sp}^{-1})$ of >30. Jan 8, 2018 at 10:12
• Related
– Shub
Feb 28, 2022 at 8:33

Short story

Maybe it will help to think first about a ridiculous case. Say you have a large hydrophilic solid, and a small drop of water is added on top. We would not expect the entire solid to disappear into the liquid. Yes, there will be some adsorption and solubility here, yet most of the solid will remain undisturbed. In some sense, the solid 'does not fit' into the liquid droplet over a certain limit.

Similar things are true, again in a certain interpretation, for more realistic situations. What does this 'fitting' mean exactly? It definitely does not mean there is not enough physical space per se. Instead as you increase the concentration of your solute, the distances between solute entities starts to decrease on average. Hence, at a certain radii the intermolecular forces become strong enough to pull the solutes together. There is often some energy barrier to this approaching, as colloid chemists will tell you, but if the end result is some energy minimum, the process will occur at some rate.

If the ratio of the amount of solvent to the amount of solute increases, that is we add more solvent, we should expect the solubility to increase. This is indeed what we observe. In summary, the amount of 'space' with respect to solubility is a function of the strength of intermolecular forces and the amount of solvent, among other things. Here you might also discover yourself that smaller particles dissolve more (not only faster!) than bigger particles.

You may compare precipitation to condensation of water in air. There is plenty of actual physical space to go around but once a certain limit is crossed (the dew point) the water will become liquid. Nitrogen and oxygen will not condense at these temperatures since their intermolecular forces are much weaker.[a]

An equally short story

Note first that for $\Delta_\pu{r} G \leq 0$ ($\Delta G$ was poor notation on my part) to be the criterion (necessary and sufficient) of spontaneity, some five conditions must be met: constant temperature, no pressure change, only expansion work is done, and the application of the thermodynamic limit. Fifthly, only one chemical reaction is assumed to take place.[b] Provided these prerequisites stand, we may look at the terms in

$$\Delta_\pu{r} H-T\Delta_\pu{r} S\le0.$$

(We should not really compare entropy directly to enthalpy because they have different dimensions.) Jumping in quickly, we might say immediately that if the solute can wriggle around more in a solution than in a solid, then certainly $\Delta_\pu{r} S>0$ for the transition $\text{solid}\to\text{solute}$. The only thing standing in our way is that damned enthalpy! Sure enough, that may be the case for some solutions but it is not the whole picture.

Since the solute entities have a solvent layer in solution, there is an entropy effect for the solvent as well. If the solvent is tightly bound to the solute, entropy decreases for this solvent entity. There is also an enthalpy contribution from solvation, not only from the act of breaking or forming bonds in a solid. I would not really dare to generalise which is the bigger contributor 'for most cases'. In general,

\begin{align} \Delta_\pu{r} H_{\pu{solid to ideal gas}} & + \Delta_\pu{r} H_{\pu{breaking bonds in solvent}} + \Delta_\pu{r} H_{\pu{solute forming bonds with solvent}}\ + \\ &+ \Delta_\pu{r} H_{\pu{residual}} - T\cdot(\text{corresponding ‘entropy’ terms}) \le 0 \end{align}

where 'residual' signals the solute-solute interactions in the solution.

A sentence or two on $K_{\pu{sp}}$ (with concentrations)

From the IUPAC Gold Book,

solubility

The analytical composition of a saturated solution, expressed in terms of the proportion of a designated solute in a designated solvent, is the solubility of that solute. The solubility may be expressed as a concentration, molality, mole fraction, mole ratio, etc.

As pointed out by Nicolau Saker Neto in a comment, we should not overemphasise the role of $K_{\pu{sp}}$ in determining solubility. Again there are cases where it is a good indicator, and situations where it fails poorly. There are assumptions which must be satisfied:

• there actully exists an equilibrium $$\ce{AB(sln) <=> A+(sln) + B+(sln),}$$ that is not all of the solute "molecules" are dissociated, not really the case for strong electrolytes in a dilute solution,
• that the simpification of $a \approx c$ is good enough ($a$ is activity, $c$ is some type of concentration),
• provided that the above holds, the concentration of $\ce{AB(aq)}$ should be constant wrt additon of another electrolyte (in some calculations).

If these do not hold, $K_{\pu{sp}}$ (with concentrations alone) is a poor approximation for true solubility. See Denbigh, K. G. 'The Theory of Solubility Product'. J. Chem. Educ., 1941, 18 (3), 126. DOI: 10.1021/ed018p126.

[a] I have largely ignored the discussion of surface energies and surface tension, and how the interaction is often more favourable in the bulk than on the surface, and the fact that $r^3$ grows faster than $r^2$, except for small $r$ when it does not, and hence we need some seeds or nuclei to start the process, and supersaturation, and how particle sizes change etc. The example of smaller particles dissolving more is, of course, a surface tension effect.

[b] In the thermodynamic limit, the general condition of spontaneity comes from Clausius inequality. This is written as

$$\small{T\pu{d}S \ge \delta q.}$$

With the first law of thermodynamics, this is equivalent to

$$\small{T\pu{d}S\ge\pu{d}U-\delta w}$$

or

$$\small{-(\pu{d}U +p\pu{d}V - T\pu{d}S)\ge-\delta w(\text {other})}.$$

With constant temperature and pressure,

$$\small{\pu{d}(U +pV - TS)\le\delta w(\text {other})}.$$

Finally, if only expansion work is done,

$$\small{\Delta_\pu{r} G\le 0}$$

where $\small{\Delta_\pu{r} \equiv \partial / \partial \xi}$; $\small{\xi}$ is the extent of a reaction. The last result also assumes only one reaction takes place, otherwise it is no longer a necessary–sufficient condition for spontaneity.

• The state symbol of AB should be (s), not (aq)? (aq) suggests that the solid is already dissolved into ions. Jan 8, 2018 at 12:59
• @TanYongBoon I actually did mean $\ce{(aq)}$. The '$\ce{(aq)}$' signifies 'in aqueous solution' instead of in the bulk solid. If you like, they can be intimate ion pairs (i.e., no solvent entities in between), but I don't really say whether the bond itself is mainly ionic or not. I should change it to '$\ce{sln}$' to be more general, though. Jan 8, 2018 at 13:15
• Ah, thanks for that explanation with physical space, I didn't think of it that way. And coming to the thermodynamic explanation, I can see that there are a lot of enthalpies at work here, so basically this is an enthalpy driven process, right? So basically almost all solubilities should decrease with increment in temperature? Jan 10, 2018 at 5:13
• @Shikhar_Mohan For conserving visual space, I didn't write out the entropy contribution but that's what I meant by 'corresponding entropy terms'. Solubilities need not be monotonic functions (e.g., solubility curves for salts with crystal water in water); furthermore, you will find plenty of examples of solubility decreasing with an increase in temperature (many non-polar gases in water in some temperature range). Note also that enthalpy and entropy are functions of temperature, therefore the equation needs to change to take this into account. Jan 11, 2018 at 21:12
• In short, I'd stick with my statement: I would not really dare to generalise which is the bigger contributor 'for most cases'. For some common inorganic salts (without crystal water) in aqueous solutions in low enough temperatures (but enough above freezing) solubility might indeed increase with an increase in temperature but there are still exceptions. Jan 11, 2018 at 21:16

Although you ask specifically about forming precipitates your question is also about the solubility of one substance in another. The simplest answer as to why precipitates form is because the free energy $G$ is minimised when some solid, its solute and solvent exist in equilibrium compared to the situation of only solute in a solvent or only solid and solvent. To estimate how quickly the precipitate forms one must appeal to chemical kinetics not thermodynamics.

If the solute is A and solvent B, when a solution forms the molecules will mix freely and the number of ways they they are distributed with respect to one another is vastly larger, compared to the unmixed state, and thus the entropy is greater. However, molecules have attractive intermolecular forces and these are of the form AA, BB and AB. (We need not consider the exact form these take unless we wish to calculate their exact values.)

In an isolated system suppose that the attractive force between solute and solvent (AB) is of a larger magnitude than of A with themselves or B with themselves, then complete mixing would imply that the potential energy of the whole system will have to increase and this can only happen, as the system is isolated, by withdrawing (thermal) energy from the motion of the molecules. This means reducing the number of translational, vibrational and rotational quanta in the molecules. This implies a decrease in the entropy as the number of ways energy can be distributed among the molecules is reduced. Thus it may be the case that the overall entropy maximum occurs when A and B are not completely mixed, i.e. some precipitate is formed or two liquid phases form if the temperature is high enough.

To discuss the same system in equilibrium at constant pressure and temperature then the Gibbs free energy is important $G=H-TS$ and clearly a decrease in $G$ is favoured by a decrease in $H$ and an increase in $S$. We are now considering the system in the presence of a heat bath which keeps the temperature constant and so prevents a decrease in thermal energy. The entropy is now mostly unchanged and the intermolecular forces now greatly influence the enthalpy and consequently the solubility of A in B.

If $E_{AA}$ is the increase in potential energy between two A molecules and $E_{BB}$ for B and $E_{AB}$ between A and B then the increase in potential energy by transferring one molecule of A from the pure liquid A to pure B and vice versa is $\approx 2(E_{AB}-(E_{AA}+A_{BB})/2)\, )$, which means that the interaction between A and B is to be compared to the average of the energies between AA and BB. If $E_{AB}$ is a smaller negative number than the mean of $E_{AA}$ plus $E_{BB}$ then there is an increase of enthalpy on mixing, and this favours increasing $G$ and works in the opposite direction as any increase in $S$. This situation thus favours forming a precipitate, but, of course, there will always be some molecules of the solid, (as solute) in the solvent even if the amount is nanomolar.

This is another way of saying that the solid will dissolve in the solvent until the chemical potential of the solution is equal to the chemical potential of the pure solid. If $x$ is the mole fraction of the solid (substance A the solute in solution) then for an ideal solution

$$\mu_{(s)}^*=\mu_{(l)}=\mu_{(l)}^* + RT\ln(x)$$

and rearranging gives

$$\ln(x)=\frac{\mu^*_{(s)}- \mu^*_({l)}}{RT}=\frac{-\Delta G_m(T)}{RT}$$

where $\Delta G_m(T)$ is the free energy of melting at temperature $T$. The Gibbs free energy of melting at the melting point is zero thus although it is a bit of a mathematical 'trick' we can add zero the the equation in the form $\Delta G_m(T_m)/RT_m$ to give

$$\ln(x)= \frac{-\Delta G_m(T)}{RT}+ \frac{\Delta G_m(T_m)}{RT_m}$$

Using $\Delta G=\Delta H - T\Delta S$ produces

$$\ln(x)= \frac{\Delta H_m}{R}\left(\frac{1}{T_m}-\frac{1}{T} \right)$$

This equation describes the ideal solubility of solids in liquids and was first derived 1893, a surprisingly long time ago. In older literature $\Delta H_m$ is called the Latent heat of melting). This equation can also be derived without the 'trick' used above using $\displaystyle d(\mu_{(s)}/T)=d(\mu_{(l)}/T)$.

For molecules such as naphthalene in benzene, carbon tetrachloride this equation provides a fairly good description of the solubility vs temperature. A more accurate expression could be realised by considereing the temperature dependence of $\Delta H_m$. This equation is entirely analogous to that for the depression of the meltig point and a plot of temperature vs mole fraction can illustrate both depression of the melting-point (the freezing-point curve) and the solubility curve as shown in the rough sketch.

The curve M-B is the freezing-point curve, $T_m$ the normal melting point of the solvent and $x$ in this case refers to the solvent. The solubility curve BA with $x$ that of the solute gives the temperature dependence of the solubility.

More detailed analyses are to be found in the textbooks by Denbigh 'Chemical Equilibrium' and Murrell and Jenkins 'Properties of liquids and solutions'

Solubility is the concentration at which the chemical potentials of the solute in itself and in the solution are equal.

The chemical potential of a substance is the change in Gibbs free energy upon adding a molecule to the system and is determined by the interactions between the molecule and the rest of the system. This is where we get the "like-dissolves-like" rule of thumb. The chemical potential of a substance in a system that doesn't already contain it is very low as the system can "tolerate" its presence without much entropic penalty. As the concentration increases, so does the chemical potential and at some concentration it will become equal to that of the bulk state of the pure solute. In the case of miscibility, this equality never occurs.

In the case of inducing precipitation, you are driving the chemical potential of the solute in the solution higher so the solute molecules attract each other more strongly than the solvent molecules. This requires an activation energy to overcome entropy and large barriers lead to supersaturation.