API & MCP

Everything a person can do on pH, Buffer & Titration Curve Calculator, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

pH, Buffer & Titration Curve Calculator

Three pH calculators in one. Convert between pH, pOH, [H₃O⁺] and [OH⁻]. Design or check a buffer: the pH of a weak acid and its conjugate base (Henderson–Hasselbalch next to the exact charge balance), the concentrations and grams for a target pH, the buffer capacity and the pH after adding a strong acid or base. Draw the titration curve of a strong or weak acid or base with the equivalence and half-equivalence points, the steepest point and matching indicators. Nine common buffer acids are built in. Part of the Proofline math notebook.

Inputs of pH, Buffer & Titration Curve Calculator
FieldTypeDefaultDescription
modeselect (convert, buffer, titration)"convert"Calculation
valuetext—Known value (convert). pH 3.2, pOH 4, H+ 1e-3 M or OH- 0.01 M.
acidselect (custom, acetic, formic, benzoic, hf, hocl, carbonic, phosphate, tris, ammonium)"acetic"Buffer acid
constanttext—Ka, pKa, Kb or pKb. For your own buffer acid or a weak analyte in a titration.
acidConctext—Weak acid [HA]. Buffer: give [HA] and [A⁻] for the pH, or leave both empty and give a target pH.
baseConctext—Conjugate base [A⁻]
targetPHnumber—Target pH (buffer recipe)
totalConctext—Total buffer concentration. Recipe: [HA] + [A⁻]. Empty: 0.1 M.
volumetext—Buffer volume. Gives the amounts and grams to weigh, and is needed for additions.
addAcidtext—Add strong acid. Amount of HCl (or another strong acid) added to the buffer volume.
addBasetext—Add strong base
analyteselect (strong-acid, weak-acid, strong-base, weak-base)"weak-acid"Sample (titration)
analyteConctext—Sample concentration
analyteVolumetext—Sample volume
titrantConctext—Titrant concentration
maxVolumetext—Plot up to (titrant volume). Empty: twice the equivalence volume.

Example request

pH 3.2 as concentrations

curl -X POST https://prooflinephbuffer.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{"mode":"convert","value":"pH 3.2"}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "proofline-ph-buffer": { "type": "http", "url": "https://prooflinephbuffer.usefulweb.app/mcp" }
  }
}