Relative Formula Mass Calculator: Find Mr from a Formula
- Carbon atoms
- 1
- You entered
- Hydrogen atoms
- 4
- You entered
- Oxygen atoms
- 1
- You entered
- Atomic mass of carbon
- 12.011
- You entered
A relative formula mass calculator finds the relative formula mass, or Mr, of a substance from its chemical formula. Enter the number of atoms of each element in one formula unit and its relative atomic mass; the result is a dimensionless total, usually rounded to a chosen number of decimal places.
Formula
The general formula is Mr = Σ(ni × Ar,i). In words, multiply the relative atomic mass of each element by the number of its atoms in the formula, then add those products.
- Mr is relative formula mass, with no unit.
- ni is the number of atoms of element i in the chemical formula, a count with no unit.
- Ar,i is the relative atomic mass of element i, also dimensionless, obtained from a periodic table.
For the calculator’s water example, c, h, and o are the atom counts for carbon, hydrogen, and oxygen, while ac, ah, and ao are their respective relative atomic masses. The inputs are arranged to demonstrate the calculation for CH4O, methanol. Replace the counts and masses to match another formula; a calculator with only these three element fields is not a universal formula parser.
Worked Example
Using exactly the default inputs, the formula is CH4O. Substitute the atom counts and relative atomic masses:
- Carbon contribution: 1 × 12.011 = 12.011.
- Hydrogen contribution: 4 × 1.008 = 4.032.
- Oxygen contribution: 1 × 15.999 = 15.999.
- Add the contributions: 12.011 + 4.032 + 15.999 = 32.042.
Rounded to the calculator’s three decimal places, the relative formula mass is 32.042. It has no unit. If expressing the corresponding molar mass, the numerical value is approximately 32.042 g/mol when these atomic masses are used; relative formula mass and molar mass are related but are not the same kind of quantity.
What Relative Formula Mass Means
Relative formula mass is the sum of the relative atomic masses represented by a chemical formula. The subscript after an element tells you how many atoms of it to include. A missing subscript means one. For example, CO2 contains one carbon atom and two oxygen atoms, so its Mr is Ar(C) + 2Ar(O).
The term relative molecular mass, Mr, is used for a molecule, such as CO2. Relative formula mass is appropriate for substances represented by formula units rather than separate molecules, as in ionic compounds such as NaCl. Both are calculated by summing the relative atomic masses indicated by the formula. In common school and laboratory usage, people sometimes use “molecular mass” loosely for either calculation, but the substance’s structure determines the precise term.
Relative atomic masses are ratios relative to a defined standard, so they are not masses in grams or atomic mass units. Many periodic tables show values with decimals because naturally occurring elements can contain isotopes in differing proportions. For precise work, use the atomic masses and rounding convention specified by the relevant course, laboratory, or data source.
How to Calculate a Chemical Formula
Before adding anything, interpret the formula carefully. For a simple formula, write down each element and its total atom count. Then multiply each count by that element’s relative atomic mass and add the results.
- Parentheses: Multiply every atom inside a group by the subscript outside it. In Ca(OH)2, there is one Ca, two O, and two H atoms.
- Groups and hydrates: A leading multiplier applies to the whole formula unit. In CuSO4·5H2O, include one CuSO4 and five water molecules: five extra O atoms and ten H atoms.
- Ions: A charge does not add or subtract atoms and does not itself change the sum. For example, calculate the formula’s atom contributions even when a superscript charge is shown.
- Repeated elements: Combine their counts before multiplying. This helps prevent omissions in formulas with nested groups.
For example, Ca(OH)2 is not one calcium, one oxygen, and one hydrogen. Its count is Ca1O2H2, because the 2 outside the parentheses applies to both O and H.
When to Use the Result
Relative formula mass is useful for checking a formula and for converting between the amount of a substance and its mass when used with molar mass. Numerically, a substance with Mr 32.042 has a molar mass of about 32.042 g/mol under the same atomic-mass convention. Thus, for a known amount in moles, mass in grams is amount in moles multiplied by molar mass in g/mol. That conversion is separate from the relative-mass calculation itself.
The result is not the mass of one particle in grams, and it does not tell you how much of a substance is present. It is also not a percentage composition. To calculate mass percentages, divide each element’s contribution by the total molar mass and multiply by 100; that asks a different question.
Common Errors and Limits
The most frequent mistake is misreading subscripts or parentheses. A second is using a mass value for the wrong element, or mixing rounded atomic masses from different sources. Keep enough digits during the multiplication and addition, then round the final answer. Rounding each contribution too early can shift the total.
A basic calculator needs a field for every element in the formula and must account for groups and any leading multipliers. The sample block accepts only carbon, hydrogen, and oxygen, so it cannot directly calculate sodium chloride or a formula containing calcium. For other compounds, apply the same sum with the appropriate element counts, or use a calculator that supports the complete formula syntax. Check that it interprets parentheses, hydrates, and charges correctly rather than assuming every displayed formula is parsed the same way.
Finally, atomic masses may be reported to different precision, and some elements have values that depend on isotope composition. A result with many calculator digits is not automatically more accurate than the atomic-mass data used to produce it. Match the precision required by the context.
Frequently Asked Questions
Is relative formula mass the same as molecular mass?
They use the same summation method. Molecular mass refers to a molecule; relative formula mass is the more suitable term for a formula unit, especially in ionic compounds.
Does relative formula mass have a unit?
No. It is a relative quantity and is dimensionless. Molar mass, by contrast, has units such as g/mol.
How do I calculate Mr when a formula has parentheses?
Multiply every atom count inside the parentheses by the subscript immediately after the closing parenthesis, then add the other atoms in the formula.
Do I include the charge on an ion?
No. The charge is not an atomic mass and does not change the number of atoms. Use the element counts shown in the formula.
Why can two answers for the same formula differ slightly?
Periodic tables may provide different precision or isotope-weighted atomic masses. Small differences can also result from rounding at different stages.
How do I turn relative formula mass into molar mass?
Use the same numerical value as the molar mass in g/mol, subject to the atomic-mass values and precision chosen. The relative formula mass itself remains unitless.
Related
Formula used
in c | Carbon atoms | - | 1 | 0 in h | Hydrogen atoms | - | 4 | 0 in o | Oxygen atoms | - | 1 | 0 in ac | Atomic mass of carbon | - | 12.011 | 0 in ah | Atomic mass of hydrogen | - | 1.008 | 0 in ao | Atomic mass of oxygen | - | 15.999 | 0 out mr | Relative formula mass | - | c * ac + h * ah + o * ao | 3
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, rounded as each result states. See how the calculators work or report an error.