Calculators.Life Calculator
Physics

Chemical Mass & Molar Mass Calculator

Input Parameters

Scenarios
Choose a common chemical compound or select Custom to enter any formula.
Supports standard elemental notation, parentheses, brackets, and hydrates (e.g. CuSO4.5H2O, Ca(OH)2, Fe2(SO4)3).
Specify whether you know the amount in moles or mass in grams.
Enter the amount in moles or grams based on selected calculation direction.

Computed Results

Molar Mass (g/mol)
18.015
Sample Mass (g)18.015
Sample Amount (mol)1
Atoms per Formula Unit3
Number of Particles (x 10^23)6.022

The chemical mass calculator determines the molar mass of a compound and converts between a sample's mass in grams and its amount in moles. By parsing standard chemical formulas—including hydrates and bracket notation—it helps you quickly find the total atoms per formula unit and the estimated number of particles in your sample.

This calculator is provided for informational and educational purposes only.

Verified Calculation Scenarios

The following examples demonstrate how the calculator processes different chemical formulas and quantity types.

Calculate Mass for a Small Glucose Sample

If you have 0.5 moles of glucose (C6H12O6):

Determine Moles from a Large Mass of Sulfuric Acid

If you have 450 grams of sulfuric acid (H2SO4):

High Quantity Calculation for Copper Sulfate Hydrate

If you have 5000 moles of copper sulfate pentahydrate (CuSO4.5H2O):

Custom Formula Calculation for Aluminum Sulfate

If you have 125.75 grams of aluminum sulfate (Al2(SO4)3):

Formulas and Calculation Method

The calculator first determines the molar mass of the compound by summing the standard atomic weights of each element in the formula. It then uses the relationship between mass, moles, and molar mass to find the missing variable.

To find the mass in grams when the amount in moles is known:

Mass (g) = Moles (mol) × Molar Mass (g/mol)

To find the amount in moles when the mass in grams is known:

Moles (mol) = Mass (g) ÷ Molar Mass (g/mol)

To calculate the total number of particles (molecules or formula units), the calculator multiplies the number of moles by Avogadro's number (6.02214076 × 10²³).

How to Use the Calculator

Follow these steps to calculate the properties of your chemical sample:

  1. Select or Enter the Compound: Choose a preset chemical compound from the dropdown menu, or select "Custom" to enter your own formula. The calculator supports standard elemental notation, parentheses, brackets, and hydrates (e.g., CuSO4.5H2O).
  2. Choose the Calculation Direction: Specify whether your known quantity is in moles or mass (grams).
  3. Enter the Quantity: Input the numerical amount of your sample.
  4. Review the Results: The calculator will display the molar mass, the converted mass or moles, the total atoms per formula unit, and the number of particles.

Inputs and Outputs Reference

FieldTypeDescription
Preset Chemical CompoundInputA selection of common chemical compounds, or the option to enter a custom formula.
Chemical FormulaInputThe specific chemical formula to evaluate, using standard capitalization and notation.
Calculate ByInputThe known unit of your sample (moles or mass in grams).
Quantity AmountInputThe numerical value of your sample in the selected unit.
Molar Mass (g/mol)OutputThe total mass of one mole of the specified compound.
Sample Mass (g)OutputThe calculated mass of the sample in grams (if moles were entered).
Sample Amount (mol)OutputThe calculated amount of the sample in moles (if mass was entered).
Atoms per Formula UnitOutputThe total count of individual atoms in a single molecule or formula unit of the compound.
Number of Particles (x 10^23)OutputThe estimated number of molecules or formula units in the sample, based on Avogadro's number.

Practical Use Cases

Converting between mass and moles is a fundamental process in chemistry. It is required for stoichiometry, where balanced chemical equations dictate the molar ratios of reactants and products. Laboratory technicians and students use these calculations to determine exactly how many grams of a solid chemical to weigh out when preparing solutions of a specific molarity, or to predict the theoretical yield of a chemical reaction based on the starting mass of the reactants.

Frequently Asked Questions

How do I format a hydrate in the custom formula field?

To enter a hydrate, use a period to separate the main compound from the water molecules. For example, enter copper(II) sulfate pentahydrate as CuSO4.5H2O.

Does the calculator support brackets and parentheses?

Yes, the calculator correctly parses nested groups using parentheses, brackets, or braces. For example, you can enter aluminum sulfate as Al2(SO4)3, and it will correctly multiply the atoms inside the parentheses by the subscript outside.

Author portrait
About the Author
Arnab Biswas

Calculator developer and SEO strategist who builds practical online calculators and tests calculation logic, input handling, and expected results using real-world scenarios.