molecalculator

Moles & Molar Mass

Molar Mass Calculator From a Chemical Structure

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

Molar mass 46.069 g/mol
Molecular formula as C2H6O
1
Set in the form below
You enter
Molecular formula as C2H6O
You get
Molar mass (g/mol)
Rounding
3 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.

A molar mass calculator from a chemical structure converts a molecular formula into a mass in grams per mole by adding the atomic masses of its elements. Enter the formula derived from the structure, such as C2H6O, and the calculator returns the compound’s molar mass; a drawing or image alone must first be translated into a formula.

Formula

The molar mass is the sum of the number of atoms of each element multiplied by that element’s standard atomic weight:

M = Σ(ni × Ai)

  • M is molar mass, in g/mol.
  • ni is the count of atoms of element i in one molecule or formula unit.
  • Ai is the element’s abridged standard atomic weight, expressed as g/mol for this calculation.

For the example formula C2H6O, the calculator applies the standard atomic weights C = 12.011, H = 1.008, and O = 15.999. The expression is 2 × 12.011 + 6 × 1.008 + 1 × 15.999. Subscripts indicate how many atoms of an element are present; an element without a subscript has a count of one.

Worked Example

For the default formula C2H6O:

  1. Carbon: 2 × 12.011 = 24.022 g/mol.
  2. Hydrogen: 6 × 1.008 = 6.048 g/mol.
  3. Oxygen: 1 × 15.999 = 15.999 g/mol.
  4. Total: 24.022 + 6.048 + 15.999 = 46.069 g/mol.

The calculator therefore returns 46.069 g/mol. The formula is shared by ethanol and dimethyl ether, so this result alone cannot tell which structure or compound is meant.

Assumptions

  • The entered formula correctly represents the intended molecule or ionic formula unit.
  • Atomic weights use the stated abridged standard values; the result is an average molar mass, not the mass of a particular isotopic molecule.
  • No solvent, counterion, hydrate water, or other component is included unless it appears in the entered formula.

From a Structure to a Formula

A chemical structure shows how atoms are connected. To calculate its molar mass, first count every atom represented by the drawing and write a molecular formula. In a typical skeletal (line-angle) drawing, each unlabeled corner and line end represents a carbon atom, while hydrogens attached to carbon are usually omitted. Other atoms, such as O, N, and Cl, are written explicitly; hydrogens attached to them may also be shown or inferred from the bonding.

Count atoms after resolving the complete structure, including rings, branches, double bonds, and formal charges. Bond order changes how many hydrogens can attach, but it does not change the atomic mass contribution of the carbon, nitrogen, or other atoms present. For a ring or a condensed group, do not count the same atom twice. If the structure is a salt, hydrate, solvate, or coordination compound, decide whether the requested mass is for the full formula unit or only a particular component.

This page’s calculator accepts a molecular formula as its input, not a structure file or image. A structure editor that exports a formula can provide the required input, but the exported formula still needs checking. For polymers, mixtures, and materials with variable composition, one discrete molecular formula may not adequately describe the sample.

How to Use and Interpret the Result

  • Read the structure and determine its complete molecular formula. Preserve element capitalization: Co means cobalt, while CO means carbon and oxygen.
  • Enter each element symbol followed by its atom count, for example C2H6O or C6H12O6. Omit a count of one if the notation requires standard formula syntax.
  • Check parentheses and multipliers in more complex formulas. For example, Ca(OH)2 contains one Ca, two O, and two H atoms.
  • Read the output in g/mol. Use a number of decimal places appropriate to the atomic weights and the precision needed for the calculation.

Molar mass links the mass of a sample to the amount of substance: amount in moles equals sample mass in grams divided by molar mass in g/mol. Conversely, mass equals moles multiplied by molar mass. These relationships are useful in stoichiometry and general laboratory planning, but a calculated value is not a purity measurement and does not identify an unknown substance by itself.

For bench work, follow your lab method, the safety data sheet (SDS) and your supervisor.

Common Errors and Limits

The biggest errors usually occur before the arithmetic: a missed carbon in a skeletal structure, an incorrect hydrogen count, or confusion between an empirical and molecular formula. An empirical formula gives the simplest whole-number atom ratio; it does not necessarily give the number of atoms in an actual molecule. For example, CH2O is the empirical formula of glucose, whose molecular formula is C6H12O6. Using CH2O would calculate the empirical-formula mass, about 30.026 g/mol, rather than glucose’s molecular mass, about 180.156 g/mol.

Check these details before relying on a result:

  • Capitalization: element symbols are case-sensitive. Na is sodium; NA is not a valid way to write sodium.
  • Parentheses: apply an outside subscript to every atom inside the parentheses. In Al2(SO4)3, there are three sulfur atoms and twelve oxygen atoms.
  • Isotopes: standard atomic weights represent natural isotopic abundance. A molecule specified with isotopes, such as deuterium instead of ordinary hydrogen, needs isotope-specific masses.
  • Charge and composition: charge does not itself add a meaningful electron mass at ordinary reporting precision, but counterions and waters of hydration do contribute if they are part of the formula unit.
  • Rounding: retain precision during the sum and round the final value to a sensible number of digits. Extra displayed decimals do not make uncertain input composition more accurate.

Atomic weights can vary slightly with natural isotopic composition, and published reference tables may show more digits or intervals. This calculator uses conventional abridged standard atomic weights, suitable for common formula calculations; specialized isotope or high-precision work requires values matched to the sample and purpose.

Frequently Asked Questions

Can I calculate molar mass directly from a chemical drawing?
A drawing must first be converted to a molecular formula. The calculator sums atomic masses from that formula; it does not interpret a picture or determine connectivity.

What is the difference between molar mass and molecular mass?
Molar mass is the mass per mole, commonly reported in g/mol. Molecular mass is the mass of one molecule, often expressed in unified atomic mass units (u). Their numerical values are closely related, but the quantities and units differ.

Does the same molecular formula always mean the same compound?
No. Structural isomers can have the same formula and molar mass but different atom connectivity and chemical properties. Molar mass cannot distinguish those structures.

Should I enter the empirical formula or molecular formula?
Enter the molecular formula when calculating the molar mass of a discrete molecule. An empirical formula produces the mass of the simplest atom ratio, which may be a fraction of the molecule’s actual molar mass.

How do I include a hydrate or salt?
Enter the full formula unit, including counterions and waters of hydration, with the correct subscripts. If you need the mass of only one component, calculate that component’s formula separately.

Why might my answer differ from a chemistry reference?
Reference values may use different atomic-weight precision, isotope assumptions, or rounding. Also check whether the reference includes a counterion, hydrate, or a different molecular formula.

Related

Formula used
in f | Molecular formula as C2H6O | - | 1 | 0
out mm | Molar mass | g/mol | 2 * 12.011 + 6 * 1.008 + 15.999 | 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 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 →