{"uid":"cap_6vCAdMcJvSv_Op6e14aE3","slug":"chemistry-calculators-molar-mass-percent-composition-9468bb2f","name":"Chemistry Calculators – Molar Mass & Percent Composition","description":"Molar mass and percent composition by element for a formula, including brackets and hydrates such as CuSO4.5H2O.","url":"https://chemistry-calc.x402tookit.com/molar-mass?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":{"formula":{"type":"string","description":"e.g. C6H12O6, Ca(OH)2, K4[Fe(CN)6], CuSO4.5H2O"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"input":{"type":["null","string"]},"source":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"totalAtoms":{"type":["null","number"]},"composition":{"type":["array","null"],"items":{"type":"object","properties":{"name":{"type":["null","string"]},"atoms":{"type":["null","number"]},"element":{"type":["null","string"]},"massPercent":{"type":["null","number"]},"atomicWeight":{"type":["null","number"]},"massGramsPerMole":{"type":["null","number"]}}}},"hillFormula":{"type":["null","string"]},"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_Td3jteRPoFU2reh8Z5ngP","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":"Calculates the molar mass and elemental percent composition for any chemical formula, including parentheses, brackets, and hydrates like CuSO4·5H2O.","exampleAgentPrompt":"What is the molar mass and percent composition by element for copper sulfate pentahydrate CuSO4.5H2O?","exampleUseCases":[{"title":"Lab prep mass calculation","prompt":"I need to make a solution with copper sulfate pentahydrate — can you tell me the molar mass and elemental breakdown of CuSO4.5H2O so I can figure out the right amount to weigh?"},{"title":"Chemistry homework help","prompt":"For my homework I need the percent composition of each element in glucose, C6H12O6 — can you calculate that including the molar mass?"},{"title":"Coordination compound analysis","prompt":"What's the molar mass and elemental percent composition of potassium hexacyanoferrate K4[Fe(CN)6]? I need the Hill formula too."}],"resultDescription":"Returns the molar mass in g/mol, a breakdown of each element's name, symbol, atom count, atomic weight, mass in grams per mole, and mass percent, plus the Hill formula, total atom count, and optional metadata like source and disclaimer.","failureModes":["Invalid or unrecognized chemical formula returns an error or null result","Malformed bracket or parenthesis notation may fail to parse","Unknown element symbols cause calculation failure","Missing required 'formula' query parameter returns a validation error"],"whenToPreferThis":"Use this endpoint when you need molar mass and full elemental composition data for any chemical formula — especially complex ones with parentheses, square brackets (coordination compounds), or hydrate dot notation (e.g. CuSO4.5H2O). It returns structured per-element data including mass percent, making it ideal for stoichiometry, lab prep, and educational tasks. Prefer this over a periodic table lookup when the input is a compound formula rather than a single element.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T13:13:43.168Z","isFirstParty":false,"canonicalSlug":"chemistry-calculators-molar-mass-percent-composition-9468bb2f"}