Loading…

Molecular Mass and Formula Mass

General Chemistry • Chemical Compounds

View all topics

Build a chemical formula by choosing each element and its subscript. Then compute the relative molecular mass \(M_r\) (for molecules) or the relative formula mass \(M_r\) (for ionic compounds). Long math is stacked vertically.

Quick formula input (optional)
Accepts parentheses and Unicode subscripts (H₂O). Ionic charges/electrons are not supported.
Formula builder
Duplicate elements are combined automatically.
Ready

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

What is the difference between molecular mass and formula mass?

Molecular mass applies to discrete molecules (like H2O), while formula mass applies to ionic compounds where the formula represents a formula unit (like CaCl2). Both are computed the same way: sum of atomic masses multiplied by subscripts.

How does this calculator compute M_r from a chemical formula?

It uses the weighted sum M_r = sum(n_i x A_i), where n_i is the subscript and A_i is the atomic mass of each element. The calculator adds each element contribution and reports the total.

Why does the molar mass have the same number as M_r?

Relative mass M_r is dimensionless, while molar mass M has units of g/mol. By definition, the numeric value of M in g/mol matches M_r for the same chemical formula.

What happens if I enter the same element twice?

Duplicate elements are combined automatically so the total count of that element is used in the sum. This helps prevent double-counting and keeps the formula consistent.

Which atomic masses does the calculator use?

It uses periodic-table atomic masses that are averaged over natural isotopic composition. These values are appropriate for typical molecular and formula mass calculations in general chemistry.