{"uid":"cap_s5kMhNKbdu-79YbX7nN-J","slug":"chemistry-calculators-mole-conversion-ec3a3166","name":"Chemistry Calculators – Mole Conversion","description":"Convert between grams, moles and molecule counts for a chemical formula using Avogadro's number.","url":"https://chemistry-calc.x402tookit.com/mole-convert?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["formula"],"properties":{"grams":{"type":"number","description":"Mass in grams (give exactly one of grams, moles or molecules)"},"moles":{"type":"number","description":"Amount in moles"},"formula":{"type":"string","description":"Chemical formula"},"molecules":{"type":"number","description":"Number of molecules or formula units"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"grams":{"type":["null","number"]},"moles":{"type":["null","number"]},"source":{"type":["null","string"]},"formula":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"molecules":{"type":["null","number"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"totalAtoms":{"type":["null","number"]},"molarMassGPerMol":{"type":["null","number"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_0wDaJEBVYjGDYsCZGFXT-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts between grams, moles, and molecule counts for a given chemical formula using Avogadro's number and molar mass.","exampleAgentPrompt":"How many moles are in 18 grams of water (H2O)? Give me the full mole conversion including molecules and molar mass.","exampleUseCases":[{"title":"Stoichiometry homework help","prompt":"I need to know how many molecules are in 10 grams of glucose (C6H12O6) — can you do the mole conversion for me?"},{"title":"Lab preparation mass calculation","prompt":"I'm preparing a solution and need 0.5 moles of NaCl — how many grams do I need to weigh out?"},{"title":"Molecule count from a known mole amount","prompt":"If I have 3 moles of carbon dioxide (CO2), how many individual molecules is that, and what does that weigh in grams?"}],"resultDescription":"Returns the computed values for grams, moles, and molecule count for the given chemical formula, along with the molar mass in g/mol, total atom count, and a human-readable summary. May also include degraded-mode flags and a disclaimer.","failureModes":["Invalid or unparseable chemical formula returns an error or null fields","None of the optional quantity parameters (grams, moles, molecules) provided — exactly one must be supplied","Negative or zero input quantities may produce invalid results","Extremely large molecule counts may lose floating-point precision"],"whenToPreferThis":"Use this endpoint when you need to convert between grams, moles, and molecule counts for a specific chemical formula. It's ideal for stoichiometry problems, lab prep calculations, and educational chemistry tasks. Prefer this over a general calculator when you need both the molar mass lookup and the unit conversion combined in one call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T13:12:40.381Z","isFirstParty":false,"canonicalSlug":"chemistry-calculators-mole-conversion-ec3a3166"}