Solution Prep & Molarity Calculator
Quickly calculate the required mass needed to prepare a solution of this substance. Simply enter your target concentration and volume.
Was this tool helpful?

The Molecular Weight Calculator is a simple, fast, and accurate web-based tool that computes the molecular (molar) mass of chemical compounds from their molecular formula. It accepts a broad range of formula formats, including organic, inorganic, ionic, hydrated salts, and compounds with parentheses or dot notation, and returns the mass in grams per mole (g·mol⁻¹), along with a parsed composition breakdown.
This tool is ideal for students, laboratory technicians, chemists, and anyone who needs quick, reliable molecular weights for stoichiometry, solution preparation, reaction planning, or educational purposes. Try the Molecular Weight Calculator now—type a chemical formula into the input field and press Calculate.
Key features
- Instant calculation: Type or paste a molecular formula and receive the result immediately.
- Biopolymer support: Calculates molecular weights for protein, DNA, and RNA sequences, as well as small molecules and salts.
- Flexible input formats: Supports standard formula conventions including parentheses (e.g., Al2(SO4)3), dot notation for hydrates (e.g., CuSO4·5H2O), and biopolymer sequence input modes.
- Breakdown of elements: Displays the elemental composition and the contribution (mass and percentage) of each element to the total molecular weight.
- Standard atomic weights: Uses up-to-date IUPAC-standard atomic weights for calculations to ensure reliable results.
- Clear output units: Results are reported in Daltons (Da), which are numerically equivalent to grams per mole (g·mol⁻¹).
How it works
- The calculator first determines the input type: molecular formula (e.g., C6H12O6), protein sequence, DNA sequence, or RNA sequence.
- Each element (for chemical formulas) or residue/nucleotide (for biopolymers) is mapped to its standard molecular or atomic mass.
- The tool multiplies each mass by its count or frequency and sums all contributions.
- The final molecular weight is reported in Daltons (Da) or equivalently g·mol⁻¹, along with a detailed composition table.
Table: Atomic Weights of Elements
| Atomic Number (Z) | Symbol | Element Name | Standard Atomic Weight (amu or g/mol) | Period | Group | Chemical Category |
|---|---|---|---|---|---|---|
| 1 | H | Hydrogen | 1.008 | 1 | 1 | Reactive nonmetal |
| 2 | He | Helium | 4.0026 | 1 | 18 | Noble gas |
| 3 | Li | Lithium | 6.94 | 2 | 1 | Alkali metal |
| 4 | Be | Beryllium | 9.0122 | 2 | 2 | Alkaline earth metal |
| 5 | B | Boron | 10.81 | 2 | 13 | Metalloid |
| 6 | C | Carbon | 12.011 | 2 | 14 | Reactive nonmetal |
| 7 | N | Nitrogen | 14.007 | 2 | 15 | Reactive nonmetal |
| 8 | O | Oxygen | 15.999 | 2 | 16 | Reactive nonmetal |
| 9 | F | Fluorine | 18.998 | 2 | 17 | Reactive nonmetal (Halogen) |
| 10 | Ne | Neon | 20.180 | 2 | 18 | Noble gas |
| 11 | Na | Sodium | 22.990 | 3 | 1 | Alkali metal |
| 12 | Mg | Magnesium | 24.305 | 3 | 2 | Alkaline earth metal |
| 13 | Al | Aluminum | 26.982 | 3 | 13 | Post-transition metal |
| 14 | Si | Silicon | 28.085 | 3 | 14 | Metalloid |
| 15 | P | Phosphorus | 30.974 | 3 | 15 | Reactive nonmetal |
| 16 | S | Sulfur | 32.06 | 3 | 16 | Reactive nonmetal |
| 17 | Cl | Chlorine | 35.45 | 3 | 17 | Reactive nonmetal (Halogen) |
| 18 | Ar | Argon | 39.948 | 3 | 18 | Noble gas |
| 19 | K | Potassium | 39.098 | 4 | 1 | Alkali metal |
| 20 | Ca | Calcium | 40.078 | 4 | 2 | Alkaline earth metal |
| 21 | Sc | Scandium | 44.956 | 4 | 3 | Transition metal |
| 22 | Ti | Titanium | 47.867 | 4 | 4 | Transition metal |
| 23 | V | Vanadium | 50.942 | 4 | 5 | Transition metal |
| 24 | Cr | Chromium | 51.996 | 4 | 6 | Transition metal |
| 25 | Mn | Manganese | 54.938 | 4 | 7 | Transition metal |
| 26 | Fe | Iron | 55.845 | 4 | 8 | Transition metal |
| 27 | Co | Cobalt | 58.933 | 4 | 9 | Transition metal |
| 28 | Ni | Nickel | 58.693 | 4 | 10 | Transition metal |
| 29 | Cu | Copper | 63.546 | 4 | 11 | Transition metal |
| 30 | Zn | Zinc | 65.38 | 4 | 12 | Transition metal |
| 31 | Ga | Gallium | 69.723 | 4 | 13 | Post-transition metal |
| 32 | Ge | Germanium | 72.630 | 4 | 14 | Metalloid |
| 33 | As | Arsenic | 74.922 | 4 | 15 | Metalloid |
| 34 | Se | Selenium | 78.971 | 4 | 16 | Reactive nonmetal |
| 35 | Br | Bromine | 79.904 | 4 | 17 | Reactive nonmetal (Halogen) |
| 36 | Kr | Krypton | 83.798 | 4 | 18 | Noble gas |
| 37 | Rb | Rubidium | 85.468 | 5 | 1 | Alkali metal |
| 38 | Sr | Strontium | 87.62 | 5 | 2 | Alkaline earth metal |
| 39 | Y | Yttrium | 88.906 | 5 | 3 | Transition metal |
| 40 | Zr | Zirconium | 91.224 | 5 | 4 | Transition metal |
| 41 | Nb | Niobium | 92.906 | 5 | 5 | Transition metal |
| 42 | Mo | Molybdenum | 95.95 | 5 | 6 | Transition metal |
| 43 | Tc | Technetium | [98] | 5 | 7 | Transition metal |
| 44 | Ru | Ruthenium | 101.07 | 5 | 8 | Transition metal |
| 45 | Rh | Rhodium | 102.91 | 5 | 9 | Transition metal |
| 46 | Pd | Palladium | 106.42 | 5 | 10 | Transition metal |
| 47 | Ag | Silver | 107.87 | 5 | 11 | Transition metal |
| 48 | Cd | Cadmium | 112.41 | 5 | 12 | Transition metal |
| 49 | In | Indium | 114.82 | 5 | 13 | Post-transition metal |
| 50 | Sn | Tin | 118.71 | 5 | 14 | Post-transition metal |
| 51 | Sb | Antimony | 121.76 | 5 | 15 | Metalloid |
| 52 | Te | Tellurium | 127.60 | 5 | 16 | Metalloid |
| 53 | I | Iodine | 126.90 | 5 | 17 | Reactive nonmetal (Halogen) |
| 54 | Xe | Xenon | 131.29 | 5 | 18 | Noble gas |
| 55 | Cs | Cesium | 132.91 | 6 | 1 | Alkali metal |
| 56 | Ba | Barium | 137.33 | 6 | 2 | Alkaline earth metal |
| 57 | La | Lanthanum | 138.91 | 6 | 3 | Lanthanide |
| 58 | Ce | Cerium | 140.12 | 6 | – | Lanthanide |
| 59 | Pr | Praseodymium | 140.91 | 6 | – | Lanthanide |
| 60 | Nd | Neodymium | 144.24 | 6 | – | Lanthanide |
| 61 | Pm | Promethium | [145] | 6 | – | Lanthanide |
| 62 | Sm | Samarium | 150.36 | 6 | – | Lanthanide |
| 63 | Eu | Europium | 151.96 | 6 | – | Lanthanide |
| 64 | Gd | Gadolinium | 157.25 | 6 | – | Lanthanide |
| 65 | Tb | Terbium | 158.93 | 6 | – | Lanthanide |
| 66 | Dy | Dysprosium | 162.50 | 6 | – | Lanthanide |
| 67 | Ho | Holmium | 164.93 | 6 | – | Lanthanide |
| 68 | Er | Erbium | 167.26 | 6 | – | Lanthanide |
| 69 | Tm | Thulium | 168.93 | 6 | – | Lanthanide |
| 70 | Yb | Ytterbium | 173.05 | 6 | – | Lanthanide |
| 71 | Lu | Lutetium | 174.97 | 6 | 3 | Lanthanide |
| 72 | Hf | Hafnium | 178.49 | 6 | 4 | Transition metal |
| 73 | Ta | Tantalum | 180.95 | 6 | 5 | Transition metal |
| 74 | W | Tungsten | 183.84 | 6 | 6 | Transition metal |
| 75 | Re | Rhenium | 186.21 | 6 | 7 | Transition metal |
| 76 | Os | Osmium | 190.23 | 6 | 8 | Transition metal |
| 77 | Ir | Iridium | 192.22 | 6 | 9 | Transition metal |
| 78 | Pt | Platinum | 195.08 | 6 | 10 | Transition metal |
| 79 | Au | Gold | 196.97 | 6 | 11 | Transition metal |
| 80 | Hg | Mercury | 200.59 | 6 | 12 | Transition metal |
| 81 | Tl | Thallium | 204.38 | 6 | 13 | Post-transition metal |
| 82 | Pb | Lead | 207.2 | 6 | 14 | Post-transition metal |
| 83 | Bi | Bismuth | 208.98 | 6 | 15 | Post-transition metal |
| 84 | Po | Polonium | [209] | 6 | 16 | Metalloid |
| 85 | At | Astatine | [210] | 6 | 17 | Metalloid |
| 86 | Rn | Radon | [222] | 6 | 18 | Noble gas |
| 87 | Fr | Francium | [223] | 7 | 1 | Alkali metal |
| 88 | Ra | Radium | [226] | 7 | 2 | Alkaline earth metal |
| 89 | Ac | Actinium | [227] | 7 | 3 | Actinide |
| 90 | Th | Thorium | 232.04 | 7 | – | Actinide |
| 91 | Pa | Protactinium | 231.04 | 7 | – | Actinide |
| 92 | U | Uranium | 238.03 | 7 | – | Actinide |
| 93 | Np | Neptunium | [237] | 7 | – | Actinide |
| 94 | Pu | Plutonium | [244] | 7 | – | Actinide |
| 95 | Am | Americium | [243] | 7 | – | Actinide |
| 96 | Cm | Curium | [247] | 7 | – | Actinide |
| 97 | Bk | Berkelium | [247] | 7 | – | Actinide |
| 98 | Cf | Californium | [251] | 7 | – | Actinide |
| 99 | Es | Einsteinium | [252] | 7 | – | Actinide |
| 100 | Fm | Fermium | [257] | 7 | – | Actinide |
| 101 | Md | Mendelevium | [258] | 7 | – | Actinide |
| 102 | No | Nobelium | [259] | 7 | – | Actinide |
| 103 | Lr | Lawrencium | [266] | 7 | 3 | Actinide |
| 104 | Rf | Rutherfordium | [267] | 7 | 4 | Transition metal |
| 105 | Db | Dubnium | [268] | 7 | 5 | Transition metal |
| 106 | Sg | Seaborgium | [269] | 7 | 6 | Transition metal |
| 107 | Bh | Bohrium | [270] | 7 | 7 | Transition metal |
| 108 | Hs | Hassium | [269] | 7 | 8 | Transition metal |
| 109 | Mt | Meitnerium | [278] | 7 | 9 | Transition metal |
| 110 | Ds | Darmstadtium | [281] | 7 | 10 | Transition metal |
| 111 | Rg | Roentgenium | [282] | 7 | 11 | Transition metal |
| 112 | Cn | Copernicium | [285] | 7 | 12 | Transition metal |
| 113 | Nh | Nihonium | [286] | 7 | 13 | Post-transition metal |
| 114 | Fl | Flerovium | [289] | 7 | 14 | Post-transition metal |
| 115 | Mc | Moscovium | [290] | 7 | 15 | Post-transition metal |
| 116 | Lv | Livermorium | [293] | 7 | 16 | Post-transition metal |
| 117 | Ts | Tennessine | [294] | 7 | 17 | Reactive nonmetal (Halogen) |
| 118 | Og | Oganesson | [294] | 7 | 18 | Noble gas |
Supported input examples
- Simple molecules: H2O, CO2, C6H6
- Parentheses and multipliers: Ca(OH)2, Al2(SO4)3
- Hydrates (dot notation): CuSO4·5H2O, CoCl2·6H2O
- Complex organics: C27H46O (cholesterol fragment example)
- Charged species (charge is parsed but does not affect mass): NH4+, SO4^2-
- Fractional stoichiometry for advanced users: Fe0.5O (the tool will warn and treat counts numerically)
Example calculations
- Water (H₂O): H2O → 2 × 1.00794 + 15.999 = 18.015 g·mol⁻¹ (value shown with chosen precision)
- Glucose (C₆H₁₂O₆): C6H12O6 → 180.156 g·mol⁻¹
- Calcium hydroxide (Ca(OH)₂): Ca(OH)2 → 74.093 g·mol⁻¹
- Copper(II) sulfate pentahydrate: CuSO4·5H2O → 249.685 g·mol⁻¹
Input rules and tips
- Use proper element symbols: capital letter followed by optional lowercase (e.g., Fe, Cl, Mg).
- Avoid spaces inside formulas; if present, they will be ignored or prompt a warning.
- Parentheses may be nested (e.g., K4[Fe(CN)6])—the parser supports common nesting patterns, but extremely complex or malformed formulas may trigger an error.
- For hydrates, use a middle dot (keyboard alternative: .) or a space followed by a number: CuSO4·5H2O or CuSO4 5H2O.
- Charges can be included for clarity (e.g., NH4+), but do not change the calculated mass.
Accuracy…
The calculator uses widely accepted, standard atomic weights (IUPAC-recommended), which represent the best single-value estimate for naturally occurring elemental isotopic composition. For elements with significant isotopic variation or when a more precise isotopic composition is required (e.g., enriched isotopes), explicitly specify the isotopic masses in the input if the tool provides an advanced mode. For compounds where isotopic composition matters (research-grade work), verify results against laboratory-grade data or use isotope-specific calculation tools.
The tool reports values in g·mol⁻¹ and rounds the displayed result according to the selected precision while keeping more digits in the calculation backend.
Error handling and common warnings
The calculator includes robust validation and error handling to ensure reliable results. If an unknown element symbol is entered—one that does not correspond to any element in the periodic table (for example, Xy123)—the tool will flag the input and notify the user. In cases of a malformed formula, such as mismatched parentheses or incorrect numeric placement, a clear error message is displayed along with guidance on how to correct the structure. Additionally, when fractional stoichiometry is provided (e.g., Fe0.5O), the calculator issues a warning to confirm that the fractional values are intentional, then proceeds with a numerical calculation based on the given input.