Molarity Calculator

Calculate molarity, moles, molar mass and solution concentration.

Auto-filled, or enter manually
Try:
Molarity
1 M
M = mol/L

Moles of solute per litre of final solution.

Step-by-step calculation

Solution concentration visual

Illustrative
Soluteparticles1 Mper litre

Schematic only: particle symbols illustrate concentration, not the actual number of molecules or solution colour.

Molarity Calculator for Chemistry Students — Moles, Mass and Solution Volume

A molarity calculator helps you find the concentration of a solution from the amount of dissolved substance and the total volume of the solution. Molarity is one of the most frequently used measurements in chemistry practicals, laboratory assignments, introductory science courses and questions about preparing solutions. It is especially useful when a problem gives a mass in grams and a solution volume in millilitres, but asks for an answer in moles per litre.

Our free online molarity calculator handles those steps in one place. The first tab calculates molarity from mass, chemical formula or an entered molar mass, and final volume. The second tab finds an unknown concentration, number of moles or solution volume. A third converts between molar and mass-concentration units, while the fourth works as a molecular mass calculator for common chemical formulas.

This is intended for students studying chemistry in India, the United States, the United Kingdom and elsewhere. You can enter millilitres, litres and microlitres without doing every unit conversion by hand. Results include an explanation of the method, so you can reproduce the calculation in your own notebook rather than memorising a calculator output.

Quick start: Select Mass → M, type NaCl as the chemical formula, enter 5.844 g, and use a final solution volume of 100 mL. The result is approximately 1 M. Open the steps to see how grams become moles before the solution volume is converted to litres.

What Is Molarity?

Molarity is the amount of a dissolved substance measured in moles, divided by the volume of the entire solution measured in litres. The usual symbol is M, and its common unit is mol/L. In chemistry, 1 M means one mole of solute in one litre of final solution, not one mole added to one litre of solvent. Those two descriptions can produce different final volumes and therefore different concentrations.

The definition is also called amount-of-substance concentration. A molarity concentration of 0.5 M means that every litre of solution contains 0.5 mol of the solute. When the volume changes without adding or removing solute, the concentration changes. A concentrated solution contains more moles per litre than a dilute one, although “concentrated” and “dilute” are comparative rather than fixed numerical categories.

The most useful formula for molarity is simple and applies to salts, molecular compounds and solutions of many other substances, as long as the solute quantity and solution volume are known.

Molarity (M) = Moles of solute (mol) ÷ Volume of solution (L)

This molarity equation is often written M = n/V. When your question gives mass rather than moles, calculate n = mass ÷ molar mass first. The resulting molarity calculator formula is M = mass (g) ÷ [molar mass (g/mol) × volume (L)]. It produces the same result and avoids confusing grams with moles.

How to Calculate Molarity Step by Step

Students searching how to calculate molarity, how to calculate molarity of a solution or formula to find molarity usually need the same four-step approach. Identify the mass of solute, find its molar mass, calculate the number of moles and divide by the final solution volume in litres. If the moles are already supplied, you can skip the mass and molar-mass steps.

  1. Write down the chemical formula and the mass of solute. Convert milligrams to grams if necessary.
  2. Find the molar mass of that formula, in g/mol, using the chemical formula calculator or an appropriately verified value.
  3. Divide the solute mass in grams by the molar mass to get moles.
  4. Convert the final solution volume to litres and divide moles by litres to obtain M.

Worked example: 5.844 grams of sodium chloride in 100 mL

Sodium chloride is NaCl. Using rounded average atomic masses, sodium contributes approximately 22.990 g/mol and chlorine 35.45 g/mol, so the molar mass is approximately 58.44 g/mol. The amount of salt is 5.844 ÷ 58.44 ≈ 0.1000 mol. Since 100 mL = 0.100 L, the molarity is 0.1000 ÷ 0.100 = approximately 1.00 M. This is a common illustration of how a mass molarity calculator combines molar mass with solution volume.

In laboratory preparation, a student would dissolve the solute and adjust the total volume to 100 mL, typically using appropriate volumetric equipment. It would not be correct to assume that adding the salt to exactly 100 mL of water must leave the final solution volume at exactly 100 mL.

Worked example: molarity from known moles

Suppose a question gives 0.25 mol of solute dissolved in enough solvent to make a total volume of 500 mL. Convert 500 mL to 0.5 L. The concentration is M = 0.25 ÷ 0.5 = 0.5 M. This is the default example in the Find Unknown tab. Because the question already supplies moles, there is no need to calculate or enter a molecular mass.

How to Calculate Moles, Solute Mass and Final Volume

A molarity calculator should also work when the unknown is not M. If a solution has a known concentration and volume, you can calculate the moles in that sample: n = M × V. If you know the target molarity and the number of moles, V = n/M. These rearrangements are especially useful when preparing a solution or checking how much of a substance is contained in a specified volume.

M = n ÷ V   ·   n = M × V   ·   V = n ÷ M

For example, 250 mL of a 0.20 M solution contains 0.20 × 0.250 = 0.050 mol of solute. If its molar mass is 58.44 g/mol, the corresponding solute mass is 0.050 × 58.44 = 2.922 g. This explains the connection between a convert grams to moles calculator and a concentration tool: the molar mass acts as the bridge.

If you want 0.20 mol of solute in a 0.50 M solution, V = 0.20 ÷ 0.50 = 0.40 L = 400 mL of final solution. A volume problem involving zero target molarity and nonzero moles has no possible solution. The calculator reports that instead of dividing by zero.

How to Calculate Molar Mass from a Chemical Formula

Before you can calculate molarity from grams, you often have to answer how to calculate molar mass. Molar mass is the mass of one mole of a substance. For a compound, add the average atomic masses of all atoms shown by its formula. When an element has a subscript, multiply its atomic mass by that number. Parentheses multiply every element inside the bracket.

Molar mass (g/mol) = Σ [number of atoms of each element × atomic mass]

The Molar Mass tab is both a molecular weight calculator and a chemical mass calculator for the supported elements. It works as a molecular concentration calculator companion: calculate the molecular mass, then return to Mass → M to convert grams into molarity. For common chemistry problems, the terms molecular mass formula, formula mass and “molecular weight” often appear in related searches, though their precise scientific terminology differs.

Water molecular mass: H₂O

For water, H₂O has two hydrogen atoms and one oxygen atom. With H ≈ 1.008 and O ≈ 15.999, the result is 2(1.008) + 15.999 = 18.015 g/mol. Searches for water molecular mass, how to calculate molar mass of h2o and find molecular weight all lead to this method. The molar mass formula can be applied to any valid formula made from the supported elements.

Acetone molar mass: CH₃COCH₃

In calculate the molar mass of acetone ch3coch3 questions, the most important step is counting atoms correctly. CH₃COCH₃ contains three carbons, six hydrogens and one oxygen, so the formula is also C₃H₆O. With rounded masses, 3(12.011) + 6(1.008) + 15.999 = 58.080 g/mol. A formula parser should count repeated elements across the entire expression, not only the last occurrence of each symbol.

Calcium nitrate, sodium sulfate and copper sulfate hydrate

The calcium nitrate formula mass comes from Ca(NO₃)₂: one calcium atom, two nitrogen atoms and six oxygen atoms. The mass is approximately 164.086 g/mol. The sodium sulphate molecular mass for Na₂SO₄ is approximately 142.04 g/mol. Some older references spell this compound “sulfate” and others “sulphate”; the chemical formula is the same.

The search cuso4 5h2o mw refers to CuSO₄·5H₂O, copper(II) sulfate pentahydrate. A hydrate dot means an additional specified number of water molecules belongs to the formula unit. This contains one Cu, one S, nine O and ten H overall. Its molar mass is approximately 249.68 g/mol. Using the anhydrous CuSO₄ mass instead would be a substantial error. Enter hydrates with a centred dot (·) or a period (.) in the calculator.

Can I calculate the molarity of CaCO₃?

Molarity of CaCO3 exercises need care. The formula mass of CaCO₃ is about 100.09 g/mol, but calcium carbonate has limited solubility in water. You cannot assume that any amount placed into water dissolves completely. If a question specifies a fully dissolved, known number of moles and final solution volume, M = n/V works; otherwise, a solubility calculation or chemical reaction information may be necessary.

mg/mL to Molarity Calculator: Converting Mass Concentration

Many practical worksheets and research protocols express concentration as mg/mL, µg/mL or g/L. A correct mg/ml to molarity calculator needs the chemical's molecular mass. A solution containing 1 mg/mL of a small salt does not have the same molarity as 1 mg/mL of a large protein. Mass concentration measures how many grams occur per litre; molarity measures how many moles occur per litre.

M (mol/L) = Concentration (g/L) ÷ Molar mass (g/mol)

Since 1 mg/mL equals 1 g/L, converting from mg/mL to M is particularly convenient: M = (mg/mL) ÷ (g/mol). A molarity calculator mg/ml, molarity calculator mg ml or molarity calculator mg/mL should make this molecular-weight requirement clear. The Unit Converter tab includes mg/mL, g/L, µg/mL, mg/L, % w/v, M, mM, µM and nM; the conversion is only performed if a valid molar mass is available.

For example, 1 mg/mL NaCl corresponds to 1 g/L. With a molar mass of 58.44 g/mol, the molarity is 1 ÷ 58.44 ≈ 0.01711 M, or 17.11 mM. Meanwhile, 1 mg/mL of a substance with a molecular mass of 20,000 g/mol is only 0.00005 M (50 µM). This is why the unit converter lets you supply the formula or enter a molecular mass manually.

Mass or molar unitEquivalentNotes
1 M1,000 mMMol per litre
1 mM1,000 µMMillimolar to micromolar
1 µM1,000 nMMicromolar to nanomolar
1 mg/mL1 g/LMass concentration
1 mg/mL1,000 µg/mLMass concentration
1% w/v10 mg/mL1 g solute / 100 mL final solution

Protein Molarity Calculator and Laboratory Stock Solutions

A protein molarity calculator turns protein mass concentration into molar concentration, provided the protein's molecular mass is known. A simplified worked example: a protein stock contains 2 mg/mL, and the molecular mass is 50,000 g/mol. That is 2 g/L ÷ 50,000 g/mol = 0.000040 M = 40 µM. Enter 2 mg/mL as the source unit, 50,000 g/mol as the molar mass and µM as the target unit.

For real proteins, the precise molecular mass may depend on the specific sequence, tags, modifications, subunits or glycosylation. Do not assume that a common protein name is enough to determine an exact molecular mass. The calculator lets you enter a known value instead of inventing one. The same principle applies to DNA molarity calculator questions: the molecular mass of the strand, duplex or oligonucleotide must be known for the appropriate species.

Researchers sometimes search for graphpad molarity calculator, graphpad molarity, molarity calculator graphpad, sigma aldrich molarity calculator, sigma molarity calculator, molarity calculator sigma, molarity calculator sigma aldrich, merck molarity calculator, tocis molarity calculator or selectchem molarity calculator. Those phrases reference other companies' laboratory resources. This student calculator is independent and not affiliated with those providers. Check the manufacturer's product information when a reagent has a supplied molecular weight or special composition.

Molarity and Dilution: C₁V₁ = C₂V₂

A stock solution may be more concentrated than the solution required for an experiment. If no solute is lost or reacts during dilution, the amount of dissolved material is conserved. That produces C₁V₁ = C₂V₂, where C is concentration and V is volume. The equation can be rearranged to determine the stock volume needed to reach a target concentration at a chosen final volume.

C₁ × V₁ = C₂ × V₂

For example, preparing 100 mL of 0.1 M solution from a 1 M stock requires V₁ = (0.1 × 100)/1 = 10 mL stock, then solvent to bring the final volume to 100 mL. The calculation assumes consistent concentration units and the same solute before and after dilution. If you need a dedicated mixing, serial-dilution or dilution calculator molarity workflow, use the linked Dilution Calculator page rather than trying to repurpose a simple mass-to-moles calculation.

Molarity, Molality, Mole Fraction and Normality

Related chemistry terms sound similar, but they measure different things. When a question asks you to calculate molality molarity and mole fraction of ki, you must determine which information is provided. Molarity measures solute moles divided by total solution litres. Molality measures solute moles divided by kilograms of solvent. Mole fraction measures a component's moles divided by the total moles of all components.

For potassium iodide (KI) or any other solute, the units make the distinction visible: molarity is mol/L, molality is mol/kg, and mole fraction has no unit. A question supplying only mass of solute and volume of solution may allow molarity but not exact molality without solvent mass or density information. Likewise, you cannot determine mole fraction without enough information about the moles of the other components.

A normality to molarity calculator requires the equivalent factor for the specific reaction. Normality is equivalents per litre, so N = M × equivalence factor. That factor changes with the reaction type and species. The converter on this page intentionally does not guess normality from molarity. Similarly, an acid base molarity calculator sometimes needs acid-base stoichiometry and reaction coefficients rather than only a concentration unit conversion.

How to Calculate Hydrogen Ion Concentration from Molarity

Students also ask how to calculate hydrogen ion concentration from molarity. The answer depends on the acid and solution chemistry. For a simple, completely dissociated monoprotic strong acid in an appropriately dilute solution, the hydrogen-ion concentration may be approximately equal to the acid's analytical molarity. For weak acids, polyprotic acids, buffers and concentrated solutions, it is not generally safe to set [H⁺] equal to the initial molarity without considering chemical equilibrium and activity.

For an introductory idealized example, 0.010 M HCl is often treated as producing about 0.010 M H⁺, leading to pH ≈ 2. This is a conditional assumption, not a universal feature of an online molarity tool. For real solutions, acid dissociation constants, ion balance and sometimes activity coefficients may matter. The calculator reports solute concentration, not an automatically calculated pH.

Which Formula Should You Use?

You knowYou needFormula
Moles and final volumeMolarityM = n/V
Mass, molar mass and final volumeMolarityM = mass/(MW × V)
Molarity and volumeMolesn = M × V
Moles and molarityVolumeV = n/M
Molarity, MW and volumeSolute massmass = M × MW × V
Concentration in g/L and molar massMolarityM = (g/L)/MW
Molarity and molar massmg/mLmg/mL = M × MW

All volume values in these equations use litres. When you use millilitres, divide by 1,000 first. This table is also useful when solving how to calculate molarity from mass or convert grams to moles homework questions. For measurement accuracy, carry sensible significant figures through the calculation and round the final answer according to the given data.

Common Mistakes When Calculating Molar Concentration

1. Mixing up mL and L

100 mL is 0.100 L, not 100 L. Dividing moles by 100 instead of 0.100 makes the calculated molarity one thousand times too small. The calculator converts between volume units automatically. This is a frequent mistake in tests that ask students to calculate concentration from a small laboratory sample.

2. Using grams directly instead of moles

Two substances can have the same mass but very different mole counts. Their molar masses depend on the chemical formulas. Always convert grams to moles before dividing by solution volume. A good molecular weight cal or formula-mass lookup helps prevent this error, provided the formula is correct.

3. Confusing solvent volume with solution volume

The molarity denominator is the volume of the entire prepared solution. If a protocol says to dissolve a solid and bring to a particular final volume, that specified final volume goes into the equation. Simply adding a specified amount of water may not yield exactly the same final volume.

4. Forgetting hydration or chemical composition

Na₂SO₄ is not the same as Na₂SO₄·10H₂O, and CuSO₄ is not the same as CuSO₄·5H₂O. An incorrect molecular formula changes the molecular mass, which changes the calculated moles and therefore molarity. Check the precise formula on the chemical label or in the question.

5. Treating every concentration as interchangeable

Concentration expressed as mass percentage, volume percentage, molality, normality, ppm or molarity cannot always be converted using a single fixed factor. You may need density, molar mass, reaction equivalence, or a specified solvent/solute composition. If that information is not available, a correct calculator should say what is missing rather than create a confident but wrong answer.

Molarity Calculator Examples for Exams and Practicals

Example 1: Glucose solution

A solution is prepared from 18.016 g of glucose (C₆H₁₂O₆) and adjusted to 500 mL total volume. Its molar mass is approximately 180.156 g/mol. The number of moles is about 18.016/180.156 = 0.1000 mol, and the molarity is 0.1000/0.500 = approximately 0.200 M. This demonstrates why the molar mass is essential for a molecular mass formula calculation.

Example 2: Find required mass for a solution

You need 250 mL of a 0.10 M NaCl solution. Required moles = 0.10 × 0.250 = 0.025 mol. Required mass = 0.025 × 58.44 ≈ 1.461 g NaCl. This is the reverse of the mass-to-molarity calculation. It is useful when the assignment asks for grams rather than the concentration of a mixture already prepared.

Example 3: Convert a millimolar solution

For a 25 mM solution, the concentration in M is 25 ÷ 1000 = 0.025 M, which is also 25,000 µM. No molecular mass is required when converting only between units of molarity. A molecular mass becomes necessary only when moving between mass-based and amount-based concentration units.

Example 4: Calculate from an unknown volume

If 0.125 mol of solute must have a concentration of 0.250 M, then the final volume is 0.125 ÷ 0.250 = 0.500 L or 500 mL. This is a simple example of the volume mode under Find Unknown. A zero or negative target concentration cannot be used to calculate a meaningful positive volume.

Frequently Asked Questions

1. What is a molarity calculator?

A tool that finds molar concentration from moles and final solution volume, or from mass, molar mass and volume.

2. What is the formula for molarity?

M = moles of solute ÷ litres of final solution. For a mass-based problem, moles = grams ÷ molar mass.

3. How can I find molarity from grams?

Divide grams by g/mol to obtain moles, convert the final solution volume to litres, then divide moles by litres.

4. How do I calculate molecular weight?

Add the average atomic masses of every atom in the molecular or formula unit, including subscripts and any parenthesized groups.

5. Does the calculator support hydrates?

Yes, formulas such as CuSO4·5H2O are supported. Use a dot between hydrate components.

6. Can I convert mg/mL to molarity?

Yes. Provide the molecular mass. Convert mg/mL to g/L (numerically the same value), then divide by g/mol.

7. Can I calculate protein molarity?

Yes, when you know the protein's molecular mass. Enter its mass concentration and known molecular weight in the Unit Converter tab.

8. Are molarity and molality the same?

No. Molarity is mol per litre of solution; molality is mol per kilogram of solvent.

9. Can I use the calculator on my phone?

Yes. It runs directly in a mobile browser and is designed for small screens.

10. Is the calculator affiliated with GraphPad or Sigma-Aldrich?

No. It is an independent educational tool. Use the manufacturer’s specifications for product-specific reagent information.

11. Does 1 M always mean 1 gram per litre?

No. One M means one mole per litre. The corresponding grams depend on the substance's molar mass.

12. How many moles are in 500 mL of 2 M solution?

n = M × V = 2 × 0.500 = 1 mol.

13. What if my substance has no simple molecular formula?

Enter a known molecular mass manually. The parser should not guess a weight for complex proteins or proprietary mixtures.

14. Why can the answer differ slightly from a textbook?

Published atomic weights and rounding conventions can vary slightly. The calculator uses rounded average atomic weights for educational calculations.

15. Is the tool appropriate for medication preparation?

No. It is intended for education and general chemistry practice, not medication compounding or clinical dosing.

References and Further Reading

For official definitions, see the IUPAC Gold Book definition of amount concentration. For the mass, moles, volume and dilution equations, see OpenStax Chemistry 2e: Molarity. For the atomic masses used in the formula calculator, see the IUPAC 2023 Atomic Weights table.

Enter your values in the Molarity Calculator above to calculate concentration with units, check the formula, and see a step-by-step explanation. It works entirely in your browser without an account, and the guide below each result helps you understand the chemistry behind the number.