An acid and base calculator typically computes the pH, pOH, [H+], or [OH−] of a solution from the concentration and strength (Ka or Kb) of an acid or base. You enter the concentration and, for weak acids/bases, the dissociation constant; the calculator returns the pH and related values. This page provides a working tool for calculating the pH of a strong acid or base solution, plus the background you need to use it correctly.
Formula
For a strong acid (like HCl) or a strong base (like NaOH), the substance dissociates completely in water. Therefore, the concentration of H+ (for an acid) or OH− (for a base) equals the nominal concentration of the solution, c.
pH is defined as the negative base-10 logarithm of the hydrogen ion activity, approximated by concentration:
pH = −log10[H+]
where [H+] is in mol/L (M). For a strong acid, [H+] = cacid. For a strong base, pOH = −log10[OH−], and pH = 14 − pOH at 25 °C.
The ion product of water, Kw = [H+][OH−] = 1.0 × 10−14 at 25 °C, links the two concentrations.
Worked Example
Suppose you have a 0.01 mol/L solution of HCl (a strong acid). Using the calculator defaults:
- Input: c = 0.01 mol/L, type = strong acid.
- [H+] = 0.01 mol/L.
- pH = −log10(0.01) = 2.00.
- pOH = 14 − 2.00 = 12.00.
- [OH−] = 1e-14 / 0.01 = 1.0 × 10−12 mol/L.
The calculator shows pH = 2.00, pOH = 12.00, [H+] = 0.0100 mol/L, [OH−] = 1.0000e-12 mol/L.
Assumptions
- Complete dissociation: strong acids and bases are assumed to dissociate 100%.
- Temperature is 25 °C, so Kw = 1.0 × 10−14.
- Activity coefficients are ignored; concentration is used instead of activity.
- The solution is dilute enough that the autoionization of water is negligible (except for very low concentrations).
When to Use This Calculator
This tool is for strong acids (HCl, HNO3, H2SO4 first proton) and strong bases (NaOH, KOH). It is ideal for lab prep, titration calculations, and educational exercises. For weak acids (acetic acid) or weak bases (ammonia), you need a different approach that accounts for partial dissociation using Ka or Kb.
If you have a mixture of an acid and a base, this calculator does not handle neutralization; you would need to determine the excess reactant first.
How to Read the Result
pH below 7 indicates acidic, 7 is neutral, above 7 is basic. The pOH is complementary: pH + pOH = 14 at 25 °C. The [H+] and [OH−] are the actual ion concentrations in mol/L. For a 0.01 M strong acid, pH 2.00 means [H+] = 0.01 M, which is 10−2 M.
Note that pH is logarithmic: a change of 1 pH unit means a tenfold change in [H+].
Common Mistakes
- Using concentration in millimolar (mM) without converting to mol/L. Always convert: 1 mM = 0.001 mol/L.
- Forgetting that strong bases produce OH−, not H+. You must calculate pOH first, then pH.
- Assuming a weak acid dissociates completely. If Ka is small, pH will be higher than −log(c).
- Using pH 14 at temperatures other than 25 °C; Kw changes with temperature.
- Ignoring the autoionization of water for extremely dilute solutions (below 1e-7 M). The calculator limits concentration to 1e-9 to avoid nonsense, but the result becomes approximate below 1e-6 M.
Limits of the Formula
The strong acid/base approximation fails for very dilute solutions (below ~1e-6 M) because water contributes significant H+ and OH−. For concentrated solutions (above 1 M), activity coefficients deviate from 1, so pH measured by a meter will differ from the calculated value. Also, polyprotic acids (like H2SO4) only the first proton is strong; the second has a Ka that must be considered.
For weak acids, the pH is given by the Henderson-Hasselbalch equation if you have a buffer, or by solving the equilibrium expression: pH = 0.5(pKa − log c) for a pure weak acid. This calculator does not handle those cases.
Frequently Asked Questions
How do I calculate pH of a weak acid?
For a weak acid HA with concentration c and dissociation constant Ka, set up the equilibrium: HA ⇌ H+ + A−. If x is the amount dissociated, then Ka = x²/(c − x). For small Ka, approximate x ≈ √(Ka·c), then pH = −log(x). For example, 0.1 M acetic acid (Ka = 1.8e-5) gives x ≈ 0.00134 M, pH ≈ 2.87.
What is the difference between pH and pOH?
pH measures the concentration of hydrogen ions (H+), while pOH measures hydroxide ions (OH−). They are related by pH + pOH = 14 at 25 °C. In a neutral solution, both are 7. In an acidic solution, pH is low and pOH is high.
Can I use this calculator for a buffer solution?
No. A buffer contains a weak acid and its conjugate base, and its pH is best calculated with the Henderson-Hasselbalch equation: pH = pKa + log([A−]/[HA]). This calculator only handles strong acids and bases.
Why does the pH of a strong base come out above 7?
Because strong bases like NaOH dissociate to give OH−, which reduces [H+] through the water equilibrium. For example, 0.01 M NaOH gives pOH = 2, so pH = 12. That is correct: the solution is strongly basic.
What if I have a concentration of 1e-8 M HCl?
This calculator will give pH = 8, which is wrong because the autoionization of water provides more H+ than the acid. The true pH is close to 7 (slightly acidic). For such dilute solutions, you must solve the full charge balance, not just take −log(c).
How does temperature affect pH?
Kw increases with temperature (e.g., 1.0e-14 at 25 °C, about 5.5e-14 at 50 °C). Therefore, neutral pH becomes lower than 7 at higher temperatures. The calculator assumes 25 °C; for other temperatures, adjust the pH scale accordingly.
Safety and Lab Practice
When preparing acid or base solutions in the lab, always add acid to water (not water to acid) to avoid splashing, and wear appropriate PPE. Follow your lab method, the safety data sheet (SDS) and your supervisor.
Related
Formula used
in c | Concentration of strong acid or base | mol/L | 0.01 | 1e-9 | 1 sel t | Type | Strong acid=1, Strong base=2 out pH | pH | - | -log10(c) | 2 out pOH | pOH | - | 14 - pH | 2 out h | [H+] | mol/L | c | 4 out oh | [OH-] | mol/L | 1e-14 / h | 4
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.
More in this section
- Normality to g/L Converter & Formula29.220 g/L
- Normality to meq/mL Conversion Calculator1.0000 meq/mL
- Normality Test Results: How to Analyze Them
- Normality Test Q-Q Plot: How to Read It
- Normality Slay the Spire?
- Normality Test for Paired t Test: How to Check