{"uid":"cap_q8y5EfxjHb8td3dgdtQUI","slug":"chemical-formula-molecular-weight-calculator-13a87d27","name":"Chemical Formula Molecular Weight Calculator","description":"Molecular weight calculator for chemical formulas: parses parentheses and hydrate notation to return total molar mass, atom counts, and the mass contribution of each element. For chemistry coursework, reagent prep, and formulation agents needing an exact figure instead of an estimated one.","url":"https://x402.forgemesh.io/chemical-formula-weight","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"formula":{"type":"string","description":"chemical formula e.g. C6H12O6"}}},"responseSchema":{"type":"json","example":{"atom_count":3,"composition":[{"count":2,"element":"H","mass_percent":11.19},{"count":1,"element":"O","mass_percent":88.81}],"molar_mass_g_per_mol":18.015}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_OVZ-_LWOdYKG3KyqhsdfS","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses a chemical formula (including parentheses and hydrate notation) and returns total molar mass, per-element atom counts, and mass contributions for each element.","exampleAgentPrompt":"What's the exact molar mass of copper sulfate pentahydrate (CuSO4·5H2O)? I need the total molecular weight, atom counts, and the mass contribution of each element.","exampleUseCases":null,"resultDescription":"Returns total molar mass in g/mol, atom counts per element, and the mass fraction/contribution of each element present in the formula. Handles nested parentheses and hydrate notation precisely.","failureModes":["Invalid or unparseable chemical formula string returns an error","Unknown element symbols in the formula cause a parse failure","Malformed parentheses or unbalanced notation may result in error","Empty formula field returns a validation error"],"whenToPreferThis":"Use this endpoint when you need an exact, computed molar mass with full element breakdown rather than a lookup or estimate — especially when the formula contains parentheses, nested groups, or hydrate notation (e.g. CuSO4·5H2O, Ca3(PO4)2). Ideal for chemistry coursework, reagent preparation calculations, and formulation workflows where precision matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:57:56.295Z","isFirstParty":false}