Free online pH calculator. Instantly compute pH from hydrogen ion concentration [H⁺] using the formula pH = -log[H⁺]. Supports concentration units: M, mM, μM, nM, pM. Perfect for chemistry students, lab technicians, and anyone working with acidic or basic solutions.
A pH calculator (also called a pH‑from‑[H⁺] calculator or acidity calculator) is an online tool that computes the pH of a solution based on its hydrogen ion concentration. pH is defined as the negative base‑10 logarithm of the hydrogen ion (H⁺) concentration:pH = -log[H⁺]. This equation is one of the cornerstones of acid‑base chemistry, used to determine whether a solution is acidic (pH < 7), neutral (pH = 7), or basic (pH > 7).
pH is critical in countless applications: from checking the acidity of swimming pool water and soil for gardening to controlling chemical reactions in industrial processes and monitoring blood pH in medical diagnostics. Students in introductory and advanced chemistry courses routinely convert [H⁺] to pH for laboratory work, homework, and exam preparation. Our free online pH calculator automates this calculation, eliminating the need for a scientific calculator or memorizing log tables.
This tool operates entirely within your browser - no data is sent to any server, ensuring your privacy and enabling offline use. It supports 5 concentration units (M, mM, μM, nM, pM) and automatically converts all inputs to molarity before applying the pH = -log[H⁺] formula. Whether you are a student checking a textbook problem, a lab technician verifying a buffer solution, or a science enthusiast, this calculator is your go‑to resource for pH calculations.
Using this pH to [H⁺] converter (actually [H⁺] to pH) is simple:
The calculator also supports very small concentrations (down to 10⁻¹⁵ M) and will correctly compute pH values that range from 0 to 14 (and even negative pH or greater than 14 for extremely strong acids/bases). However, note that the pH scale is most accurate for dilute solutions; for very high concentrations (greater than 1 M) the activity coefficient deviates from 1, and the measured pH may differ slightly from the calculated value.
The pH scale was introduced in 1909 by Danish biochemist Søren Peter Lauritz Sørensen to simplify the expression of hydrogen ion concentration. Because [H⁺] spans many orders of magnitude (from about 10⁻¹⁴ M in pure water to greater than 10 M in concentrated strong acids), using a logarithmic scale makes the numbers more convenient.
The formula can be rearranged to solve for [H⁺] from a given pH:
The pOH (measure of hydroxide concentration) is related by:
Because water self‑ionises (H₂O ⇌ H⁺ + OH⁻), the product [H⁺][OH⁻] is constant:Kw = [H⁺][OH⁻] = 1.0 × 10⁻¹⁴ at 25°C. This relation allows you to convert between pH and pOH easily.
Our pH concentration converter supports five concentration units, automatically converting each to molarity (mol/L) before calculation.
| Unit | Symbol | Value in M (mol/L) | Typical pH Range | Common Uses |
|---|---|---|---|---|
| Molar | M | 1 (exact) | pH 0–1 | Strong acids (1 M HCl → pH = 0) |
| Millimolar | mM | 1 × 10⁻³ | pH 2–3 | Dilute acids, buffer components |
| Micromolar | μM | 1 × 10⁻⁶ | pH 5–6 | Trace analysis, biological fluids |
| Nanomolar | nM | 1 × 10⁻⁹ | pH 8–9 | Basic solutions, some natural waters |
| Picomolar | pM | 1 × 10⁻¹² | pH 11–12 | Very dilute bases, ultra‑pure water |
| pH Range | Category | Examples | Colour (universal indicator) |
|---|---|---|---|
| 0–2 | Super acidic | Battery acid (≈1), gastric acid (≈1.5–3.5) | Red |
| 2–4 | Very acidic | Lemon juice (≈2.2–2.4), vinegar (≈2.5), cola (≈2.5) | Orange |
| 4–6 | Acidic | Tomato juice (≈4.0–4.5), black coffee (≈5.0), milk (≈6.5–6.7) | Yellow |
| 6–7 | Slightly acidic | Pure water (≈7.0), urine (≈6.0), saliva (≈6.2–7.4) | Greenish‑yellow |
| 7 | Neutral | Pure water, neutral salt solutions | Green |
| 7–8 | Slightly basic | Blood (≈7.35–7.45), baking soda solution (≈8.3) | Blue‑green |
| 8–11 | Basic | Sea water (≈8.0), baking soda (≈8.3), borax (≈9.2) | Blue |
| 11–14 | Very basic | Ammonia (≈11.5), lime water (≈12.4), 0.1 M NaOH (≈13) | Violet |
[H⁺] = 0.10 M (assuming complete dissociation).
[H⁺] = 1.0 × 10⁻³ M (i.e., 1 mM).
For bases, first find [H⁺] from Kw = [H⁺][OH⁻] = 1.0 × 10⁻¹⁴. [H⁺] = 1.0 × 10⁻¹⁴ / 0.000 1 = 1.0 × 10⁻¹⁰ M.
The pH of natural water bodies (rivers, lakes, oceans) is a key indicator of pollution and ecosystem health. Acid rain, often caused by sulfur dioxide and nitrogen oxides emissions, lowers the pH of lakes and damages aquatic life.
Human blood pH is tightly regulated between 7.35 and 7.45. Deviations (acidosis or alkalosis) can indicate serious medical conditions. Urine pH is also monitored for kidney function and urinary tract infections.
pH affects taste, preservation, and safety. Low pH (acidic) prevents bacterial growth (e.g., pickling, canning). The pH of soft drinks, wine, and beer is routinely measured for quality control.
Most crops grow best in slightly acidic to neutral soil (pH 6.0–7.0). Farmers and gardeners apply lime to raise pH or sulfur to lower pH to optimise nutrient availability.
Proper pH (7.2–7.8) ensures chlorine disinfects effectively without irritating swimmers’ eyes and skin. pH is also monitored in aquariums to protect fish health.
Use the formula pH = -log₁₀[H⁺]. For example, if [H⁺] = 1.0 × 10⁻³ M, pH = -log(10⁻³) = 3.00. Our calculator does this automatically.
At 25°C, pure water has [H⁺] = 1.0 × 10⁻⁷ M, giving pH = 7.00. At higher temperatures, Kw increases, so the neutral pH becomes slightly lower (e.g., pH ≈ 6.5 at 50°C).
Strong acids in water typically have pH 0–2, weak acids pH 3–6, weak bases pH 8–10, and strong bases pH 11–14. Concentrated strong acids ('greater than '1 M) can have negative pH values, and concentrated strong bases can exceed pH 14.
The ion product of water (Kw) increases with temperature, shifting the neutral pH away from 7. For example, at 100°C, neutral pH is about 6.1. However, the concentration of H⁺ still equals OH⁻. Our calculator assumes 25°C unless otherwise noted.
Yes. For strong monoprotic acids like HCl, HNO₃, or H₂SO₄ (first dissociation), [H⁺] equals the acid concentration. Enter the concentration in M, and our calculator gives pH directly. For weak acids, you would need the Ka value and an ICE table, which this calculator does not handle.
Absolutely. All calculations are performed locally in your browser using JavaScript. No data is transmitted to any server - your inputs remain on your own device.
Yes. Once the page has loaded, all conversion and pH logic runs locally in your browser. No internet connection is required after the first load - perfect for laboratory use or study sessions without Wi‑Fi.
Discover more free developer tools that might interest you.
Calculate acceleration from velocity and time
Use ToolCalculate chemical concentrations
Use ToolCalculate density from mass and volume
Use ToolCalculate solution dilutions
Use ToolCalculate force using Newton's laws
Use ToolCalculate gas properties using gas laws
Use ToolRead the how-to, then come back to this tool when you are ready to run it locally.