# Chemistry Calculators – Molarity Calculator

> Chemistry Calculators – Molarity Calculator is a paid API for AI agents from chemistry-calc.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-29).

Calculates the molarity of a solution from solute grams and volume, or the grams of solute needed to achieve a target molarity and volume.

## Facts

- Endpoint: GET https://chemistry-calc.x402tookit.com/molarity?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chemistry-calculators-molarity-calculator-6e30e3b1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rNfbWc_HLJjjLx39Rraay

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability chemistry-calculators-molarity-calculator-6e30e3b1
```

Example prompt: What's the molarity if I dissolve 58.44 grams of NaCl in 1 litre of water? Give me the moles and molar mass too.

## When to prefer this

Use this endpoint when you need a fast, accurate molarity or mass calculation for a known chemical formula without setting up a local chemistry library. Ideal for lab preparation, homework assistance, or automated chemistry workflows where stoichiometric precision matters.

## Known failure modes

- Unrecognized or malformed chemical formula returns an error or null molar mass
- Missing required query parameters (formula or volumeL) causes a validation failure
- Providing neither grams nor molarity leaves the calculation underdetermined
- Negative or zero volume/mass values may produce errors or nonsensical results

## How this service works

Molarity of a solution from solute grams and volume, or the grams of solute needed to make a target molarity and volume.

## Output

Returns molar mass of the solute, moles computed, molarity in mol/L or grams needed depending on which mode was used, grams per litre, and a plain-English summary of the calculation.

## Request schema (JSON Schema)

```json
{
 "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",
      "volumeL"
     ],
     "properties": {
      "grams": {
       "type": "number",
       "description": "Solute mass in grams (to find molarity)"
      },
      "formula": {
       "type": "string",
       "description": "Solute formula, e.g. NaCl"
      },
      "volumeL": {
       "type": "number",
       "description": "Final solution volume in litres"
      },
      "molarity": {
       "type": "number",
       "description": "Target molarity in mol/L (to find grams)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "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"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "gramsNeeded": {
       "type": [
        "null",
        "number"
       ]
      },
      "gramsPerLitre": {
       "type": [
        "null",
        "number"
       ]
      },
      "molarMassGPerMol": {
       "type": [
        "null",
        "number"
       ]
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chemistry-calculators-molarity-calculator-6e30e3b1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chemistry-calc.x402tookit.com](https://www.zero.xyz/host/chemistry-calc.x402tookit.com/llms.txt)
