Skip to content

Instantly share code, notes, and snippets.

@clumma
Last active January 17, 2018 07:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clumma/ef063a598613d4c2e84654e190e7a7af to your computer and use it in GitHub Desktop.
Save clumma/ef063a598613d4c2e84654e190e7a7af to your computer and use it in GitHub Desktop.
Calculating the pH of a solution

Hydrochloric acid

What the heck is "20° Baume muriatic acid"? Google to the rescue

It means that 100g of solution contains 31.45g HCl

Your HCl is very near to 10 mol/l or 36.5g/100ml

Strong acids dissociate completely, so pH is just the -log of the concentration (in moles/liter, called the molarity or M)

    pH = -log10(M)

in this case,

    pH = -log10(10) = -1

Wikipedia confirms.

Ammonia

Ammonia is a solution of ammonium hydroxide (NH3), which weighs 35.04 g/mole.

We have a 10% solution. Since NH3 is a gas, let's assume that's mass-percent, making it 2.85 M.

Strong bases are like strong acids except the molarity gives us the pOH

    pOH = -log10(2.85)

So we must find the implied H+ concentration

    H+ * OH- = Kw

    H+ * 2.85 = 1.0e-14
    H+ = 1.0e-14 / 2.85
    H+ = 3.5e-15

and then take the log of that

    pH = -log10(3.5e-15) = 14.5

Vinegar

Vinegar is a weak acid, so we need to consider its acid dissociation constant, Ka.

Wikipedia gives the pKa of acetic acid: 4.754. Let's convert that to Ka

    Ka = 10-pKa
    Ka = 1/104.754 = 1.8e-5

Now we'll follow the method shown here. The H+ concentration is

    H+ = sqrt(Ka/M)

Heinz white vinegar is 5% acetic acid, which is 0.83 M, so

    H+ = sqrt(1.8e-5 / 0.83) = 0.0039

and the pH is

    pH = -log10(H+)
    pH = -log10(0.0039) = 2.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment