Science & engineering

Mass & moles calculator

Convert a mass and molar mass into amount of substance, or back.

Mass & moles calculator
Esc to restore

Your inputs

Results update as you type. Larger files run when you press Update result.

Your result

LOCAL & PRIVATE

Your result will appear here.

Your inputs stay in this browser. Nothing is uploaded or saved.

A clear answer. Here’s how.

Moles = mass in grams ÷ molar mass in g/mol. In the other direction, mass = moles × molar mass. You supply the molar mass and purity is assumed to be 100%; chemical composition is not inferred.

See a worked example

Worked example

A fixed demonstration, separate from the values you enter above.

Amount
18
Molar mass (g/mol)
18.01528
Input amount is
Mass in grams

Example result

Amount (mol)
0.999151831112