Convert a sample mass into moles
The grams to moles calculator answers a basic stoichiometry question: how many moles are represented by a measured mass? Enter the sample mass, choose grams, milligrams, or kilograms, and provide the molar mass manually or let the page calculate it from a chemical formula. The workspace first converts the mass to grams, then divides by grams per mole. Keeping those two steps separate makes the unit cancellation visible and helps prevent a thousand-fold prefix error.
Use n equals mass divided by molar mass
Amount of substance is calculated with n = m/M. Mass m must be in grams when molar mass M is in grams per mole, so the gram unit cancels and leaves moles. For 36.03 g of water and 18.015 g/mol, the result is 2 mol. If millimoles are selected, the mole answer is multiplied by 1,000 only after the chemical calculation. A zero measured mass returns zero moles, while an empty field is treated as missing information rather than zero.
Choose the correct chemical form
The molar mass must describe the exact material whose mass was measured. Anhydrous copper sulfate and copper sulfate pentahydrate have different molar masses, even though both names contain copper sulfate. Isotope labels, solvates, salts, and protonation states can also change the formula mass. Formula mode expands parentheses, brackets, and hydrate dots using the same element table as the molar mass calculator. Manual mode is useful when a problem supplies an approved molar mass or the material cannot be represented by one simple formula.
Check the conversion direction and scale
A heavier molar mass means fewer moles for the same number of grams. Multiplying the displayed mole answer by the displayed molar mass should return the normalized mass in grams. Also check prefixes explicitly: 1,000 mg is 1 g and 1 kg is 1,000 g. The calculator preserves scientific notation for very small or large values so the exponent remains visible. Significant figures should follow the measured mass and the molar mass source, not the number of digits available in the display.
Limits, purity, and private calculation
This conversion does not determine substance identity, purity, moisture content, concentration, reaction yield, or limiting reagent. A mixture does not have one unique molar mass unless its composition and averaging convention are defined. When a reagent label provides assay, hydration, or solution concentration information, apply the appropriate preparation method before treating the entire weighed mass as pure compound. The result is educational arithmetic and does not replace a laboratory procedure, product instruction, or qualified review.
The values are calculated in the current browser tab. NexaCurrent does not upload the quantities, formulas, chemical names, element choices, or other information entered here, and no account is needed. Copying is a deliberate action after the answer and working are visible. Refreshing or leaving the page clears the current calculation, so keep a copied result if it is needed for later study.