molecalculator

Moles & Molar Mass

Relative Formula Mass: How to Calculate It

Calculator No. 01-16871 · Updated · Formula and assumptions shown below

The calculator on this page is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

Relative formula mass (RFM) is the sum of the relative atomic masses of all atoms in a chemical formula. To calculate it, add together the standard atomic weights of each element in the compound, multiplied by the number of atoms of that element in the formula.

Formula

The relative formula mass (RFM) of a compound is calculated using the formula:

RFM = Σ (number of atoms of element × relative atomic mass of element)

Where:

  • number of atoms of element: the subscript for each element in the chemical formula (e.g., 2 in H₂O for hydrogen)
  • relative atomic mass of element: the standard atomic weight from IUPAC (e.g., H = 1.008, C = 12.011, O = 15.999, Na = 22.990, Cl = 35.45, S = 32.06, N = 14.007) in atomic mass units (u), equivalent to g/mol

The result is expressed in grams per mole (g/mol), though RFM itself is a dimensionless quantity in some contexts; in practice, it is numerically equal to molar mass.

Worked Example

Using the default values from the calculator: 1 hydrogen, 2 carbon, 1 oxygen, 0 chlorine, 0 sodium, 0 sulfur, and 0 nitrogen atoms.

Step 1: Multiply each atom count by its atomic mass:

  • Hydrogen: 1 × 1.008 = 1.008
  • Carbon: 2 × 12.011 = 24.022
  • Oxygen: 1 × 15.999 = 15.999
  • Chlorine: 0 × 35.45 = 0.000
  • Sodium: 0 × 22.990 = 0.000
  • Sulfur: 0 × 32.06 = 0.000
  • Nitrogen: 0 × 14.007 = 0.000

Step 2: Add all contributions:

RFM = 1.008 + 24.022 + 15.999 + 0 + 0 + 0 + 0 = 41.029

Rounded to two decimal places: 41.03 g/mol.

This matches the calculator output using the formula:

rfm = h*1.008 + c*12.011 + o*15.999 + cl*35.45 + na*22.990 + s*32.06 + n*14.007

With h=1, c=2, o=1: rfm = 1.008 + 2×12.011 + 15.999 = 41.029 ≈ 41.03 g/mol.

Background and Importance

Relative formula mass is a key concept in chemistry, especially in stoichiometry, molar calculations, and solution preparation. It applies to ionic compounds (e.g., NaCl) and covalent molecules (e.g., CO₂). For covalent substances, the term relative molecular mass (RMM) is often used interchangeably, though RFM is more general.

The term “relative” means the mass is compared to 1/12 the mass of a carbon-12 atom, making it a unitless value in theory. However, in practical applications, RFM is numerically equal to molar mass (g/mol), which is used in lab calculations.

RFM is essential for converting between mass and moles using the formula: moles = mass / RFM. It also helps determine percentage composition, empirical formulas, and reaction yields.

How to Choose the Right Atomic Masses

Always use the latest IUPAC standard atomic weights. These are abridged values based on natural isotopic abundance and are updated periodically. For example:

  • Hydrogen: 1.008 g/mol
  • Carbon: 12.011 g/mol
  • Nitrogen: 14.007 g/mol
  • Oxygen: 15.999 g/mol
  • Sodium: 22.990 g/mol
  • Chlorine: 35.45 g/mol
  • Sulfur: 32.06 g/mol

Do not use whole numbers (e.g., C = 12, O = 16) unless instructed for approximation. Real compounds contain isotopic mixtures (e.g., carbon-13), so precise values matter in analytical work.

For elements with variable atomic weights (e.g., boron, lithium), use the conventional value unless high precision is required.

Common Problems and Mistakes

Errors in calculating RFM usually stem from:

  • Incorrect atom counting: Misreading subscripts, especially in polyatomic ions. For example, in Ca(OH)₂, there are 2 oxygen and 2 hydrogen atoms, not 1 each.
  • Forgetting parentheses: In Mg(NO₃)₂, there are 2 nitrogen and 6 oxygen atoms (not 1 N and 3 O).
  • Using atomic number instead of atomic mass: Never use the periodic table’s small whole number (proton count); use the larger decimal value.
  • Rounding too early: Keep at least 3–4 significant figures during calculation and round only the final result.
  • Confusing RFM with molecular mass for ionic compounds: Ionic compounds like NaCl don’t form discrete molecules, so “relative formula mass” is the correct term.

Comparisons: RFM, Atomic Mass, Molar Mass

These terms are related but distinct:

  • Atomic mass: mass of a single atom, usually in atomic mass units (u). Example: carbon-12 = 12 u exactly.
  • Relative formula mass (RFM): sum of relative atomic masses in a formula unit. Dimensionless but numerically equal to molar mass.
  • Molar mass: mass of one mole of a substance, expressed in g/mol. Numerically equal to RFM.

For example, water (H₂O):

  • Atomic masses: H = 1.008 u, O = 15.999 u
  • RFM = (2 × 1.008) + 15.999 = 18.015
  • Molar mass = 18.015 g/mol

The values are numerically identical; the difference is in context and units.

Assumptions

  • The compound is pure and consists of naturally occurring isotopic abundances.
  • Atomic weights are based on IUPAC standard values at standard conditions (25 °C, 1 atm).
  • No contribution from isotopic enrichment or depletion.
  • The formula represents the empirical or molecular formula correctly.

Frequently Asked Questions

Is relative formula mass the same as molar mass?
Yes, numerically. RFM is dimensionless, while molar mass has units of g/mol, but they have the same value. For example, RFM of water is 18.015, and its molar mass is 18.015 g/mol.

Do I use atomic number or atomic mass?
Always use atomic mass (the decimal number on the periodic table), not atomic number (the small whole number). Atomic number is the proton count and unrelated to mass.

How do I calculate RFM for a compound with parentheses?
Multiply all atoms inside the parentheses by the subscript outside. For example, in Al₂(SO₄)₃: 2 Al, 3 S, and 12 O (because 4 × 3 = 12).

Why is chlorine 35.45 and not 35.5 or 35?
Chlorine has two stable isotopes: Cl-35 (~75%) and Cl-37 (~25%). The atomic weight is a weighted average: (0.75 × 35) + (0.25 × 37) ≈ 35.45 g/mol.

Should I include water in RFM for hydrated compounds?
Yes, if it’s a hydrate. For CuSO₄·5H₂O, include 5 water molecules: add 5 × (2×1.008 + 15.999) = 90.078 g/mol to CuSO₄’s RFM.

Can RFM be used for polymers or large biomolecules?
Yes, but it’s often called molecular weight. For DNA, use 617.96 g/mol per base pair (anhydrous free acid form), not the sodium salt value (~650 g/mol).

Related

Formula used
in h | Hydrogen atoms | - | 1 | 0 | 10
in c | Carbon atoms | - | 2 | 0 | 10
in o | Oxygen atoms | - | 1 | 0 | 10
in cl | Chlorine atoms | - | 0 | 0 | 10
in na | Sodium atoms | - | 0 | 0 | 10
in s | Sulfur atoms | - | 0 | 0 | 10
in n | Nitrogen atoms | - | 0 | 0 | 10
out rfm | Relative formula mass | g/mol | h*1.008 + c*12.011 + o*15.999 + cl*35.45 + na*22.990 + s*32.06 + n*14.007 | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.

More in this section

The whole Moles & Molar Mass section →