The Density to Molarity Converter converts Density to Molarity using molar mass and solution density, accounting for temperature and units.
Report an issue
Spotted a wrong result, broken field, or typo? Tell us below and we’ll fix it fast.
About the Density to Molarity Converter
This tool calculates molarity, defined as moles of solute per liter of solution. It uses density, defined as mass per volume, to translate mass-based composition into a volume basis. That link matters because many datasheets state concentration as weight percent while reactions often require molarity. The converter bridges these descriptions with consistent units.
You can enter density in g/mL, kg/L, or kg/m³. Composition can be given as mass fraction or weight percent. The calculator then divides solute mass per liter by the solute’s molar mass, defined as grams per mole, to return molarity. It also reports intermediate quantities to help you audit the calculation.
Typical uses include reagent preparation, acid and base standardization, and quality control. For concentrated solutions where volume contraction is significant, density-based methods are far more reliable than assuming volume additivity. This approach reduces error and improves reproducibility across batches.

Equations Used by the Density to Molarity Converter
The converter applies a small set of unit-consistent relationships. The core idea is to compute grams of solute per liter from density and composition, then divide by the solute molar mass. Below are the working equations and conversions the tool uses.
- Mass fraction from weight percent: w = (wt%) / 100.
- Grams of solution per liter: if density ρ is in g/mL, then g_solution_per_L = ρ × 1000.
- Grams of solute per liter: g_solute_per_L = g_solution_per_L × w.
- Molarity: M = g_solute_per_L / M_s, where M_s is solute molar mass (g/mol).
- Alternative mass–volume route: Given m_s (g solute), m_t (g total solution), and solution density ρ (g/mL): V_L = (m_t / ρ) / 1000; then M = (m_s / M_s) / V_L.
- Unit conversions: 1 g/mL = 1 kg/L = 1000 kg/m³; 1 L = 1000 mL.
All formulas assume density is the density of the final solution at the stated temperature. When composition is given as mass fraction or weight percent, volume non-additivity is automatically handled by the density term. Keep units consistent to avoid scaling errors.
How the Density to Molarity Method Works
The method converts a concentration expressed by mass into one expressed by amount-of-substance per volume. It first determines how many grams of solution occupy one liter using the density. It then extracts the solute portion using the mass fraction. Finally, it divides by molar mass to get moles per liter.
- Standardize units for density and volume so the result is per liter.
- Turn weight percent into a decimal mass fraction for clean algebra.
- Multiply density-derived g/L of solution by the mass fraction to get g/L of solute.
- Divide by solute molar mass to get mol/L, which is molarity.
- Apply temperature corrections if density is given at a different temperature than measured.
This flow avoids guessing final volume after mixing, which can be inaccurate for concentrated solutions. The density measurement encodes volume contraction and other non-ideal effects. That is why the approach is robust for both dilute and strong solutions.
Inputs, Assumptions & Parameters
The converter is intentionally simple but flexible. It supports standard laboratory inputs and enforces unit consistency. You can choose a minimal set or include optional parameters to refine accuracy.
- Solution density ρ: enter in g/mL, kg/L, or kg/m³.
- Solute composition: weight percent (w/w %) or mass fraction w.
- Solute molar mass M_s: grams per mole, from a reputable source or empirical formula.
- Temperature: optional, used to select the correct density if your source lists multiple values.
- Mass-based route: optional fields for solute mass and total solution mass if you prefer the direct mass–volume method.
Valid ranges include very dilute solutions up to near-saturation. For extreme concentrations, density and composition must correspond to the same temperature and preparation method. Hydrates, oligomers, or dissociation do not change molarity of the species as entered, but they do change molar mass and should be specified correctly. The tool flags inconsistent or physically impossible inputs, such as weight percent above 100%.
Step-by-Step: Use the Density to Molarity Converter
Here’s a concise overview before we dive into the key points:
- Select a unit for density and enter the solution density value.
- Choose how you will provide composition and enter weight percent or mass fraction.
- Enter the solute molar mass or use the formula field to calculate it.
- Set the temperature if your density value is temperature-specific.
- Pick your preferred output units for concentration (mol/L is default).
- Click Convert to compute molarity and intermediate values.
These points provide quick orientation—use them alongside the full explanations in this page.
Real-World Examples
Aqueous hydrochloric acid is often sold as 37% w/w with density 1.19 g/mL at 25°C. Convert 37% to w = 0.37. Compute g/L solution: 1.19 × 1000 = 1190 g/L. Solute grams per liter: 1190 × 0.37 = 440.3 g/L. Molar mass for HCl is 36.46 g/mol, so M = 440.3 / 36.46 ≈ 12.1 mol/L. What this means: That reagent is about 12 M HCl, consistent with catalog specifications.
A 10% w/w NaCl solution at 20°C has density about 1.071 g/mL. Convert 10% to w = 0.10. g/L solution: 1.071 × 1000 = 1071 g/L. Solute grams per liter: 1071 × 0.10 = 107.1 g/L. Molar mass NaCl = 58.44 g/mol, so M = 107.1 / 58.44 ≈ 1.83 mol/L. What this means: The solution has a concentration near 1.8 M, suitable for many biochemical protocols.
Assumptions, Caveats & Edge Cases
The conversion relies on accurate density and composition that refer to the same solution state. When either value comes from a table, pay attention to temperature and purity. For unusual solutes, confirm the correct molar mass, including hydration or counter-ions.
- Non-ideal mixing: Volume is not additive; using density addresses this, but only if density is correct for your composition and temperature.
- Temperature dependence: Density can change by several parts per thousand per °C, affecting molarity at high precision.
- Multicomponent solutions: Weight percent must be for the target solute relative to total solution mass, not just solvent.
- Reactive solutes: If the solute associates or dissociates, molarity refers to the chemical entity defined by your molar mass input.
- Measurement error: Uncertainty in density or composition propagates linearly into the molarity result.
When in doubt, measure density for your actual batch and verify composition by an independent method. The converter is only as accurate as the inputs. For regulatory or GMP work, document sources and temperature conditions.
Units and Symbols
Correct units prevent order-of-magnitude mistakes. Density, mass fraction, and molar mass must be consistent so that the final concentration is in mol per liter. The table below summarizes the symbols and units used by the calculator.
| Symbol | Quantity | Typical units | Notes |
|---|---|---|---|
| M | Amount concentration | mol/L | Moles of solute per liter of solution |
| ρ | Density of solution | g/mL, kg/L, or kg/m³ | Must refer to the final solution at a stated temperature |
| w | Mass fraction | dimensionless (or % as wt%) | w = mass solute / mass solution |
| M_s | Molar mass of solute | g/mol | Calculated from formula or taken from a trusted source |
| V | Volume of solution | L | V may be computed from total mass and density |
Read the table left to right: find the symbol, note the physical meaning, and enter values using the preferred units. If you choose other units, the converter applies conversions automatically while preserving dimensional consistency.
Tips If Results Look Off
Large discrepancies usually come from unit mismatches or a density value taken at the wrong temperature. Before re-running, scan your inputs and confirm they describe the same sample under the same conditions. Quick sanity checks can save time.
- Ensure wt% is not confused with g per 100 mL (that is w/v, not w/w).
- Verify density corresponds to your exact composition and temperature.
- Confirm molar mass, including hydration or acid/base form.
If the problem persists, try the mass–volume route: measure total mass and density of the prepared solution and recompute. This bypasses catalog tables and captures your batch exactly.
FAQ about Density to Molarity Converter
Do I need weight percent, or can I use other composition types?
Weight percent or mass fraction gives the most direct path. If you have mole fraction or volume percent, you can convert, but you will need additional densities, and the uncertainty may increase.
Can the converter handle hydrated salts like CuSO4·5H2O?
Yes. Enter the molar mass for the hydrated form. Molarity will then refer to that chemical formula as a whole unless you define a different basis.
How important is temperature for density-based calculations?
For dilute solutions, small temperature shifts have minor effects. For concentrated solutions, a few degrees can matter, so always match temperature between your density value and your sample.
What if my solution contains more than one solute?
Provide the weight percent for the solute of interest relative to total solution mass. You will need the overall solution density; the presence of other solutes is implicitly included in that density.
Glossary for Density to Molarity
Molarity
A concentration unit equal to moles of solute per liter of solution, commonly used for reaction stoichiometry.
Density
Mass per unit volume of a material or solution, often expressed as g/mL for laboratory work.
Mass Fraction
The ratio of solute mass to total solution mass; weight percent divided by 100.
Molar Mass
The mass of one mole of a substance, computed from atomic weights and expressed in g/mol.
Weight Percent (w/w %)
Grams of solute per 100 grams of solution; a mass-based concentration measure.
Amount Concentration
Another term for molarity, indicating the amount of substance per unit volume of solution.
Volume Contraction
The decrease in total volume when substances mix, which makes volume non-additive and justifies using density.
Hydrate
A compound that includes water molecules in its crystal structure, altering its molar mass and stoichiometry.
References
Here’s a concise overview before we dive into the key points:
- PubChem: Hydrochloric acid compound data, including molar mass
- Engineering Toolbox: Sodium chloride solution densities vs. concentration
- NIST Chemistry WebBook: Physical constants and molar masses
- IUPAC: Standard atomic weights for calculating molar mass
- LibreTexts: Converting between concentration units with examples
These points provide quick orientation—use them alongside the full explanations in this page.