{
  "x402Version": 2,
  "id": 72522,
  "slug": "saylorinnovations-api-chem-molar-mass",
  "resource": "https://saylorinnovations.com/api/chem/molar-mass",
  "description": "Molar mass of a chemical formula with brackets and hydrates - g/mol, Hill formula, atom counts, mass percent per element and moles from a sample in grams",
  "type": "http",
  "serviceName": "Saylor Innovations Data Desk",
  "mimeType": "application/json",
  "resourceType": "API",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "So11111111111111111111111111111111111111112",
      "amount": "95830",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "type": "object",
    "properties": {
      "formula": {
        "type": "string",
        "description": "Formula used for the calculation"
      },
      "hill_formula": {
        "type": "string",
        "description": "Hill formula"
      },
      "molar_mass_g_per_mol": {
        "type": "number",
        "description": "Molar mass g per mol"
      },
      "total_atoms": {
        "type": "number",
        "description": "Total atoms"
      },
      "elements": {
        "type": "array",
        "description": "Per element: atom count, standard atomic weight, mass contribution and mass percent of the compound",
        "items": {
          "type": "object",
          "properties": {
            "element": {
              "description": "Element symbol",
              "type": [
                "string",
                "null"
              ]
            },
            "atoms": {
              "description": "Atoms of the element in the formula",
              "type": [
                "number",
                "null"
              ]
            },
            "atomic_weight": {
              "description": "Atomic weight"
            },
            "mass_contribution": {
              "description": "Mass contribution"
            },
            "mass_percent": {
              "description": "Mass, as a percentage"
            }
          }
        }
      },
      "sample": {
        "type": [
          "object",
          "null"
        ],
        "properties": {
          "grams": {
            "description": "Sample mass supplied",
            "type": [
              "number",
              "null"
            ]
          },
          "moles": {
            "description": "Moles in the sample",
            "type": [
              "number",
              "null"
            ]
          },
          "molecules_or_formula_units": {
            "type": [
              "number",
              "null"
            ],
            "description": "Molecules or formula units"
          }
        },
        "description": "True when this is a fixed sample response"
      },
      "has_radioactive_only_elements": {
        "type": "boolean",
        "description": "True when this has radioactive only elements"
      },
      "note": {
        "type": "string",
        "description": "Caveat or context for reading the result"
      },
      "source": {
        "type": "string",
        "description": "Data source the values come from"
      }
    },
    "required": [
      "molar_mass_g_per_mol",
      "elements"
    ]
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "type": "http",
          "method": "GET",
          "queryParams": {
            "formula": "CuSO4.5H2O",
            "grams": "10"
          }
        },
        "output": {
          "type": "json",
          "example": {
            "formula": "CuSO4.5H2O",
            "hill_formula": "CuH10O9S",
            "molar_mass_g_per_mol": 249.677,
            "total_atoms": 21,
            "elements": [
              {
                "element": "O",
                "atoms": 9,
                "atomic_weight": 15.999,
                "mass_contribution": 143.991,
                "mass_percent": 57.671
              },
              {
                "element": "Cu",
                "atoms": 1,
                "atomic_weight": 63.546,
                "mass_contribution": 63.546,
                "mass_percent": 25.451
              },
              {
                "element": "S",
                "atoms": 1,
                "atomic_weight": 32.06,
                "mass_contribution": 32.06,
                "mass_percent": 12.841
              },
              {
                "element": "H",
                "atoms": 10,
                "atomic_weight": 1.008,
                "mass_contribution": 10.08,
                "mass_percent": 4.037
              }
            ],
            "sample": {
              "grams": 10,
              "moles": 0.0400517,
              "molecules_or_formula_units": 2.41197e+22
            },
            "has_radioactive_only_elements": false,
            "note": "Uses IUPAC conventional standard atomic weights; elements with no stable isotope use the mass number of their longest-lived isotope.",
            "source": "IUPAC standard atomic weights"
          }
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "input": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "http"
              },
              "method": {
                "type": "string",
                "enum": [
                  "GET"
                ]
              },
              "queryParams": {
                "type": "object",
                "properties": {
                  "formula": {
                    "type": "string",
                    "description": "Chemical formula with brackets and hydrate dots, e.g. C6H12O6, Ca(OH)2, CuSO4.5H2O"
                  },
                  "grams": {
                    "type": "string",
                    "description": "optional sample mass in grams to convert to moles and particles"
                  }
                },
                "required": [
                  "formula"
                ]
              }
            },
            "required": [
              "type",
              "method"
            ],
            "additionalProperties": false
          },
          "output": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "json"
              },
              "example": {
                "type": "object",
                "properties": {
                  "formula": {
                    "type": "string",
                    "description": "Formula used for the calculation"
                  },
                  "hill_formula": {
                    "type": "string",
                    "description": "Hill formula"
                  },
                  "molar_mass_g_per_mol": {
                    "type": "number",
                    "description": "Molar mass g per mol"
                  },
                  "total_atoms": {
                    "type": "number",
                    "description": "Total atoms"
                  },
                  "elements": {
                    "type": "array",
                    "description": "Per element: atom count, standard atomic weight, mass contribution and mass percent of the compound",
                    "items": {
                      "type": "object",
                      "properties": {
                        "element": {
                          "description": "Element symbol",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "atoms": {
                          "description": "Atoms of the element in the formula",
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "atomic_weight": {
                          "description": "Atomic weight"
                        },
                        "mass_contribution": {
                          "description": "Mass contribution"
                        },
                        "mass_percent": {
                          "description": "Mass, as a percentage"
                        }
                      }
                    }
                  },
                  "sample": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "grams": {
                        "description": "Sample mass supplied",
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "moles": {
                        "description": "Moles in the sample",
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "molecules_or_formula_units": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "description": "Molecules or formula units"
                      }
                    },
                    "description": "True when this is a fixed sample response"
                  },
                  "has_radioactive_only_elements": {
                    "type": "boolean",
                    "description": "True when this has radioactive only elements"
                  },
                  "note": {
                    "type": "string",
                    "description": "Caveat or context for reading the result"
                  },
                  "source": {
                    "type": "string",
                    "description": "Data source the values come from"
                  }
                },
                "required": [
                  "molar_mass_g_per_mol",
                  "elements"
                ]
              }
            },
            "required": [
              "type"
            ]
          }
        },
        "required": [
          "input"
        ]
      }
    }
  },
  "tags": [
    "molar mass of glucose",
    "molecular weight from a chemical",
    "percent composition by mass",
    "grams to moles calculator",
    "formula mass of a hydrate"
  ],
  "sourceHost": "saylorinnovations.com",
  "lastUpdated": "2026-10-26T22:14:01.956Z",
  "quality": {},
  "metadata": {
    "serviceName": "Saylor Innovations Data Desk",
    "method": "GET",
    "mimeType": "application/json",
    "inputSchema": {
      "type": "object",
      "properties": {
        "formula": {
          "type": "string",
          "description": "Chemical formula with brackets and hydrate dots, e.g. C6H12O6, Ca(OH)2, CuSO4.5H2O"
        },
        "grams": {
          "type": "string",
          "description": "optional sample mass in grams to convert to moles and particles"
        }
      },
      "required": [
        "formula"
      ]
    },
    "exampleResponse": {
      "formula": "CuSO4.5H2O",
      "hill_formula": "CuH10O9S",
      "molar_mass_g_per_mol": 249.677,
      "total_atoms": 21,
      "elements": [
        {
          "element": "O",
          "atoms": 9,
          "atomic_weight": 15.999,
          "mass_contribution": 143.991,
          "mass_percent": 57.671
        },
        {
          "element": "Cu",
          "atoms": 1,
          "atomic_weight": 63.546,
          "mass_contribution": 63.546,
          "mass_percent": 25.451
        },
        {
          "element": "S",
          "atoms": 1,
          "atomic_weight": 32.06,
          "mass_contribution": 32.06,
          "mass_percent": 12.841
        },
        {
          "element": "H",
          "atoms": 10,
          "atomic_weight": 1.008,
          "mass_contribution": 10.08,
          "mass_percent": 4.037
        }
      ],
      "sample": {
        "grams": 10,
        "moles": 0.0400517,
        "molecules_or_formula_units": 2.41197e+22
      },
      "has_radioactive_only_elements": false,
      "note": "Uses IUPAC conventional standard atomic weights; elements with no stable isotope use the mass number of their longest-lived isotope.",
      "source": "IUPAC standard atomic weights"
    },
    "parameterLocation": "query",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "type": "http",
            "method": "GET",
            "queryParams": {
              "formula": "CuSO4.5H2O",
              "grams": "10"
            }
          },
          "output": {
            "type": "json",
            "example": {
              "formula": "CuSO4.5H2O",
              "hill_formula": "CuH10O9S",
              "molar_mass_g_per_mol": 249.677,
              "total_atoms": 21,
              "elements": [
                {
                  "element": "O",
                  "atoms": 9,
                  "atomic_weight": 15.999,
                  "mass_contribution": 143.991,
                  "mass_percent": 57.671
                },
                {
                  "element": "Cu",
                  "atoms": 1,
                  "atomic_weight": 63.546,
                  "mass_contribution": 63.546,
                  "mass_percent": 25.451
                },
                {
                  "element": "S",
                  "atoms": 1,
                  "atomic_weight": 32.06,
                  "mass_contribution": 32.06,
                  "mass_percent": 12.841
                },
                {
                  "element": "H",
                  "atoms": 10,
                  "atomic_weight": 1.008,
                  "mass_contribution": 10.08,
                  "mass_percent": 4.037
                }
              ],
              "sample": {
                "grams": 10,
                "moles": 0.0400517,
                "molecules_or_formula_units": 2.41197e+22
              },
              "has_radioactive_only_elements": false,
              "note": "Uses IUPAC conventional standard atomic weights; elements with no stable isotope use the mass number of their longest-lived isotope.",
              "source": "IUPAC standard atomic weights"
            }
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "type": "object",
          "properties": {
            "input": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "http"
                },
                "method": {
                  "type": "string",
                  "enum": [
                    "GET"
                  ]
                },
                "queryParams": {
                  "type": "object",
                  "properties": {
                    "formula": {
                      "type": "string",
                      "description": "Chemical formula with brackets and hydrate dots, e.g. C6H12O6, Ca(OH)2, CuSO4.5H2O"
                    },
                    "grams": {
                      "type": "string",
                      "description": "optional sample mass in grams to convert to moles and particles"
                    }
                  },
                  "required": [
                    "formula"
                  ]
                }
              },
              "required": [
                "type",
                "method"
              ],
              "additionalProperties": false
            },
            "output": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "json"
                },
                "example": {
                  "type": "object",
                  "properties": {
                    "formula": {
                      "type": "string",
                      "description": "Formula used for the calculation"
                    },
                    "hill_formula": {
                      "type": "string",
                      "description": "Hill formula"
                    },
                    "molar_mass_g_per_mol": {
                      "type": "number",
                      "description": "Molar mass g per mol"
                    },
                    "total_atoms": {
                      "type": "number",
                      "description": "Total atoms"
                    },
                    "elements": {
                      "type": "array",
                      "description": "Per element: atom count, standard atomic weight, mass contribution and mass percent of the compound",
                      "items": {
                        "type": "object",
                        "properties": {
                          "element": {
                            "description": "Element symbol",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "atoms": {
                            "description": "Atoms of the element in the formula",
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "atomic_weight": {
                            "description": "Atomic weight"
                          },
                          "mass_contribution": {
                            "description": "Mass contribution"
                          },
                          "mass_percent": {
                            "description": "Mass, as a percentage"
                          }
                        }
                      }
                    },
                    "sample": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "grams": {
                          "description": "Sample mass supplied",
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "moles": {
                          "description": "Moles in the sample",
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "molecules_or_formula_units": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "Molecules or formula units"
                        }
                      },
                      "description": "True when this is a fixed sample response"
                    },
                    "has_radioactive_only_elements": {
                      "type": "boolean",
                      "description": "True when this has radioactive only elements"
                    },
                    "note": {
                      "type": "string",
                      "description": "Caveat or context for reading the result"
                    },
                    "source": {
                      "type": "string",
                      "description": "Data source the values come from"
                    }
                  },
                  "required": [
                    "molar_mass_g_per_mol",
                    "elements"
                  ]
                }
              },
              "required": [
                "type"
              ]
            }
          },
          "required": [
            "input"
          ]
        }
      }
    },
    "examples": [
      {
        "label": "Unpaid discovery call",
        "method": "GET",
        "url": "https://saylorinnovations.com/api/chem/molar-mass?formula=CuSO4.5H2O&grams=10",
        "expectedStatus": 402
      }
    ],
    "cacheTtlSeconds": 0,
    "capabilities": [],
    "noAccountRequired": true,
    "noApiKeyRequired": true,
    "sideEffects": "Paid calls settle the advertised payment; see the provider contract for execution behavior.",
    "payment": {
      "protocol": "x402",
      "settlement": "direct-to-provider"
    },
    "provider": {
      "name": "Saylor Innovations",
      "host": "saylorinnovations.com",
      "manifestUrl": "https://saylorinnovations.com/.well-known/x402.json"
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": true,
  "featured": false,
  "provider": {
    "host": "saylorinnovations.com",
    "manifest_name": "Saylor Innovations Knowledge Base",
    "source": "submitted",
    "source_manifest_url": "https://saylorinnovations.com/.well-known/x402.json",
    "submitted_at": "2026-10-26T05:52:02.113Z"
  },
  "exampleResponse": {
    "formula": "string",
    "hill_formula": "string",
    "molar_mass_g_per_mol": 0,
    "total_atoms": 0,
    "elements": [
      {
        "element": "string",
        "atoms": 0,
        "atomic_weight": null,
        "mass_contribution": null,
        "mass_percent": null
      }
    ],
    "sample": {
      "grams": 0,
      "moles": 0,
      "molecules_or_formula_units": 0
    },
    "has_radioactive_only_elements": true,
    "note": "string",
    "source": "string"
  }
}