Formula
Amount (mol) = mass (g) ÷ molar mass (g/mol).
How to use this calculator
- Enter each value in the unit shown.
- Check that isotope abundances, masses or formula inputs are consistent.
- Select Calculate to view the result and intermediate values.
Worked example
The pre-filled values are an illustrative example. Change the inputs to explore how the formula responds.
Assumptions and limitations
Convert a sample mass in grams to amount of substance in moles using its molar mass. The output is an educational estimate based on the displayed formula and included atomic-weight data. Unknown elements are not inferred; verify important chemistry work independently.
Updated: 17 November 2026. Inputs are processed in your browser.