Science & EngineeringFormula-based · Runs in your browser

Molecular Weight

Calculate molar mass from a neutral molecular formula, including nested groups and hydrate notation.

Loading calculator…

Saved locally, explained clearly

Drafts, calculations, scenarios, and workflow progress stay in this browser unless you export them.

Opening local database…

Calculation steps

Follow what happened from the selected formula to the displayed answer.

Show substituted values and intermediate working
Calculate current inputs to see the working.
  1. 1

    Formula selected

    The calculator uses the following formula or method.

    Molar mass = Σ(standard atomic weight × atom count); group multipliers and hydrate coefficients are expanded before summing.

  2. 2

    Values entered

    Your values are placed into the calculation.

    Enter values to see what is used in this step.

  3. 3

    Result calculated

    The formula or method produces the following result values.

    Results will appear after a successful calculation.

  4. 4

    Answer formatted

    Displayed values are rounded and formatted using each output’s configured precision.

Scenario comparison

Save working scenarios, then select two or three to compare. Formula versions and inputs remain visible.

No scenarios saved for this calculator yet.

Recent calculations

Successful calculations are retained locally according to your privacy settings.

No local history for this calculator yet.

Data and privacy

How it works

Enter a neutral chemical formula. The calculator parses element symbols, whole-number subscripts, nested groups, and hydrate coefficients, then sums the atomic-weight contribution of every atom.

Input query strings and outputs

Use an input name in this page’s URL as ?name=value, and join additional inputs with &. Portable shared links may instead use the compact ?ac= state parameter.

Input query strings

1
  • ?formula= Formula (e.g., H2O, C6H12O6)

    Text · Optional · Default: H2O

Outputs

1
  • result Result

    Text · Primary output

result contains the calculator’s complete rendered result area, including its visible result cards, tables, charts, and messages.

Formula

Molar mass = Σ(atomic weight × atom count)

Parentheses, square brackets, and curly brackets are expanded before the sum. Hydrates may use a middle dot or period, such as CuSO4·5H2O.

Inputs

  • Formula: Case-sensitive chemical notation, such as H2O, Ca(OH)2, Al2(SO4)3, or CuSO4·5H2O.

Outputs

  • Molar mass in grams per mole.
  • Element count after all groups and coefficients are expanded.

Limits

  • Uses conventional average atomic weights, not isotope-specific masses.
  • Enter a neutral formula without charge notation.
  • Subscripts and coefficients must be positive whole numbers.

Examples

  • H2O → approximately 18.015 g/mol
  • Ca(OH)2 → approximately 74.092 g/mol
  • Al2(SO4)3 → approximately 342.131 g/mol
  • CuSO4·5H2O → approximately 249.677 g/mol
Sources
Limitations
  • Uses conventional average atomic weights. Isotope-specific masses and ionic charge notation are outside this calculator.
  • The model uses the stated units and idealized assumptions. Check applicability, tolerances, and safety requirements for real equipment.