Molar Mass Calculator
Fill in the values and click Calculate to see results
- Molar mass is the bridge between the mass of a sample and the number of moles it contains.
- By entering any two of mass, moles, or molar mass into this calculator, you get the third value instantly without manual arithmetic or unit conversions.
- The built-in PubChem search for molar masses, the option to switch between grams and kilograms, and the automatic display of alternative units make this tool suitable for classroom stoichiometry, laboratory preparation, and industrial quality control.
- Whether you are a student verifying a homework problem, a technician preparing a reagent, or a researcher characterizing a new compound, a reliable molar mass calculator ensures your numbers are correct the first time.
How to Use the Molar Mass Calculator?
- 1.
Select what to calculate: Choose Moles (n), Mass (m), or Molar mass (M) from the dropdown. The field for the value you are solving for hides automatically so you only see the inputs you need.
- 2.
Enter the two known values: Type in your numbers. Use the unit dropdowns next to each field to switch between grams and kilograms for mass, or between g/mol and kg/mol for molar mass.
- 3.
Use the chemical search (optional): Search for any compound by name. The molar mass field fills in automatically from PubChem, so you do not need to look it up manually.
- 4.
Review the result: The primary result appears with your selected unit. Additional alternative units are shown below for convenience.
- 5.
Check the reference table: Use the built-in molar mass table as a quick reference for common compounds and hydrated salts.
This calculator solves for moles (n), mass (m), or molar mass (M) when you provide the other two values. It supports unit conversion between kilograms, grams, and milligrams for mass, and between grams per mole and kilograms per mole for molar mass. The built-in chemical search draws from PubChem (opens in new tab) to auto-fill molar masses instantly, saving you a manual periodic-table lookup. All results display with your chosen units and include alternative unit options for flexibility.
Using an online molar mass calculator eliminates arithmetic errors that occur when rearranging the formula n = m / M by hand. Instead of dividing mass by molar mass on a calculator and hoping you transcribed the decimal correctly, you enter the numbers from your lab notebook directly and get the answer instantly. This is especially valuable in quality-control labs and pharmaceutical production where a single misplaced decimal can produce an incorrect batch or fail a regulatory audit.
What is Molar Mass?
Molar mass is distinct from molecular weight, though the two terms are often used interchangeably in practice. Molecular weight is a dimensionless ratio of the average mass of a molecule to one-twelfth the mass of carbon-12, while molar mass carries the dimension of mass per amount of substance. In everyday laboratory work, the numerical values are identical. An understanding of molar mass in chemistry is essential for converting between the macroscopic world of grams and the microscopic world of atoms and molecules.
Every element has a characteristic molar mass that reflects the weighted average of its naturally occurring isotopes. Carbon, for instance, has a molar mass of 12.01 g/mol because the natural abundance of 12C (98.9%) dominates over 13C (1.1%). Chlorine at 35.45 g/mol reflects the 3:1 natural ratio of 35Cl to 37Cl. When elements combine to form compounds, the compound molar mass is simply the sum of the constituent element molar masses taken in the ratio indicated by the chemical formula. This additive property makes molar mass one of the most accessible and practical concepts in introductory chemistry.
Formula
Solution
Source: LibreTexts CK-12 Foundation
Real-World Applications
In food science, the molar mass of citric acid (192.12 g/mol) is used to calculate the concentration of preservative in soft drinks, ensuring levels stay within regulatory limits of 0.1 to 0.3% by weight. In environmental chemistry, the molar mass of nitrate ion (62.00 g/mol) converts a mass concentration of 10 mg/L NO3– to a molar concentration of 0.161 mmol/L for comparison with drinking-water standards. In clinical laboratories, serum electrolyte concentrations reported in millimoles per liter rely on the molar masses of sodium (22.99 g/mol), potassium (39.10 g/mol), and chloride (35.45 g/mol) for calibration of ion-selective electrodes.
Agricultural chemistry uses molar mass to calculate fertiliser application rates. Ammonium nitrate (NH4NO3, 80.04 g/mol) provides nitrogen in both ammonium and nitrate forms; knowing the molar mass allows the farmer to determine how many kilograms of fertiliser supply a target number of moles of nitrogen per hectare.
In metallurgy, molar mass is used to calculate the composition of alloys. Stainless steel, for example, contains iron (55.85 g/mol), chromium (52.00 g/mol), nickel (58.69 g/mol), and other elements in specific mole ratios that determine corrosion resistance and mechanical properties. The molar mass of each component is used to convert weight-percent specifications into mole fractions for quality control during alloy production. In the semiconductor industry, molar masses of dopant elements such as boron (10.81 g/mol) and phosphorus (30.97 g/mol) determine the precise quantities needed to achieve target doping levels in silicon wafers. In each of these applications, the core calculation is identical: given any two of mass, moles, or molar mass, the third follows from the relationship n = m / M.
Common Calculation Mistakes in Molar Mass
Another common mistake involves the hydration state of salts. Copper(II) sulfate pentahydrate (CuSO4·5H2O) has a molar mass of 249.69 g/mol, while the anhydrous form is 159.61 g/mol. Using the wrong value yields a result that is off by 36%. Always check whether the chemical you are using is the hydrated or anhydrous form and enter the corresponding molar mass. The reference table in this calculator lists both forms for common hydrated salts.
Unit errors are a third source of mistakes. Entering mass in milligrams without converting to grams, or molar mass in kilograms per mole while the formula expects grams per mole, shifts the result by factors of 1000. The calculator handles unit conversion automatically through the dropdown menus, so 500 mg is correctly treated as 0.500 g before the formula runs. Simply select the unit that matches your measurement and the conversion happens behind the scenes.
Why Molar Mass Matters in Stoichiometry
Consider the combustion of propane: C3H8 + 5 O2 → 3 CO2 + 4 H2O. If you burn 44.1 g of propane (molar mass 44.10 g/mol), you have exactly 1.00 mol of propane. From the balanced equation, 1 mol of propane produces 3 mol of CO2 (molar mass 44.01 g/mol), which corresponds to 132 g of CO2. Without the molar mass of propane, you could not determine that 44.1 g equals 1.00 mol, and the entire calculation would be impossible. A molar mass calculator makes this connection instantaneous and error-free.
Limiting reagent problems depend even more heavily on molar mass conversions. In the reaction 2 H2 + O2 → 2 H2O, if you start with 10.0 g of H2 (2.016 g/mol) and 80.0 g of O2 (32.00 g/mol), you need to convert both masses to moles: 10.0 / 2.016 = 4.96 mol H2 and 80.0 / 32.00 = 2.50 mol O2. The stoichiometric ratio requires 2 mol H2 per 1 mol O2. The 4.96 mol H2 would require 2.48 mol O2, but only 2.50 mol is available, making oxygen the excess reagent and hydrogen the limiting reagent. Without molar masses, these comparisons cannot be made. This calculator handles the conversion instantly, letting you focus on interpreting the result.
How to Calculate Molar Mass from a Chemical Formula
Polyatomic ions in parentheses are treated by multiplying the entire group by the subscript outside the parentheses. This calculator performs the reverse operation: given mass and moles, it computes the molar mass, which you can then compare with your calculated value to verify the identity of an unknown compound.
Understanding the Mole and Avogadro's Number
Avogadro's number is unimaginably large. A mole of marbles stacked evenly across the surface of Earth would cover the entire planet to a depth of nearly 50 kilometers. Conversely, a mole of sand grains would fill a volume roughly equal to Mount Everest. On the atomic scale, however, Avogadro's number is the natural counting unit: 12.01 g of carbon contains 6.022 × 10²³ atoms, just as 58.44 g of NaCl contains that many formula units.
The relationship between molar mass and Avogadro's number is fundamental to converting between macroscopic and microscopic quantities. To find the mass of a single molecule, divide the molar mass by Avogadro's number. For water (18.02 g/mol), one molecule has a mass of 18.02 / (6.022 × 10²³) = 2.99 × 10–23 g, or 29.9 yoctograms. This type of calculation is essential in mass spectrometry, where the mass-to-charge ratio of individual ions is measured and compared to the expected molar mass of the analyte.
Molar Mass of Hydrated and Anhydrous Compounds
Copper(II) sulfate is a classic example. The blue pentahydrate crystals (CuSO4·5H2O) are common in school laboratories, while the white anhydrous powder (CuSO4) is used as a desiccant. The pentahydrate molar mass is 249.69 g/mol: 159.61 g/mol for CuSO4 plus 5 × 18.015 = 90.08 g/mol for the five water molecules. If you prepared a 1.00 M solution using the pentahydrate but entered the anhydrous molar mass in a calculation, the software would underestimate the moles present by 36%.
Sodium carbonate provides another instructive example. The decahydrate (Na2CO3·10H2O, washing soda) has molar mass 286.14 g/mol, while the anhydrous form is 106.00 g/mol. A recipe calling for 0.100 mol of Na2CO3 requires 10.60 g of anhydrous but 28.61 g of the decahydrate. Using the wrong mass would give an incorrect number of moles and ruin the experiment.
Cobalt(II) chloride is used as a humidity indicator because it changes color upon hydration. The anhydrous form (CoCl2, 129.84 g/mol) is blue, while the hexahydrate (CoCl2·6H2O, 237.93 g/mol) is pink. Molar mass calculations for hydrated compounds are straightforward: add the molar mass of the anhydrous salt to n times 18.015 g/mol, where n is the number of water molecules. The reference table below lists both forms for common hydrated salts.
Solution
Important Considerations for Accurate Molar Mass Calculations
Isotopic variation affects the precision of molar mass. The atomic masses printed on the periodic table are weighted averages of naturally occurring isotopes. Chlorine, for example, is 75.76% 35Cl (34.969 u) and 24.24% 37Cl (36.966 u), giving an average of 35.45 g/mol. If you are working with an isotopically enriched compound, such as 13C-labeled glucose in metabolic tracing, the molar mass differs from the natural-abundance value. Mass spectrometry data can provide the exact isotopic composition when necessary.
Measurement uncertainty propagates through the calculation. If mass is measured to ±0.001 g and molar mass is known to ±0.01 g/mol, the uncertainty in the calculated moles is approximately 0.2% for a 0.5-g sample of NaCl. For submicrogram samples or very high molar mass polymers, the relative uncertainty can exceed 10%, and techniques such as analytical ultracentrifugation or light scattering may be more appropriate than a simple n = m / M calculation.
These considerations do not diminish the value of the molar mass calculator. They describe the context in which experienced chemists interpret results. The calculator handles the routine arithmetic so you can focus on the factors that matter for your specific application.
Solution
Source: LibreTexts CK-12 Foundation - Calculating Molar Mass
Hydrated vs Anhydrous Molar Mass Comparison
Always check whether your chemical is hydrated or anhydrous before entering the molar mass.
| Compound | Formula (Anhydrous) | M (g/mol) | Formula (Hydrated) | M (g/mol) |
|---|---|---|---|---|
| Copper(II) sulfate | CuSO₄ | 159.61 | CuSO₄·5H₂O | 249.69 |
| Sodium carbonate | Na₂CO₃ | 106.00 | Na₂CO₃·10H₂O | 286.14 |
| Cobalt(II) chloride | CoCl₂ | 129.84 | CoCl₂·6H₂O | 237.93 |
| Magnesium sulfate | MgSO₄ | 120.37 | MgSO₄·7H₂O | 246.48 |
| Calcium sulfate | CaSO₄ | 136.14 | CaSO₄·2H₂O | 172.17 |
| Nickel(II) sulfate | NiSO₄ | 154.76 | NiSO₄·6H₂O | 262.85 |
| Oxalic acid | H₂C₂O₄ | 90.03 | H₂C₂O₄·2H₂O | 126.07 |
| Barium chloride | BaCl₂ | 208.23 | BaCl₂·2H₂O | 244.26 |
Molar Mass vs Molecular Weight: Key Differences
In everyday laboratory practice, chemists use the terms interchangeably. A textbook might say "the molecular weight of NaCl is 58.44 g/mol," which strictly should be "molar mass." The IUPAC Gold Book (opens in new tab) recommends using "molar mass" for the quantity with units (g/mol) and "relative molecular mass" (also dimensionless) for the ratio. The distinction matters in dimensional analysis: when you divide mass (g) by molar mass (g/mol), the units cancel to give moles (mol). Using molecular weight as a pure number would require you to track the g/mol units separately. This calculator expects molar mass in g/mol and performs the dimensional analysis automatically.
Solution
Glossary
- Molar mass (M) – The mass of one mole of a chemical substance, expressed in grams per mole (g/mol). It is calculated by summing the atomic masses of all atoms in the chemical formula using values from the periodic table.
- Mole (mol) – The SI base unit for amount of substance. One mole contains exactly 6.02214076 × 10²³ elementary entities, a value known as Avogadro’s number. The mole bridges the atomic scale and the macroscopic scale in chemical calculations.
- Molecular weight – The sum of the atomic weights of all atoms in a molecule, expressed in atomic mass units (amu) or daltons (Da). For most practical purposes, molecular weight and molar mass are numerically interchangeable.
- Atomic mass – The mass of a single atom of an element, expressed in atomic mass units (amu), where 1 amu is defined as one-twelfth the mass of a carbon-12 atom. Values are obtained from the periodic table.
- Chemical formula – A notation that represents the types and numbers of atoms in a chemical compound using elemental symbols and numerical subscripts. For example, H₂SO₄ indicates two hydrogen atoms, one sulfur atom, and four oxygen atoms.
- Empirical formula – The simplest whole-number ratio of atoms of each element in a compound. For hydrogen peroxide, the molecular formula is H₂O₂ but the empirical formula is HO.
- Molecular formula – The actual number of atoms of each element in a molecule. The molecular formula is always a whole-number multiple of the empirical formula and is used in stoichiometric calculations for chemical reactions.
- Avogadro’s number (NA) – The number of particles in one mole (6.02214076 × 10²³). It is the proportionality factor that relates the molar mass of a substance to the mass of a single molecule.
- Periodic table – A tabular arrangement of the chemical elements organized by atomic number, electron configuration, and recurring chemical properties. It provides the standard atomic masses used in molar mass calculations.
- Formula unit – The empirical formula mass of an ionic compound expressed in grams per mole. For sodium chloride (NaCl), the formula unit mass is 58.44 g/mol, representing one mole of Na⁺ and one mole of Cl⁻ ions.
References
- [1]Pearson, Vogel's Textbook of Quantitative Chemical Analysis, 2000.
- [2]IUPAC, IUPAC Gold Book - Relative Atomic Mass. https://www.degruyter.com/database/IUPAC/html
- [3]National Institutes of Health, PubChem Compound Database. https://pubchem.ncbi.nlm.nih.gov

