Concentration Calculator - Molarity, Mass Concentration, and Solver

Use this concentration calculator to convert grams of solute and solution volume into molarity, mass concentration, moles, and to solve for missing mass or volume.

Updated: June 20, 2026 • Free Tool

Concentration Calculator

Pick what to compute. Concentration uses your mass and volume inputs. Mass or Volume needs a target molarity.

Mass of solute in grams. Leave 0 when solving for mass.

Molar mass of solute in g/mol (NaCl = 58.44).

Volume of the final solution in the selected unit.

Unit used in the Solution volume field.

Required only when solving for mass or volume. mol/L.

Results

Molarity
0mol/L
Millimolarity 0mmol/L
Mass concentration 0g/L
Solute moles 0mol
Required solute mass 0g
Required solution volume 0L

What Is the Concentration Calculator?

A concentration calculator turns the mass of a solute and the volume of its solution into molarity, mass concentration, and moles in one step. The same tool can solve backwards too: give it a target molarity with either a solution volume or solute mass, and it returns the value you still need to measure.

  • General chemistry homework: Convert grams of a solute and a solution volume into molarity without redoing the algebra every problem.
  • Lab buffer prep: Solve for the mass of a salt needed to reach a target molarity in a given flask volume, or the flask volume needed for a given mass.
  • Analytical method checks: Cross-check mass concentration values used in spectrophotometry or titration prep against the underlying molarity.
  • Teaching demos: Show how molarity, mass concentration, and millimolarity relate when solute mass, volume, and molar mass change.

Concentration describes how much of a substance is packed into a given amount of solution. Bench chemists usually want molarity in mol/L so they can dilute to a protocol, while analytical work often wants mass concentration in g/L so it ties back to a balance reading.

If you came here to convert a percent solution into molarity, the percentage concentration to molarity calculator already handles w/v and w/w percent formats and walks through the density step the generic solver skips.

How the Concentration Solver Works

The concentration calculator combines two standard chemistry definitions into one workflow. Molarity uses moles divided by liters of solution, and moles come from mass divided by molar mass.

c = n / V and n = m / M so c = m / (M * V)
  • c: Molar concentration of the solute in mol/L.
  • n: Moles of solute, calculated from mass and molar mass.
  • V: Volume of the final solution in liters, not the volume of solvent added.
  • m: Mass of the solute in grams as weighed on a balance.
  • M: Molar mass of the solute in g/mol (for NaCl that is 58.44).

Mass concentration is mass divided by solution volume in liters, so it carries g/L when the volume is in liters. Molarity is moles divided by the same liter-based volume, so it carries mol/L. Millimolarity is molarity scaled by 1000, useful for biology buffers in the millimolar range.

When you switch the Solve for selector to Solute mass, the calculator solves m = c * V * M using your target molarity and entered volume. When you switch it to Solution volume, it solves V = n / c using your solute moles and the target molarity. The same single formula drives every mode; only the rearrangement changes.

Example 1 - sodium chloride in water

5.844 g of NaCl (M = 58.44 g/mol) dissolved in 500 mL of solution.

n = 5.844 / 58.44 = 0.100 mol. V = 500 mL = 0.500 L. c = 0.100 / 0.500 = 0.200 mol/L. Mass concentration rho = 5.844 / 0.500 = 11.688 g/L.

Molarity = 0.200 mol/L, mass concentration = 11.688 g/L.

This is the textbook OpenStax example for NaCl. The 0.2 M value matches what the tool returns when you enter the same numbers.

Example 2 - glucose stock

10 g of glucose (M = 180.156 g/mol) in 2 L of solution.

n = 10 / 180.156 = 0.05550 mol. c = 0.05550 / 2 = 0.02775 mol/L. rho = 10 / 2 = 5.000 g/L.

Molarity = 0.02775 mol/L, mass concentration = 5.000 g/L.

Reading the mass concentration as 5 g/L lets you sanity-check the math without doing the molar mass division in your head.

According to OpenStax Chemistry 2e, molarity equals moles of solute divided by liters of solution and moles are obtained by dividing the solute mass by its molar mass

Key Concepts Behind Concentration

Four ideas carry most of the weight in a concentration problem. Knowing them lets you switch between molarity, mass concentration, and mole counts without re-deriving anything.

Molarity (c)

Moles of solute divided by liters of solution. The standard unit mol/L is what general chemistry and biology labs quote when a protocol says '1 M solution'. It is the value most dilution problems start from.

Mass concentration (rho)

Mass of solute divided by liters of solution, expressed in g/L. It is the right unit when the solute is a mixture or when you want the number to map to a balance reading.

Moles (n)

Mass of solute divided by its molar mass. Moles are the bridge between the mass you can weigh and the molarity you can prepare, so they appear in every rearrangement of c = n/V.

Solution volume vs solvent volume

Concentration uses the volume of the final solution in the volumetric flask, not the volume of water you added. This matters most for concentrated stocks, where solute displacement can change the volume by a few percent.

If you treat mass concentration and molarity as the same value, switch units carefully: 1 g/L of a 100 g/mol solute equals 0.01 mol/L, not 1 mol/L. The two numbers track the same solution but describe different things.

When the solute is a protein, polymer, or broth, the protein concentration calculator is built around the Beer-Lambert law and reads absorbance at 280 nm rather than weighing a powder.

How to Use This Tool

Pick the mode that matches your problem, then enter the values you already know. The calculator fills in the rest.

  1. 1 Choose Solve for: Pick Concentration to compute molarity and mass concentration, Solute mass to find how many grams to weigh for a target molarity, or Solution volume to find the flask size needed.
  2. 2 Enter solute mass and molar mass: Type the solute mass in grams and its molar mass in g/mol. Use a reference table if you do not know the molar mass; you can also derive it from the chemical formula.
  3. 3 Pick the volume and its unit: Enter the solution volume (not the solvent volume) and pick mL or L from the unit selector. The calculator converts the entry to liters before applying the formula.
  4. 4 Add a target molarity when solving for mass or volume: Switching to Solute mass or Solution volume exposes the Target molarity field. Enter the molarity you want the final solution to reach; the calculator uses it to back-solve the missing input.
  5. 5 Read the result and decide what to do next: Molarity is the primary output. Millimolarity, mass concentration, and moles are reported alongside it so you can sanity-check the answer and pick the right unit for the next step.

Weighing 5.844 g of NaCl into a 500 mL volumetric flask and filling to the mark gives 0.200 mol/L. With Solve for set to Solute mass and a target of 0.5 M in 250 mL, the concentration calculator returns 7.305 g of NaCl, which is what you weigh out before topping up to the mark.

If you do not know the molar mass for your solute, paste the chemical formula into the mole-molar-mass calculator first, then carry the result back into the Molar mass field above.

Benefits at the Bench

These benefits show up the moment you have more than one solute, a tight bench schedule, or a homework set due tonight.

  • One tool for three problems: Concentration, missing solute mass, and missing solution volume all run through the same formula, so you do not need a separate solver for each question.
  • Source-backed values: Every output is grounded in the c = n/V definition used by OpenStax and LibreTexts, so the answers match what your textbook or instructor expects.
  • Multiple concentration units: Molarity, millimolarity, and mass concentration appear together, which lets you read the unit your protocol or report asks for.
  • Volume unit switching: The mL and L selector accepts the value your flask is marked in and converts it to liters inside the calculation, removing a common off-by-1000 mistake.
  • Solvent vs solution awareness: The key concept panel reminds you to fill to the mark on a volumetric flask rather than to the solvent volume, which is the most common error in lab prep.

If your workflow is mostly dilutions rather than first-time prep, the dilution formula calculator handles C1V1 = C2V2 directly and is a better next click than re-running this solver from a stock bottle.

Factors That Affect Your Results

Concentration looks like a fixed number, but a few factors can quietly shift the value the calculator returns.

Purity of the solute

Hydrated salts and reagent-grade assumptions change the effective mass. If your bottle is 95% pure, divide the weighed mass by 0.95 before entering it.

Temperature of the solution

Solution volume expands or contracts with temperature. A solution prepared at 20 degrees C and measured at 30 degrees C will read a lower molarity than the same flask measured at 20 degrees C.

Volumetric flask calibration

Class A flasks are calibrated at 20 degrees C. Using a 100 mL beaker marked at 95 mL as if it were 100 mL introduces a 5% concentration error that no calculator can catch.

Solute displacement

For concentrated solutions above about 0.5 M for small ions, the solute changes the final volume by 1 to 5 percent. Topping up to the mark compensates automatically, but the calculator assumes you did so.

Molar mass source

Atomic weights round differently across periodic tables. Use the same value your textbook or lab manual uses so the answer matches graded answers and protocol sheets.

  • The calculator assumes the final volume is the volume of the volumetric flask (topped up to the mark). It does not model density-based volume corrections for concentrated solutions.
  • It does not convert between mass percent, volume percent, or mole percent, and it does not read absorbance. For protein quantification use a dedicated absorbance-based tool.

Temperature matters more than beginners expect. A solution made up at room temperature and then refrigerated will have a measurably higher molarity when it equilibrates to fridge temperature, because the volume shrinks while the moles stay the same.

According to LibreTexts Analytical Chemistry, mass concentration is mass of solute divided by volume of solution and molar concentration is moles of solute divided by liters of solution

If your bench protocol quotes a w/w or w/v percent rather than a molarity, the percent solution calculator returns the percent value that the concentration solver treats as the solute-mass input.

Concentration calculator converting solute mass and solution volume into molarity and mass concentration
Concentration calculator converting solute mass and solution volume into molarity and mass concentration

Frequently Asked Questions

Q: How do I calculate molarity from grams and volume?

A: Divide the grams of solute by its molar mass to get moles, then divide moles by the solution volume in liters. The tool does this in one step when you enter the solute mass, molar mass, and volume.

Q: What is the difference between mass concentration and molar concentration?

A: Mass concentration is grams of solute per liter of solution, while molarity is moles of solute per liter of solution. Molarity needs the molar mass; mass concentration does not.

Q: Which formula does the tool use?

A: It uses c = n/V, with n derived from m/M. The same expression rearranges to solve for missing mass (m = c * V * M) or missing volume (V = n / c) when you change the Solve for selector.

Q: Can the tool solve for solute mass instead of concentration?

A: Yes. Switch Solve for to Solute mass, enter the target molarity and the solution volume, and it returns the grams of solute you need to weigh.

Q: What units should I use for solution volume?

A: Use mL or L on the volume field; the tool converts to liters internally. Always quote the volume of the final solution in the volumetric flask, not the volume of water you added.

Q: Does temperature change the calculated concentration?

A: Temperature changes the volume of the solution. A flask prepared at 20 degrees C and measured at 30 degrees C will read a lower molarity because the solution has expanded while the moles stayed the same.