MultiSwitch MultiSwitch ← Home
SEARCH
SEARCH
← Home Feedback

Chemistry Calculator

Molarity, molecular weight & density — instant results with a full breakdown, no sign-up needed

Molarity Calculator

Enter any two values — molarity, moles, or volume — and the third is calculated automatically. M = moles ÷ volume(L).

mol/L
mol
Fill in 2 fields —
How this works: Molarity is M = moles ÷ litres — fill any two fields and the third is solved. Molecular weight walks a formula like H2O, looks up each element’s atomic mass, and sums count × mass. Density is ρ = mass ÷ volume in g/mL. Parentheses in formulas are not expanded.
Formula: Molarity (M) = moles of solute ÷ liters of solution. Enter volume in mL if that's easier — it's converted to liters automatically before the calculation.

Molecular Weight Calculator

Type a chemical formula (e.g. H2O, C6H12O6, NaCl, CaCO3) to get its molecular weight and a per-element breakdown.

Molecular weight —
Tip: Use standard capitalization — element symbols start with one capital letter, optionally followed by one lowercase letter (e.g. Na, Cl, Ca). Follow a symbol with a number for its count in the formula (e.g. H2 = 2 hydrogen atoms); no number means 1 atom. Atomic weights are standard values in g/mol.

Density Calculator

Enter any two values — density, mass, or volume — and the third is calculated automatically. Density = mass ÷ volume.

g/mL
g
mL
Fill in 2 fields —
Formula: Density (ρ) = mass ÷ volume, given here in g/mL (equivalent to g/cm³). Water has a density of about 1 g/mL at room temperature.

How this works

Molarity follows the standard chemistry relationship M = moles ÷ litres — fill in any two of moles, litres, or molarity, and the calculator solves for whichever one you left blank, rearranging the same formula as needed.

Molecular weight is calculated by walking through a chemical formula like H2O or NaCl, looking up each element's standard atomic mass, and summing (count of that element) × (its atomic mass) across every element in the formula — the same process taught for calculating molar mass by hand.

Density follows ρ = mass ÷ volume, expressed in grams per millilitre. One limitation worth noting: parentheses in chemical formulas (like Ca(OH)2, where the subscript 2 applies to everything inside the parentheses) aren't expanded automatically, so complex formulas with grouped subscripts need to be entered in their fully expanded atom-count form instead.

FAQ

How is molarity calculated, and can I solve for any of the three values?

Molarity M = moles ÷ litres. Enter any two of molarity, moles, and litres, and the calculator solves for the missing third value by rearranging that same formula.

How does the molecular weight calculator handle a formula like H2O?

It parses the formula into its constituent elements and their counts (2 hydrogen, 1 oxygen for H2O), looks up each element's standard atomic mass, multiplies count by mass for each element, and sums the results to get the total molecular weight.

Does the calculator handle formulas with parentheses, like Ca(OH)2?

Not automatically — parentheses aren't expanded, so a formula like Ca(OH)2 needs to be entered in its fully expanded form (CaO2H2) rather than with the parenthetical grouping, to get an accurate molecular weight.

What units does the density calculation use?

Grams per millilitre (g/mL), following ρ = mass ÷ volume — a standard unit for density in chemistry contexts.