Skip to main content

Science & lab

Molarity Calculator: Mass, Volume & Molecular Weight

Calculate molarity, mass, volume, or molecular weight. M = m/(MWร—V). Common compounds.

Settings

Calculate For

Common Compounds

Select a compound to auto-fill molecular weight, or enter manually below.

Molecular Weight (MW)

Mass of Solute

Volume of Solution

Results

Enter the known values to calculate

Information hub

The core formula

M = molarity (mol/L), m = mass of solute (g), MW = molecular weight (g/mol), V = volume of solution (L).

Mass (g)รท(MW ร— V)=Molarity

Common units

  • M = mol/L
  • mM = mmol/L
  • ยตM = ยตmol/L

Volume in L; mass in g; MW in g/mol.

Molarity vs molality: donโ€™t mix them up

Molarity is moles of solute per liter of solution. It depends on the total volume of the mixture (solute + solvent). When you add more solute or change temperature, the volume can change, so molarity can change.

Molality is moles of solute per kilogram of solvent only. It ignores the volume of the solute. Molality is temperature-independent and preferred for colligative properties (boiling-point elevation, freezing-point depression).

M=nVsolutionM = \frac{n}{V_{\text{solution}}}vsm=nmsolventm = \frac{n}{m_{\text{solvent}}}

This calculator uses molarity. For dilute aqueous solutions near room temperature, molarity and molality are often close, but they are not the same.

Molarity: Concentration from Mass, Volume & MW

Divide mass by (MW ร— volume) to get molarity, or rearrange to solve for mass, volume, or MW. Grab a compound from the search list to fill molecular weight, or type your own.

Core Concepts

The Formula

M=mMWร—VM = \frac{m}{MW \times V}. Rearrange to get mass m=Mโ‹…MWโ‹…Vm = M \cdot MW \cdot V, volume V=mMโ‹…MWV = \frac{m}{M \cdot MW}, or MW. All in base units: mol/L, g, g/mol, L.

Common Compounds

Type NaCl, HCl, NaOH, or glucose in the search box, selecting one fills molecular weight. Handy for quick setups; you can still edit the MW field.

Molarity vs Molality

Molarity: moles per liter of solution. Molality: moles per kilogram of solvent. Mix them up and your colligative-property numbers will be wrong.

Units Supported

Concentration: M, mM, ยตM, nM, mol/mยณ, plus g/L, mg/L, ppm, ppb. Mass: g, mg, kg, t, Da, lb, oz. Volume: L, mL, mยณ, cmยณ, gal, qt, pt, and more.

Molarity Calculator: Mass, Volume & Molecular Weight

Find molarity, mass, volume, or MW from the other three. Supports M, mM, ยตM, ppm, g/L. Common compounds included. No sign-up, runs in your browser.

What This Calculator Does

This molarity calculator solves the equation M=mMWร—VM = \frac{m}{MW \times V} for any of its four variables: molarity (M), mass (m), molecular weight (MW), or volume (V). Select which variable to calculate, fill in the other three, and the result appears instantly. A built-in compound search lets you look up common reagents. NaCl, HCl, NaOH, glucose, and hundreds more, to auto-fill the molecular weight field. The tool accepts a wide range of units: concentration in M, mM, ยตM, nM, mol/mยณ, g/L, mg/L, ppm, or ppb; mass in grams, milligrams, kilograms, or pounds; and volume in liters, milliliters, cubic meters, gallons, and more. All conversions are handled internally, so you can work in whatever units your protocol uses. Results are suitable for solution preparation, dilution planning, and stoichiometry.
  • Solve modes:
    Molarity, Mass, Volume, or Molecular Weight, toggle with one click.
  • Unit support:
    Concentration (M to ppb), mass (g to lb), volume (L to gal). Internal SI conversion ensures accuracy.

How the Math Works

The core equation is M=mMWร—VM = \frac{m}{MW \times V}, where M is molarity in mol/L, m is solute mass in grams, MW is molecular weight in g/mol, and V is solution volume in liters. Rearranging gives three additional forms: m=Mร—MWร—Vm = M \times MW \times V for mass, V=mMร—MWV = \frac{m}{M \times MW} for volume, and MW=mMร—VMW = \frac{m}{M \times V} for molecular weight. As a worked example, suppose you dissolve 5.844 g of NaCl (MW = 58.44 g/mol) in enough water to make 1.000 L of solution. Molarity = 5.844 / (58.44 ร— 1.000) = 0.1000 M. If you instead need to know how much NaCl to weigh for a 0.5 M solution in 250 mL, rearrange: m = 0.5 ร— 58.44 ร— 0.250 = 7.305 g. The calculator performs this algebra for you, select the unknown variable and enter the rest.

How to Use This Calculator

Start by choosing what to solve for. Molarity, Mass, Volume, or Molecular Weight, using the Calculate For selector. Next, search the compound dropdown to auto-fill molecular weight (e.g., type "NaCl" and select sodium chloride, MW 58.44 g/mol), or enter a custom MW manually. Fill in the remaining known values in any supported unit: the calculator converts to base SI internally. For example, to find the molarity of a solution made from 11.69 g of NaCl in 500 mL of water, select Molarity, enter MW 58.44, mass 11.69 g, and volume 500 mL. The result, 0.2 M, appears instantly. You can switch concentration units (M, mM, ยตM, ppm, g/L) and the displayed result updates without recalculating. Use the output directly for dilution planning, reagent preparation, or as input for stoichiometric calculations.

How to Calculate Molarity

The defining equation is M=mMWร—VM = \frac{m}{MW \times V}. You need mass mm in grams, molecular weight MWMW in g/mol, and volume VV in liters. Rearranging: mass m=Mร—MWร—Vm = M \times MW \times V; volume V=mMร—MWV = \frac{m}{M \times MW}; molecular weight MW=mMร—VMW = \frac{m}{M \times V}. Toggle "Calculate For" to solve for whichever variable you don't know.

When Molarity and Molality Diverge

Molarity counts moles per liter of the whole mixture; molality counts moles per kilogram of solvent. Add more solute and the total volume grows, molarity drops a bit. Molality, based on solvent mass, doesn't care. For boiling-point elevation and freezing-point depression, textbooks use molality for that reason. In dilute aqueous work, the two are close enough that many lab protocols don't bother distinguishing.

Molarity Calculator FAQ

How do I calculate molarity from mass and volume?

Plug into M=mMWร—VM = \frac{m}{MW \times V}: mass in g, MW in g/mol, volume in L. Example, 5.84 g NaCl (MW 58.44) in 1 L gives 0.1 M. Search for NaCl in the compound dropdown to fill MW, then enter mass and volume.

What is the difference between molarity and molality?

Molarity divides by the total volume of the solution; molality divides by the mass of solvent only. Same solute, different denominators. At low concentration in water they're almost the same. At high concentration or when temperature swings, molarity shifts (volume changes) but molality holds steady.

How do I make a 1 M NaCl solution?

Weigh 58.44 g NaCl and add water until the total volume is 1 L. Don't add 58.44 g to 1 L of water, the solute adds volume, so you'd end up slightly above 1 L and slightly under 1 M.

Can I use ppm or g/L for concentration?

Yes. The calculator accepts both molarity units (M, mM, ยตM) and mass concentration (g/L, mg/L, ppm, ppb). For mass concentration it converts to mol/L using the molecular weight you enter.

Science & Lab Reference Note

Educational Use: These tools use standard scientific formulas and accepted constants. Results are intended for learning, homework, and general reference, not for regulated lab work, industrial processes, or clinical applications.

Verification Recommended: Real-world conditions (purity, temperature, pressure, humidity) affect outcomes. For research, manufacturing, or safety-critical work, confirm with a qualified professional or calibrated lab equipment.

Not Professional Advice: This site does not provide chemical, medical, or engineering advice. All calculations run locally in your browser; no data is stored or transmitted.

ยฉ 2026 CalcRegistry Reference Last Logic Update: May 2026Free Online Utility Tools