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.
Result
Molarity from moles and solution volume
M = n ÷ V
Calculation breakdown
- 1 Input values: n = 0.5 mol; V = 500 mL.
- 2 Normalize volume: 500 mL ÷ 1000 = 0.500 L.
- 3 Formula: M = n ÷ V.
- 4 Substitute: M = 0.5 ÷ 0.500.
- 5 Intermediate calculation: 0.5 ÷ 0.500 = 1.
- 6 Raw result: 1 mol/L.
- 7 Display result: 1.000 M.
Solves common solution-concentration, dilution and direct ion-concentration pH relationships.
Multi-mode chemistry calculator with forward and reverse equation solving.
Normalize units, select the governing equation, rearrange where necessary, calculate at full precision, then format.
Support concentration preparation, dilution calculations and simplified educational pH/pOH calculations.
Define → Validate → Normalize → Calculate → Check → Present — intermediate values retain full JavaScript numerical precision; rounding is applied only to displayed results.
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.
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 ÷ MMolarity 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 ÷ msolventHere, 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−pHThe 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−pOHAs 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 − pOHThis is the calculator’s simplified educational relationship for aqueous solutions at approximately 25 °C. The value is not a universal temperature-independent constant.
Variables & Units
Similar symbols can represent different physical quantities, so the units and definitions matter.
| 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.
L = mL ÷ 1000
Example: 500 mL = 0.500 L.
L = µL ÷ 1,000,000
Example: 250 µL = 0.000250 L.
No conversion is required.
Liters are the base volume used for molarity.
kg = g ÷ 1000
Example: 250 g = 0.250 kg.
kg = mg ÷ 1,000,000
Example: 500,000 mg = 0.500 kg.
Direct pH and pOH modes use concentration in mol/L.
The logarithmic calculation is applied after the concentration is expressed in the required form.
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.
| Measure | Equation | Denominator | Standard unit |
|---|---|---|---|
| Molarity | M = n ÷ V |
Total solution volume | mol/L |
| Molality |
m = n ÷ msolvent
|
Mass of solvent | mol/kg |
How the Dilution Equation Is Rearranged
The same conservation relationship can solve for different unknown quantities.
| 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. |
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
- Determine the number of moles of solute.
- Determine the total solution volume.
- Convert the solution volume to liters.
-
Use
M = n ÷ V. - Divide the moles by the solution volume in liters.
- Report the result in mol/L, commonly written as M.
How to calculate molarity from solute mass
- Record the solute mass in grams.
- Find the solute’s molar mass in g/mol.
-
Calculate moles with
n = mass ÷ molar mass. - Convert the final solution volume to liters.
-
Calculate molarity using
M = n ÷ V.
How to calculate molality
- Determine the moles of solute.
- Measure the mass of the solvent—not the total solution.
- Convert solvent mass to kilograms.
-
Use
m = n ÷ mass of solvent in kg. - Report the result in mol/kg.
How to calculate a dilution
- Identify the stock concentration M₁.
- Identify the stock volume V₁, final concentration M₂, and final volume V₂ that are known.
- Convert V₁ and V₂ to compatible volume units.
-
Start with
M₁V₁ = M₂V₂. - Algebraically isolate the unknown variable.
- Substitute the known values and calculate.
- Check that the result describes a physically sensible dilution for the intended problem.
How to calculate pH from [H⁺]
- Obtain the hydrogen-ion concentration in mol/L.
- Confirm that the value is greater than zero.
-
Use
pH = −log₁₀([H⁺]). - Take the base-10 logarithm of the concentration.
- Change the sign of the result.
-
If needed for the simplified 25 °C model, calculate
pOH ≈ 14 − pH.
How to calculate [H⁺] from pH
- Start with the entered pH.
-
Reverse the logarithm using
[H⁺] = 10−pH. - Evaluate the power of 10.
- 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
Input values n = 0.500 mol; V = 500 mL.
-
2
Normalize values V = 500 mL ÷ 1000 = 0.500 L.
-
3
Select the formula M = n ÷ V.
-
4
Substitute values M = 0.500 mol ÷ 0.500 L.
-
5
Intermediate calculation 0.500 ÷ 0.500 = 1.
-
6
Raw result M = 1 mol/L.
-
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/LThe 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) = 3Displayed 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.
Required fields must contain finite numerical values before the selected equation is evaluated.
A denominator such as solution volume, solvent mass, molarity or molar mass must be greater than zero when used as a divisor.
Negative masses, volumes, moles and ordinary concentration inputs are rejected where they have no physical meaning.
Direct [H⁺] and [OH⁻] inputs must be greater than zero because log₁₀(0) and the logarithm of a negative concentration are not valid here.
Solution volumes are normalized before molarity or dilution arithmetic, and solvent mass is normalized to kilograms for molality.
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.
The final result must be finite before it is presented to the user. NaN and Infinity are never valid display outputs.
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
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.
-
1
Normalize the volume 500 mL ÷ 1000 = 0.500 L.
-
2
Calculate required moles n = M × V = 0.100 × 0.500 = 0.0500 mol.
-
3
Convert moles to mass mass = n × molar mass = 0.0500 × 58.44 = 2.922 g.
-
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.
| 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.
V₁ = (0.10 × 500) ÷ 1.00 = 50 mL. This is a 10-fold dilution.
V₁ = (0.25 × 500) ÷ 1.00 = 125 mL. This is a 4-fold dilution.
V₁ = (0.50 × 500) ÷ 1.00 = 250 mL. This is a 2-fold dilution.
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.
C₂ = C₁ ÷ dilution factor =
0.0100 ÷ 10 = 0.00100 M
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.
Volume-based
Molarity
- Reference quantity
- Total solution volume
- Typical unit
- mol/L
- Do not substitute
- Solvent volume alone
Mass-based
Molality
- 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.
| 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.
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.
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.
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.
A one-unit pH change is not a one-unit concentration change
In the simplified concentration-based model, this one-unit pH difference corresponds to a tenfold difference in the represented hydrogen-ion quantity.
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.
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.
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.
Unit conversion
Millilitres and litres are units of the same physical quantity, so conversion is possible through the unit scale alone.
Requires molar mass
Mass and amount of substance are different quantities. A substance-specific molar mass is needed to connect them.
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.
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
Correct denominator
Confirm whether concentration is based on total solution volume, solvent mass, or another specified reference quantity.
Compatible units
Normalize units before substitution—for example, litres where a molarity expression requires litres.
Same solute basis
Initial and final quantities in a dilution calculation must refer to the same relevant solute or chemical quantity.
Conservation is justified
Use a simple dilution relationship only when the modeled process preserves the relevant amount of solute.
pH approximation is appropriate
Treat concentration as a proxy for hydrogen-ion activity only when that simplified model is appropriate to the problem.
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
| 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 |