Molarity Calculator with Molar Mass & Dilution
NEWMolarity calculator: solve M = n/V for mass, volume, concentration or molar mass, get molar mass from a formula and solve C1V1 = C2V2 dilutions. Free, in-browser.
Runs 100% in your browser — your input is never uploaded or stored on our servers.
Molar mass from formula
Case-sensitive. Brackets ( ) [ ] and hydrate dots (· . *) are supported.
NaCl: 58.44 g/mol
| Element | Atoms | Ar | Mass % |
|---|---|---|---|
| Na | 1 | 22.99 | 39.34 |
| Cl | 1 | 35.45 | 60.66 |
1 × 22.99 + 1 × 35.45 = 58.44 g/mol
Amount of substance: 0.1 mol
- V = 500 mL = 0.5 L
- n = C × V = 0.2 mol/L × 0.5 L = 0.1 mol
- m = n × M_r = 0.1 mol × 58.44 g/mol = 5.844 g
Quick Examples
Typical inputs and the results this tool produces.
Overview
Molarity is the number of moles of solute per litre of solution: M = n ÷ V, with n = mass ÷ molar mass. This molarity calculator solves that relationship for whichever value you are missing, whether that is the concentration, the mass to weigh out, the volume to make up or an unknown molar mass.
Type a chemical formula such as H2SO4, Ca(OH)2 or CuSO4·5H2O and the molar mass is calculated from IUPAC standard atomic weights (2021 table, five significant figures) for all 118 elements, with an element-by-element breakdown and mass percentages. Units cover kg, g, mg and µg, L, mL and µL, and M, mM, µM and nM.
A second mode solves dilutions with C1V1 = C2V2. Every answer lists the working step by step, which makes it handy for chemistry homework and lab prep. Everything runs in your browser.
Why use this tool?
- Solve for any one unknown
- Molar mass straight from the formula
- Handles hydrates and brackets
- Dilution C1V1 = C2V2 built in
- Step-by-step working for homework
Features
Four unknowns
Solve for concentration, mass, volume or molar mass from the other three.
Formula parser
Reads (OH)2, [Fe(CN)6], hydrate dots like ·5H2O and subscripts like H₂O.
Element breakdown
Atom counts, atomic weights and mass percent for each element.
Unit selectors
kg/g/mg/µg, L/mL/µL and M/mM/µM/nM, converted for you in the working.
Dilution mode
C1V1 = C2V2 for any one value, plus how much solvent to add.
Shows the working
Each step, n = m ÷ Mr and C = n ÷ V, is listed with the numbers used.
How to Use
Enter the formula
Type a formula or pick a sample; the molar mass field fills in automatically.
Choose "Solve for"
Select Concentration, Mass, Volume or Molar mass.
Fill in the rest
Enter the other values and pick their units; the result unit can be changed too.
Dilute if needed
Switch the mode to "Dilution", choose the unknown and enter the other three values.