Molar Mass & Composition Calculator

Molar Mass & Composition Calculator

Parse chemical formulas (e.g., H2SO4, Ca(NO3)2) to compute total molecular weight (g/mol) and element mass percentages.

Molecular Weight Result
Molar Mass for H2SO4
98.072 g/mol
Mass Percent Composition
H (2)
2.06%
S (1)
32.69%
O (4)
65.25%

At a Glance

Category
Chemistry
Best For
Chemistry students and lab workers who need molar mass for stoichiometry
Privacy
100% in your browser: nothing you enter is uploaded
Time Required
Under a minute
Cost
Free
Updated
November 2026

Quick Overview

What This Tool Does

Parses the formula, counts each element (including groups in parentheses) and adds up the atomic masses.

Who Should Use It

Chemistry students, teachers and laboratory staff.

When to Use It

Before converting between grams and moles, or preparing solutions.

Why It Is Useful

Molar mass is the bridge between the mass you weigh and the moles you need.

Key Features & Capabilities

Parentheses supported

Handles groups such as Ca(NO3)2.

Percent composition

Mass share of every element.

Clear errors

Unknown symbols are reported.

How to Use This Tool

1

Type the formula

Use element symbols with capital letters, such as H2SO4. Tip: Symbols are case-sensitive: Co is cobalt, CO is carbon monoxide.

2

Check the formula

Subscripts are written as plain numbers. Tip: Use parentheses for groups.

3

Read the molar mass

The total in g/mol is shown to three decimals. Tip: Use it for moles = mass ÷ molar mass.

4

Review composition

Mass percent of each element is listed. Tip: The percentages add to about 100.

Worked Real-World Example

Sulfuric acid, H2SO4

A student needs the molar mass of H2SO4 to prepare a solution.

Sample Inputs
Chemical formulaH2SO4
Molar mass98.072 g/mol
Calculation Breakdown
Count atoms: H2SO4 = 2 H, 1 S, 4 O
Add atomic masses: 2 × 1.008 + 32.06 + 4 × 15.999 = 98.072 g/mol
Mass of oxygen: 4 × 15.999 = 63.996 = 65.25% of the total
Hydrogen and sulfur: 2.016 and 32.06 = 2.06% and 32.69%
One mole of sulfuric acid weighs about 98.07 g, and oxygen makes up about two thirds of it by mass.

How It Works (Math & Calculation Logic)

The formula is parsed into element counts, with multipliers applied for parentheses. The molar mass is Σ(count × atomic mass) using standard atomic weights (for example H 1.008, C 12.011, O 15.999, S 32.06). Mass percent = element total ÷ molar mass × 100.

Formula / AlgorithmM = Σ(nᵢ × Aᵢ) Mass % = (n × A) ÷ M × 100
Variable & Logic Definitions
nᵢAtom count - Number of atoms of element i
AᵢAtomic mass - Standard atomic weight (g/mol)

How to Interpret Your Results

Typical Benchmarks

Molar masses range from 2 g/mol for hydrogen gas to thousands for polymers.

Evaluating Your Output

Check that the percentages add to about 100.

Recommended Next Action

Use the molar mass to convert grams to moles in stoichiometry.

Frequently Asked Questions

How do you calculate molar mass?
Add the atomic masses of every atom in the formula.
What is the molar mass of H2SO4?
The molar mass of H2SO4 is about 98.07 grams per mole.
How are parentheses handled?
The group is multiplied by the number after the closing parenthesis.
Why does my textbook give a slightly different value?
Different editions use slightly different atomic masses.
What is mass percent?
The share of the molar mass contributed by one element.

Complementary QuickForma Utilities