pH Calculator

Calculate pH, pOH, hydrogen ion concentration, hydroxide ion concentration, strong acid/base pH, weak acid/base pH, and buffer pH.

Calculator is for informational purposes only. Terms and Conditions

\[ \mathrm{pH}=-\log_{10}\left([H^+]\right) \]
1

Choose what to calculate

Select the chemistry method. The input fields update automatically.

Use simple conversion modes for pH, pOH, [H⁺], and [OH⁻], or select acid/base modes for equilibrium calculations.
Most classroom pH calculations assume 25°C, where pH + pOH = 14.00.
Enter hydrogen ion concentration. The calculator will return pH, pOH, [OH⁻], and a pH scale check.
2

Enter the known values

Only the values needed for the selected pH calculation are shown.

Enter the molar concentration of hydrogen ions. The base unit is mol/L.
Enter the molar concentration of hydroxide ions. The base unit is mol/L.
pH is dimensionless. Values below neutral are acidic and values above neutral are basic.
pOH is dimensionless. At 25°C, pH + pOH = 14.00.
Enter the initial acid or base concentration before dissociation or ionization.
Use 1 for HCl or NaOH. Use 2 for idealized Ba(OH)₂ or a simplified diprotic strong acid assumption.
Choose Ka if you have the dissociation constant or pKa if your reference table lists pKa.
Ka must be greater than zero. For acetic acid, Ka is about 1.8 × 10⁻⁵ at 25°C.
pKa is converted to Ka using Ka = 10^-pKa for weak acid mode and used directly for buffer pH.
Choose Kb if you have the base dissociation constant or pKb if your reference table lists pKb.
Kb must be greater than zero. For ammonia, Kb is about 1.8 × 10⁻⁵ at 25°C.
pKb is converted to Kb using Kb = 10^-pKb for weak base calculations.
Use concentration, moles, or any consistent amount basis. Henderson-Hasselbalch uses the base/acid ratio.
Use the same basis as the weak acid amount. Equal acid and conjugate base amounts give pH = pKa.
Advanced Options
Default pKw = 14.00 for water at 25°C. Use custom pKw only when temperature effects are intentionally being considered.
3

Visual Check

The marker shows where the calculated pH falls on the acidic-to-basic scale.

pH Calculator visual scale A pH scale from acidic to basic with a marker showing the calculated pH. pH = 3.00 Acidic Neutral pH 7.00 Basic Scale marker is shown on the common 0–14 pH reference range.
4

Solution

Live result, quick checks, warnings, and full solution steps.

Calculated pH
pH
Real-time result updates as you type.

Quick checks

  • Check
Show solution steps See the equation, substitutions, assumptions, and result path
  1. Enter values to see the full solution steps and checks.
5

Source, Standards, and Assumptions

Calculation basis, constants, assumptions, and limitations.

Educational acid-base method

Source/standard information updates based on the selected method.

  • Assumptions will appear after a valid calculation.
On this page

Calculator Guide

How to Use the pH Calculator

The pH Calculator above helps calculate pH, pOH, hydrogen ion concentration, hydroxide ion concentration, strong acid pH, strong base pH, weak acid/base pH, and buffer pH. Enter the known value, choose the matching calculation mode, and use the result, quick checks, and solution steps to understand whether the solution is acidic, neutral, or basic.

For most classroom chemistry problems, the default assumption is water at 25°C, where \( \mathrm{p}K_w = 14.00 \). For real lab, water-quality, pool, aquarium, or process-control decisions, verify calculated values with calibrated measurement and appropriate chemistry assumptions.

Best for pH, pOH, acid/base, weak acid, weak base, and buffer checks
Main result Calculated pH with pOH, [H⁺], [OH⁻], and classification
Most important input The ion concentration or equilibrium constant used by the selected mode

Quick Answer

To calculate pH from hydrogen ion concentration, use \( \mathrm{pH}=-\log_{10}([H^+]) \). For example, if \( [H^+] = 1.0 \times 10^{-3}\,M \), then \( \mathrm{pH}=3.00 \), which is acidic.

When not to rely on a simplified pH result

Do not rely on a simplified pH calculation alone for very dilute solutions near neutral pH, concentrated acids or bases, high ionic strength solutions, unknown mixtures, safety-critical chemical handling, or any situation where measured pH controls a real process.

Inputs and Outputs Used by the Calculator

The pH Calculator uses different inputs depending on the selected mode. Simple modes need pH, pOH, \( [H^+] \), or \( [OH^-] \), while acid/base modes need concentration and sometimes \( K_a \), \( K_b \), \( \mathrm{p}K_a \), \( \mathrm{p}K_b \), or buffer amounts.

Concentration entries should always be checked against the unit selector. The same number entered as \( M \) instead of mM changes the concentration by 1,000×, which can shift a direct pH calculation by about 3 pH units.

Common pH calculator inputs and outputs
ModeCommon InputsMain OutputBest Use
pH from \( [H^+] \)Hydrogen ion concentration in \( M \), mM, µM, or nMpH, pOH, \( [OH^-] \)Direct pH formula problems
pH from pOH or \( [OH^-] \)pOH or hydroxide concentrationpH, \( [H^+] \), acid/base classificationBase and pOH conversion problems
Strong acid/baseConcentration and ion equivalentspH assuming complete dissociationHCl, NaOH, KOH, and similar classroom cases
Weak acid/baseConcentration plus \( K_a \), \( \mathrm{p}K_a \), \( K_b \), or \( \mathrm{p}K_b \)pH from equilibriumAcetic acid, ammonia, and partial ionization problems
Buffer\( \mathrm{p}K_a \), weak acid amount, conjugate base amountBuffer pHHenderson-Hasselbalch buffer calculations

pH Formula

The main pH formula converts hydrogen ion concentration into pH using a base-10 logarithm. A lower pH means a higher hydrogen ion concentration, and each 1-unit pH change represents a 10× change in \( [H^+] \).

Main pH Formula

\[ \mathrm{pH}=-\log_{10}\left([H^+]\right) \]

Use this formula when the hydrogen ion concentration is known in mol/L.

Reverse pH Formula

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

Use this rearranged formula when pH is known and you need hydrogen ion concentration.

pH and pOH Relationship

\[ \mathrm{pH}+\mathrm{pOH}=\mathrm{p}K_w \]

At 25°C, \( \mathrm{p}K_w \approx 14.00 \), so \( \mathrm{pH}=14.00-\mathrm{pOH} \).

Weak Acid pH

\[ K_a=\frac{x^2}{C-x} \]

For a weak acid, \( x \) represents the hydrogen ion concentration produced by partial ionization. The calculator can solve this exactly instead of relying only on the square-root shortcut.

Weak Base pH

\[ K_b=\frac{x^2}{C-x} \]

For a weak base, \( x \) represents hydroxide ion concentration. The calculator then converts pOH to pH using \( \mathrm{pH}=\mathrm{p}K_w-\mathrm{pOH} \).

Buffer pH Formula

\[ \mathrm{pH}=\mathrm{p}K_a+\log_{10}\left(\frac{[A^-]}{[HA]}\right) \]

This is the Henderson-Hasselbalch equation. It is most useful when both buffer components are present in meaningful amounts.

What the Variables Mean

The most important variables are pH, pOH, hydrogen ion concentration, hydroxide ion concentration, and the equilibrium constants used for weak acids, weak bases, and buffers.

\( \mathrm{pH} \)

A logarithmic measure of acidity based on hydrogen ion activity. In simplified classroom calculations, concentration is commonly used as an approximation.

\( [H^+] \)

Hydrogen ion concentration, usually entered in mol/L or molarity \( M \). Higher \( [H^+] \) means lower pH.

\( \mathrm{pOH} \) and \( [OH^-] \)

pOH and hydroxide concentration describe basicity. At 25°C, pH and pOH add to 14.00.

\( K_a \), \( K_b \), \( \mathrm{p}K_a \), \( \mathrm{p}K_b \)

Equilibrium constants describe how much a weak acid or weak base ionizes. \( \mathrm{p}K_a=-\log_{10}(K_a) \), so \( K_a \) and \( \mathrm{p}K_a \) are not interchangeable.

\( C \)

The initial concentration of the acid or base before weak acid/base ionization is solved.

\( [A^-] \) and \( [HA] \)

The conjugate base and weak acid terms used in the Henderson-Hasselbalch buffer equation.

How to Use the pH Calculator

Use the calculator by choosing the calculation mode that matches the known value you have. Then enter the concentration, pH, pOH, equilibrium constant, or buffer ratio and review the solution steps.

1

Select the calculation mode

Choose pH from \( [H^+] \), pH from pOH, strong acid/base, weak acid/base, or buffer pH depending on the information given in the problem.

2

Enter known values and units

Use the concentration unit selector carefully. A value entered as mM is 1,000 times smaller than the same number entered as \( M \).

3

Review the pH result and checks

Check pH, pOH, \( [H^+] \), \( [OH^-] \), the acidic/basic classification, warnings, and solution steps before using the answer.

How to Interpret pH Results

At 25°C, pH below 7 is acidic, pH near 7 is neutral, and pH above 7 is basic. The common 0–14 scale is a useful reference, but pH can be below 0 or above 14 for concentrated solutions.

What to do with the result

Use the pH value to classify the solution, compare acid/base strength, check homework, or estimate whether a buffer target is reasonable.

What changes pH most?

Because pH is logarithmic, a 10× change in \( [H^+] \) changes pH by about 1 unit. Concentration and equilibrium constants dominate the result.

Neutral pH check

At 25°C, neutral pH is about 7.00. If a custom \( \mathrm{p}K_w \) is used, neutral pH is \( \mathrm{p}K_w/2 \).

Quick sanity check

If a dilute acid gives a basic pH or a dilute base gives an acidic pH, water autoionization may be affecting the result and a simplified calculation may be misleading.

Input Checklist Before You Trust the Answer

Most pH calculator errors come from concentration unit mistakes, using the wrong acid/base mode, or applying a simplified formula outside its reliable range.

  • Confirm whether the concentration is in \( M \), mM, µM, or nM.
  • Use strong acid/base mode only when complete dissociation is a reasonable assumption.
  • Use weak acid/base mode when the compound only partially ionizes.
  • Check whether your reference gives \( K_a \), \( \mathrm{p}K_a \), \( K_b \), or \( \mathrm{p}K_b \).
  • Use buffer mode only when both the weak acid and conjugate base are present in meaningful amounts.
  • Check whether the solution is extremely dilute or highly concentrated before trusting an ideal calculation.

Worked Example: Calculate pH from Hydrogen Ion Concentration

This example matches the most common pH calculator use case: finding pH when the hydrogen ion concentration is known.

Given values

Hydrogen ion concentration
\( [H^+] = 0.001\,M \)
Required result
pH
Assumption
Ideal dilute solution behavior

Formula

\[ \mathrm{pH}=-\log_{10}\left([H^+]\right) \]

Substitution

\[ \mathrm{pH}=-\log_{10}(0.001)=3.00 \]

Final answer

pH = 3.00. This is acidic because it is below neutral pH at 25°C.

More common pH examples

pH from pOH

If \( \mathrm{pOH}=4.00 \), then \( \mathrm{pH}=14.00-4.00=10.00 \) at 25°C.

pH of 0.01 M NaOH

For a simplified strong base calculation, \( [OH^-]=0.01\,M \), so \( \mathrm{pOH}=2.00 \) and \( \mathrm{pH}=12.00 \).

Hydrogen ion concentration from pH 4

If \( \mathrm{pH}=4.00 \), then \( [H^+]=10^{-4}=1.0 \times 10^{-4}\,M \).

Buffer with equal acid/base

If \( \mathrm{p}K_a=4.76 \) and \( [A^-]=[HA] \), then \( \mathrm{pH}=4.76+\log_{10}(1)=4.76 \).

What the pH Formula Represents

The pH formula is logarithmic, so pH changes by 1 unit every time \( [H^+] \) changes by a factor of 10. A text-based visual is the safest way to show this relationship without creating crowded SVG labels or unreadable diagram text.

Logarithmic relationship: if \( [H^+] \) increases by 10×, pH decreases by 1. If \( [H^+] \) decreases by 10×, pH increases by 1.

\( [H^+] = 10^{-3}\,M \)

\( \mathrm{pH}=3.00 \)

\( [H^+] = 10^{-4}\,M \)

\( \mathrm{pH}=4.00 \)

\( [H^+] = 10^{-5}\,M \)

\( \mathrm{pH}=5.00 \)

pH Reference Checks

Reference values help users decide whether a result is plausible. They are not universal design limits because pH depends on chemistry, temperature, concentration, and measurement method.

Common pH interpretation checks at about 25°C
pH RangeInterpretationPractical Meaning
Below 7AcidicHigher hydrogen ion concentration than neutral water
Near 7Neutral at 25°CHydrogen and hydroxide ion concentrations are approximately balanced
Above 7Basic or alkalineHigher hydroxide ion concentration than neutral water
Below 0 or above 14Possible but unusual in simple water-quality contextsUsually indicates concentrated solutions or non-ideal behavior

Practical Ranges and Chemistry Judgment

For classroom problems, the simplified pH ranges are usually enough. For real solutions, pH is affected by activity, temperature, ionic strength, calibration, and mixture chemistry.

Very dilute solutions

When acid or base concentration is close to \( 10^{-7}\,M \), water autoionization becomes important and simple formulas can mislead.

Concentrated solutions

Above roughly 1 M, activity effects can become significant, so calculated pH may differ from measured pH.

Buffers

Buffer calculations are most reliable when the conjugate base to weak acid ratio is not extremely high or low.

Units and Conversions

pH itself has no unit, but the concentrations used to calculate it must be handled correctly. The standard concentration basis is molarity, \( M \), which means moles per liter.

Common concentration conversions

\( 1\,mM = 1.0 \times 10^{-3}\,M \), \( 1\,\mu M = 1.0 \times 10^{-6}\,M \), and \( 1\,nM = 1.0 \times 10^{-9}\,M \). Entering 1 mM as 1 M would shift the pH by about 3 units for a direct strong acid calculation.

Manual calculation unit rule

Before using \( \mathrm{pH}=-\log_{10}([H^+]) \) by hand, convert concentration to mol/L. Do not enter mM, µM, or nM directly into the logarithm unless you first convert to \( M \).

pH, pOH, Strong Acids, Weak Acids, and Buffers

Choose the calculation method based on what the solution actually is. A strong acid formula should not be used for a weak acid, and Henderson-Hasselbalch should not be used unless a buffer pair is present.

Direct pH formula

Use when \( [H^+] \) is already known.

pOH conversion

Use when \( \mathrm{pOH} \) or \( [OH^-] \) is known and you need pH.

Strong acid/base

Use when the acid or base fully dissociates under the simplified assumption.

Weak acid/base

Use \( K_a \), \( \mathrm{p}K_a \), \( K_b \), or \( \mathrm{p}K_b \) when the compound only partially ionizes.

Buffer pH

Use Henderson-Hasselbalch when both the weak acid and conjugate base are present.

Common pH Calculator Mistakes

The most common pH mistakes are unit errors, using the wrong acid/base assumption, confusing \( K_a \) with \( \mathrm{p}K_a \), and forgetting that pH is logarithmic.

Do

  • Convert all concentrations to molarity before manual calculation.
  • Use \( K_a \) or \( K_b \) for weak acids and weak bases.
  • Check pH and pOH together when working with bases.
  • Remember that pH is logarithmic, not linear.
  • Convert \( \mathrm{p}K_a \) using \( K_a=10^{-\mathrm{p}K_a} \) if the equation requires \( K_a \).

Don’t

  • Do not use \( [H^+] = C \) for every acid.
  • Do not assume pH must always stay between 0 and 14.
  • Do not ignore temperature if using custom \( \mathrm{p}K_w \).
  • Do not use buffer pH formulas for a solution that is not a buffer.
  • Do not treat \( K_a \) and \( \mathrm{p}K_a \) as the same value.

Troubleshooting Unrealistic pH Results

If the answer looks wrong, check the mode, concentration units, decimal placement, and whether the chemistry assumption matches the solution.

pH is too high for an acid

Check whether the acid is extremely dilute, whether water autoionization matters, and whether the concentration was entered in the wrong unit.

pH is too low for a base

Check whether you entered \( [OH^-] \) as \( [H^+] \), used pH instead of pOH, or selected the wrong calculation mode.

Weak acid result seems too strong

Verify \( K_a \), \( \mathrm{p}K_a \), and concentration. Using \( K_a \) and \( \mathrm{p}K_a \) interchangeably is a major error.

Buffer result seems unrealistic

Check the \( [A^-]/[HA] \) ratio. Extreme ratios may fall outside the useful buffer range.

pH is off by about 3 units

Check whether mM was entered as \( M \), or \( M \) was entered as mM. A 1,000× concentration error causes a 3-unit pH shift in direct logarithmic calculations.

Assumptions and Limitations

The calculator is best used for educational calculations, quick checks, and early estimates. It does not replace calibrated measurement or detailed acid-base modeling for real chemical systems.

Ideal dilute solution

Most modes treat concentration as a usable approximation for activity. This is less accurate for concentrated or high ionic strength solutions.

Default 25°C assumption

The common \( \mathrm{pH}+\mathrm{pOH}=14.00 \) relationship assumes \( \mathrm{p}K_w=14.00 \), which is a 25°C classroom approximation.

Simplified acid-base chemistry

Strong acids and bases are treated as fully dissociated. Weak acid/base modes assume a simplified single-equilibrium model.

Henderson-Hasselbalch limits

Buffer pH estimates are most reliable when both buffer components are present in meaningful amounts and the ratio is not extreme.

Measurement still matters

For labs, water quality, pools, aquariums, and processes, use a calibrated pH meter or validated procedure to confirm the actual solution pH.

Related Calculators

Use related chemistry and engineering calculators when concentration, dilution, or logarithmic relationships become part of a larger workflow.

Key pH Terms

These terms help connect the calculator inputs, formula, and result interpretation.

pH

A logarithmic measure of acidity based on hydrogen ion activity, commonly approximated with concentration in simple calculations.

pOH

A logarithmic measure related to hydroxide ion concentration. At 25°C, pH and pOH add to about 14.00.

\( K_a \) and \( K_b \)

Equilibrium constants that describe weak acid and weak base ionization.

\( \mathrm{p}K_a \) and \( \mathrm{p}K_b \)

Logarithmic forms of \( K_a \) and \( K_b \). For example, \( \mathrm{p}K_a=-\log_{10}(K_a) \).

Buffer

A solution containing a weak acid/base pair that resists pH change when small amounts of acid or base are added.

pH Calculator FAQ

What is the formula for pH?

The main pH formula is \( \mathrm{pH}=-\log_{10}([H^+]) \), where \( [H^+] \) is the hydrogen ion concentration in mol/L.

How do you calculate pH from pOH?

Use \( \mathrm{pH}=\mathrm{p}K_w-\mathrm{pOH} \). At 25°C, this is usually simplified to \( \mathrm{pH}=14.00-\mathrm{pOH} \).

What is the pH of 0.001 M HCl?

For a simplified strong acid calculation, \( [H^+] = 0.001\,M \), so \( \mathrm{pH}=-\log_{10}(0.001)=3.00 \).

What is the pH of 0.01 M NaOH?

For a simplified strong base calculation, \( [OH^-]=0.01\,M \), so \( \mathrm{pOH}=2.00 \) and \( \mathrm{pH}=12.00 \) at 25°C.

Can pH be negative or greater than 14?

Yes. The 0–14 range is a common reference scale, but concentrated acids can have pH below 0 and concentrated bases can have pH above 14.

Why can calculated pH differ from measured pH?

Calculated pH often uses ideal concentration-based assumptions. Measured pH depends on activity, temperature, calibration, ionic strength, and the actual chemistry of the solution.

Scroll to Top