Calculate molar mass from chemical formulas, find empirical and molecular formulas, analyze percent composition, and handle hydrates and isotopes for chemistry homework and lab work.
Enter a chemical formula or select an operation to calculate molar mass, percent composition, empirical formulas, and more.
Molar mass is the mass of one mole of a substance, expressed in grams per mole (g/mol). It's numerically equal to the atomic or molecular weight but carries units that connect the microscopic world of atoms to macroscopic quantities you can measure in the lab. For chemists, molar mass is the bridge between chemical formulas and practical measurements.
Every element has a characteristic molar mass found on the periodic table. Hydrogen (H) has a molar mass of approximately 1.008 g/mol, carbon (C) is 12.011 g/mol, and oxygen (O) is 15.999 g/mol. These values represent weighted averages of all naturally occurring isotopes—for instance, carbon's molar mass accounts for the ~99% abundance of carbon-12 and ~1% of carbon-13.
For compounds, you calculate molar mass by summing the molar masses of all constituent atoms according to the chemical formula. Water (H₂O) has molar mass = 2(1.008) + 15.999 = 18.015 g/mol. This means 1 mole of water molecules (6.022 × 10²³ molecules) weighs 18.015 grams. This conversion factor is essential for stoichiometry, solution preparation, and yield calculations.
Molar mass appears in nearly every chemistry calculation: converting between grams and moles, determining limiting reagents, calculating percent yield, preparing solutions with specific molarity, and analyzing combustion products. Mastering molar mass calculations is foundational to success in general chemistry, organic chemistry, analytical chemistry, and biochemistry.
Understanding the difference between empirical formula (simplest whole-number ratio of atoms) and molecular formula (actual numbers of atoms) is crucial. Glucose has empirical formula CH₂O (molar mass 30.026 g/mol) but molecular formula C₆H₁₂O₆ (molar mass 180.156 g/mol). The molecular formula is 6 times the empirical formula. Both are important—empirical formulas come from elemental analysis, while molecular formulas require additional information like molar mass from mass spectrometry.
Advanced applications include isotopic labeling for research (deuterium, carbon-13, nitrogen-15), hydrate calculations for determining water content in crystalline compounds, and mixture calculations for determining average molar masses of polymers or gas blends. Our calculator handles all these scenarios, from simple elements to complex organic molecules with nested parentheses like Ca(C₂H₃O₂)₂ (calcium acetate).
Our molar mass calculator supports multiple calculation modes to handle everything from basic formulas to complex research scenarios. Here's how to use each mode effectively:
Enter any chemical formula using standard notation. The calculator automatically parses element symbols, numbers, and parentheses:
The calculator validates all element symbols against the periodic table and handles subscripts automatically. You don't need special characters—just type H2O, not H₂O.
If you have elemental analysis data (percent composition by mass), enter each element and its percentage to find the empirical formula:
Example: Compound is 40.0% C, 6.7% H, 53.3% O
Moles: C = 40.0/12.011 = 3.33, H = 6.7/1.008 = 6.65, O = 53.3/15.999 = 3.33
Ratio: C:H:O = 3.33:6.65:3.33 = 1:2:1 → Empirical formula: CH₂O
Many salts crystallize with water molecules in their structure. Enter the anhydrous formula and number of water molecules:
Example: Copper(II) sulfate pentahydrate (CuSO₄·5H₂O)
Anhydrous CuSO₄: 159.61 g/mol
5 H₂O: 5 × 18.015 = 90.075 g/mol
Total: 249.685 g/mol (36.1% water by mass)
For research involving labeled compounds or precise mass calculations, use isotope notation with the caret symbol:
The calculator uses exact IUPAC isotopic masses (e.g., ¹³C = 13.00335 amu, not the average 12.011) for maximum precision in mass spectrometry and isotope ratio calculations.
Calculate average molar mass for mixtures, solutions, or polymer blends by entering components with their fractions:
Example: Air mixture (simplified): 80% N₂ + 20% O₂ by volume (mole fraction)
M_avg = 0.80(28.014) + 0.20(31.998) = 22.411 + 6.400 = 28.811 g/mol
Understanding the underlying formulas helps you verify calculator results and solve problems by hand. Here are the essential equations:
M = Σ (ni × mi)
Where ni = number of atoms of element i, mi = molar mass of element i from periodic table
Example: Sulfuric acid H₂SO₄
M = 2(1.008) + 1(32.065) + 4(15.999)
M = 2.016 + 32.065 + 63.996 = 98.077 g/mol
Step 1: molesi = (percenti / 100) / Mi
Step 2: ratioi = molesi / min(moles)
Step 3: Multiply all ratios by smallest integer to get whole numbers
Example: 92.3% C, 7.7% H (typical hydrocarbon)
C: 92.3/12.011 = 7.685 mol; H: 7.7/1.008 = 7.639 mol
Ratio: C:H = 7.685:7.639 ≈ 1:1 → Empirical formula: CH
(Molecular formula could be C₂H₂, C₆H₆, etc., depending on actual molar mass)
n = Mmolecular / Mempirical
Molecular formula = n × (Empirical formula)
Example: Empirical formula CH (M = 13.019 g/mol), molecular mass = 78 g/mol
n = 78 / 13.019 = 6 (rounded to nearest integer)
Molecular formula = C₆H₆ (benzene)
% element = (n × melement / Mtotal) × 100%
Example: Water H₂O (M = 18.015 g/mol)
% H = (2 × 1.008 / 18.015) × 100% = 11.19%
% O = (1 × 15.999 / 18.015) × 100% = 88.81%
Mhydrate = Manhydrous + n × 18.015
% H₂O = (n × 18.015 / Mhydrate) × 100%
Example: Gypsum CaSO₄·2H₂O
Manhydrous = 40.078 + 32.065 + 4(15.999) = 136.141 g/mol
Mhydrate = 136.141 + 2(18.015) = 172.171 g/mol
% H₂O = (36.030 / 172.171) × 100% = 20.93%
Molar mass calculations are essential across chemistry disciplines and real-world applications. Here are the most common use cases:
Converting between grams and moles for balanced equations. If you need 2 moles of NaOH (M = 40.00 g/mol) for a neutralization, you need 80.0 grams. Essential for determining limiting reagents, theoretical yield, and percent yield in synthesis.
To make 500 mL of 0.1 M NaCl solution: moles needed = 0.1 mol/L × 0.5 L = 0.05 mol. Grams needed = 0.05 mol × 58.44 g/mol = 2.922 g. Dissolve 2.922 g NaCl in water and dilute to exactly 500 mL. Critical for analytical chemistry, biochemistry labs, and pharmaceutical formulations.
Combustion analysis of organic compounds gives percent C, H, N, O. Convert these to empirical formula using molar masses, then determine molecular formula from mass spectrometry data. Used in quality control, forensics, environmental testing, and characterizing new compounds.
Many salts absorb water from air or crystallize with water. Heating CuSO₄·5H₂O (249.69 g/mol) drives off water, leaving anhydrous CuSO₄ (159.61 g/mol). Mass loss tells you water content: (249.69 - 159.61) / 249.69 = 36.1%. Used in desiccant evaluation, cement chemistry, and pharmaceutical stability testing.
PV = nRT requires moles (n). To find density of CO₂ at STP: d = (M × P) / (R × T) = (44.01 g/mol × 1 atm) / (0.08206 L·atm/mol·K × 273.15 K) = 1.96 g/L. Used in atmospheric chemistry, industrial gas handling, and engineering design.
Reacting 10.0 g Fe (M = 55.845 g/mol) with 10.0 g S (M = 32.065 g/mol) to form FeS. Moles: Fe = 0.179 mol, S = 0.312 mol. Fe is limiting (1:1 ratio). Theoretical yield = 0.179 mol × 87.91 g/mol = 15.7 g FeS. If you get 14.2 g, percent yield = (14.2/15.7) × 100% = 90.4%.
Calculating protein concentrations, enzyme kinetics (Km values in molar units), or drug dosages. Aspirin (C₉H₈O₄, M = 180.16 g/mol): a 325 mg tablet contains 325/180.16 = 1.80 mmol. Pharmacokinetic calculations require converting between mg/kg body weight and molar concentrations.
Measuring pollutants like NO₂ (M = 46.01 g/mol) in air quality studies. EPA standards may specify 100 μg/m³; converting to ppb requires molar mass and ideal gas law. Also used for water quality (mg/L to molarity conversions), acid rain analysis, and carbon footprint calculations.
Carbon's atomic number is 6, but its molar mass is 12.011 g/mol. Always use the decimal value from the periodic table, not the integer at the top of the element box. Atomic number counts protons; atomic mass accounts for protons, neutrons, and isotopic abundance.
In Ca(OH)₂, the subscript 2 outside the parentheses applies to both O and H, giving you Ca + 2O + 2H = 40.078 + 2(15.999) + 2(1.008) = 74.092 g/mol, not 57.083. Parentheses distribute the subscript to everything inside.
Using C = 12 instead of 12.011 g/mol causes errors in complex molecules. For C₆H₁₂O₆, rounding gives 180 g/mol instead of the correct 180.156 g/mol—a 0.087% error that compounds in stoichiometry. Always use full precision from the periodic table and round only the final answer.
Glucose (C₆H₁₂O₆) has empirical formula CH₂O. If you calculate molar mass using the empirical formula (30.026 g/mol) instead of molecular formula (180.156 g/mol), your stoichiometry will be off by a factor of 6. Always confirm which formula the problem requires.
When given elemental analysis, verify percentages add to 100% (or close, within rounding error). If C = 40%, H = 7%, and the problem doesn't mention oxygen, assume the remaining 53% is oxygen. Missing this leads to incorrect empirical formulas. Always account for all mass.
If a lab procedure says "weigh 10 g of copper sulfate" and you have CuSO₄·5H₂O (not anhydrous CuSO₄), using 159.61 g/mol instead of 249.69 g/mol means you're actually adding less copper sulfate than intended. Always check if your reagent is anhydrous or a hydrate.
If mole ratios come out to C₂H₄O₂, you must simplify to CH₂O (divide by 2). The empirical formula is defined as the simplest whole-number ratio. C₂H₄O₂ is a molecular formula (acetic acid), but its empirical formula is CH₂O.
Molar mass has units g/mol, not just g. If you divide 18 g H₂O by 18 g/mol, you get 1 mol (dimensionally correct). Writing "molar mass = 18 g" is wrong and leads to dimensional analysis errors. Always include /mol in your units.
Writing ¹³C as C13 or C-13 can confuse calculators. Use proper notation: ^13C or ¹³C. Also, natural abundance carbon (12.011 g/mol) is very different from pure carbon-13 (13.003 g/mol). Only use isotopic masses when actually working with purified isotopes.
H2SO4 means 2 hydrogens, not 2 sulfuric acid molecules. The number immediately after an element is its subscript. (NH₄)₂SO₄ means 2 ammonium groups + 1 sulfate = 2N + 8H + 1S + 4O. Practice parsing complex formulas by working inside-out from innermost parentheses.
For organic molecules, rough estimation helps catch errors: each C ≈ 12, H ≈ 1, O ≈ 16, N ≈ 14. C₆H₁₂O₆ should be roughly 6(12) + 12(1) + 6(16) = 180. If your calculator shows 120 or 240, you know something went wrong. This "back-of-envelope" check catches most input errors.
Speed up calculations by knowing key values: H₂O = 18, CO₂ = 44, NaCl = 58.5, H₂SO₄ = 98, NaOH = 40, CaCO₃ = 100. For quick stoichiometry, these approximations are sufficient. For precise work, always use exact values from the calculator or periodic table with at least 3 decimal places.
If mole ratios are 1:1.5:2, multiply all by 2 to get 2:3:4 (whole numbers). If ratios are 1:1.33:2, recognize 1.33 ≈ 4/3, so multiply by 3 to get 3:4:6. Common fractions: 1.5 → ×2, 1.33 → ×3, 1.25 → ×4, 1.2 → ×5, 1.67 → ×3 (for 5/3). Use tolerance of ±0.1 when deciding if a ratio is "close enough" to a simple fraction.
Periodic table values have 4-5 significant figures (e.g., C = 12.011, Cl = 35.453). For most stoichiometry, 3-4 sig figs are sufficient. Round your final answer to match the precision of your measured data, not the molar mass. If you weigh 2.5 g (2 sig figs), your answer should have 2 sig figs even though molar mass is known to 5.
Natural chlorine is 75.76% ³⁵Cl (34.969 amu) and 24.24% ³⁷Cl (36.966 amu), giving average 35.453 g/mol. For mass spectrometry, molecular ions show peaks at different m/z ratios. CH₃Cl has major peak at m/z = 50 (¹²C + ³⁵Cl) and minor peak at m/z = 52 (¹²C + ³⁷Cl). Understanding isotope patterns helps identify compounds from mass spectra.
"Molecular weight" technically applies only to discrete molecules (H₂O, C₆H₆). For ionic compounds like NaCl or network solids like SiO₂, use "formula weight" since no discrete molecules exist—only empirical formula units. Practically, both are calculated the same way and both have units of g/mol or amu. The distinction matters in advanced chemistry courses.
Polymers don't have a single molar mass—they have distributions. Report number-average (Mn) or weight-average (Mw) molar mass. For proteins, count amino acids and add 18.015 g/mol for each peptide bond lost during condensation. A 100-residue protein with average residue mass 110 g/mol has M ≈ 100(110) - 99(18) = 11000 - 1782 = 9218 g/mol. DNA/RNA calculations follow similar principles.
For complexes like [Cu(NH₃)₄]SO₄, treat brackets like parentheses: 1 Cu + 4(NH₃) + 1 SO₄ = 63.546 + 4(17.031) + 96.064 = 227.734 g/mol. Coordination compounds often include water of crystallization outside the coordination sphere: [Cr(H₂O)₆]Cl₃·6H₂O means 6 water molecules coordinated to Cr plus 6 more in the crystal lattice—include all 12 water molecules in total molar mass.
For acid-base titrations, equivalent weight = molar mass / n, where n is the number of H⁺ or OH⁻ exchanged. H₂SO₄ (M = 98.08 g/mol) has n = 2, so equivalent weight = 49.04 g/equiv. This concept is outdated in modern chemistry (molarity is preferred), but still appears in older textbooks and some industrial contexts like water treatment.
For critical calculations, verify molar mass using: (1) online databases like NIST Chemistry WebBook, (2) different calculators, (3) manual calculation with full periodic table values. For regulated industries (pharma, clinical labs), molar mass discrepancies can invalidate results. Always document your molar mass source and calculation method for audit trails.
Balance chemical equations and calculate mole ratios, limiting reagents, and theoretical yields for reactions.
Calculate pressure, volume, temperature, and moles using PV = nRT for ideal gas systems and mixtures.
Calculate pH, pOH, [H+], and [OH-] for acids, bases, and buffer solutions with concentration conversions.
Calculate Gibbs free energy, predict reaction spontaneity, and analyze ΔG = ΔH - TΔS relationships.
Convert between units for mass, moles, concentration, energy, and other chemical quantities.
Calculate volumes and concentrations for solution dilutions using C₁V₁ = C₂V₂ formula.
Master stoichiometry and chemistry concepts with our comprehensive collection of calculators
Browse All Chemistry Tools