# Molar mass calculator > How much does one mole of your substance weigh? Type a chemical formula and get its molar mass in g/mol, with each element's count, mass and share of the mass. Find the molar mass of any chemical formula, hydrates and ions included, with each element's mass and percentage, from the current IUPAC atomic weights. - Page: https://how.box/molar-mass/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/molar-mass/?f={f} - `f` (text): The chemical formula, e.g. H2SO4, Ca(OH)2 or CuSO4*5H2O. Example: `H2SO4`. Example answer: https://how.box/molar-mass/?f=H2SO4 A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `molar_mass_calculate`: Molar mass of a chemical formula from the IUPAC (CIAAW) standard atomic weights: M = sum of count × atomic weight. - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"molar_mass_calculate","arguments":{"formula":"H2SO4"}}}` - GET: https://how.box/mcp/run/molar_mass_calculate?formula=H2SO4 ## How it works The molar mass is the mass of one mole of a substance, about 6.022 × 10²³ formula units, in grams per mole. It is the bridge between grams on a balance and the number of particles that take part in a reaction. Add up the atoms: M = Σ nᵢ × Arᵢ, where nᵢ is how many atoms of element i one formula contains and Arᵢ is that element's standard atomic weight. Glucose, C₆H₁₂O₆, is 6 × 12.011 + 12 × 1.008 + 6 × 15.999 = 180.156 g/mol. Each element's share of the mass is nᵢ × Arᵢ ÷ M: carbon is 72.066 ÷ 180.156 = 40.00 %, although only a quarter of the atoms are carbon. The atomic weights are the abridged standard values of the IUPAC Commission on Isotopic Abundances and Atomic Weights (CIAAW). Elements without a stable isotope have none, so the mass number of their longest-lived isotope is used and the result is marked approximate. The method follows OpenStax Chemistry 2e, sections 3.1 and 3.2. Natural samples vary a little in isotope mix, so the last decimal can differ from another table's. A labelled isotope, such as ¹³C or D (deuterium), uses its own mass from NIST instead of the standard atomic weight. ## FAQ **What is the difference between molar mass and molecular weight?** The numbers are the same. Molecular weight (relative molecular mass) has no unit; molar mass is the same number in grams per mole. **How do I convert grams to moles?** Divide the mass by the molar mass: 90 g of glucose is 90 ÷ 180.16 = 0.50 mol. **How do I enter a hydrate such as copper sulfate pentahydrate?** Write the water after a dot or an asterisk: CuSO4·5H2O or CuSO4*5H2O. Its molar mass is 249.68 g/mol. **Does the charge on an ion change its calculated molar mass?** The calculator ignores the small mass of electrons gained or lost. Write charges after a caret, such as SO4^2-, so they are read as charges rather than atom counts. **Can I enter a mixture or a whole chemical equation?** Enter one chemical formula at a time. A mixture has no single formula-based molar mass unless you also know its composition; a reaction equation needs separate molar masses for its substances. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)