pH Calculator

Calculate the pH of any solution — strong acids, strong bases, weak acids, or buffer solutions. Also converts between pH, pOH, [H⁺], and [OH⁻].

Enter any one value — the other three are calculated automatically.

0 (strong acid) – 14 (strong base)
pH + pOH = 14
mol/L
mol/L
Result
Enter values above

Select a mode and enter values to calculate pH.

How to Calculate pH

The method depends on the type of solution:

  1. From hydrogen ion concentration: pH = -log₁₀[H⁺]. Example: [H⁺] = 0.001 M → pH = -log(0.001) = 3.
  2. Strong acid (fully dissociates): [H⁺] = molarity × n, where n is the number of H⁺ ions released. Example: 0.1 M HCl → [H⁺] = 0.1 → pH = 1.
  3. Weak acid: pH = ½(pKa - log₁₀ C). Example: 0.1 M acetic acid (pKa = 4.74) → pH = ½(4.74 + 1) = 2.87.

pH Formulas

CalculationFormula
pH from [H⁺]pH = -log₁₀[H⁺]
[H⁺] from pH[H⁺] = 10-pH
pOH from pHpOH = 14 - pH
pH of strong acidpH = -log₁₀(M × n)
pH of strong basepH = 14 + log₁₀(M × n)
pH of weak acidpH = ½(pKa - log₁₀ C)
pH of bufferpH = pKa + log₁₀([A⁻]/[HA])

Where M = molarity, n = number of ionizable H⁺ or OH⁻, C = acid/base concentration, Ka = acid dissociation constant, pKa = -log₁₀(Ka).

The pH Scale

The pH scale runs from 0 (most acidic) to 14 (most basic), with 7 as neutral. Each whole number is a tenfold change in hydrogen ion concentration — pH 3 is ten times more acidic than pH 4.

pHCategoryExample
~0Strongly acidicBattery acid (1 M H₂SO₄)
~2AcidicLemon juice, gastric acid
~3AcidicVinegar, orange juice
~5Weakly acidicCoffee, acid rain
~6Weakly acidicUrine, saliva, milk
7NeutralPure water (25°C)
~8Weakly basicSea water, blood
~9BasicBaking soda solution
~11BasicAmmonia, soapy water
~13Strongly basicBleach, drain cleaner
~14Strongly basic1 M NaOH

Common Ka and pKa Values

Reference values for common weak acids at 25°C. Use these with the weak-acid mode above.

AcidFormulaKapKa
Acetic acidCH₃COOH1.8 × 10⁻⁵4.74
Hydrofluoric acidHF6.8 × 10⁻⁴3.17
Hydrocyanic acidHCN4.0 × 10⁻¹⁰9.40
Carbonic acid (Ka₁)H₂CO₃4.3 × 10⁻⁷6.37
Formic acidHCOOH1.77 × 10⁻⁴3.75
Hypochlorous acidHOCl6.2 × 10⁻⁸7.21
Nitrous acidHNO₂4.5 × 10⁻⁴3.35
Sulfurous acid (Ka₁)H₂SO₃1.1 × 10⁻²1.96
Phosphoric acid (Ka₁)H₃PO₄7.5 × 10⁻³2.12
Benzoic acidC₆H₅COOH6.3 × 10⁻⁵4.20

Frequently Asked Questions

What is pH?

pH measures hydrogen ion concentration on a logarithmic scale from 0 to 14. pH 7 is neutral, below 7 is acidic, above 7 is basic. The formula is:

pH = -log₁₀[H⁺]

where [H⁺] is the hydrogen ion concentration in mol/L.

How do you calculate pH?

Use pH = -log₁₀[H⁺]. For strong acids with known molarity: [H⁺] = molarity × number of H⁺ ions released.

Example: For 0.1 M HCl, [H⁺] = 0.1 M, so pH = -log(0.1) = 1.

What is the difference between pH and pOH?

pH measures hydrogen ion concentration [H⁺]; pOH measures hydroxide ion concentration [OH⁻]. They are complementary: at 25°C,

pH + pOH = 14

for any aqueous solution.

How do you calculate the pH of a weak acid?

Use the approximation

pH = ½ (pKa - log₁₀ C)

where pKa = -log₁₀(Ka) and C is the acid concentration. This assumes Ka << C.

Example: 0.1 M acetic acid (Ka = 1.8 × 10⁻⁵, pKa = 4.74) → pH = ½(4.74 - log 0.1) = ½(4.74 + 1) = 2.87.

What is the Henderson-Hasselbalch equation?

The Henderson-Hasselbalch equation calculates the pH of a buffer solution:

pH = pKa + log₁₀ ([A⁻] / [HA])

where [A⁻] is the conjugate base concentration and [HA] is the weak acid concentration. A buffer has maximum capacity when [A⁻] = [HA], giving pH = pKa.

Can pH be negative or above 14?

Yes, technically. Very concentrated strong acids (above 1 M) can have pH below 0, and very concentrated strong bases can have pH above 14. The conventional 0–14 range applies to dilute aqueous solutions at 25°C.

Related Chemistry Tools

All calculations on CoolConversion use formulas and constants documented by internationally recognised standards bodies (such as IUPAC and NIST).

Conversion factors verified against NIST, BIPM Based on SI definitions (BIPM). Last reviewed: March 2026
Tiago Fernandes Reviewed by Tiago Fernandes