Chemistry calculators

pH Calculator

Updated Sep 1, 2026 By Jehan Wadia
Rate Formulas

Classification: Acidic (pH 4.74)
4.74
0 (Acidic)7 (Neutral)14 (Basic)

Quick pH Results
pH4.74
pOH9.26
H⁺ Concentration1.8197e-5 mol/L
OH⁻ Concentration5.4954e-10 mol/L
Solution TypeWeak Acid (Ka + C)

Introduction

The pH scale tells us how acidic or basic a solution is. It runs from 0 to 14, where 7 is neutral (like pure water), numbers below 7 are acidic, and numbers above 7 are basic. This pH calculator helps you quickly find the pH of a solution when you know the concentration of hydrogen ions (H⁺) or hydroxide ions (OH⁻). Instead of doing the math by hand using logarithms, you can enter your values and get an accurate answer. This tool makes pH calculations simple and fast, whether it is for a homework problem or plain curiosity about everyday liquids.

How to Use Our pH Calculator

Enter any known value about your solution, such as pH, pOH, ion concentration, or acid properties, and this calculator will find all related pH values, concentrations, and classifications. You can also mix multiple compounds together to find the pH of a combined solution.

Quick pH Calculator Tab: Use this mode when you have a single solution and know at least one value. You can type into any field, and the rest will update automatically.

pH: Enter the pH value of your solution if you already know it. The calculator will use this number to figure out the pOH, H⁺ concentration, and OH⁻ concentration right away.

pOH: Enter the pOH value if that is what you have. The tool will convert it to pH and calculate both ion concentrations for you.

H⁺ Concentration: Enter the hydrogen ion concentration of your solution. Use the dropdown menu next to the field to pick your unit: mol/L, mmol/L, µmol/L, or nmol/L. The calculator will derive the pH and all other values from this number.

OH⁻ Concentration: Enter the hydroxide ion concentration if that is what you know. Like the H⁺ field, you can choose your preferred unit from the dropdown. All other results will be calculated from this input.

Ka (Acid Dissociation Constant): Enter the Ka value for a weak acid. This works together with the Solution Concentration field. For example, acetic acid has a Ka of 1.8e-5. When both Ka and concentration are filled in, the calculator solves for the pH of that weak acid solution.

Solution Concentration (C): Enter the molar concentration of your weak acid solution. Choose your unit from the dropdown: mol/L, mmol/L, or µmol/L. This field pairs with the Ka field to calculate the pH of a weak acid at a given strength.

Mixture pH Calculator Tab: Use this mode when you want to combine two or more compounds in a single solution and find the resulting pH.

Total Volume of Solution: Enter the total volume of your mixed solution. Pick either liters (L) or milliliters (mL) from the dropdown. This volume is used to convert moles of each compound into concentrations.

Compound Selector: Choose a compound from the dropdown list for each row. The list includes common strong acids, strong bases, weak acids, weak bases, and salts. If your compound is not listed, select "Custom Compound" and enter its Ka or Kb value by hand.

Amount: Enter how many moles of each compound you are adding to the solution. Use the unit dropdown to switch between mol, mmol, or µmol. You can add more compounds by clicking the "Add Compound" button.

Calculate Mixture pH Button: After you have entered all your compounds and their amounts, click this button. The calculator will solve for the mixture's pH, pOH, H⁺ concentration, and OH⁻ concentration. It also shows a breakdown table listing each compound's type, amount, and whether it donates H⁺ or OH⁻ ions.

Reset Button: Click this to clear all compounds and start over with the default settings.

What Is pH?

pH is a number that tells you how acidic or basic (alkaline) a solution is. It runs on a scale from 0 to 14. A pH of 7 is neutral, which means the solution is neither acidic nor basic. Pure water is a good example. Numbers below 7 mean the solution is acidic (like lemon juice or vinegar), and numbers above 7 mean it is basic (like baking soda or bleach). The lower the pH number, the stronger the acid. The higher the pH number, the stronger the base.

How pH Works

pH measures the concentration of hydrogen ions (H⁺) in a solution. When a substance dissolves in water, it can release hydrogen ions or hydroxide ions (OH⁻). Acids release hydrogen ions, and bases release hydroxide ions. The more hydrogen ions present, the lower the pH and the more acidic the solution becomes. The mathematical formula is simple: pH = −log₁₀[H⁺], where [H⁺] is the concentration of hydrogen ions in moles per liter (mol/L). Because this formula relies on logarithms, the pH scale is logarithmic. Each whole number change in pH represents a tenfold change in H⁺ concentration.

pH and pOH: Two Sides of the Same Coin

Every water-based solution has both H⁺ ions and OH⁻ ions. The relationship between pH and pOH is straightforward: pH + pOH = 14 at 25°C. So if you know one value, you can always find the other. pOH works just like pH but measures the hydroxide ion concentration instead: pOH = −log₁₀[OH⁻]. This connection exists because of a constant called the ion product of water (Kw), which equals 1.0 × 10⁻¹⁴ at room temperature.

Strong Acids and Bases vs. Weak Acids and Bases

Strong acids like hydrochloric acid (HCl) and strong bases like sodium hydroxide (NaOH) break apart completely in water. This means every molecule releases its hydrogen or hydroxide ions. Calculating pH for these is straightforward: the H⁺ or OH⁻ concentration equals the concentration of the dissolved substance.

Weak acids and weak bases only partially break apart in water. Acetic acid (the acid in vinegar) is a common example. Only a small fraction of its molecules release hydrogen ions at any given time. To find the pH of a weak acid, you need to know its acid dissociation constant (Ka) and its concentration. The Ka value tells you how much the acid tends to break apart. A larger Ka means a stronger weak acid. For weak bases, the equivalent value is called Kb. When comparing your calculated pH to a known or expected value, you can use a percent error calculator to determine how close your experimental result is to the theoretical one.

How This Calculator Works

The Quick pH Calculator lets you enter any one value (pH, pOH, H⁺ concentration, OH⁻ concentration, or a Ka and concentration pair), and it instantly calculates all the other values for you. This is useful for homework, lab work, or quickly checking your math. The visual pH scale bar shows you exactly where your solution falls between acidic and basic.

The Mixture pH Calculator handles more complex situations. In real life, you often mix multiple chemicals together. This tool lets you add several compounds (strong acids, strong bases, weak acids, weak bases, and even salts), and it calculates the final pH of the combined solution. It uses a numerical method called bisection to solve the charge balance equation, which accounts for every source of H⁺ and OH⁻ ions in the mixture.

Common pH Values to Know

  • Battery acid: pH ~0–1
  • Lemon juice: pH ~2
  • Vinegar: pH ~2.4–3
  • Coffee: pH ~5
  • Pure water: pH 7
  • Baking soda solution: pH ~8.3
  • Household ammonia: pH ~11
  • Bleach: pH ~12.5

Why pH Matters

pH plays a critical role in chemistry, biology, medicine, agriculture, and environmental science. Your blood must stay between pH 7.35 and 7.45 for your body to function properly. Soil pH determines which nutrients plants can absorb, so gardeners and farmers need to monitor soil pH for healthy growth. Swimming pools need a pH between 7.2 and 7.8 to keep the water safe and comfortable. Understanding pH helps you predict how chemicals will react, whether a substance is safe to touch, and how living things interact with their environment.


Formulas used

pH Definition
\text{pH} = -\log_{10}[\text{H}^+]
pOH from pH
\text{pOH} = 14 - \text{pH}
Water Autoionization
[\text{H}^+][\text{OH}^-] = K_w = 1 \times 10^{-14}
Weak Acid Equilibrium (Ka and C)
K_a = \frac{x^2}{C - x} \quad \Rightarrow \quad x = \frac{-K_a + \sqrt{K_a^2 + 4\,K_a\,C}}{2}
Mixture Charge Balance (Numerical Solver)
h - \frac{K_w}{h} - [\text{H}^+]_{\text{strong}} + [\text{OH}^-]_{\text{strong}} - \sum_i \frac{K_{a,i}\,C_i}{K_{a,i}+h} + \sum_j \frac{K_{b,j}\,C_j}{K_{b,j}+\frac{K_w}{h}} = 0

Frequently asked questions

What is the difference between pH and pOH?

pH measures how many hydrogen ions (H⁺) are in a solution. pOH measures how many hydroxide ions (OH⁻) are in a solution. They always add up to 14 at room temperature (25°C). So if you know one, you can find the other by subtracting from 14. A low pH means acidic, while a low pOH means basic.

What is Ka and why do I need it?

Ka stands for the acid dissociation constant. It is a number that tells you how much a weak acid breaks apart in water. A bigger Ka means the acid is stronger and releases more H⁺ ions. You need Ka when calculating the pH of a weak acid because weak acids do not fully break apart like strong acids do. Without Ka, the calculator cannot figure out how many H⁺ ions are actually in the solution.

Why does changing one field update all the other fields automatically?

In the Quick pH Calculator, all the values are mathematically connected. If you know pH, you can calculate pOH, H⁺ concentration, and OH⁻ concentration using simple formulas. The calculator runs these formulas instantly whenever you change any field, so every result stays in sync.

What happens if I mix a strong acid and a strong base together?

The calculator subtracts the OH⁻ moles from the H⁺ moles. If there is more acid, the leftover H⁺ makes the solution acidic. If there is more base, the leftover OH⁻ makes it basic. If the amounts are exactly equal, they cancel out and the pH is 7 (neutral).

What is the ion product of water (Kw)?

Kw is a constant that equals 1.0 × 10⁻¹⁴ at 25°C. It represents the product of H⁺ and OH⁻ concentrations in pure water: [H⁺] × [OH⁻] = Kw. This constant is the reason pH + pOH always equals 14 at room temperature. The calculator uses Kw in all of its equations.

Can I calculate pH for a salt solution?

Yes. The calculator includes salts like sodium acetate (a conjugate base) and ammonium chloride (a conjugate acid). These salts undergo hydrolysis in water, which changes the pH. Sodium acetate makes the solution slightly basic, and ammonium chloride makes it slightly acidic. Select them from the Mixture tab dropdown.

Why is the pH scale logarithmic?

H⁺ concentrations in solutions can range from about 10 mol/L down to 10⁻¹⁴ mol/L. That is a huge range. Using a logarithmic scale compresses these numbers into a simple 0–14 range. Each whole number step on the pH scale means the H⁺ concentration changes by a factor of 10.