Formula used
Since 1 mg/mL equals 1 g/L, molarity can be found directly when molar mass is known.
Molarity M = (mg/mL × purity decimal × dilution factor) ÷ molar mass
For example, 10 mg/mL sodium chloride with molar mass 58.44 g/mol gives
10 ÷ 58.44 = 0.171116 M. That equals 171.116 mM.
For mass planning, the calculator uses:
mass mg = target M × molar mass × volume L × 1000 ÷ purity decimal
About mg per mL to molarity conversion
Laboratory concentrations are often written as mass per volume. A label may say 5 mg/mL, 10 mg/mL, or 1.5 mg/mL. These values are useful for weighing and dissolving materials. They do not directly show how many molecules are present. Molarity solves that problem. It expresses concentration as moles per liter. This makes reactions, buffers, dilutions, and assays easier to compare.
Why molar mass matters
The same mass can represent very different mole amounts. Ten milligrams of sodium chloride contains many more moles than ten milligrams of a large protein. The difference comes from molar mass. Molar mass tells how many grams one mole weighs. Smaller molar mass gives higher molarity for the same mg/mL value. Larger molar mass gives lower molarity.
The useful shortcut
The conversion has a helpful shortcut. One mg/mL is exactly the same as one g/L. Because molarity is moles per liter, you can divide the g/L value by g/mol. The gram units cancel. The result is mol/L, also called M. This is why the basic equation is simple. Molarity equals mg/mL divided by molar mass.
Purity and dilution
Real materials may not be completely pure. A powder with 95 percent purity contains less active compound than the weighed mass suggests. This calculator corrects the concentration by multiplying by the purity decimal. A 95 percent purity value becomes 0.95. Dilution factor is also included. If a sample was diluted ten times before measurement, enter 10 to estimate the original stock concentration.
Choosing the right unit
Molarity can be large or very small. A result in M is useful for strong stocks. A result in mM is common for salts, buffers, and many reagents. A result in µM is common for drugs, enzymes, ligands, and biological assays. A result in nM is useful for very dilute solutions. The calculator shows several units so you can report the number clearly.
Preparing a solution
The target section helps plan new solutions. Enter the desired molarity and final volume. The tool estimates the mass needed in milligrams. It also estimates the stock volume needed when the calculated stock concentration is strong enough. This helps reduce manual errors during dilution planning. Always check solubility, hydration state, salt form, and lab protocol before preparing critical solutions.
Good laboratory practice
Record the compound name, lot purity, molar mass source, final volume, and date. Use the CSV or PDF export for a quick record. Confirm molar mass from a reliable certificate or product sheet. Proteins, hydrates, salts, and mixtures need special attention. Small formula changes can create large concentration changes.
FAQs
1. What does mg per mL mean?
It means milligrams of substance in each milliliter of solution. It is a mass concentration. It does not show mole count until molar mass is used.
2. What does molarity mean?
Molarity means moles of solute per liter of solution. Its unit is mol/L, usually written as M. It is common in chemistry and biology labs.
3. How do I convert mg/mL to M?
Use the formula M = mg/mL ÷ molar mass. This works because 1 mg/mL equals 1 g/L. Molar mass must be in g/mol.
4. Why is molar mass required?
Molar mass links mass to moles. Without it, the calculator cannot know how many moles are present in the entered mass concentration.
5. Is 1 mg/mL always equal to 1 g/L?
Yes. One milligram per milliliter equals one gram per liter. This unit shortcut makes the molarity conversion faster and cleaner.
6. How is purity used?
Purity reduces the active concentration. For 95 percent purity, the calculator multiplies the entered mg/mL value by 0.95 before converting.
7. What is dilution factor?
Dilution factor corrects for previous dilution. If a sample was diluted ten times before measurement, enter 10 to estimate the original stock concentration.
8. Can this calculator handle proteins?
Yes, if you know the protein molar mass in g/mol. Large proteins often give small molarity values, even at visible mg/mL concentrations.
9. Can I use molecular weight instead of molar mass?
Yes, if the molecular weight is expressed as g/mol. In many lab contexts, molecular weight and molar mass are used together for this calculation.
10. Why does the result change with unit selection?
The concentration is the same, but the display unit changes. One M equals 1000 mM, 1,000,000 µM, and 1,000,000,000 nM.
11. How do I calculate mass needed for a target solution?
Enter target molarity and final volume. The calculator uses target M times molar mass times volume in liters, then adjusts for purity.
12. Why is my stock volume larger than final volume?
That means the stock is weaker than the desired final solution. You need a stronger stock or direct weighing instead of dilution.
13. Does hydration state matter?
Yes. Hydrated salts have different molar masses than anhydrous salts. Always use the molar mass that matches the exact material used.
14. Can I export my result?
Yes. After calculation, use the CSV button for spreadsheet records or the PDF button for a clean saved report.