Chemistry · Concentration & solutions

Solution Concentration & pH Calculator

Calculate molarity, molality, moles, solute mass, dilution quantities, pH, pOH and ion concentration. Select the relationship you need, enter compatible measurements, and see the normalized values, governing equation and substituted calculation.

Enter solution data

Fields change automatically for the selected calculation.

Use final solution volume, not solvent volume.

Result

Molarity from moles and solution volume

Molarity 1.000 M 0.5 mol distributed through 0.500 L of final solution.
Moles 0.5 mol
Normalized volume 0.500 L
Governing equation M = n ÷ V
Calculation breakdown
  1. 1 Input values: n = 0.5 mol; V = 500 mL.
  2. 2 Normalize volume: 500 mL ÷ 1000 = 0.500 L.
  3. 3 Formula: M = n ÷ V.
  4. 4 Substitute: M = 0.5 ÷ 0.500.
  5. 5 Intermediate calculation: 0.5 ÷ 0.500 = 1.
  6. 6 Raw result: 1 mol/L.
  7. 7 Display result: 1.000 M.
Tool description

Solves common solution-concentration, dilution and direct ion-concentration pH relationships.

Tool type

Multi-mode chemistry calculator with forward and reverse equation solving.

Core logic

Normalize units, select the governing equation, rearrange where necessary, calculate at full precision, then format.

Purpose

Support concentration preparation, dilution calculations and simplified educational pH/pOH calculations.

Calculation method

Define → Validate → Normalize → Calculate → Check → Present — intermediate values retain full JavaScript numerical precision; rounding is applied only to displayed results.

Chemistry scope: molarity uses total solution volume, while molality uses solvent mass. Dilution calculations assume the amount of solute is conserved between the stock and final solution. Direct pH/pOH modes use the supplied ion concentration rather than solving acid/base dissociation or equilibrium. The complementary pH/pOH values shown by this calculator use pH + pOH ≈ 14 at 25 °C as a simplified educational relationship; rigorous work may require activities, equilibrium constants and temperature-dependent water ionization.

Formula & methodology

How Solution Concentration & pH Calculations Work

The calculator first identifies the quantity being solved, validates the measurements, converts them to compatible units, applies or rearranges the governing equation, checks the result, and only then formats the value for display.

01 Define
02 Validate
03 Normalize
04 Calculate
05 Check
06 Present

Governing Equations

Each calculation mode uses one of the following concentration, mass, dilution or logarithmic relationships.

Molarity

M = n ÷ V n = M × V V = n ÷ M

Molarity is the number of moles of solute per liter of total solution.

Moles & Solute Mass

n = mₛ ÷ Mₘ mₛ = n × Mₘ mₛ = M × V × Mₘ

Molar mass converts between the mass of a substance and the amount of that substance in moles.

Molality

m = n ÷ msolvent

Here, solvent mass must be expressed in kilograms. Molality does not use the total volume of the solution.

Dilution

M₁V₁ = M₂V₂ V₁ = (M₂ × V₂) ÷ M₁ V₂ = (M₁ × V₁) ÷ M₂ M₂ = (M₁ × V₁) ÷ V₂

The dilution relationship assumes the amount of solute represented by the concentration-volume product is conserved during dilution.

pH from Hydrogen-Ion Concentration

pH = −log₁₀([H⁺]) [H⁺] = 10−pH

The calculator uses the supplied hydrogen-ion concentration directly. It does not infer [H⁺] from the nominal concentration of a weak acid or other equilibrium system.

pOH from Hydroxide-Ion Concentration

pOH = −log₁₀([OH⁻]) [OH⁻] = 10−pOH

As with pH, the entered ion concentration is treated as the concentration used directly in the logarithmic calculation.

pH and pOH Relationship at 25 °C

pH + pOH ≈ 14 pOH ≈ 14 − pH pH ≈ 14 − pOH

This is the calculator’s simplified educational relationship for aqueous solutions at approximately 25 °C. The value is not a universal temperature-independent constant.

Important: pH based directly on ion concentration is not the same problem as calculating the pH of every acid or base solution. Weak acids, weak bases, buffers, polyprotic systems and other equilibrium problems can require equilibrium constants, stoichiometry and additional equations.

Variables & Units

Similar symbols can represent different physical quantities, so the units and definitions matter.

Variables used by the Solution Concentration & pH Calculator
Symbol Variable Calculation unit Meaning
M Molarity mol/L or M Moles of solute per liter of total solution.
m Molality mol/kg Moles of solute per kilogram of solvent.
n Amount of substance mol Number of moles of solute.
V Solution volume L Total volume of the prepared solution.
mₛ Solute mass g Mass of the dissolved substance.
Mₘ Molar mass g/mol Mass of one mole of the substance.
msolvent Solvent mass kg Mass of the solvent alone, not the complete solution.
M₁ Initial concentration mol/L Concentration of the stock solution.
V₁ Initial volume L Volume of stock solution used.
M₂ Final concentration mol/L Concentration after dilution.
V₂ Final volume L Total solution volume after dilution.
[H⁺] Hydrogen-ion concentration mol/L Ion concentration supplied to the direct pH equation.
[OH⁻] Hydroxide-ion concentration mol/L Ion concentration supplied to the direct pOH equation.
pH pH Dimensionless Negative base-10 logarithm of hydrogen-ion concentration in the simplified concentration model.
pOH pOH Dimensionless Negative base-10 logarithm of hydroxide-ion concentration in the simplified concentration model.

Unit Normalization

Inputs are converted to units compatible with the selected equation before arithmetic is performed.

Volume: mL → L

L = mL ÷ 1000

Example: 500 mL = 0.500 L.

Volume: µL → L

L = µL ÷ 1,000,000

Example: 250 µL = 0.000250 L.

Volume: L

No conversion is required.

Liters are the base volume used for molarity.

Solvent mass: g → kg

kg = g ÷ 1000

Example: 250 g = 0.250 kg.

Solvent mass: mg → kg

kg = mg ÷ 1,000,000

Example: 500,000 mg = 0.500 kg.

Ion concentration

Direct pH and pOH modes use concentration in mol/L.

The logarithmic calculation is applied after the concentration is expressed in the required form.

Why normalization matters: inserting 500 mL directly into M = n ÷ V as though it were 500 L would produce a result 1,000 times too small. Unit conversion is therefore part of the calculation, not merely display formatting.

Molarity vs. Molality

The names are similar, but the denominators represent different physical quantities.

Difference between molarity and molality
Measure Equation Denominator Standard unit
Molarity M = n ÷ V Total solution volume mol/L
Molality m = n ÷ msolvent Mass of solvent mol/kg
Do not substitute one for the other. For example, 500 mL of solution is not automatically equivalent to 0.500 kg of solvent. Converting between solution volume and solvent mass would require additional physical information such as composition and density.

How the Dilution Equation Is Rearranged

The same conservation relationship can solve for different unknown quantities.

Common dilution rearrangements
Unknown Rearranged equation Typical use
V₁ V₁ = (M₂ × V₂) ÷ M₁ Find how much concentrated stock solution is required.
V₂ V₂ = (M₁ × V₁) ÷ M₂ Find the final volume needed for a target concentration.
M₂ M₂ = (M₁ × V₁) ÷ V₂ Find the concentration after diluting a stock aliquot.
M₁ M₁ = (M₂ × V₂) ÷ V₁ Reverse-solve the required initial concentration.
Final volume is not the same as diluent volume. If 125 mL of stock is diluted to a final volume of 500 mL, V₂ = 500 mL. Under an idealized additive-volume approximation, the difference is 375 mL, but laboratory preparation normally means bringing the solution to the specified final volume rather than assuming separately measured volumes are exactly additive.

How to Calculate Manually

The calculator automates these same algebraic steps.

How to calculate molarity
  1. Determine the number of moles of solute.
  2. Determine the total solution volume.
  3. Convert the solution volume to liters.
  4. Use M = n ÷ V.
  5. Divide the moles by the solution volume in liters.
  6. Report the result in mol/L, commonly written as M.
How to calculate molarity from solute mass
  1. Record the solute mass in grams.
  2. Find the solute’s molar mass in g/mol.
  3. Calculate moles with n = mass ÷ molar mass.
  4. Convert the final solution volume to liters.
  5. Calculate molarity using M = n ÷ V.
How to calculate molality
  1. Determine the moles of solute.
  2. Measure the mass of the solvent—not the total solution.
  3. Convert solvent mass to kilograms.
  4. Use m = n ÷ mass of solvent in kg.
  5. Report the result in mol/kg.
How to calculate a dilution
  1. Identify the stock concentration M₁.
  2. Identify the stock volume V₁, final concentration M₂, and final volume V₂ that are known.
  3. Convert V₁ and V₂ to compatible volume units.
  4. Start with M₁V₁ = M₂V₂.
  5. Algebraically isolate the unknown variable.
  6. Substitute the known values and calculate.
  7. Check that the result describes a physically sensible dilution for the intended problem.
How to calculate pH from [H⁺]
  1. Obtain the hydrogen-ion concentration in mol/L.
  2. Confirm that the value is greater than zero.
  3. Use pH = −log₁₀([H⁺]).
  4. Take the base-10 logarithm of the concentration.
  5. Change the sign of the result.
  6. If needed for the simplified 25 °C model, calculate pOH ≈ 14 − pH.
How to calculate [H⁺] from pH
  1. Start with the entered pH.
  2. Reverse the logarithm using [H⁺] = 10−pH.
  3. Evaluate the power of 10.
  4. Report the resulting concentration in mol/L.

Calculation Breakdown

The default calculator example uses 0.500 mol of solute and a final solution volume of 500 mL.

Default Example: Calculate Molarity

0.500 mol of solute in 500 mL of final solution.

  1. 1
    Input values n = 0.500 mol; V = 500 mL.
  2. 2
    Normalize values V = 500 mL ÷ 1000 = 0.500 L.
  3. 3
    Select the formula M = n ÷ V.
  4. 4
    Substitute values M = 0.500 mol ÷ 0.500 L.
  5. 5
    Intermediate calculation 0.500 ÷ 0.500 = 1.
  6. 6
    Raw result M = 1 mol/L.
  7. 7
    Displayed result M = 1.000 M.

Direct pH Calculation Breakdown

For a supplied hydrogen-ion concentration of 0.001 mol/L, the direct concentration model gives pH 3.

1. Input

[H⁺] = 0.001 mol/L

The concentration is already expressed in the required mol/L form.

2. Formula

pH = −log₁₀([H⁺])

Substitute the supplied hydrogen-ion concentration.

3. Substitution

pH = −log₁₀(0.001)

Because 0.001 = 10⁻³, its base-10 logarithm is −3.

4. Result

pH = −(−3) = 3

Displayed result: pH = 3.000 in the calculator interface.

Validation & Calculation Checks

Invalid or incompatible inputs should stop the calculation rather than producing NaN, Infinity or a misleading result.

Missing or non-numeric values

Required fields must contain finite numerical values before the selected equation is evaluated.

Division by zero

A denominator such as solution volume, solvent mass, molarity or molar mass must be greater than zero when used as a divisor.

Negative physical quantities

Negative masses, volumes, moles and ordinary concentration inputs are rejected where they have no physical meaning.

Logarithm domain

Direct [H⁺] and [OH⁻] inputs must be greater than zero because log₁₀(0) and the logarithm of a negative concentration are not valid here.

Compatible units

Solution volumes are normalized before molarity or dilution arithmetic, and solvent mass is normalized to kilograms for molality.

Dilution direction

A standard dilution should not require a final volume smaller than the stock aliquot or a stock solution less concentrated than the intended final solution.

Finite result

The final result must be finite before it is presented to the user. NaN and Infinity are never valid display outputs.

Method scope

Direct pH/pOH calculations should not silently be used as substitutes for acid-base equilibrium calculations when the required ion concentration is not already known.

Method Boundaries

Concentration vs. activity: the direct pH and pOH modes are simplified educational concentration-based calculations. More rigorous thermodynamic treatment uses ion activity rather than assuming concentration and activity are interchangeable.
Direct ion concentration vs. equilibrium: entering [H⁺] or [OH⁻] is different from entering the analytical concentration of an acid or base. The latter can require dissociation constants, mass balance, charge balance and equilibrium calculations.
Dilution model: M₁V₁ = M₂V₂ is appropriate when the relevant solute amount is conserved through the dilution and the concentration units are consistent.

Worked examples & analysis

Solution Concentration & pH Examples

Follow a realistic solution-preparation example, compare how concentration changes with volume, and explore how repeated dilution affects both concentration and pH when the supplied hydrogen-ion concentration can be treated directly.

Worked Example: Preparing a Sodium Chloride Solution

A student needs 500 mL of a 0.100 M sodium chloride solution. How much NaCl is required?

Known values

The target molarity and final solution volume determine the required moles. Molar mass then converts those moles into grams of sodium chloride.

Target molarity 0.100 M
Final volume 500 mL
NaCl molar mass 58.44 g/mol
  1. 1
    Normalize the volume 500 mL ÷ 1000 = 0.500 L.
  2. 2
    Calculate required moles n = M × V = 0.100 × 0.500 = 0.0500 mol.
  3. 3
    Convert moles to mass mass = n × molar mass = 0.0500 × 58.44 = 2.922 g.
  4. 4
    Check the result 2.922 g ÷ 58.44 g/mol = 0.0500 mol; 0.0500 mol ÷ 0.500 L = 0.100 M.

Concentration Comparison at Constant Moles

With the amount of solute fixed at 0.100 mol, increasing the final solution volume decreases molarity according to M = n ÷ V.

Molarity of 0.100 mol of solute at different final solution volumes
Final volume Normalized volume Moles Substitution Molarity Relative to 1.00 L
100 mL 0.100 L 0.100 mol 0.100 ÷ 0.100 1.000 M 10× concentration
250 mL 0.250 L 0.100 mol 0.100 ÷ 0.250 0.400 M 4× concentration
500 mL 0.500 L 0.100 mol 0.100 ÷ 0.500 0.200 M 2× concentration
1,000 mL 1.000 L 0.100 mol 0.100 ÷ 1.000 0.100 M Reference
2,000 mL 2.000 L 0.100 mol 0.100 ÷ 2.000 0.050 M ½ concentration

Dilution Scenario Comparison

Suppose a 1.00 M stock solution is used to prepare 500 mL of final solution. The required stock volume changes directly with the target concentration.

Target: 0.10 M 50 mL stock

V₁ = (0.10 × 500) ÷ 1.00 = 50 mL. This is a 10-fold dilution.

Target: 0.25 M 125 mL stock

V₁ = (0.25 × 500) ÷ 1.00 = 125 mL. This is a 4-fold dilution.

Target: 0.50 M 250 mL stock

V₁ = (0.50 × 500) ÷ 1.00 = 250 mL. This is a 2-fold dilution.

Preparation detail: “500 mL final volume” means the stock aliquot is diluted to a total solution volume of 500 mL. It does not necessarily mean adding exactly 500 mL − V₁ of solvent and assuming volumes are perfectly additive.

Interactive Dilution Impact Explorer

Explore how a dilution factor changes concentration. For a directly supplied hydrogen-ion concentration, the tool also shows the corresponding idealized change in pH.

Dilution Impact Explorer

Compare an initial concentration with its value after a selected dilution factor.

Example: 10 means a 10-fold dilution.
Choose [H⁺] only when the concentration can validly be treated as hydrogen-ion concentration.
Initial concentration 0.0100 M Before dilution
Final concentration 0.00100 M After a 10× dilution
Concentration remaining 10.00% Relative to the initial concentration
Calculation C₂ = C₁ ÷ dilution factor = 0.0100 ÷ 10 = 0.00100 M
A 10-fold dilution reduces concentration to one-tenth of its initial value.
Tool description

Shows how concentration changes under a selected dilution factor.

Tool type

Sensitivity and dilution-impact explorer.

Core logic

C₂ = C₁ ÷ D; optional direct [H⁺] analysis uses pH = −log₁₀([H⁺]).

Purpose

Make the effect of dilution easier to compare without duplicating the primary calculator.

Comparisons, assumptions & limitations

Similar concentration values can represent different quantities

Concentration is not one universal numerical scale. A value only has meaning when its definition, reference quantity, units, and applicable assumptions are known. Molarity, molality, dilution relationships, and pH therefore should not be interchanged simply because they describe the same chemical solution.

Fundamental distinction

Molarity and molality use different denominators

Both express an amount of solute using moles, but the quantity underneath those moles is different. That difference changes both the units and the interpretation.

M

Volume-based

Molarity

M = mol solute L solution
Reference quantity
Total solution volume
Typical unit
mol/L
Do not substitute
Solvent volume alone
m

Mass-based

Molality

m = mol solute kg solvent
Reference quantity
Mass of solvent
Typical unit
mol/kg
Do not substitute
Total solution mass

Mathematical relationship vs physical model

Separate definitions from assumptions

Some relationships define a concentration measure directly. Others become useful only after the chemical system satisfies additional conditions.

Comparison of mathematical definitions, assumptions, and limitations for common concentration and solution relationships
Relationship What it establishes Important condition Do not assume
M = n / V Moles of solute per unit total solution volume. Volume must represent the solution volume in compatible units. That solvent volume and solution volume are interchangeable.
m = n / kg solvent Moles of solute per kilogram of solvent. The denominator must be solvent mass rather than solution mass. That a molality value is automatically the same as molarity.
M₁V₁ = M₂V₂ Relates initial and final concentration-volume quantities in an appropriate dilution. The relevant amount of solute must be conserved through the modeled dilution. That the equation applies when reaction, loss, or another process changes the relevant solute amount.
pH = −log₁₀[H⁺] Gives the familiar simplified concentration-based pH relationship. The concentration treatment must be an appropriate approximation for the problem. That every acid’s stated concentration equals [H+] directly.
pH + pOH ≈ 14 Provides a familiar aqueous pH–pOH relationship under the specified approximation. The aqueous system and reference conditions must make the approximation appropriate. That 14 is an unconditional constant for every solution and every condition.

Dilution boundaries

Dilution changes concentration without changing the modeled solute amount

The familiar dilution equation works because the amount represented by concentration multiplied by volume is conserved between the initial and final states of the modeled dilution.

Appropriate model

Simple dilution

A stock solution is transferred and additional solvent is used to produce a lower-concentration solution while the relevant solute amount is retained.

M₁V₁ = M₂V₂
Reassess the model

Solute amount changes

If the relevant species reacts, precipitates, evaporates, is removed, decomposes, or otherwise changes amount, simple dilution conservation may no longer describe the full process.

A different chemical relationship may be required.

pH interpretation

pH is logarithmic and the simplified concentration model has limits

Two separate issues matter: the scale itself is logarithmic, and the familiar concentration expression represents a simplified treatment of hydrogen-ion activity.

Scale behavior

A one-unit pH change is not a one-unit concentration change

pH 3 10−3
pH 4 10−4

In the simplified concentration-based model, this one-unit pH difference corresponds to a tenfold difference in the represented hydrogen-ion quantity.

Quantity represented

Formal pH treatment is based on hydrogen-ion activity

Simple educational calculations may approximate activity using concentration. That approximation should not be silently treated as exact in every chemical system.

Model used on this page: concentration-based approximation where appropriate.
Acid concentration

Do not automatically substitute an acid’s concentration for [H⁺]

The pH equation requires the applicable hydrogen-ion quantity. Whether the stated concentration of an acid directly provides that quantity depends on the chemistry represented by the problem.

First determine what quantity the problem actually supplies.

Unsupported shortcuts

Unit conversion cannot replace missing chemical information

Converting prefixes such as millilitres to litres is a unit operation. Converting between different definitions of concentration can require additional physical or chemical information.

mL L

Unit conversion

Millilitres and litres are units of the same physical quantity, so conversion is possible through the unit scale alone.

g mol

Requires molar mass

Mass and amount of substance are different quantities. A substance-specific molar mass is needed to connect them.

M m

No universal direct conversion

Molarity uses solution volume while molality uses solvent mass. A bare molarity value therefore does not contain enough information for a universal conversion to molality.

acid [H⁺]

No universal identity

A stated acid concentration is not, by definition alone, the hydrogen-ion quantity required by the simplified pH equation.

Before calculating

Check the definition and model behind the numbers

01

Correct denominator

Confirm whether concentration is based on total solution volume, solvent mass, or another specified reference quantity.

02

Compatible units

Normalize units before substitution—for example, litres where a molarity expression requires litres.

03

Same solute basis

Initial and final quantities in a dilution calculation must refer to the same relevant solute or chemical quantity.

04

Conservation is justified

Use a simple dilution relationship only when the modeled process preserves the relevant amount of solute.

05

pH approximation is appropriate

Treat concentration as a proxy for hydrogen-ion activity only when that simplified model is appropriate to the problem.

06

Precision matches the inputs

Keep sufficient working precision and avoid implying more certainty in the result than the supplied quantities support.

Edge cases

Recognize inputs that make the standard calculation invalid

Zero solution volume

M = n/V is undefined when V = 0 because the calculation requires division by volume.

Zero solvent mass

A molality expression cannot divide by zero kilograms of solvent.

Non-positive logarithm input

The logarithmic expression used for the simplified pH calculation requires a positive hydrogen-ion quantity; log₁₀(0) and the logarithm of a negative concentration are not valid inputs.

Incompatible concentration definitions

Do not place unlike concentration definitions into a conservation equation merely because both are reported as “concentration.”

Reaction during dilution

If the relevant solute is consumed or produced, a reaction model may be required in addition to—or instead of—the simple dilution relationship.

Insufficient conversion data

If a conversion requires molar mass, density, composition, or another connecting quantity and that information is unavailable, the conversion cannot be uniquely completed from the given value.

Interpretation check

Ask what the reported value actually means

Questions to ask before interpreting concentration and pH results
Reported result Interpret as Check before comparing
0.50 mol/L Moles of solute per litre of solution Same solute, concentration definition, and compatible conditions
0.50 mol/kg Moles of solute per kilogram of solvent Do not treat as equivalent to 0.50 mol/L
pH 3 A logarithmic acid–base quantity Do not interpret the numeric scale as linear
50 mL stock required Volume of stock solution used in the dilution Do not confuse it with final solution volume or diluent volume