pH Calculator
Find pH from acid or base concentration, mass and volume, or ion values.
Supports 22 acids, 7 bases, custom Ka/Kb, and M to yM units.
Updated September 6, 2026
What does this calculator do?
This calculator finds the pH of an aqueous solution five ways: from the concentration of an acid, from the concentration of a base, from the mass and volume of an acid or a base, or directly from ion values (, , or pOH). Along with pH it reports the matching ion concentrations, pOH, and the pKa or pKb of the compound involved.
It is built for students checking homework, lab staff preparing reagents, and anyone who needs a quick acidity answer without solving logarithmic equations by hand. Pick one of 22 common acids or 7 common bases — each comes with its published ionization constant and molar mass — or choose the custom option and enter your own Ka or Kb.
How to use this calculator
- 1Choose how you want to calculate the pH: concentration of an acid or base, mass and volume of an acid or base, or ion values.
- 2For acid or base modes, pick the compound from the list. The ionization constant and molar mass are filled in automatically. Pick the custom option only if your compound is not listed — then enter Ka or Kb yourself.
- 3Enter the concentration, or the weight and volume. In mass modes you can enter just the weight — the volume starts at 1 L so a result appears immediately, and you can adjust it afterwards.
- 4Read the pH and hydrogen ion concentration in the Result section, and the pOH, hydroxide concentration, and pKa or pKb under Related numbers.
Worked example: 0.1 M formic acid
Formic acid () has . Select it, enter a concentration of 0.10 M, and the calculator solves the equilibrium for the hydrogen ion concentration first:
The matching pOH is 11.62 and the hydroxide concentration is about — exactly what the Related numbers section shows.
Quick check from ion values
If you already know one ion value, switch to the ion option and enter it. Typing a pH of 4 immediately gives , a pOH of 10, and .
Formulas and variables
Weak acid or base equilibrium
— molar concentration of the acid or base (mol/L)
/ — ionization constant of the selected compound; the base form is mirrored with
For a strong acid such as HCl the constant is very large, so this formula collapses to — 0.1 M HCl gives pH 1.
Mass and volume to concentration
— weight of the solid compound, — its molar mass (g/mol), — solution volume (L)
The molar mass comes from the selected compound automatically. When a preset compound is selected, its Ka, Kb, and molar mass are locked — editing the pH adjusts the amounts, never the published constants.
pH, pOH, and ion concentrations
The ion option solves this network in every direction: enter any one of pH, , pOH, or and the other three follow. The same network runs behind the acid and base modes, which is why every calculation also reports pOH and hydroxide concentration.
Need the pH of a buffer mixture rather than a single acid or base? Continue with the buffer pH calculator. If you need to prepare the solution at a target molarity first, the molarity calculator walks through the same mass–volume–concentration conversion step by step.
Frequently asked questions
Why can't I edit pKa for a listed acid?
Because pKa is fixed by the compound you picked (). Keeping it read-only guarantees the value always matches the selection. Choose the custom option if you work with an unlisted compound — then Ka, pKa, and molar mass are all editable and fully reversible.
I entered a weight and got a result before typing the volume. What happened?
Mass modes start the volume at 1 L so a single weight entry already produces a concentration and pH. Type your real volume to update everything — the concentration is always derived from your weight and volume, never assumed.
Can I work backwards from a target pH?
Yes, within the preset's limits. Type the pH you want and the calculator adjusts the amounts — for example the weight or volume — while the compound's Ka and molar mass stay fixed. For ion-only conversions, any field can be the starting point. The hydrogen ion concentration calculator covers the pH–concentration pair in more depth.
Limitations
- Ideal solution assumption. Concentrations stand in for activities. In concentrated or high-ionic-strength solutions the true pH can differ by several tenths of a unit.
- Single equilibrium at 25 °C. Each calculation models one acid or base with the constant you see. Polyprotic acids use the first dissociation step only, and published Ka values shift with temperature — verify them for hot or cold work.
- Ion concentrations are capped at 1 M. Entries above that are rejected, since leaves its useful range there.
- Not a buffer tool. Mixtures of a weak acid with its conjugate base need the Henderson–Hasselbalch treatment — use the buffer pH calculator instead.
Related Calculators
Integer Base Converter
Convert an integer between bases 2–64 (binary, octal, decimal, hexadecimal, base64, and custom). Runs locally in your browser.
Atom Calculator
Calculate atomic properties including protons, neutrons, electrons, atomic number and mass number
Electron Configuration Calculator
Get the electron configuration for any element from the periodic table. View atomic number, atomic mass, and valence electrons.
Atomic Mass Calculator
Calculate atomic mass from protons and neutrons. Get atomic mass in various units including atomic mass units (u), kilograms, and more.
Electronegativity Calculator
Calculate electronegativity difference between two elements and determine bond type (ionic, polar covalent, or nonpolar covalent).
Average Atomic Mass Calculator
Calculate the average atomic mass of an element based on the isotopes and their natural abundances.