Health
Henderson-Hasselbalch Equation (pH / HCO₃⁻ / PCO₂)
Solve any one of pH/HCO₃⁻/PaCO₂ from the other two via pH = 6.1 + log10(HCO₃⁻/(0.03×PaCO₂)). Reports linear Henderson [H⁺] cross-check. Derived from Henderson 1908, Hasselbalch 1916, Siggaard-Andersen 1974, LITFL, StatPearls, Berend 2016. Not medical advice.
json· JSON resultOpen tool
Quick start
Call this tool from your code in three languages.
cURL
curl -X POST 'https://api.elysiatools.com/en/api/tools/bicarbonate-ph-conversion' \
-H 'Content-Type: application/json' \
-d '{"ph":0,"hco3":24,"paco2":40,"decimalPlaces":2}'API reference
Send a POST request with your inputs as JSON. File parameters require a separate upload first.
Endpoint
HTTP
POST https://api.elysiatools.com/en/api/tools/bicarbonate-ph-conversionParameters
| Name | Type | Required | Description |
|---|---|---|---|
| ph | number | No | Arterial pH. Provide any TWO of pH / HCO₃⁻ / PaCO₂; the tool solves the third. If all three are provided, the tool checks Henderson-Hasselbalch consistency instead. |
| hco3 | number | No | Bicarbonate (mmol/L). Provide any TWO of pH / HCO₃⁻ / PaCO₂. |
| paco2 | number | No | Arterial PaCO₂ (mmHg). Provide any TWO of pH / HCO₃⁻ / PaCO₂. |
| decimalPlaces | number | No | — |
Response format
JSON result
MCP integration
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Server configuration
Add this block to your MCP client configuration:
mcp.json
{
"mcpServers": {
"elysiatools-bicarbonate-ph-conversion": {
"name": "bicarbonate-ph-conversion",
"description": "Solve any one of pH/HCO₃⁻/PaCO₂ from the other two via pH = 6.1 + log10(HCO₃⁻/(0.03×PaCO₂)). Reports linear Henderson [H⁺] cross-check. Derived from Henderson 1908, Hasselbalch 1916, Siggaard-Andersen 1974, LITFL, StatPearls, Berend 2016. Not medical advice.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=bicarbonate-ph-conversion",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}List available tools
After connecting to the SSE endpoint, list the exposed tools:
tools/list
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Call this tool
Invoke the tool by its id, passing arguments built from its parameters:
tools/call
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "bicarbonate-ph-conversion",
"arguments": {
"ph": 0,
"hco3": 24,
"paco2": 40,
"decimalPlaces": 2
}
}
}Chain multiple tools in one session with a comma-separated toolId list, e.g. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (max 20).
Questions or issues? Contact [email protected]