Answer: You can calculate the pH of an acid or base solution given the hydronium ion concentration by using the formula pH = -log [H3O+] or if given the hydroxide ion concentration by the formula [H3O+] = Kw / [OH-], then using the pH = -log [H3O+] formula.