Moles to atoms calculator
Convert both ways with Avogadro's number: 1 mol is 6.02214076 × 10²³ atoms, molecules or ions, and a particle count divided by that number gives moles. Enter either the moles or the particles and get the other. Free in your browser.
- Free
- Runs in your browser
- No sign-up
- Your data stays on your device
Run — free
Worked example
- Moles
- 1
- Particles
- 602,214,076,000,000,000,000,000
- Avogadro
- 602,214,076,000,000,000,000,000
- N A
- 602,214,076,000,000,000,000,000
- Unit moles
- mol
A moles-to-atoms calculator turns amount of substance into the number of elementary entities—atoms, molecules, ions, or formula units—using Avogadro's number, and converts a particle count back into moles with the same closed formulas every chemistry course teaches. Enter moles to get N equals n times N_A, or enter a particle count to get n equals N over N_A, with the exact SI Avogadro constant six point zero two two one four zero seven six times ten to the twenty-three per mole. Lab prep, stoichiometry homework, exam checks, and automated graders all need that bidirectional conversion without a spreadsheet or a full chemical database.
What moles, particles, and Avogadro's number mean together
Amount of substance in moles is the chemist's count of how many particles you have on the scale of Avogadro's number, while the raw particle count N is how many atoms, molecules, ions, or formula units sit in the sample. The Avogadro constant N_A links the two exactly: by the 2019 SI redefinition it is fixed at six point zero two two one four zero seven six times ten to the twenty-three reciprocal moles, not a measured experimental average that drifts between textbooks.
The defining relations are N equals n times N_A when you know the amount in moles, and n equals N divided by N_A when you know the particle count. Those identities are exact once units are consistent—moles times entities per mole yield entities, and entities divided by entities per mole yield moles—so classroom problems and industrial batch sheets use the same algebra.
Teachers and automated graders care about the negative-moles rejection as much as the happy path: a negative amount of substance is not a physical conversion for this tool, and a silent absolute-value fallback would hide a data-entry error.
One mole of any pure substance therefore contains exactly N_A elementary entities, whether those entities are water molecules, iron atoms, or sodium ions; the check path recomputes either N or n with the same fixed rounding used for published fields, so a successful response always ships with steps you can assert in tests or lab notebooks.
Practical tips, limits, and related searches
Keep moles and particle counts inside the published absolute ranges so N equals n times N_A and n equals N over N_A cannot overflow into a non-finite result the solver must reject. Prefer sending numbers rather than pre-formatted strings when you control the client; string numbers are accepted only when they match a strict finite numeric pattern including scientific notation such as six point zero two two e twenty-three.
Prefer this capability when you already have moles or a particle count and only need the Avogadro bridge; if your source is sample mass in grams, convert mass to moles first with a moles-from-mass tool. Round-trip checks are easy: convert moles to particles and divide back by N_A to recover the original moles within the same rounding, and confirm that changing only the direction flips the formula string between the two documented identities.
What you can do with it
Homework checks for N = n · N_A
Students enter textbook mole amounts and compare hand-written atom or molecule counts against a deterministic result before submitting.
Lab prep particle estimates
Technicians convert planned moles into expected entity counts for dilute samples, surface coverages, or stoichiometry checks.
FAQ
How do you find moles from a particle count?
Divide the number of entities by Avogadro's number: n = N / N_A. Provide particles (or atoms/molecules); omit moles.
Can I send both moles and particles?
No. Provide exactly one of moles or particles so the direction of conversion is unambiguous. N_A is fixed by SI.
Is the moles to atoms calculator free?
The browser tool is free and runs locally.
How do I convert moles to atoms?
Multiply the moles by Avogadro's number, 6.02214076 × 10²³ per mole, a value fixed exactly by the 2019 SI redefinition. Two moles give twice that count and half a mole gives half.
Does a mole of water hold as many particles as a mole of iron?
Yes. One mole of any pure substance contains exactly 6.02214076 × 10²³ entities, whether they are water molecules, iron atoms or sodium ions. The count depends only on the amount in moles.
Related tools
For developers — API access
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.
API endpoint
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.
Call it from your stack
curl -X POST https://api.kit.forhosting.com/chem/avogadro-number \
-H "Authorization: Bearer $KIT_KEY" \
-H "Content-Type: application/json" \
-d '{"moles":1,"n":0}'const res = await fetch("https://api.kit.forhosting.com/chem/avogadro-number", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.KIT_KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
"moles": 1,
"n": 0
})
});
const { task_id } = await res.json();import os, requests
res = requests.post(
"https://api.kit.forhosting.com/chem/avogadro-number",
headers={"Authorization": f"Bearer {os.environ['KIT_KEY']}"},
json={
"moles": 1,
"n": 0
},
)
task_id = res.json()["task_id"]<?php
$res = file_get_contents("https://api.kit.forhosting.com/chem/avogadro-number", false, stream_context_create([
"http" => [
"method" => "POST",
"header" => "Authorization: Bearer " . getenv("KIT_KEY") . "\r\nContent-Type: application/json",
"content" => '{"moles":1,"n":0}',
],
]));
$task = json_decode($res, true);body := bytes.NewBufferString(`{"moles":1,"n":0}`)
req, _ := http.NewRequest("POST", "https://api.kit.forhosting.com/chem/avogadro-number", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("KIT_KEY"))
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)Example request
{
"moles": 1,
"n": 0
}Example response
{
"task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
"type": "chem.avogadro_number",
"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.
Pricing
Published price — no tokens, no invented credits. A failed task is never charged.
Limits
max_abs_moles | 1000000000000 |
max_abs_particles | 1e+36 |
Errors
| HTTP | Code | Meaning |
|---|---|---|
401 | unauthorized | Missing or invalid API key. |
402 | insufficient_balance | Your balance doesn't cover the task price. |
404 | unknown_type | That task type doesn't exist. |
429 | rate_limited | Too many requests. Use the webhook instead of polling. |
Technical notes
Negative moles are rejected with a clear invalid_input error so a worksheet typo never silently invents a negative particle count.
How to call the API and what comes back
Avogadro's number is fixed by the solver; you do not send a custom N_A. Send a JSON body with exactly one of moles (aliases n, amount, mol) in moles or particles (aliases N, atoms, molecules, entities, count) as a non-negative particle count. Absolute moles must stay within the published limit of one trillion and particle counts within one times ten to the thirty-six so intermediate products remain finite in IEEE double precision on the Worker and in the browser. On success the response echoes rounded moles and particles, sets avogadro and N_A to the same SI constant, unit_moles to mol, unit_particles to entities, unit_avogadro to mol^-1, direction to moles_to_particles or particles_to_moles, formula to N equals n times N_A or n equals N over N_A, message to a short English summary, and steps to an ordered array of substitution lines. Failed validation—both or neither of moles and particles, non-finite numbers, values outside absolute limits, or negative moles or particles—returns invalid_input and is never charged. Pricing is a flat $0.002 per successful request with unit item and zero marginal unit price.
Practical tips, limits, and related searches
When teaching, pair examples: one mole yields exactly N_A entities; two moles yield two times N_A; half a mole yields half of N_A; and moles equals negative one demonstrates the hard invalid_input path for negative amount of substance. This landing targets people searching for a moles to atoms calculator, moles to molecules, or Avogadro number converter online; it is not a mass-to-moles tool that needs molar mass, not a molecular-weight look-up from a chemical name, and not an ideal-gas solver for PV equals nRT. Failed tasks that return invalid_input do not consume prepaid balance, which keeps exploratory scripts cheap when learners deliberately set moles to a negative value.
Integration use cases
Unit tests for chemistry helpers
Generate known-good moles↔particles pairs plus deliberate negative-moles rejections for coding kata and grading pipelines.
Technical questions
How do you convert moles to atoms or molecules?
Multiply amount in moles by Avogadro's number: N = n · N_A, with N_A = 6.02214076×10²³ mol⁻¹. This tool returns the particle count with fixed rounding and substitution steps.
What happens if moles is negative?
Conversion is rejected. The API returns invalid_input instead of inventing a negative particle count.