Molar mass from a formula

Molar mass from a formula: calculate a transparent estimate from the values and assumptions you provide.

Molar mass from a formula: calculate a transparent estimate from the values and assumptions you provide.

Your inputs stay in your browser. Displayed results are rounded to a maximum of 12 significant digits.

Method and assumptions

Method version 1.0.0 · Updated

Calculate

Formula: Sum of atomic masses according to formula subscripts

Molar mass from a formula: calculate a transparent estimate from the values and assumptions you provide.

formula
Chemical formula

Built-in atomic masses cover selected common elements; parentheses are supported, e.g. Ca(OH)2.

Calculate with code

These short examples use the same inputs and core calculation as this tool. Adapt validation and formatting to your application.

JavaScript
const molarMassCaOH2 = 40.078 + 2 * (15.999 + 1.008); // 74.092 g/mol