Catalog/chem-molarity

Chemistry

Molarity of a solution API

Computes molarity (mol/L) from solute moles, or from grams plus a formula/molar mass, and a solution volume in L or mL. Answers 'What is the molarity of 0.5 mol in 2 L?', 'What is the concentration of 5 g NaCl in 250 mL?'.

Price$0.04per request
MethodPOST
Route/v1/chemistry/molarity
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
chemistrymolarityconcentrationsolutionmol-per-litremolarstoichiometryanalytical
API URLhttps://x402.hexl.dev/v1/chemistry/molarity
Integration docs
Example request
{
  "moles": 0.5,
  "volumeL": 2
}
Example response
{
  "molarity": 0.25,
  "units": "mol/L",
  "moles": 0.5,
  "volumeL": 2,
  "formula": "M = moles / litres"
}
Input schema
{
  "type": "object",
  "properties": {
    "moles": {
      "type": "number"
    },
    "grams": {
      "type": "number"
    },
    "formula": {
      "type": "string",
      "examples": [
        "NaCl"
      ]
    },
    "molarMass": {
      "type": "number"
    },
    "volumeL": {
      "type": "number",
      "examples": [
        2
      ]
    },
    "volumeMl": {
      "type": "number"
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}