molecalculator

Moles & Molar Mass

Relative Formula Mass of Magnesium Sulfate

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

Relative formula mass of MgSO4 120.36
Magnesium atoms in formula
1
Set in the form below
Sulfur atoms in formula
1
Set in the form below
Oxygen atoms in formula
4
Set in the form below
You enter
Magnesium atoms in formula, Sulfur atoms in formula, Oxygen atoms in formula
You get
Relative formula mass of MgSO4
Rounding
2 dp

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.

The relative formula mass of anhydrous magnesium sulfate, MgSO₄, is 120.37. This calculator adds the relative atomic masses for the atoms in the formula; enter the numbers of magnesium, sulfur, and oxygen atoms to get the formula mass in relative atomic mass units.

Formula

Relative formula mass is the sum of the relative atomic masses of all atoms represented in a chemical formula:

Mr = n(Mg) × Ar(Mg) + n(S) × Ar(S) + n(O) × Ar(O)

  • Mr is the relative formula mass, a ratio and therefore unitless.
  • n(Mg), n(S), and n(O) are the atom counts shown by the formula subscripts. MgSO₄ contains one magnesium atom, one sulfur atom, and four oxygen atoms.
  • Ar(Mg) = 24.305, Ar(S) = 32.06, and Ar(O) = 15.999 are the abridged standard atomic weights used here.

For MgSO₄, the expression is (1 × 24.305) + (1 × 32.06) + (4 × 15.999). The calculator uses those stated atomic weights, so results from tables using slightly different atomic-weight values may differ in the last decimal place. Although relative formula mass has no unit, the corresponding molar mass has the same numerical value in g/mol: approximately 120.37 g/mol.

Worked Example

Using the calculator defaults—1 magnesium atom, 1 sulfur atom, and 4 oxygen atoms:

  1. Magnesium contribution: 1 × 24.305 = 24.305.
  2. Sulfur contribution: 1 × 32.06 = 32.06.
  3. Oxygen contribution: 4 × 15.999 = 63.996.
  4. Add the contributions: 24.305 + 32.06 + 63.996 = 120.361.

Rounded to the calculator’s two decimal places, the relative formula mass is 120.36. The opening value of 120.37 is a commonly quoted rounded value based on atomic weights rounded differently; with the exact input values displayed in this calculator, 120.36 is the consistent result. This small difference illustrates why it is useful to state the atomic weights and rounding convention.

Assumptions

  • The formula is anhydrous MgSO₄, with no waters of crystallization.
  • The atomic weights used are Mg 24.305, S 32.06, and O 15.999.
  • The calculation uses the formula’s atom counts and does not account for impurities, isotopic enrichment, or sample composition.

What Relative Formula Mass Means

Relative formula mass, written Mr, is the total of the relative atomic masses in a chemical formula. Magnesium sulfate is an ionic compound, so its solid structure is not made of separate MgSO₄ molecules. Its formula represents the simplest repeating ratio of ions: one Mg²⁺ ion for each SO₄²⁻ ion. For ionic compounds, “relative formula mass” is therefore the appropriate term, rather than “relative molecular mass.”

The relative formula mass compares the mass represented by one formula unit with one-twelfth of the mass of a carbon-12 atom. It is dimensionless. Molar mass, in contrast, is the mass of one mole of formula units and is expressed in g/mol. In ordinary calculations, their numerical values are the same to the precision used: MgSO₄ has Mr about 120.36 and molar mass about 120.36 g/mol using the calculator’s inputs.

Anhydrous Salt and Hydrated Forms

Magnesium sulfate is also encountered as hydrates, which include water molecules in a fixed ratio in the crystal. The familiar Epsom salt form is magnesium sulfate heptahydrate, MgSO₄·7H₂O. It is not the same formula mass as anhydrous MgSO₄: each formula unit includes seven additional water molecules.

Using the atomic weights in the calculator, water contributes 2(1.008) + 15.999 = 18.015 per molecule. Seven waters contribute 7 × 18.015 = 126.105, so MgSO₄·7H₂O has a relative formula mass of 120.361 + 126.105 = 246.466, or about 246.47. The hydration state must therefore be included whenever converting a mass of a hydrate into moles. Treating a hydrate’s mass as though it were anhydrous magnesium sulfate gives an incorrect mole amount.

Using the Result in Chemistry Calculations

The molar mass allows conversion between a measured mass and an amount in moles. For pure anhydrous magnesium sulfate, use n = m/M, where n is amount in moles, m is mass in grams, and M is molar mass in g/mol. For example, 12.036 g divided by 120.36 g/mol corresponds to 0.1000 mol, subject to the accuracy of the mass measurement and the purity of the material.

The reverse calculation is m = nM. A target amount of 0.250 mol of anhydrous MgSO₄ corresponds to 0.250 × 120.36 = 30.09 g. If the material is a hydrate, substitute the hydrate’s molar mass instead. These are stoichiometric calculations; they do not establish the actual purity or hydration state of a particular sample.

For solution calculations, distinguish the amount of magnesium sulfate from the volume of the final solution. Molarity is moles of solute per litre of final solution, not per litre of solvent. This page calculates formula mass only; concentration additionally requires a known amount and a final volume.

Common Mistakes and Rounding

  • Leaving out the oxygen subscript: the 4 in SO₄ means four oxygen atoms, so oxygen contributes 4 × 15.999.
  • Confusing formula mass and molar mass: the relative formula mass is unitless; molar mass is in g/mol, although their numerical values match.
  • Ignoring waters of crystallization: MgSO₄ and MgSO₄·7H₂O have substantially different molar masses.
  • Rounding too early: keep the atomic-weight contributions through the addition, then round the final result to the precision needed.
  • Assuming every sample is pure: a formula-mass calculation describes the chemical formula, not the measured composition of a commercial or laboratory sample.

The calculator reports 120.36 from the explicitly listed atomic weights, while references may show 120.37 because atomic weights or intermediate rounding differ. That 0.01 difference is not evidence of a different compound. For work requiring traceable precision, use the atomic-weight table and significant-figure policy specified by the relevant method.

Frequently Asked Questions

What is the relative formula mass of MgSO₄?
Using Mg 24.305, S 32.06, and O 15.999, the total is 120.361, conventionally rounded to 120.36 with these inputs. Some tables list 120.37 because of different rounding conventions.

Is magnesium sulfate’s formula mass the same as its molar mass?
They have the same numerical value for routine calculations, but different meanings and units. Relative formula mass is unitless; molar mass is expressed in g/mol.

What is the formula mass of magnesium sulfate heptahydrate?
For MgSO₄·7H₂O, it is about 246.47 using the atomic weights shown here. The seven water molecules add about 126.105 to the anhydrous formula mass.

Why is relative formula mass used instead of molecular mass?
Magnesium sulfate is an ionic solid made of a repeating lattice, not discrete MgSO₄ molecules. Its formula gives an ion ratio, so relative formula mass is the more accurate term.

How many moles are in a gram of MgSO₄?
For pure anhydrous MgSO₄, divide the mass in grams by approximately 120.36 g/mol. For a hydrate, use the hydrate’s molar mass instead.

Related

Formula used
in mg | Magnesium atoms in formula | - | 1 | 0
in s | Sulfur atoms in formula | - | 1 | 0
in o | Oxygen atoms in formula | - | 4 | 0
out mr | Relative formula mass of MgSO4 | - | mg * 24.305 + s * 32.06 + o * 15.999 | 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 →