Molar Mass Calculator
Enter a chemical formula to calculate its molar mass and molecular weight, inspect each element's mass contribution, and perform stoichiometry conversions.
Calculated Result
On small screens, scroll the result table sideways to view all columns.
| Element | Atoms | Atomic weight used | Contribution (g/mol) | Mass percent | Atomic percent |
|---|
Contributions are shown to 3 decimal places and percentages to 2. Atomic weights retain the precision displayed by the source table.
Show calculation steps
Mole & Sample Converter
Convert between mass, moles, and particles for this calculated formula.
Scientific references & calculation precision
Atomic Weights Reference: Standard atomic weights are based on the CIAAW 2024 abridged dataset (ciaaw.org), reflecting representative terrestrial isotopic abundances.
Precision & Rounding: Computations retain standard IEEE 754 64-bit double precision across all intermediate parsing and summation steps. Molar mass and elemental contributions are rounded to 3 decimal places (0.001 g/mol) and percentages to 2 decimal places (0.01%) strictly for human-readable display.
Hill System Notation: IUPAC Hill formula convention orders Carbon (C) first, Hydrogen (H) second (if present), and all other elements alphabetically. When Carbon is absent, all elements appear strictly in alphabetical order.
Limitations: Transuranic and synthetic radionuclides without stable or long-lived terrestrial isotopes are not included. Isotope-specific weights and ionic charges are not supported.
Chemical Formula Comparison
Compare molar mass, total atoms, and elemental breakdown between two chemical formulas.
Try an example10 examples
Try an example
Select a verified compound to populate the formula input.
Recent formulas
Saved only in this browser’s local storage after a successful calculation.
No recent formulas yet.
On this page
Features & Capabilities
ChemWick provides a browser-based stoichiometry calculator for evaluating formula weights, elemental composition, and mole conversions using standard atomic weights from the Commission on Isotopic Abundances and Atomic Weights.
Molar Mass & Molecular Weight Calculation
Computes formula weights and molecular masses in g/mol using CIAAW 2024 abridged atomic weights. Parses parentheses, brackets, and supported crystal hydrates, with an expandable step-by-step arithmetic disclosure for verification.
Elemental Breakdown & Composition Analysis
Itemizes constituent elements with stoichiometric counts, standard atomic weights, mass contributions (g/mol), and IUPAC Hill notation. Directly contrasts mass percentages with atomic proportions alongside a color-coded composition bar.
Mole Conversions & Formula Comparison
Converts seamlessly between mass in grams, amount in moles, and particles via the 2019 SI Avogadro constant, plus elemental mass yields in custom sample sizes. Includes a side-by-side comparison tool to evaluate mass and atom differentials between two formulas.
How to Use the Calculator
Follow these three steps to compute formula masses, perform stoichiometry conversions, and analyze chemical compounds.
- 1.
Enter a Chemical Formula or Select an Example
Type chemical symbols with proper capitalization (e.g., NaCl, H2O, C6H12O6). Use parentheses for groups like (NH4)2SO4, and dot syntax for hydrates like CuSO4·5H2O, or choose a verified example compound.
- 2.
Calculate Molar Mass
Select Calculate to evaluate your formula. Calculations run locally in your browser on demand—your formula inputs are never sent to a server.
- 3.
Explore Results, Conversions & Comparison
Review total molar mass in g/mol, elemental breakdown table, Hill system notation, and mass percentages. Open step-by-step arithmetic, convert between grams, moles, and Avogadro particles, compare two formulas side by side, or download a text report.
What Is Molar Mass?
In chemistry, molar mass is an intensive physical property defined as sample mass divided by substance amount. Symbolized by M, it connects microscopic particles with laboratory measurements:
Here, m represents sample mass and n denotes moles. While the SI base unit is kg/mol, chemistry practice universally expresses molar mass in grams per mole (g/mol).
Molar Mass Versus Molecular Mass
Molar mass and molecular mass represent distinct physical quantities:
- Molecular mass: Mass of a single discrete molecule in daltons (Da), where 1 Da equals 1/12 the mass of a carbon-12 atom.
- Molar mass: Bulk mass per mole of substance in g/mol, containing exactly 6.02214076 × 10²³ elementary entities.
Ionic Lattices and Formula Units
Ionic compounds like sodium chloride (NaCl) and network solids like silica (SiO₂) form crystal lattices rather than discrete molecules. Because no isolated "NaCl molecule" exists, chemists define the formula unit—the simplest whole-number ratio of ions. Its mass is termed formula mass or formula molar mass (58.440 g/mol for NaCl).
How Is Molar Mass Calculated?
Molar mass calculation follows conservation of mass: total molar mass equals the sum of standard atomic weights of constituent atoms in one formula unit:
Where Ni is atom count and Ar,i is standard atomic weight in g/mol.
Worked Example 1: Water (H₂O)
Hydrogen (H): 2 × 1.0080 g/mol = 2.0160 g/mol
Oxygen (O): 1 × 15.999 g/mol = 15.999 g/mol
Total Molar Mass (H₂O): 2.0160 + 15.999 = 18.015 g/mol
Worked Example 2: Glucose (C₆H₁₂O₆)
Carbon (C): 6 × 12.011 g/mol = 72.066 g/mol (40.00% mass)
Hydrogen (H): 12 × 1.0080 g/mol = 12.096 g/mol (6.71% mass)
Oxygen (O): 6 × 15.999 g/mol = 95.994 g/mol (53.29% mass)
Total Molar Mass (C₆H₁₂O₆): 72.066 + 12.096 + 95.994 = 180.156 g/mol
Calculations maintain 64-bit precision, rounding to three decimal places (0.001 g/mol) for display.
Understanding Chemical Formulas and Notation
Chemical formulas convey elemental composition and ratios. ChemWick's parser interprets standard notation, respecting case sensitivity, grouping delimiters, and hydrates:
Element Symbols and Case Sensitivity
Elements use standardized IUPAC symbols with uppercase first letters and lowercase second letters:
- CO: Carbon monoxide, containing carbon and oxygen (molar mass: 28.010 g/mol).
- Co: Elemental cobalt, transition metal atomic number 27 (molar mass: 58.933 g/mol).
Subscripts, Brackets, and Multipliers
Subscripts specify atom counts. Standard digits (H2O) and Unicode subscripts (H₂O) are supported; omitting a count denotes an implicit 1. Groups enclose in parentheses () or brackets []:
- Ca(OH)₂: Subscript 2 doubles O and H, totaling 1 Ca, 2 O, and 2 H (74.092 g/mol).
- (NH₄)₂SO₄: Ammonium is doubled, yielding 2 N, 8 H, 1 S, and 4 O (132.134 g/mol).
- K₄[Fe(CN)₆]: Brackets enclose 1 Fe and 6 CN, totaling 4 K, 1 Fe, 6 C, 6 N (368.345 g/mol).
Hydrate Notation and Syntax Boundaries
Crystal hydrates use a dot (·) or period (.) with an integer coefficient (e.g., CuSO4·5H2O). The coefficient multiplies the complete water component (10 H, 5 O), added to the anhydrous salt mass.
Limitations: ChemWick evaluates neutral stoichiometry. It does not accept ionic charges (SO4^2-), isotopes (¹³C), or leading reaction multipliers (2H2O).
Interpreting Your Calculation Results
ChemWick organizes calculation outputs to provide instant stoichiometric verification:
Molar Mass and Summary Metrics
The primary calculated output shows total molar mass in g/mol. Below it, three summary tiles highlight:
- Total Atoms: Sum of stoichiometric atom counts in one formula unit (24 atoms in C₆H₁₂O₆).
- Distinct Elements: Count of unique elements present (3 in glucose: C, H, O).
- Hill System: Standardized IUPAC Hill indexing formula.
The IUPAC Hill System Convention
The Hill system orders elements systematically to eliminate indexing ambiguity:
- If Carbon (C) is present, Carbon is listed first, followed by Hydrogen (H). Remaining elements follow alphabetically (e.g., ethanol C₂H₅OH displays as
C2H6O). - If Carbon is absent, all elements appear strictly in alphabetical order by symbol (e.g., sulfuric acid H₂SO₄ displays as
H2O4S; sodium chloride NaCl asClNa).
Mass Percentage Versus Atomic Percentage
Stoichiometry calculations must distinguish mass fractions from atom counts:
- Mass Percent (wi): Fraction of total mass contributed by element i:
(contribution / total mass) × 100%. - Atomic Percent (xi): Fraction of total atoms belonging to element i:
(atom count / total atoms) × 100%.
In water (H₂O), Hydrogen comprises 66.67% of atoms (2 of 3 atoms), but represents only 11.19% of mass. Oxygen represents 33.33% of atoms, yet constitutes 88.81% of total mass.
Converting Between Moles, Mass, and Particles
Stoichiometry requires converting between mass in grams, amount in moles, and particles. ChemWick's converter uses the 2019 SI Avogadro constant:
The Four Fundamental Conversion Equations
1. Mass to Moles
n = m / M
Divide sample mass in grams by formula molar mass in g/mol.
2. Moles to Mass
m = n × M
Multiply amount in moles by formula molar mass in g/mol.
3. Moles to Particles
N = n × NA
Multiply moles by Avogadro's constant (6.022 × 10²³ entities/mol).
4. Particles to Moles
n = N / NA
Divide total particle count by Avogadro's constant.
Classifying Representative Entities
Identifying the correct representative particle prevents conceptual errors:
- Atoms: For monoatomic substances like noble gases (He, Ar) and pure metals.
- Molecules: For covalent compounds with bonded molecules (H₂O, CO₂, C₆H₁₂O₆).
- Formula Units: For ionic lattices (NaCl, CaCO₃) and network solids (SiO₂).
To determine elemental yield in a sample, multiply sample mass by mass fraction:melement = msample × (Mass Percent / 100). In a 50.0 g sample of NaCl (58.440 g/mol, 39.34% Na), sodium yield is exactly 50.0 × 0.3934 = 19.670 g Na, while chlorine accounts for 30.330 g Cl.
Comparing Chemical Formulas and Composition
Evaluating two formulas concurrently helps assess ligand changes, track hydration, or contrast empirical formulas. ChemWick includes a dedicated Chemical Formula Comparison tool directly below the calculator.
Comparative Metrics Evaluated
- Molar Mass Delta (ΔM): Numerical difference in g/mol between Formula A and Formula B.
- Total Atom Differential: Difference in total constituent atom counts.
- Shared vs. Differing Elements: Categorical identification of common and unique elements.
- Elemental Mass Fractions: Side-by-side comparison of element percentage contributions.
Formulas with Identical Elemental Counts
When two formulas share the exact same atom counts—such as ethanol (C2H5OH) and dimethyl ether (CH3OCH3)—the tool recognizes identical molar mass (46.069 g/mol) and matching mass percentages.
Scientific Scope: While formula comparison identifies stoichiometric equivalence, formula analysis alone cannot verify molecular connectivity, 3D geometry, or reactivity. Ethanol and dimethyl ether share identical formulas but exhibit different boiling points (78.37 °C vs. −24 °C) due to functional group differences (alcohol vs. ether).
To draw chemical structures in two dimensions and generate systematic names for constitutional isomers, use ChemWick's dedicated IUPAC Name Generator, which provides 2D Ketcher drawing tools and IUPAC nomenclature.
Accuracy, Precision, and Common Mistakes
Reliable scientific calculations require verified atomic data and transparent numerical precision. ChemWick adheres to international standards established by IUPAC and CIAAW:
Standard Atomic Weights Provenance
Elemental masses derive from the CIAAW 2024 Abridged Standard Atomic Weights, reflecting representative terrestrial isotopic abundances. Standard atomic weights for elements with natural variation use recognized representative values. Synthetic transuranic elements without stable terrestrial isotopes are excluded.
Internal Precision Versus Display Rounding
ChemWick executes intermediate parsing, multiplication, and summation using IEEE 754 64-bit double-precision floating-point arithmetic. Display rounding applies strictly at presentation:
- Molar mass and contributions: Formatted to 3 decimal places (0.001 g/mol).
- Percentages: Formatted to 2 decimal places (0.01%).
- Source atomic weights: Displayed to exact tabulated precision in CIAAW data.
Five Common Formula Entry Mistakes
- Improper Capitalization: Entering
cofor carbon monoxide (CO), ornaClinstead ofNaCl. - Internal Whitespace: Typing spaces between symbols or hydrate dots (e.g.,
H2 O). Formulas must be contiguous. - Leading Coefficients: Entering multipliers like
2H2O. The calculator accepts single formula units; enterH2O. - Charged or Isotopic Notations: Entering charges (
Fe3+) or isotopes (¹³C). The calculator evaluates neutral formulas. - Mismatched Delimiters: Omitting closing brackets (e.g.,
Ca(OH2).
Physical Scope and Theoretical Boundaries
Formula-based molar mass calculations provide macroscopic stoichiometric metrics. Molar mass does not describe bonding types, 3D geometry, enthalpy, or toxicity. For thermodynamic constants, consult authoritative sources like the NIST Chemistry WebBook.
Frequently Asked Questions
What is molar mass, and why is it measured in g/mol?
Molar mass (M) is mass divided by amount of substance: M = m / n. One mole contains exactly 6.02214076 × 10²³ specified entities. The SI unit of molar mass is kg/mol, though g/mol is common in chemistry. A molecule’s mass in daltons and its molar mass in g/mol are nearly numerically equal; the equivalence is not exact under the present SI definition of the mole.
How do you calculate molar mass from a chemical formula?
Count each element’s atoms, multiply the count by the atomic weight used, then add the contributions. With H = 1.008 and O = 15.999, H₂O gives 2 × 1.008 + 15.999 = 18.015 g/mol. The result table shows each contribution.
What is the difference between molar mass, molecular mass, and molecular weight?
These three terms reflect different physical scales. Molar mass (M) is a bulk property measuring the mass of one mole of substance, expressed in g/mol. Molecular mass (m) is a microscopic property measuring the mass of a single molecule, expressed in daltons (Da) or unified atomic mass units (u). Relative molecular mass (molecular weight, Mr) is a dimensionless ratio comparing the average molecular mass to 1/12 of the mass of a carbon-12 atom. For ionic salts (such as NaCl) and network solids that form continuous crystal lattices rather than discrete molecules, "formula mass" or "formula weight" is the scientifically accurate designation.
How do parentheses, brackets, and subscripts affect molar mass calculations?
A subscript immediately following an element symbol multiplies only that single element (as in H₂O). When an entire group is enclosed in parentheses or square brackets, a trailing subscript distributes across every atom inside that group. For example, in aluminum sulfate, Al₂(SO₄)₃, the subscript 3 multiplies the sulfate group to give 3 sulfur atoms and 12 oxygen atoms, which combine with 2 aluminum atoms for a total molar mass of 342.132 g/mol. Our calculator supports nested parentheses, coordination brackets, standard digits, and Unicode subscript characters (₀–₉).
How do you calculate the molar mass of hydrates such as CuSO₄·5H₂O?
In a hydrated salt formula, the middle dot (· or .) denotes stoichiometric co-crystallization—water molecules incorporated into the crystalline lattice in a definite ratio—rather than mathematical multiplication. To determine the total molar mass, add the molar mass of the anhydrous compound to the combined molar mass of the water molecules. For copper(II) sulfate pentahydrate (CuSO₄·5H₂O), the anhydrous CuSO₄ component (159.602 g/mol) is added to five water molecules (5 × 18.015 g/mol = 90.075 g/mol), yielding 249.677 g/mol. In our calculator, enter hydrate formulas using either a dot or a period (for example, CuSO4·5H2O or CuSO4.5H2O).
How do you convert grams to moles and moles to grams using molar mass?
Divide grams by molar mass to obtain moles (n = m / M); multiply moles by molar mass to obtain grams (m = n × M). For water at 18.015 g/mol, 36.030 g corresponds to 2.000 mol. The Mole & Sample Converter below the result performs these conversions.
How do you calculate the percent composition by mass of each element in a compound?
Percent composition by mass is the percentage of a compound’s total mass contributed by a given element: % element = (atom count × standard atomic weight / total molar mass) × 100%. For water (H₂O, total mass 18.015 g/mol), hydrogen contributes (2 × 1.0080 / 18.015) × 100% = 11.19%, while oxygen contributes (15.999 / 18.015) × 100% = 88.81%. ChemWick automatically calculates both mass percentages and atom counts, presenting them in an elemental breakdown table and stacked composition bar.
Why do different molar mass calculators sometimes give slightly different results?
Small variations between calculators, textbooks, and reference tables stem from three scientific factors: standard atomic weight updates from the IUPAC Commission on Isotopic Abundances and Atomic Weights (CIAAW); rounding differences between introductory tables (which often round hydrogen to 1.01 g/mol) and high-precision reference sets; and natural isotopic variability in terrestrial samples, which leads IUPAC to define interval atomic weights for elements such as carbon and sulfur. ChemWick uses the official CIAAW 2024 abridged representative values to maintain consistent, reproducible precision.
How do you calculate the molar mass of ionic compounds like NaCl or CaCl₂?
Ionic compounds form extended crystal lattices of alternating cations and anions rather than isolated molecules. Their molar mass is calculated using their empirical formula unit—the simplest whole-number ratio of ions. For sodium chloride (NaCl), combining sodium (22.990 g/mol) and chlorine (35.45 g/mol) yields a formula unit molar mass of 58.440 g/mol. While strictly termed "formula mass" or "formula weight" rather than molecular mass, it is expressed in g/mol and utilized identically in laboratory stoichiometric calculations.
How can you determine a molecular formula from an empirical formula and molar mass?
Divide the experimentally determined molar mass by the empirical-formula mass. If the ratio is a whole number, multiply every empirical subscript by it. For CH₂O (30.026 g/mol) and 180.156 g/mol, the ratio is 6, giving C₆H₁₂O₆. ChemWick can calculate and compare formula masses, but it does not derive a molecular formula from elemental-analysis percentages.