ForHosting KIT · Science

Mass percent to molarity calculator

Sodium chloride at just over five and a half percent by mass, with a density of 1.05 g/mL, is 1 mol/L: enter the mass percent, density and molar mass and get the molarity plus the grams of solute and solution in each litre. Free in your browser.

  • Free
  • Runs in your browser
  • No sign-up
  • Your data stays on your device
Use it from WebAPIEmailTelegramApp soon
If you enter
Solute mass percent
5.5657142857
Solution density in g/mL
1.05
Molar mass
58.44
You get
Mass fraction
0.0556571429 mol/L
Mass solute g per L
58.44
Mass solution g per L
1,050
Molarity
1

Bottle labels, reagent catalogs, and process sheets often list solution strength as mass percent (weight percent, % w/w), while titration recipes, stock preparation, and volumetric analysis need molarity in moles per liter. Bridging those two concentration systems requires two extra physical numbers: the density of the solution in grams per milliliter and the solute molar mass in grams per mole. Once those are known, molarity follows from the definition that one liter of solution weighs density times one thousand grams, the solute portion is mass percent over one hundred of that mass, and moles equal that solute mass divided by molar mass.

How mass percent becomes molarity and which inputs to send

Start from a concentration reported as mass percent (% w/w), the measured or tabulated density of that same solution in grams per milliliter, and the molar mass of the pure solute in grams per mole. For one liter of solution the mass of solution is density times one thousand, the mass of solute is mass percent over one hundred times that total mass, and molarity is that solute mass divided by molar mass.

Algebraically this collapses to molarity equals mass percent times density times ten divided by molar mass when density is in g/mL, which is the formula textbooks use when converting weight percent to molarity for concentrated acids, brines, and syrups. Mass percent must be non-negative because a negative weight percent is not physical in this product. Molar mass must also be strictly positive so a blank molecular-weight column cannot silently divide by zero.

Identical inputs always produce identical outputs because there is no network call, no model, no random seed, and no wall clock in the path. Classroom examples include converting about five point five seven mass percent sodium chloride with density about one point zero five grams per milliliter into one molar solution, or turning a labeled percent sucrose stock into mol/L once density and MM are known from the label.

Lab workflows and practical limits

Call the free in-browser mass percent to molarity calculator for homework checks, lecture demos, and quick bench conversions without installing a spreadsheet formula library. Density is solution-specific and temperature-dependent: the calculator never guesses density from a formula string—you supply the value that matches the actual solution at the conditions of interest.

Authors shipping SDKs can map the three fields into labeled inputs Mass percent % w/w, Density g/mL, and Molar mass g/mol with the molarity cell auto-filled—the same columns students write when they convert percent w/w to M by hand on paper. Do not confuse this conversion with mass fraction from raw solute and total masses alone; that is a different product surface when you already weigh both components without using density and molar mass to reach moles per liter.

Reading weight-percent reagent labels

Convert labeled % w/w HCl, H₂SO₄, or NaOH stocks into molarity using measured density and known molar mass before volumetric dilutions or titration setup.

What happens if density or molar mass is zero or negative?

Zero or negative density and molar mass are rejected; both must be strictly positive finite numbers.

What density units does the calculator expect?

Density must be in grams per milliliter (g/mL), which equals g/cm³. Do not send g/L without converting first (divide g/L by 1000).

Is the mass percent to molarity calculator free?

The browser tool runs free on your device.

How is this different from molarity to mass percent?

This tool starts from % w/w plus density and molar mass to produce mol/L. The inverse landing converts molarity into mass percent with the same physical inputs rearranged.

What else does the result show besides the molarity?

It also gives the mass fraction, the mass of one litre of solution and the grams of solute in it. At 1.05 g/mL a litre weighs 1050 g, and if 58.44 g of that is sodium chloride, the solution is 1 mol/L.

Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.

POSThttps://api.kit.forhosting.com/chem/percent-w-w-to-molarity

Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.

curl -X POST https://api.kit.forhosting.com/chem/percent-w-w-to-molarity \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"mass_percent":5.565714285714,"density":1.05,"molar_mass":58.44}'
{
  "mass_percent": 5.565714285714,
  "density": 1.05,
  "molar_mass": 58.44
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "chem.percent_w_w_to_molarity",
  "status": "queued",
  "_links": {
    "result": "/tasks/tsk_…/result"
  }
}

The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.

Per request$0.002

Published price — no tokens, no invented credits. A failed task is never charged.

HTTPCodeMeaning
401unauthorizedMissing or invalid API key.
402insufficient_balanceYour balance doesn't cover the task price.
404unknown_typeThat task type doesn't exist.
429rate_limitedToo many requests. Use the webhook instead of polling.

This capability accepts non-negative mass percent, strictly positive density and molar mass, returns molarity with mass fraction and intermediate grams-per-liter fields, and fails with invalid_input when density or molar mass is zero or negative so pipelines never divide by a blank density or molecular-weight cell. Homework checkers, LIMS scripts, teaching apps, and quality dashboards can pin the same JSON in tests without embedding a chemistry CAS.

How mass percent becomes molarity and which inputs to send

Send a JSON object with required fields mass_percent, density, and molar_mass as finite numbers or numeric strings; aliases such as percent, w_w, weight_percent, mass_pct, pct_w_w, rho, density_g_per_mL, d, specific_gravity, mm, molecular_weight, mw, and MM are accepted when documented by the SDK so client code can speak laboratory English. Density must be strictly positive: a zero value would make mass of solution zero and trigger division by zero in the inverse path of related tools, and negative density is rejected outright with invalid_input and an explicit message rather than returning a signed nonsense molarity.

Reading the response: molarity, intermediates, formula, and method

The unit field is always mol/L so UI code can label the primary result without hard-coding strings across locales. Validation failures such as zero or negative density or molar mass mention the offending field so technicians can correct a blank density or molecular-weight column without reading a stack trace. On success the response echoes numeric mass_percent, density, and molar_mass, then reports mass_fraction as the unitless ratio of solute mass to solution mass, mass_solute_g_per_L as the grams of solute per liter of solution, mass_solution_g_per_L as density times one thousand, and molarity as moles of solute per liter after stable twelve-decimal rounding. Formula restates M equals mass percent times density_g_per_mL times ten over MM, which is the definition used throughout analytical chemistry for this conversion, and method is always percent_w_w_to_molarity so downstream routers can branch without sniffing shapes. Use molarity alone when a titration or stock recipe expects moles per liter; use mass_fraction when a simulation needs a zero-to-one fraction; use the intermediate grams-per-liter fields when a report must show how the answer was built for auditors; use formula and unit together when a teaching page needs a one-line caption under the answer. Missing fields, non-finite numbers, and negative mass percent also raise invalid_input and are not charged after the engine rejects the request.

API usage, pricing, lab workflows, and practical limits

Send a JSON body with mass_percent, density, and molar_mass as numbers or numeric strings. Use the prepaid API when a LIMS integration, tutoring platform, quality dashboard, or inventory system needs a stable contract under KIT balance at $0.002 per successful item; validation failures never consume balance after the engine rejects the request. Pair this endpoint with a molar mass calculator or a density measurement step in your own pipeline when the next task is preparing a volumetric stock from a weight-percent label.

Homework and exam verification

Students send mass percent, density, and MM, compare molarity against structured JSON, and see clear invalid_input errors when density or molar mass is zero or negative.

LIMS and teaching app integrations

Scripts and curriculum tools call a stable prepaid endpoint instead of reimplementing M = (mass% × ρ × 10) / MM in every language and spreadsheet.

How do I convert mass percent to molarity?

Send JSON with mass_percent (% w/w), density (g/mL), and molar_mass (g/mol). The response returns molarity using M = (mass% × density × 10) / MM, with unit mol/L.

Read the full KIT documentation →