ForHosting KIT · Science

PPB concentration calculator

0.001 g of solute in 1000 g of solution is 1000 ppb: enter the solute mass and the total mass in the same unit and get the parts per billion and the mass fraction, the scale used for trace contaminants and drinking-water limits. 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
Mass of the solute
0.001
Total mass
1,000
You get
Mass fraction
0.000001 ppb
Ppb
1,000
Precision
10

This PPB concentration calculator finds the parts-per-billion level of a solute when you know the solute mass and the total mass of the solution or sample. Parts per billion on a mass basis is the mass fraction multiplied by one billion: ppb equals solute mass over total mass times one times ten to the nine, provided both masses use the same unit. That scale is the natural language of trace contaminants, drinking-water limits, and ultra-low analyte levels where percent or parts per million would bury the significant digits. Classroom and lab checks include one thousandth of a mass unit of solute in one thousand mass units of solution yielding one million ppb, and two mass units of solute in one billion mass units of total yielding two ppb. The engine uses only finite deterministic arithmetic with no network calls, no sampling, and no date-dependent shortcuts.

What parts per billion tells you

Parts per billion, abbreviated ppb, expresses how much of one component is present relative to a whole when the ratio is extremely small. On the mass basis used by this calculator, the definition is strict and unitless until you multiply by the scale factor: form the mass fraction solute mass divided by total mass, then multiply by one billion to obtain ppb.

Both masses must share the same mass unit—grams with grams, kilograms with kilograms, micrograms with micrograms—because the ratio cancels the unit and leaves a pure fraction before the billion-scale conversion. One ppb therefore means one part of solute mass per one billion parts of total mass; in SI-friendly language that is often illustrated as one microgram of analyte per kilogram of sample when those prefixes are used consistently.

Total mass is the mass of the entire solution or sample after preparation, not the solvent alone, which matters when a protocol weighs a finished aliquot rather than a poured solvent volume. Zero solute mass with a positive total mass is valid and yields zero ppb.

Where ppb concentration fits in study, lab work, and software

Students meet parts per billion when a textbook introduces trace concentration, when a homework problem gives a tiny solute mass and a large sample mass, or when a contest problem expects the billion-scale mass ratio without a calculator that silently switches to volume units. Teachers can pre-generate answer keys for environmental and analytical chemistry sets without trusting opaque apps that confuse ppb with ppm or assume water density when the statement only gives masses.

Lab technicians and quality teams use the same definition when a certificate of analysis lists a mass of analyte and a sample mass, or when a spike recovery worksheet needs a transparent ppb check. Developers call the same contract from scripts to seed deterministic test vectors for chemistry tutors, to normalize user-entered trace levels before a lab notebook export, or to satisfy programming-challenge statements that demand ppb rather than a hand-waved sketch.

Homework and lab checks

Compute mass-based ppb from solute mass and total sample or solution mass before grading worksheets or logging trace levels.

Environmental and QA reporting

Normalize analyte and sample masses into parts per billion for reports, dashboards, and teaching demos.

What does the PPB concentration calculator cost?

It is free in your browser on this page.

How is ppb defined here?

Both masses must use the same mass unit.

What happens if total mass is zero or negative?

Non-positive total mass makes the mass-fraction ratio undefined or non-physical.

Is this the same as molar concentration?

No. Molar concentration is moles per litre (c = n/V). This tool only computes mass-based parts per billion from two masses.

Why are results rounded to a precision?

Default precision is 10 decimal places; you can set precision from 0 to 15.

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/ppb-concentration

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/ppb-concentration \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"solute_mass":0.001,"total_mass":1000}'
{
  "solute_mass": 0.001,
  "total_mass": 1000
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "chem.ppb_concentration",
  "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.

max_abs_value1000000000000000
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.

What parts per billion means and what the response contains

This calculator returns the normalized solute_mass and total_mass, the intermediate mass_fraction, the computed ppb value, the precision used, a method tag ppb_concentration, a short formula reminder, and a unit hint of ppb. There is no automatic conversion from milligrams to kilograms, no density-based volume path, and no mole-fraction or molarity rewrite: the engine either evaluates the mass-based ppb formula inside the supported numeric range or rejects the input with invalid_input. Rejected cases include a missing solute or total mass, non-finite values, magnitudes above the documented ceiling, any total mass that is zero or negative because division by a non-positive total is undefined or non-physical, and a negative solute mass.

How solute mass and total mass are read and stay reproducible

Solute mass must be non-negative; total mass must be a finite positive number. Optional leading plus signs and scientific notation on numeric strings are allowed when they parse as finite decimals; embedded spaces and non-numeric tokens are rejected. The preferred field for the analyte or solute mass is solute_mass, but aliases solute, mass_solute, m_solute, analyte_mass, and m_s are accepted so spreadsheets, query strings, and typed forms can reuse the same contract. The preferred field for the whole is total_mass, with aliases total, mass_total, m_total, solution_mass, m_sol, and sample_mass. Zero or negative total mass fails with invalid_input and a message that names the field and explains that ppb equals solute mass over total mass times one billion is undefined or non-physical for non-positive total mass, so a bad cell does not become a silent infinity or nonsense result. An optional precision field, with aliases decimals and dp, chooses how many decimal places to expose for the numeric outputs, defaulting to ten and capped at fifteen so JSON goldens stay stable. Pair the free browser run on this page with the priced API when you need the identical mathematical result inside an automated pipeline without re-implementing the parts-per-billion definition yourself.

Where ppb concentration fits in study, lab work, and software

Product and education tools use the endpoint when a learner types two masses and the UI must show parts per billion with a clear formula. On this page the work runs entirely in your browser; through the API each successful lookup costs $0.002, failed validation is not charged, and nothing is stored after the response returns. That split — free interactive exploration and a priced, identical API — matches the rest of the KIT tier-A catalog and lets you move from a classroom demo to an automated pipeline without changing the mathematical result. Pair it with molar concentration or other solution calculators when you need related chemistry quantities, and with other science endpoints when you are building a small lab of free, deterministic chemistry tools.

Deterministic test fixtures

Generate reproducible ppb values for unit tests, chemistry tutors, and CI assertions on (solute/total)×1e9.

Read the full KIT documentation →