How to Calculate pH of a Mixture of Acid and Base
Use this interactive calculator to find the pH after mixing an acid and a base. It supports strong acid plus strong base, weak acid plus strong base, and strong acid plus weak base cases for monoprotic acids and monobasic bases at 25 degrees C.
Interactive pH Mixture Calculator
Expert Guide: How to Calculate pH of a Mixture of Acid and Base
Calculating the pH of a mixture of acid and base is one of the most important practical skills in general chemistry, analytical chemistry, environmental science, and many industrial lab settings. The idea sounds simple: acids contribute hydrogen ion equivalents, bases contribute hydroxide ion equivalents, and the stronger side wins after neutralization. In practice, though, the exact method depends on whether the acid and base are strong or weak, whether they are present in equivalent amounts, and whether a buffer forms after mixing.
This page gives you both a working calculator and a full conceptual framework. If you understand the steps below, you will be able to solve most common pH mixture problems by hand, check titration logic, and quickly decide when a weak acid or weak base approximation is appropriate.
The Core Principle: Neutralization Comes First
Before thinking about equilibrium, always start with stoichiometry. Strong acids and strong bases react essentially to completion:
H+ + OH– → H2O
That means your first task is to calculate how many moles of acidic equivalents and basic equivalents are mixed together.
- Convert all volumes to liters.
- Calculate moles using moles = molarity × volume.
- Compare acid moles and base moles.
- Subtract the smaller amount from the larger amount to find the excess reagent.
- Divide the excess moles by the total mixed volume to find the final concentration.
- Use pH = -log[H+] or pOH = -log[OH–], then pH + pOH = 14 at 25 degrees C.
Case 1: Strong Acid Mixed with Strong Base
This is the most direct case. Examples include hydrochloric acid with sodium hydroxide or nitric acid with potassium hydroxide. Both species dissociate essentially completely in dilute water, so you can work directly with H+ and OH– mole equivalents.
Worked method
- Find moles of acid: Macid × Vacid
- Find moles of base: Mbase × Vbase
- If acid moles are larger, excess H+ remains and the solution is acidic.
- If base moles are larger, excess OH– remains and the solution is basic.
- If moles are equal, the solution is approximately neutral at pH 7.00, assuming ideal behavior and 25 degrees C.
Example
Mix 25.0 mL of 0.100 M HCl with 20.0 mL of 0.100 M NaOH.
- Acid moles = 0.100 × 0.0250 = 0.00250 mol
- Base moles = 0.100 × 0.0200 = 0.00200 mol
- Excess acid = 0.00050 mol
- Total volume = 0.0450 L
- [H+] = 0.00050 / 0.0450 = 0.0111 M
- pH = -log(0.0111) = 1.95
Case 2: Weak Acid Mixed with Strong Base
This case appears in many titration curves and buffer calculations. A weak acid does not fully dissociate, so after the strong base consumes some or all of it, you may be left with a mixture of weak acid and its conjugate base. That is a buffer, and the Henderson-Hasselbalch equation becomes useful.
Step-by-step logic
- Calculate initial moles of weak acid, HA.
- Calculate moles of strong base, OH–.
- Use the neutralization reaction: HA + OH– → A– + H2O.
- Subtract moles to determine what remains.
- Then decide which region applies:
- Before equivalence: both HA and A– are present, so use the Henderson-Hasselbalch equation.
- At equivalence: only the conjugate base A– remains, so find pH from base hydrolysis.
- After equivalence: excess OH– controls pH.
Useful formulas
- pH = pKa + log([A–]/[HA]) for the buffer region
- Kb = 1.0 × 10-14 / Ka at 25 degrees C
- At equivalence, estimate [OH–] from the conjugate base hydrolysis
Example
Mix 25.0 mL of 0.100 M acetic acid, Ka = 1.8 × 10-5, with 20.0 mL of 0.100 M NaOH.
- Initial HA moles = 0.100 × 0.0250 = 0.00250 mol
- OH– moles = 0.100 × 0.0200 = 0.00200 mol
- Remaining HA = 0.00050 mol
- Produced A– = 0.00200 mol
- pKa = 4.74
- pH = 4.74 + log(0.00200 / 0.00050) = 4.74 + log(4) = 5.34
Case 3: Strong Acid Mixed with Weak Base
This is the mirror image of the previous case. A strong acid fully donates H+ to the weak base B, forming its conjugate acid BH+. Depending on the stoichiometric ratio, the final solution may contain a buffer of B and BH+, only BH+ at equivalence, or excess strong acid past equivalence.
Key reaction
B + H+ → BH+
Region-based approach
- Before equivalence: use the weak base buffer relation, commonly written as pOH = pKb + log([BH+]/[B]), then convert to pH.
- At equivalence: only BH+ remains, so treat it as a weak acid with Ka = Kw / Kb.
- After equivalence: excess strong acid sets the pH.
Why Total Volume Matters
One of the most common student mistakes is forgetting that concentrations after mixing depend on the combined volume, not the original volume of one solution. If you mix 25 mL and 20 mL, the final volume is approximately 45 mL unless the problem states a nonideal volume change. That final total volume is what determines the concentration of excess H+, excess OH–, conjugate base, or conjugate acid.
Comparison Table: Typical pH Values of Familiar Aqueous Systems
| Substance or system | Typical pH | Interpretation |
|---|---|---|
| Battery acid | 0.0 to 1.0 | Extremely acidic, very high H+ activity |
| Lemon juice | 2.0 to 2.6 | Acidic due to citric acid content |
| Pure water at 25 degrees C | 7.0 | Neutral in ideal conditions |
| Human blood | 7.35 to 7.45 | Tightly regulated biological buffer range |
| Seawater | About 8.1 | Slightly basic due to carbonate buffering |
| Household ammonia | 11.0 to 12.0 | Basic because dissolved NH3 generates OH– |
These representative ranges are widely cited in educational and government references and are useful for checking whether a calculated answer is chemically reasonable.
Comparison Table: Common Weak Acids and Weak Bases at 25 Degrees C
| Species | Type | Constant | Approximate value | Why it matters in mixtures |
|---|---|---|---|---|
| Acetic acid, CH3COOH | Weak acid | Ka | 1.8 × 10-5 | Common buffer and titration example |
| Formic acid, HCOOH | Weak acid | Ka | 1.8 × 10-4 | Stronger than acetic acid, so lower pH at same concentration |
| Hydrofluoric acid, HF | Weak acid | Ka | 6.8 × 10-4 | Weak by dissociation, but hazardous in practice |
| Ammonia, NH3 | Weak base | Kb | 1.8 × 10-5 | Classic weak base in acid-base equilibrium problems |
| Methylamine, CH3NH2 | Weak base | Kb | 4.4 × 10-4 | More basic than ammonia at similar concentration |
How to Decide Which Formula to Use
The easiest way to stay organized is to ask these questions in order:
- Are both reactants strong? If yes, use pure stoichiometry and excess concentration.
- If one reactant is weak, does neutralization leave both the weak species and its conjugate partner? If yes, use a buffer equation.
- Did you land exactly at equivalence for a weak acid or weak base titration? If yes, calculate pH from the hydrolysis of the conjugate species.
- Did strong acid or strong base remain in excess? If yes, the excess strong reagent controls the final pH.
Common Mistakes to Avoid
- Using original concentrations after mixing: always recalculate using total volume.
- Skipping the mole step: pH problems involving mixtures should nearly always begin with moles, not concentrations.
- Using Henderson-Hasselbalch too early: first do the stoichiometric neutralization reaction.
- Forgetting pOH: if excess base remains, you often calculate pOH first and then convert to pH.
- Assuming equivalence means pH 7: that is true for strong acid plus strong base, but not for weak acid plus strong base or strong acid plus weak base.
When pH at Equivalence Is Not 7
A subtle but very important concept is that equivalence does not automatically mean neutrality. If you titrate acetic acid with sodium hydroxide to equivalence, the solution mainly contains acetate, which is a weak base. The pH will therefore be greater than 7. If you titrate ammonia with hydrochloric acid to equivalence, the solution mainly contains ammonium, which is a weak acid. The pH will be less than 7.
This distinction matters in titration indicator selection, wastewater neutralization, pharmaceutical formulation, and even blood chemistry modeling. The chemistry after the neutralization step is what determines the actual final pH.
Real-World Relevance
Understanding acid-base mixtures is useful far beyond the classroom. Environmental monitoring relies on pH when assessing rainwater, streams, and wastewater. Food chemistry uses acid-base control for preservation, flavor, and fermentation. Industrial plants adjust pH continuously to protect equipment and maintain reaction efficiency. In medicine and biology, pH buffering is essential for physiological function.
For additional trustworthy reading, see the U.S. Geological Survey explanation of pH and water, the U.S. Environmental Protection Agency materials on pH as an environmental parameter, and a university-level chemistry resource from the University of Illinois covering acid-base concepts.
Quick Summary
If you need a fast rule, remember this: calculate moles first, neutralize second, then apply equilibrium only if a weak acid or weak base remains as part of a conjugate pair. For strong acid plus strong base, excess reagent alone determines pH. For weak acid plus strong base or strong acid plus weak base, you may need a buffer equation before equivalence and a hydrolysis calculation at equivalence.
Use the calculator above whenever you want a quick, structured answer, but keep the method in mind so you can recognize whether the output makes chemical sense. That combination of computational speed and chemical reasoning is what separates a routine answer from a reliable one.