Exact Mass Calculator
Give this calculator a chemical formula and it returns the exact (monoisotopic) mass in daltons, the average molar mass for comparison, a per-element breakdown, and the [M+H]+, [M+Na]+ and [M-H]- m/z values that mass spectrometrists actually search for. That sets it apart from a general mass calculator, which works with masses you already have: this page derives the mass from the formula itself, atom by atom, using the most abundant isotope of each of 83 elements. It is a chemistry tool for confirming formulas against high-resolution spectra, not a unit converter.
Exact mass uses the mass of the most abundant isotope of each element. The protonated and sodiated m/z values assume a single charge, which is what most small-molecule electrospray work reports.
Quick Answer
For caffeine, C8H10N4O2, the exact mass is 194.080376 Da and the average molar mass is 194.194 g/mol. In a spectrum, look for [M+H]+ at m/z 195.087652, [M+Na]+ at 217.069594 and [M-H]- at 193.073100. Type the formula into the calculator and you get those five numbers plus the element-by-element arithmetic behind them.
Key takeaways
- Exact mass uses one isotope per element, the most abundant one. Average molar mass blends every natural isotope, so the two numbers are close but never identical.
- The gap between them is information, not error: for glucose it is 0.093 Da, and it grows as sulfur, chlorine, bromine or metals enter the formula.
- Adducts decide what you actually see. A peak 21.981942 Da above [M+H]+ is the sodium adduct, not a second compound.
- Parentheses, nested groups and dot hydrates are parsed properly here, which is exactly where simpler formula tools quietly go wrong.
- Quick Answer
- How to use the exact mass calculator
- The exact mass formula, and where the masses come from
- Worked example: caffeine, checked three ways
- Exact mass vs average molar mass: which number does your job need?
- Reading the adduct ions, and judging a match in ppm
- What competing calculators miss
- Frequently asked questions
- Add This Calculator to Your Website
- References
How to use the exact mass calculator
Type one formula, click Calculate exact mass, and read five numbers plus a breakdown table. The results stay hidden until you calculate.
- Enter the formula as written: element symbols with proper casing (Na, not NA or na), counts straight after the symbol, no spaces needed. C8H10N4O2 is pre-filled as the worked example.
- Use parentheses for groups: Ca(OH)2 and Al2(SO4)3 expand correctly, and groups can nest, as in ((CH3)2)2.
- Write hydrates with a dot: CuSO4.5H2O, with a period or a middle dot. The number after the dot multiplies the whole group that follows it.
- Read the right line for your job: exact mass and the adduct m/z values for mass spectrometry, average molar mass for weighing and solution work. The badge under the results states how far the exact mass sits from the average, and the breakdown table shows each element’s contribution so you can audit the sum by hand.
Two things the parser will not accept, by design: square brackets (stripping them out of K4[Fe(CN)6] would change what the formula means, so the tool stops with an error rather than guessing) and isotope labels such as [13C]. Every rejection comes with a specific message naming the problem, from “Unknown element: Xx” to “Unbalanced parenthesis: missing closing bracket.”
The exact mass formula, and where the masses come from
Exact mass = the sum over all elements of (isotopic mass × number of atoms). Each element contributes the mass of its most abundant isotope, taken from the isotopic composition data published by the National Institute of Standards and Technology (NIST), while the average molar mass beside it uses the standard atomic weights maintained by the Commission on Isotopic Abundances and Atomic Weights (CIAAW).
[M+H]+ = Exact mass + 1.007276 | [M+Na]+ = Exact mass + 22.989218 | [M-H]- = Exact mass − 1.007276
The adduct constants are ion masses, not atom masses. A proton weighs 1.007276 Da because it is a hydrogen atom (1.007825 Da) minus its electron, and the sodium figure is the sodium cation on the same basis, consistent with the fundamental constants collected by NIST CODATA. That half-millidalton distinction is invisible on a bench balance and decisive on a high-resolution instrument: at m/z 195, confusing the hydrogen atom with the proton shifts your target by about 2.8 ppm, which is most of a typical 5 ppm identification window.
Worked example: caffeine, checked three ways
Caffeine, C8H10N4O2, is pre-filled in the calculator. Running it gives an exact mass of 194.080376 Da, and the breakdown table shows why: carbon contributes 8 × 12.000000 = 96.000000 Da, hydrogen 10 × 1.007825 = 10.078250 Da, nitrogen 4 × 14.003074 = 56.012296 Da and oxygen 2 × 15.994915 = 31.989829 Da.
The same arithmetic, run on five more formulas, produces the checks below. Every row is a real run of this calculator, so you can type any of them in and get the same figures back, to the sixth decimal.
| Formula | Exact mass (Da) | Average molar mass (g/mol) | [M+H]+ m/z |
|---|---|---|---|
| H2O (water) | 18.010565 | 18.015 | 19.017841 |
| C6H12O6 (glucose) | 180.063388 | 180.156 | 181.070664 |
| Ca(OH)2 (calcium hydroxide) | 73.968070 | 74.092 | 74.975346 |
| Al2(SO4)3 (aluminium sulfate) | 341.818266 | 342.132 | 342.825542 |
| CuSO4.5H2O (copper sulfate pentahydrate) | 248.934151 | 249.677 | 249.941427 |
Hand-check the glucose row the way the formula section sets it out: carbon 6 × 12.000000 = 72.000000, hydrogen 12 × 1.007825 = 12.093900, oxygen 6 × 15.994915 = 95.969488, and 72.000000 + 12.093900 + 95.969488 = 180.063388 Da. The calculator’s breakdown table performs that same audit trail for any formula you enter, which is the fastest way to catch a mistyped count before it becomes a misassigned peak.
Exact mass vs average molar mass: which number does your job need?
Use the exact mass when a mass spectrometer is involved, and the average molar mass when a balance is. The two answer different questions: exact mass describes one specific isotopic composition of one molecule, while average molar mass describes a mole of the substance as it occurs in nature, with all isotopes blended in their natural proportions.
| Question | Exact (monoisotopic) mass | Average molar mass |
|---|---|---|
| Built from | The most abundant isotope of each element only | Standard atomic weights, blending all natural isotopes |
| Use it for | Identifying unknowns, confirming a formula, matching measured m/z within a few ppm | Weighing reagents, preparing solutions, stoichiometry |
| Units | Daltons (Da) per molecule | Grams per mole (numerically equal scale) |
| Glucose value | 180.063388 Da | 180.156 g/mol |
This boundary is also what separates this page from its neighbours. The published mass calculator deals with mass as a quantity in its own right; the average atomic mass calculator works one element at a time, blending that element’s isotopes by abundance; and the compound mass calculator covers compound mass from the bench-chemistry side. This page is the mass spectrometry one: a full formula in, the monoisotopic mass and its adduct ions out. Once you have the average molar mass from here, it is also the figure that feeds solution work such as the dilution molarity calculator, where grams become moles before any dilution is planned.
Reading the adduct ions, and judging a match in ppm
In positive-mode electrospray, molecules usually appear protonated: [M+H]+ at M + 1.007276. Sodium adducts [M+Na]+ at M + 22.989218 are the classic confirmation peak, sitting 21.981942 Da above [M+H]+. In negative mode, look for the deprotonated [M-H]- at M − 1.007276. If your spectrum shows a peak about 22 Da above the expected [M+H]+, you are almost certainly looking at the sodium adduct of the same compound, not a new one.
Judge the match in parts per million: mass error (ppm) = (measured m/z − calculated m/z) ÷ calculated m/z × 1,000,000. Suppose caffeine’s [M+H]+ is measured at 195.0877 against the calculated 195.087652: the difference is 0.000048 Da, which is 0.25 ppm, a confident match on any modern high-resolution instrument. The formula-assignment discipline behind that judgement, checking candidate formulas against mass accuracy, isotope fit and chemical sense together, is set out in Kind and Fiehn’s Seven Golden Rules paper in BMC Bioinformatics, and reference spectra for known compounds can be cross-checked in the NIST Chemistry WebBook. Small ppm differences come from instrument calibration; larger gaps usually mean a wrong formula assignment, an unexpected adduct, or a different charge state. Note that all three adduct values here assume a single charge: for a doubly charged ion you would add two protons and halve the result, which this tool does not do.
What competing calculators miss
Formula-to-mass tools split into three camps, and each leaves something on the table:
- Element-count tools (Savvy Calculator’s exact mass page): four fixed boxes for carbon, hydrogen, nitrogen and oxygen counts. Fine for simple organics, useless the moment sulfur, a metal or a halogen appears, and there is no formula to paste, no parentheses and no breakdown to audit.
- Average-mass tools (WebQC and similar molar mass pages): full formula parsing and percent composition, but the headline number is the average molecular weight. Paste a formula there for mass spec work and you are off by about 0.09 Da on glucose before you start, roughly 500 ppm of self-inflicted error.
- Software libraries (OrgMassSpecR, metamorphr and similar packages): precise and flexible, with isotope labelling and charge handling, but they need R or Python, an install and a script. Nothing you can open on a phone at the instrument.
- The gap this page fills: a real formula parser in the browser, 83 elements with high-precision isotopic masses, parentheses, nesting and hydrates handled, the exact mass and the average side by side so you can see which one your task needs, all three common adducts computed, and a per-element breakdown that shows its working. No install, no four-element ceiling, no average mass dressed up as an exact one.
Frequently asked questions
Exact mass (monoisotopic mass) is the calculated mass of a molecule using the mass of the most abundant isotope of each element, for example 12.000000 for carbon-12 and 1.007825 for hydrogen-1. High-resolution instruments measure this value to identify compounds.
Exact mass uses single-isotope masses; molar mass (molecular weight) uses average atomic weights that blend all natural isotopes. For glucose, exact mass is 180.063388 Da while average molar mass is 180.156 g/mol. Use exact mass for mass spec and average mass for weighing reagents.
Yes. Parentheses group atoms and multiply everything inside, including nested groups: Ca(OH)2, Al2(SO4)3. Dot hydrates also work: CuSO4.5H2O.
They are the adduct ions most often seen in positive-mode mass spectrometry: the protonated molecule at M + 1.007276 and the sodium adduct at M + 22.989218. The calculator reports both so you can match peaks directly.
Small differences come from instrument calibration and are reported in ppm. Larger gaps usually mean a wrong formula assignment, an unexpected adduct (sodium instead of proton), or a different charge state.
Daltons (Da), also called unified atomic mass units (u or amu). One dalton is numerically equal to one g/mol, so the exact mass is also the exact molar mass.
83 elements from hydrogen through uranium, each with a high-precision monoisotopic mass and its standard average atomic weight. Enter symbols with correct casing, such as Na rather than na.
No. The parser reads plain element symbols only, so a formula such as K4[Fe(CN)6] or an isotope label such as [13C] stops with an “Unexpected character” error instead of a silently wrong mass. Remove the brackets only if the plain formula still describes the same compound, and use the neutral formula for labelled compounds.
Add This Calculator to Your Website
Embed this calculator on your own site with the code below. Pick a size to preview it live, then copy the code.
Powered by Calculator Zilo
References
- National Institute of Standards and Technology. Atomic Weights and Isotopic Compositions with Relative Atomic Masses. Accessed October 21, 2026.
- Commission on Isotopic Abundances and Atomic Weights (CIAAW). Atomic Weights of the Elements. Accessed October 21, 2026.
- National Institute of Standards and Technology. Fundamental Physical Constants (CODATA). Accessed October 21, 2026.
- Bureau International des Poids et Mesures (BIPM). The International System of Units (SI Brochure). Accessed October 21, 2026.
- Kind, T. and Fiehn, O. Seven Golden Rules for heuristic filtering of molecular formulas obtained by accurate mass spectrometry, BMC Bioinformatics. Accessed October 21, 2026.
- National Institute of Standards and Technology. NIST Chemistry WebBook. Accessed October 21, 2026.
