Molarity Calculator
Fill in the values and click Calculate to see results
This calculator solves for molarity (M), mass of solute (m), or volume of solution (V) when you provide the other two values. It supports unit conversion between grams and milligrams, liters and milliliters, and molar and millimolar units. The built-in chemical search draws from PubChem (opens in new tab) to auto-fill molar masses instantly, and an Advanced Mode accounts for thermal expansion at non-standard temperatures. All results display in your chosen units with alternative unit options shown automatically.
Using an online molarity calculator removes the risk of arithmetic errors and unit confusion that often comes with manual calculations. Instead of converting milliliters to liters and grams to moles separately, you enter the numbers as they appear in your lab notebook and the calculator handles the rest. This is especially valuable in time-sensitive settings like clinical labs and pharmaceutical production where a single miscalculation can compromise an experiment or delay a batch release.
What is Molarity?
Formula
Example 1
Solution
Answer
The potassium concentration is also 0.400 M, suitable for the hydroponic feed. For comparison, standard Hoagland solution uses approximately 6 mM K⁺, so this concentrate would be diluted further before use.
Real-World Applications
Molarity is central to preparing buffer solutions (opens in new tab) that maintain stable pH in biochemical experiments. Phosphate-buffered saline (PBS), a widely used buffer in biology, requires precise molarities of NaCl, KCl, Na2HPO4, and KH2PO4. A typical 1× PBS contains 137 mM NaCl, 2.7 mM KCl, and 10 mM phosphate. This calculator displays both M and mM results automatically, making buffer preparation straightforward.
Tris buffer, another common biochemical buffer, is typically prepared at 1 M stock concentration and then diluted to working concentrations between 10 mM and 100 mM. The dilution follows the standard C1V1 = C2V2 formula, which the volume-solving mode of this calculator supports directly. In molecular biology, molarity is used to calculate the concentration of nucleotides, primers, and enzymes in reaction mixes. A PCR master mix requires specific molar concentrations of each primer, typically 0.1 to 1.0 μM. The automatic unit conversion of this calculator makes these calculations simple. Serial dilutions of known molarity are used to generate standard curves for ELISA assays and qPCR experiments, where each step can be verified using the tool.
Example 2
Solution
Answer
Measure 250 mL of the stock acid using a graduated cylinder. For improved accuracy, use a 250 mL volumetric flask and a pipette rather than a graduated cylinder.
Common Calculation Mistakes and How to Avoid Them
Another common error involves confusing mass of solute with mass of solution. The formula requires only the mass of the dissolved substance, not the combined mass of solute plus solvent. Weighing the solute separately on an analytical balance before dissolving it avoids this confusion.
Hydrated salts present a third pitfall. Compounds like CuSO4·5H2O include water molecules in their crystal structure that add to the molar mass. Using the anhydrous molar mass (159.61 g/mol) instead of the hydrated mass (249.69 g/mol) gives a result roughly 36% too high. Always verify whether your chemical is anhydrous or hydrated before entering the molar mass.
Temperature sensitivity matters in high-precision work. A solution that is exactly 1.000 M at 25 °C becomes roughly 0.997 M at 35 °C because the volume expands. For most teaching and routine applications this is negligible, but the Advanced Mode in this calculator applies the correction when you need it. For acid-base titrations, you may also find our Normality Calculator useful. Check whether your result makes sense: a sodium chloride solution above 6 M at room temperature approaches saturation, suggesting an input error.
Importance of Molarity in Chemistry
How to Prepare a Solution of Known Molarity
Weigh the calculated mass on an analytical balance using a clean weighing boat or beaker. Transfer the solute to a beaker and add distilled or deionized water equal to roughly 80% of your final volume. Stir or swirl until the solute dissolves completely. For compounds that dissolve slowly, a magnetic stirrer can speed the process.
Pour the dissolved solution into a volumetric flask of the appropriate size. Rinse the beaker with a small amount of water and add the rinsings to the flask to ensure all solute transfers. Fill the flask with water up to the calibration mark, using a dropper for the final few milliliters to avoid overshooting. Stopper the flask and invert it several times to ensure homogeneity.
Safety note: When preparing acidic solutions, add the concentrated acid to water slowly while stirring, never the reverse. Adding water to concentrated acid generates enough heat to cause violent boiling and splashing. Work in a fume hood for volatile acids like HCl and HNO3. Wear a lab coat, safety goggles, and chemical-resistant gloves throughout. Label the flask with the compound name, concentration, date, and any hazard information.
Example 3
Solution
Answer
Weigh 2.922 g of NaCl, dissolve in about 400 mL of distilled water in a beaker, transfer to a 500 mL volumetric flask, and fill to the mark.
Applications in Pharmaceutical Analysis
Example 4
Solution
Answer
Measure 41.7 mL of concentrated HCl, slowly add it to about 400 mL of distilled water, then dilute to 500 mL in a volumetric flask. Always add acid to water, never the reverse.
Chemical Dissolution in Solvent
Accurately weigh the solute using an analytical balance.

Important Considerations for Accurate Results
Temperature effects. The volume of a liquid changes with temperature. Water expands by roughly 0.021% per degree Celsius. A solution that is 1.000 M at 25 °C becomes approximately 0.997 M at 35 °C. For concentrations required to better than 1%, use temperature-controlled conditions or enable the Advanced Mode of this calculator, which applies the thermal expansion correction automatically.
Non-ideal behavior in concentrated solutions. At high concentrations, solute-solute and solute-solvent interactions affect the effective concentration (activity) of the solution. The standard molarity formula uses formal concentration assuming complete dissociation. For solutions above 1 M, or for weak electrolytes, the difference between formal concentration and activity (opens in new tab) can become significant.
Volume additivity. When two liquids are mixed, the total volume is not always the sum of the individual volumes. Mixing 50 mL of water with 50 mL of ethanol yields about 97 mL, not 100 mL. This volume contraction matters for mixed-solvent systems. For aqueous solutions at moderate concentrations, the effect is small enough to ignore.
These considerations are not reasons to avoid molarity. They describe the context in which experienced scientists work. This calculator handles the routine math so you can focus on the factors that matter for your specific application.
Molarity of Common Concentrated Reagents
Values are approximate. Always verify the exact wt% and density printed on your specific reagent bottle.
| Reagent | Wt% | Density (g/mL) | Approx. Molarity (M) |
|---|---|---|---|
| Hydrochloric acid | 37% | 1.18 | 12.08 |
| Sulfuric acid | 98% | 1.84 | 18.39 |
| Nitric acid | 70% | 1.41 | 15.67 |
| Phosphoric acid | 85% | 1.69 | 14.66 |
| Glacial acetic acid | 99.7% | 1.05 | 17.45 |
| Ammonia solution | 28% | 0.9 | 14.80 |
| Sodium hydroxide (aq) | 50% | 1.53 | 19.13 |
Molarity and Other Concentration Units
Molarity Formula Summary
Fundamental equations in solution chemistry
| Variable | Symbol | Unit | Formula |
|---|---|---|---|
| Molarity | M | mol/L | M = n/V |
| Moles | n | mol | n = m/M |
| Mass | m | g | m = n × M |
| Volume | V | L | V = n/M |
Summary
References
- [1]Pearson, Vogel's Textbook of Quantitative Chemical Analysis, 2000.
- [2]IUPAC, IUPAC Gold Book - Molar Concentration. https://www.degruyter.com/database/IUPAC/html
Glossary
- Molarity (M) – The number of moles of solute per litre of solution, expressed in mol/L. It is the most frequently used concentration unit in chemistry and is temperature-dependent because volume changes with temperature.
- Mole (mol) – The SI base unit for amount of substance, defined as exactly 6.02214076 × 10²³ elementary entities (Avogadro’s number). One mole of any substance contains the same number of particles.
- Molar mass (M) – The mass of one mole of a substance, expressed in grams per mole (g/mol). It is numerically equal to the molecular weight of the substance and is calculated by summing the atomic masses of all atoms in the chemical formula.
- Solute – The component of a solution that is present in lesser amount and is dissolved by the solvent. In aqueous solutions, the solute is typically a solid, liquid, or gas that dissolves in water.
- Solvent – The component of a solution that is present in greater amount and dissolves the solute. Water is the most frequently used solvent in chemical laboratory work and is often called the universal solvent.
- Solution – A homogeneous mixture of two or more substances consisting of a solute dissolved in a solvent. Solutions have uniform composition and properties throughout the mixture.
- Avogadro’s number (NA) – The number of particles in one mole of any substance, equal to 6.02214076 × 10²³. It provides the fundamental link between the macroscopic scale (grams) and the atomic scale (atoms or molecules).
- Dilution – The process of reducing the concentration of a solution by adding more solvent without adding more solute. The relationship C₁V₁ = C₂V₂ governs dilution calculations.
- Stock solution – A concentrated solution of known concentration that is stored and used to prepare more dilute working solutions as needed. Stock solutions save time and improve reproducibility in the laboratory.
- Molality (m) – Moles of solute per kilogram of solvent, expressed in mol/kg. Unlike molarity, molality is temperature-independent because it depends on mass rather than volume. It is used in colligative property calculations and in situations where temperature fluctuates.
How to Use?
- 1.
Select what you want to calculate: Choose from the dropdown: Molarity (M), Mass of solute (m), or Volume of solution (V). The other fields adjust automatically based on your selection.
- 2.
Enter the known values: Type in the values you have. Use the unit dropdowns next to each field to switch between grams and milligrams, liters and milliliters, or molar and millimolar.
- 3.
Use the chemical search (optional): Search for any chemical compound by name, such as sodium chloride or glucose. The molar mass field fills in automatically using PubChem data, saving you a manual lookup.
- 4.
Review and adjust units: Check that the units match your needs. The results panel shows the primary value plus alternative units like mM and uM so you always have the right format.
- 5.
Click Calculate and interpret results: Press the Calculate button to see the answer instantly. The result includes the formula used and interactive graphs that visualize the relationship between variables.
Frequently Asked Questions
37% HCl → 12.08 M.
98% H₂SO₄ → 18.39 M.
50% NaOH → 19.06 M.
Glacial acetic acid → 17.45 M.
Use the Quick Fill feature for fast, pre-verified values.
HCl 37% → 12.08 M.
H₂SO₄ 98% → 18.39 M.
HNO₃ 70% → 15.67 M.
NaOH 50% → 19.06 M.
Always prefer the values printed on your specific reagent bottle for highest accuracy.
12.08 M HCl × 1 = 12.08 N.
18.39 M H₂SO₄ × 2 = 36.78 N.
19.06 M NaOH × 1 = 19.06 N.
This calculator computes normality automatically in Advanced Mode.
Hydrochloric acid (37% wt) = 12.08 M.
Sulfuric acid (98%) = 18.39 M.
Nitric acid (70%) = 15.67 M.
Phosphoric acid (85%) = 14.63 M.
Glacial acetic acid (99.7%) = 17.45 M.
Ammonium hydroxide (28%) = 14.53 M.
Sodium hydroxide (50%) = 19.06 M.
Always verify the exact wt% and density printed on your specific reagent bottle, as values vary slightly between manufacturers.