pH Calculator - Calculate pH from Hydrogen Ion Concentration (pH = -log[H⁺])

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.

Input Values (pH = -log[H⁺])

Calculated pH

Enter hydrogen ion concentration to calculate pH

What Is a pH Calculator and Why Do You Need One?

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.

How to Use This Free Online pH Calculator

Using this pH to [H⁺] converter (actually [H⁺] to pH) is simple:

  1. Enter the hydrogen ion concentration. Type the numeric value of [H⁺] in the input field. The tool accepts positive numbers and decimals.
  2. Select the concentration unit. Choose from Molar (M), Millimolar (mM), Micromolar (μM), Nanomolar (nM), or Picomolar (pM). The calculator automatically converts all units to molarity before computing the logarithm.
  3. View the pH result. The calculation happens automatically as you type. The result appears in the output panel, along with a classification (e.g., "Acidic", "Neutral", "Basic") and a colour‑coded indicator.
  4. Copy the result using the copy button, or use the "Clear All" button to reset.

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 Formula - pH = -log[H⁺] Explained

pH = -log₁₀[H⁺]
pH = negative base‑10 logarithm of the hydrogen ion concentration (in moles per liter)

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:

  • Find pH: pH = -log[H⁺]
  • Find [H⁺]: [H⁺] = 10⁻ᵖᴴ

The pOH (measure of hydroxide concentration) is related by:

  • pH + pOH = 14 (at 25°C)
  • pOH = -log[OH⁻]

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.

All Supported Units - Complete Reference Table

Our pH concentration converter supports five concentration units, automatically converting each to molarity (mol/L) before calculation.

UnitSymbolValue in M (mol/L)Typical pH RangeCommon Uses
MolarM1 (exact)pH 0–1Strong acids (1 M HCl → pH = 0)
MillimolarmM1 × 10⁻³pH 2–3Dilute acids, buffer components
MicromolarμM1 × 10⁻⁶pH 5–6Trace analysis, biological fluids
NanomolarnM1 × 10⁻⁹pH 8–9Basic solutions, some natural waters
PicomolarpM1 × 10⁻¹²pH 11–12Very dilute bases, ultra‑pure water

The pH Scale - From Super Acidic to Super Basic

pH RangeCategoryExamplesColour (universal indicator)
0–2Super acidicBattery acid (≈1), gastric acid (≈1.5–3.5)Red
2–4Very acidicLemon juice (≈2.2–2.4), vinegar (≈2.5), cola (≈2.5)Orange
4–6AcidicTomato juice (≈4.0–4.5), black coffee (≈5.0), milk (≈6.5–6.7)Yellow
6–7Slightly acidicPure water (≈7.0), urine (≈6.0), saliva (≈6.2–7.4)Greenish‑yellow
7NeutralPure water, neutral salt solutionsGreen
7–8Slightly basicBlood (≈7.35–7.45), baking soda solution (≈8.3)Blue‑green
8–11BasicSea water (≈8.0), baking soda (≈8.3), borax (≈9.2)Blue
11–14Very basicAmmonia (≈11.5), lime water (≈12.4), 0.1 M NaOH (≈13)Violet

Example Calculations - From [H⁺] to pH

Example 1 - 0.1 M Hydrochloric Acid (strong acid)

[H⁺] = 0.10 M (assuming complete dissociation).

pH = -log(0.10) = -(-1.00) = 1.00 → Very acidic.

Example 2 - 0.001 M HCl

[H⁺] = 1.0 × 10⁻³ M (i.e., 1 mM).

pH = -log(0.001) = -(-3.00) = 3.00 → Acidic.

Example 3 - 1.0 × 10⁻⁷ M H⁺ (pure water at 25°C)

pH = -log(1 × 10⁻⁷) = 7.00 → Neutral.

Example 4 - 0.000 1 M NaOH (strong base)

For bases, first find [H⁺] from Kw = [H⁺][OH⁻] = 1.0 × 10⁻¹⁴. [H⁺] = 1.0 × 10⁻¹⁴ / 0.000 1 = 1.0 × 10⁻¹⁰ M.

pH = -log(1.0 × 10⁻¹⁰) = 10.00 → Basic.

Real‑World Applications of pH Calculation

1. Environmental Monitoring

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.

2. Medical and Clinical Chemistry

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.

3. Food and Beverage Industry

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.

4. Agriculture and Soil Science

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.

5. Swimming Pools and Aquaculture

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.

Frequently Asked Questions (FAQ) About pH Calculation

How do I calculate pH from hydrogen ion concentration?

Use the formula pH = -log₁₀[H⁺]. For example, if [H⁺] = 1.0 × 10⁻³ M, pH = -log(10⁻³) = 3.00. Our calculator does this automatically.

What is the pH of pure water?

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).

What is the pH range of common acids and bases?

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.

How does temperature affect pH?

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.

Can I calculate pH from molarity of a strong acid directly?

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.

Is my data secure when using this online pH calculator?

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.

Can I use this calculator offline?

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.

Why Choose Our pH Calculator Over Others?

  • Completely free, no registration. Unlimited calculations with no hidden costs.
  • Privacy‑first design. All calculations happen locally in your browser. Your data never leaves your device.
  • Supports 5 concentration units (M, mM, μM, nM, pM) - automatic unit conversion.
  • High precision with results to 3 decimal places, sufficient for educational and most lab work.
  • Visual pH categorisation (acidic/neutral/basic) and colour coding.
  • Works offline after initial page load.
  • Fully responsive design with resizable panels on desktop for custom workflow.