molecalculator

Moles & Molar Mass

Magnesium Sulfate Formula and Molar Mass Calculator

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

Molar mass of magnesium sulfate 72.36 g/mol
Moles in 1 g
0.0138 mol
= 1 ÷ Molar mass of magnesium sulfate
Magnesium atoms per formula unit
1
Set in the form below
Sulfur atoms per formula unit
1
Set in the form below
You enter
Magnesium atoms per formula unit, Sulfur atoms per formula unit, Oxygen atoms per formula unit, Atomic mass of magnesium (g/mol), Atomic mass of sulfur (g/mol), Atomic mass of oxygen (g/mol)
You get
Molar mass of magnesium sulfate (g/mol), Moles in 1 g (mol)
Rounding
2 dp · 4 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 chemical formula of anhydrous magnesium sulfate is MgSO₄, and its molar mass is 120.36 g/mol. This calculator works out the molar mass from the number of formula units and the atomic masses you enter, then gives the corresponding mass for one mole.

Formula

The molar mass is the sum of each element’s atomic mass multiplied by its count in the formula: M = nMgAMg + nSAS + nOAO. Here, M is molar mass in g/mol; nMg, nS, and nO are the numbers of magnesium, sulfur, and oxygen atoms in one formula unit; and AMg, AS, and AO are their atomic masses in g/mol. The second result is the amount of substance in one gram, calculated as 1 g divided by M in g/mol.

For MgSO₄, the subscripts imply one magnesium atom, one sulfur atom, and four oxygen atoms. The subscript 4 applies only to oxygen. Standard atomic masses used here are Mg = 24.305, S = 32.06, and O = 15.999 g/mol. Atomic masses are relative values drawn from standard atomic-weight conventions; the displayed result is rounded to two decimal places.

Worked Example

Using the calculator’s default values:

  • Magnesium contribution: 1 × 24.305 g/mol = 24.305 g/mol.
  • Sulfur contribution: 1 × 32.06 g/mol = 32.06 g/mol.
  • Oxygen contribution: 1 × 15.999 g/mol = 15.999 g/mol.

M = 24.305 + 32.06 + 15.999 = 72.364 g/mol. With these defaults, the result is 72.36 g/mol, and 1 g contains 1 / 72.364 = 0.013819 mol.

Assumptions

  • The entered atom counts represent a single chemical formula unit and should be whole, nonnegative counts.
  • Atomic masses are entered in g/mol and are used as fixed values for this arithmetic.
  • The second output is a mathematical conversion for exactly 1 g; it does not account for purity, water content, or measurement uncertainty.

Why Magnesium Sulfate Has Several Formulas in Practice

MgSO₄ describes anhydrous magnesium sulfate: the compound without water incorporated into its crystal structure. In ordinary material descriptions, however, magnesium sulfate is often encountered as a hydrate. A hydrate contains a specified number of water molecules per formula unit, indicated by a dot and a coefficient. For example, magnesium sulfate heptahydrate is MgSO₄·7H₂O, commonly called Epsom salt.

The hydrate’s formula mass differs from anhydrous MgSO₄ because each water molecule contributes two hydrogen atoms and one oxygen atom. Using H = 1.008 and O = 15.999 g/mol, water contributes about 18.015 g/mol; seven waters contribute about 126.105 g/mol. Therefore, MgSO₄·7H₂O has a formula mass of about 246.47 g/mol, rather than 120.36 g/mol. This distinction matters in calculations: equal masses of the anhydrous compound and the heptahydrate do not contain equal amounts of MgSO₄ formula units.

Hydration state is not a cosmetic label. If a container identifies a hydrate, use that hydrate’s complete formula when calculating molar mass. Do not use the anhydrous value just because the substance name includes “magnesium sulfate.”

What the Formula Tells You

Magnesium sulfate is an ionic compound made from magnesium ions, Mg²⁺, and sulfate ions, SO₄²⁻. Their charges balance in a one-to-one ratio: one magnesium ion has a charge of +2, while one sulfate ion has a charge of −2. The formula therefore has no written charge and contains one unit of each ion.

In the solid, MgSO₄ is not best pictured as isolated, little molecules. It forms an ionic crystal lattice. “Formula unit” is the useful term for the simplest whole-number ratio of ions in an ionic solid. In water, dissolved magnesium sulfate separates substantially into hydrated magnesium and sulfate ions, though detailed solution behavior depends on concentration and conditions. The formula states the composition ratio; it does not by itself specify crystal structure, solubility, or the exact state of dissolved ions.

Using the Calculator and Avoiding Mistakes

The calculator is useful when checking a formula mass, converting a known mass to moles, or comparing the anhydrous salt with a hydrate. For a different compound, change the atom counts and atomic masses to match its formula. The current defaults intentionally show the atom counts for MgSO₄, but the default oxygen count is set to 1 as displayed; for MgSO₄, enter 4 oxygen atoms. The formula expression then gives the correct anhydrous molar mass, 120.36 g/mol, and the one-gram conversion updates accordingly.

Keep formula subscripts distinct from coefficients in a chemical equation. A coefficient such as 2 MgSO₄ means two formula units, but it does not change the molar mass of MgSO₄. Likewise, the subscript 4 in SO₄ means four oxygen atoms in each sulfate group.

  • Check whether the material is anhydrous or hydrated before using a molar mass.
  • Use g/mol for atomic masses and keep every element’s count paired with the correct mass.
  • Do not treat the one-gram output as a concentration. Concentration also requires a solution volume or another relevant quantity.
  • Remember that a calculated amount assumes the stated mass is entirely the compound; impurities or moisture change the actual amount of MgSO₄.

Related Quantities and Comparisons

Molar mass connects a weighed mass to moles through n = m/M, where n is amount in mol, m is mass in grams, and M is molar mass in g/mol. Conversely, mass is m = nM. For example, using anhydrous MgSO₄, 0.100 mol corresponds to about 12.04 g. This is a stoichiometric conversion, not a statement about how much will dissolve under any particular conditions.

Another common source of confusion is the difference between formula mass and molar mass. Formula mass is often expressed in atomic mass units (u) for one formula unit; molar mass is expressed in g/mol for a mole of formula units. Their numerical values are practically the same when expressed in those respective units. Thus, anhydrous MgSO₄ has a formula mass near 120.36 u and a molar mass near 120.36 g/mol.

Frequently Asked Questions

What is the chemical formula of magnesium sulfate?
Anhydrous magnesium sulfate is MgSO₄. The formula indicates one magnesium, one sulfur, and four oxygen atoms per formula unit.

What is the molar mass of MgSO₄?
Using Mg = 24.305, S = 32.06, and O = 15.999 g/mol, anhydrous MgSO₄ has a molar mass of about 120.36 g/mol.

Is Epsom salt the same formula as anhydrous magnesium sulfate?
No. Epsom salt is commonly magnesium sulfate heptahydrate, MgSO₄·7H₂O. Its molar mass is about 246.47 g/mol because the formula includes seven water molecules.

Why is sulfate written SO₄?
Sulfate is the polyatomic ion SO₄²⁻: one sulfur atom and four oxygen atoms with an overall charge of −2. In MgSO₄, it balances the +2 charge of Mg²⁺.

Does MgSO₄ describe a molecule?
For the solid ionic compound, MgSO₄ is a formula unit showing the simplest ion ratio, rather than a discrete molecule in the way that water is commonly described as a molecule.

Related

Formula used
in mg | Magnesium atoms per formula unit | - | 1 | 0
in s | Sulfur atoms per formula unit | - | 1 | 0
in o | Oxygen atoms per formula unit | - | 1
in amg | Atomic mass of magnesium | g/mol | 24.305 | 0
in as | Atomic mass of sulfur | g/mol | 32.06 | 0
in ao | Atomic mass of oxygen | g/mol | 15.999 | 0
out mm | Molar mass of magnesium sulfate | g/mol | mg * amg + s * as + o * ao | 2
out mol | Moles in 1 g | mol | 1 / mm | 4

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 →