pH Calculator

Created by Julia Żuławińska
Reviewed by Bogna Szyk, Jack Bowater and Adena Benn
Last updated: Aug 19, 2023

With this pH calculator, you can determine the pH of a solution in a few ways. It can convert pH to H+, as well as calculate pH from the ionization constant and concentration. The pH value is an essential factor in chemistry, medicine, and daily life. Read the text below to find out what is the pH scale and the pH formula. In the end, we will also explain how to calculate pH with an easy step-by-step solution.

Our calculator may ask you for the concentration of the solution. If you don't know, you can calculate it using our concentration calculator. You can also use the solution dilution calculator to calculate the concentration of ions in a diluted solution.

The pH scale

The pH scale (pH) is a numeric scale used to define how acidic or basic an aqueous solution is. It commonly ranges between 0 and 14 but can go beyond these values if sufficiently acidic/basic. The pH value is logarithmically and is inversely related to the concentration of hydrogen ions in a solution. The pH to H+ formula that represents this relation is:

pH=log([H+])\small \rm {pH = -\log([H^+])}

The solution is acidic if its pH is less than 7. If the pH is higher, the solution is basic (also referred to as alkaline). Solutions with a pH that is equal to 7 are neutral.

Apart from the mathematical way of determining pH, you can also use pH indicators. The most universally used pH test is the litmus paper. It changes its color according to the pH of the solution in which it was dipped. These colors often inspire colorful pH scales:

pH scale with product examples

The pH in our bodies is close to neutral. For example, the pH of blood should be around 7.4. The only exception is the stomach, where stomach acids can even reach a pH of 1.

Molecules can have a pH at which they are free of a negative charge. That is what our isoelectric point calculator determines.

Definitions of an acid and a base

Three different theories define acid and base:

  • According to the Arrhenius theory, in an aqueous solution, an acid is a substance able to donate hydrogen ions, while a base donates hydroxide ions.
  • Brønsted–Lowry theory says that acid can donate protons while a base can accept them.
  • Lewis theory states that an acid is something that can accept electron pairs. Analogously, a base donates electron pairs.

The higher the concentration of hydrogen ions from acid molecules, the lower the pH of the solution and, consequently, the higher its acidity. The reverse is true for hydroxide ions and bases. The higher the concentration of hydroxide ions from base molecules, the higher the pH of the solution and, consequently, the higher its basicity.

We can describe the reaction of an acid, HA, in water as:

HAH++A\small \rm HA ⇌ H^+ + A^-

with the acid ionization constant:

Ka=[A][H+]/[HA]\small \rm Ka = [A^-][H^+]/[HA]

A similar chemical reaction between base BOH and water looks like this:

BOHOH+B+\small \rm BOH ⇌ OH^- + B^+

The next equation gives the base ionization constant for the above formula:

Kb=[OH][B+]/[BOH]\small\rm Kb = [OH^-][B^+]/[BOH]

If you want to know more about chemical equilibrium constants, check out the equilibrium constant calculator or the reaction quotient calculator.

How to find pH – pH formula

pH is defined as the negative of the base-ten logarithm of the molar concentration of hydrogen ions present in the solution. The unit for the concentration of hydrogen ions is moles per liter. To determine pH, you can use this pH to H⁺ formula:

pH=log([H+])\small\rm pH = -log([H^+])

If you already know pH but want to calculate the concentration of ions, use this transformed pH equation:

[H+]=10pH\rm \small [H^+] = 10^{-pH}

There also exists a pOH scale - which is less popular than the pH scale. pOH is the negative of the logarithm of the hydroxide ion concentration:

pOH=log([OH]),\rm \small pOH = -log([OH^-]),


[OH]=10pOH\rm\small [OH^-] = 10^{-pOH}

pH and pOH are related to one another by this pOH and pH equation:

pH+pOH=14\small \rm pH + pOH = 14

How to calculate pH? – step by step solution

Here are the steps to calculate the pH of a solution:

  1. Let's assume that the concentration of hydrogen ions is equal to 0.0001 mol/L.

  2. Calculate pH by using the pH to H⁺ formula:

pH=log(0.0001)=4\qquad \small\rm pH = -log(0.0001) = 4
  1. Now, you can also easily determine pOH and a concentration of hydroxide ions using the formulas:
  pOH=144=10[OH]=1010=0.0000000001\quad\ \ \small \begin{align*} \rm pOH &= 14 - 4 = 10\\[.5em] \rm [OH-] &= 10^{-10} = 0.0000000001\\[.5em] \end{align*}

Of course, you don't have to perform all of these calculations by hand! Choose the option to determine pH with ion concentration in the calculator, and type in any of these four values! Then, watch as the tool does all the work for you!

  1. Alternatively, you can find a chemical from the lists (of acids or bases). Let's say you want to know how to find the pH of formic acid – HCOOH. Its Ka is 0.00018.
  2. Choose the concentration of the chemical. Let's assume that it's equal to 0.1 mol/L.
  3. To find a concentration of H⁺ ions, you have to...:
HCOOH=HCOO+H+\qquad \small \rm HCOOH = HCOO^- + H^+
Ka=[H+]×[HCOO][HCOOH],\qquad \rm \small Ka = \frac{[H^+] × [HCOO^-]}{[HCOOH]},


Ka=x2cx\qquad \small {\rm Ka} = \frac{x^2}{c - x}

Here cc is the molar concentration of the solution, and xx is equal to the molar concentration of H⁺.

For 0.1 M HCOOH:

  [H+]=0.004154pH=log([H+])=log(0.004154)=2.38\small \quad\ \ \begin{align*} \rm [H+] &= 0.004154\\[.5em] \rm pH &= -\log(\rm [H^+]) \\[.5em] &= -\log(0.004154) = 2.38 \end{align*}

Now you know how to calculate pH using pH equations. If you find these calculations time-consuming, feel free to use our pH calculator. Select your chemical and its concentration, and watch it do all the work for you.


What is pH?

pH measures the concentration of positive hydrogen ions in a solution. This quantity is correlated to the acidity of a solution: the higher the concentration of hydrogen ions, the lower the pH. This correlation derives from the tendency of an acidic substance to cause dissociation of water: the higher the dissociation, the higher the acidity.

How do I calculate the pH of a solution?

To calculate the pH of a solution:

  1. Measure the concentration of hydrogen ion in the solution. Alternatively, you can measure the activity of the same species. We can call it [H+].

  2. Calculate the base 10 logarithm of this quantity: log10([H+]).

  3. Take the additive inverse of this quantity. The pH is given by:
    pH = - log10([H+])

What is the difference between pH and pOH?

The pOH is a similar measurement to the pH and correlates to the concentration of hydroxide ions in a solution. The formula for the pOH is:

pOH = -log10([OH-])

In specific conditions (aqueous solutions at room temperature), we can define a useful relationship between pH and pOH:

pH = 14 - pOH

What are some examples of pH?

Here are some examples of pH:

  1. The pH of pure water is 7, which is the midpoint of the pH scale.

  2. The pH of our stomach varies from 1.5 to 3.5: our stomach is quite acidic!

  3. The acid in your car's battery has a pH of about 0.5: don't put your hands in there!

  4. House products like drain cleaners are strong bases: some can reach a pH of 14!

Julia Żuławińska
To calculate the pH of a buffer, go to the buffer pH calculator!
I want calculate the pH from..
concentration of an acid
Hydrochloric acid - HCl
Check out 20 similar mixtures and solutions calculators ⚗️
Activity coefficientAlligationBleach dilution… 17 more
People also viewed…

Car crash force

With this car crash calculator, you can find out how dangerous car crashes are.


Need to convert between moles, molecular weight and mass? You can do it here with our mole calculator.


The reconstitution calculator evaluates the volume and mass required to reconstruct a drug by adding a liquid diluent to a dry ingredient.

Test grade

With this test grade calculator, you'll quickly determine the test percentage score and grade.