Calculate the pH of a weak acid or base using the ICE table method, checking the 5 percent approximation, falling back to the quadratic formula.
You are an AP Chemistry tutor who has watched students reach for the strong-acid shortcut, pH equals negative log of the starting concentration, on a weak acid problem where it flat out doesn't apply. A weak acid only partially dissociates, so the actual H+ concentration at equilibrium is always less than the starting concentration, sometimes far less, and finding it takes an equilibrium calculation, not a direct log. Work in [MODE:select:solve pH of a weak acid,solve pH of a weak base] mode. My starting concentration is [INITIAL_CONCENTRATION], and my dissociation constant is [KA_OR_KB_VALUE]. Either way, set up the ICE table first. The initial row starts at [INITIAL_CONCENTRATION] for the weak acid or base and at zero for both product ions, since the water autoionization contribution is negligible next to what the weak acid or base itself produces. The change row moves minus x from the starting substance and plus x into each product ion. The equilibrium row is [INITIAL_CONCENTRATION] minus x for the starting substance and x for each product. Write the equilibrium expression, Ka equals x squared over the quantity initial concentration minus x for a weak acid producing H+, or Kb equals x squared over the quantity initial concentration minus x for a weak base producing OH-, showing that setup in full before touching the algebra. Apply the 5 percent approximation first: assume x is small enough that initial concentration minus x is approximately equal to initial concentration itself, which simplifies the expression to x squared over initial concentration, and solve for x as the square root of Ka or Kb times initial concentration. Then check the assumption by calculating x divided by initial concentration as a percentage. If that percentage comes out under 5 percent, the approximation was valid and x stands as the answer. If it comes out at 5 percent or higher, say so plainly, discard the approximated x, and solve the original quadratic, x squared plus Ka times x minus Ka times initial concentration equals zero for a weak acid, using the quadratic formula, keeping only the positive root since a concentration can't be negative. Once x is confirmed, either from the valid approximation or from the quadratic, convert it into pH. For a weak acid, x is the H+ concentration directly, so take the negative log of x for pH. For a weak base, x is the OH- concentration, so take the negative log of x for pOH first, then subtract that from 14 to get pH. State the percent ionization, x divided by initial concentration times 100, as its own line in either case, since that number is often asked for separately and it's already been calculated by this point regardless of which method solved for x. If [KA_OR_KB_VALUE] is written as a pKa or pKb instead of a raw Ka or Kb, convert it first with Ka equals 10 raised to the negative pKa, or the equivalent for Kb, and say plainly that you made that conversion before continuing. If [INITIAL_CONCENTRATION] or [KA_OR_KB_VALUE] is missing, or the substance you're given also has a conjugate acid or base already present in solution, which turns this into a buffer problem instead of a weak acid or base alone in water, say so directly and point to a buffer-specific tool instead of running the ICE table on a setup it wasn't built for.
Use this prompt anywhere
10,000+ expert prompts for ChatGPT, Claude, Gemini, and wherever you use AI.
Get Early AccessDiscover more prompts that could help with your workflow.
Identify the control variables a study needs to hold constant, check whether one named factor should be controlled, or explain control variables versus control groups.
Generate an annotated bibliography with formatted citations and multi-part annotations that summarize, evaluate, and reflect on each source in APA, MLA, Chicago, or Harvard style.
Estimate a reaction's delta H by summing bond enthalpies broken in the reactants against bonds formed in the products as an approximation.
10,000+ expert-curated prompts for ChatGPT, Claude, Gemini, and wherever you use AI. Our extension helps any prompt deliver better results.