Back to Home

Chemistry Calculator

Calculate molecular weight, dilutions, molarity, and pH

Input Values

Use capital letters for elements (e.g., Ca not ca). Parentheses, brackets and hydrates (· or *) are supported. All 118 elements are included.

Common Examples

H2O - Water

C6H12O6 - Glucose

NaCl - Sodium Chloride

H2SO4 - Sulfuric Acid

Result

Overview

This chemistry calculator combines four everyday lab and classroom tools on one page: a molecular weight (molar mass) calculator, a solution dilution solver based on C₁V₁ = C₂V₂, a molarity calculator, and a pH calculator. It is designed for high school and college chemistry students, lab technicians and teachers who need quick, reliable answers while working through problems or preparing solutions.

The molecular weight tool reads a chemical formula, counts every atom — including those inside parentheses or brackets, such as Ca(OH)₂ or K₄[Fe(CN)₆], and hydrates written with a dot or asterisk, such as CuSO₄·5H₂O — then multiplies each count by its IUPAC/CIAAW standard atomic weight and adds them up, showing an element-by-element breakdown. All 118 elements are included; for radioactive elements with no stable isotopes, the mass number of the longest-lived isotope is used and the result is flagged as approximate. Molarity is moles ÷ liters, and pH is −log₁₀[H⁺].

The pH tool assumes you already know the hydrogen ion concentration; it does not estimate pH for weak acids from a dissociation constant.

How to Use

  1. Choose a tool in the Select Calculation Type menu: Molecular Weight Calculator, Solution Dilution, Molarity Calculator or pH Calculator. Switching tools clears all fields.
  2. For molecular weight, type a formula with capitalized element symbols (H2O, NaCl, Ca(OH)2, CuSO4·5H2O) and click Calculate Molecular Weight.
  3. For dilution, enter C₁ (M) and V₁ (mL), plus either C₂ or V₂, then click Calculate V₂ or Calculate C₂ to fill in the missing value.
  4. For molarity, enter the Number of Moles (n) and the Volume (V) in liters, then click Calculate Molarity.
  5. For pH, enter the H⁺ concentration in mol/L — scientific notation such as 1e-7 is accepted — and click Calculate pH. Use Clear All to reset.

Frequently Asked Questions

How do you calculate the molar mass of a compound?

Multiply the atomic weight of each element by the number of atoms of that element in the formula, then add the results. For glucose, C₆H₁₂O₆: 6 × 12.011 + 12 × 1.008 + 6 × 15.999 = 72.066 + 12.096 + 95.994 = 180.156 g/mol. Water, H₂O, is 2 × 1.008 + 15.999 = 18.015 g/mol, and sodium chloride is 58.440 g/mol.

How do I enter a hydrate or a formula with parentheses?

Type parentheses or square brackets exactly as written, with the subscript right after the closing bracket — Ca(OH)2 is read as one calcium, two oxygens and two hydrogens, giving 74.092 g/mol. For a hydrate, separate the water with a dot, middle dot or asterisk and put the number of waters first: CuSO4·5H2O or CuSO4*5H2O gives 249.677 g/mol.

Why must element symbols be capitalized?

Capital letters mark the start of each element symbol, so capitalization changes the meaning. "Co" is cobalt, while "CO" is carbon monoxide — one carbon and one oxygen. The calculator treats an uppercase letter followed by an optional lowercase letter as one symbol, and reports an error for lowercase-only input such as "nacl" or for symbols that are not real elements.

How do you calculate pH from hydrogen ion concentration?

pH is the negative base-10 logarithm of the hydrogen ion concentration in moles per liter: pH = −log₁₀[H⁺]. A solution with [H⁺] = 0.001 M has a pH of 3.00, and [H⁺] = 3.2 × 10⁻⁴ M gives a pH of 3.49. Pure water at 25 °C has [H⁺] = 1 × 10⁻⁷ M, which is pH 7.00, neutral. Each pH unit represents a tenfold change in acidity.

How do you calculate molarity?

Molarity (M) is the number of moles of solute divided by the volume of solution in liters. Dissolving 0.5 mol of solute to make 0.25 L of solution gives 0.5 ÷ 0.25 = 2 M. If you know the mass instead of moles, divide the mass in grams by the molar mass from the Molecular Weight tool first — 29.22 g of NaCl ÷ 58.44 g/mol = 0.5 mol.

How does the dilution formula C₁V₁ = C₂V₂ work?

The amount of solute stays the same when you add solvent, so initial concentration times initial volume equals final concentration times final volume. To dilute 50 mL of a 10 M stock to 2 M, V₂ = (10 × 50) ÷ 2 = 250 mL: take the 50 mL of stock and add solvent until the total volume reaches 250 mL. Keep C₂ lower than C₁ — dilution cannot raise concentration.