Mass to amount of substance

Mass to amount of substance: calculate a transparent estimate from the values and assumptions you provide.

Mass to amount of substance: calculate a transparent estimate from the values and assumptions you provide.

Both dots and commas are accepted as decimal separators.

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: n = mass / molar mass

Mass to amount of substance: calculate a transparent estimate from the values and assumptions you provide.

massG
Mass (g)
molarMassGPerMol
Molar mass (g/mol)

Deterministic floating-point calculation. The displayed result is rounded to a maximum of 12 significant digits.

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 moles = 18.01528 / 18.01528; // 1 mol