{"uid":"cap_ob6XPaRAHnaycT24Z59T5","slug":"magent-sodium-deficit-calculator-adrogu-madias-2a773aff","name":"Magent Sodium Deficit Calculator (Adrogué–Madias)","description":"Sodium deficit from weight, sex, and measured Na using Adrogué–Madias TBW (0.6 male / 0.5 female). Deterministic published arithmetic with citation; not a sodium infusion protocol.","url":"https://api.magentlab.com/api/calc/sodium_deficit","method":"GET","headers":{},"bodySchema":{"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","HEAD","DELETE"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","required":["sex","sodium_mmol_l"],"properties":{"sex":{"enum":["female","male"],"type":"string","description":"Sex used for TBW: 0.6 × weight (male) or 0.5 × weight (female)."},"weight_kg":{"type":"number","description":"Weight in kilograms. Provide weight_kg or weight_lb."},"weight_lb":{"type":"number","description":"Weight in pounds. Converted as kg = lb * 0.45359237."},"sodium_mmol_l":{"type":"number","description":"Measured serum sodium in mmol/L. Range 90-135 (hyponatremia)."},"desired_na_mmol_l":{"type":"number","description":"Target serum sodium in mmol/L (120-150), must exceed measured Na. Omitted uses 140."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"path":"/api/calc/sodium_deficit","count":2,"items":[{"sex":"male","tbw_l":42,"formula":"adrogue_madias","citation":{"id":"adrogue-madias-hyponatremia-2000","doi":"10.1056/NEJM200005253422107","title":"Hyponatremia","source":"N Engl J Med. 2000;342(21):1581-1589","authors":"Adrogué HJ, Madias NE"},"weight_kg":70,"disclaimer":"Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.","sodium_mmol_l":120,"desired_na_mmol_l":140,"formula_expression":"TBW_L = 0.6 * weight_kg (male) or 0.5 * weight_kg (female); sodium_deficit_mmol = TBW_L * (desired_na_mmol_l - sodium_mmol_l)","sodium_deficit_mmol":840},{"sex":"male","tbw_l":42,"formula":"adrogue_madias","citation":{"id":"adrogue-madias-hyponatremia-2000","doi":"10.1056/NEJM200005253422107","title":"Hyponatremia","source":"N Engl J Med. 2000;342(21):1581-1589","authors":"Adrogué HJ, Madias NE"},"weight_kg":70,"disclaimer":"Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.","sodium_mmol_l":120,"desired_na_mmol_l":140,"formula_expression":"TBW_L = 0.6 * weight_kg (male) or 0.5 * weight_kg (female); sodium_deficit_mmol = TBW_L * (desired_na_mmol_l - sodium_mmol_l)","sodium_deficit_mmol":840}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_DeFePdaiSzGGZQcbtap8S","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates sodium deficit in mmol using the Adrogué–Madias total body water formula based on patient sex, weight, and measured serum sodium.","exampleAgentPrompt":"Calculate the sodium deficit for a male patient weighing 80 kg with a measured serum sodium of 118 mmol/L targeting 130 mmol/L, using the Adrogué–Madias method.","exampleUseCases":[{"title":"ICU hyponatremia assessment","prompt":"I have a female ICU patient, 65 kg, with a serum sodium of 112 mmol/L. What's her sodium deficit if we're targeting 120 mmol/L?"},{"title":"ED sodium correction planning","prompt":"Can you calculate the sodium deficit for a 90 kg male patient who came in with a sodium of 122 mmol/L? Use the default target of 140."},{"title":"Nephrology consult documentation","prompt":"I need the Adrogué–Madias sodium deficit for a 55 kg female with a measured Na of 128 mmol/L and a target Na of 135 mmol/L."}],"resultDescription":"Returns the calculated sodium deficit in mmol based on Adrogué–Madias total body water (0.6 × weight for males, 0.5 × weight for females), the measured serum sodium, and the target serum sodium (default 140 mmol/L), along with a citation to the published formula.","failureModes":["Missing required sex or sodium_mmol_l parameters returns a 400 error","Serum sodium outside the valid hyponatremia range (90–135 mmol/L) may return a validation error","Neither weight_kg nor weight_lb provided may result in a missing weight error","Target sodium below measured sodium returns an error (target must exceed measured Na)","Target sodium outside 120–150 mmol/L range may be rejected"],"whenToPreferThis":"Use this endpoint when you need a deterministic, citation-backed sodium deficit calculation using the Adrogué–Madias TBW formula for hyponatremic patients. Prefer this over manual calculation when integrating into clinical decision-support workflows or documentation pipelines where formula accuracy and provenance matter. This is a pure arithmetic endpoint — not a treatment protocol or infusion rate calculator.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:06:56.556Z","isFirstParty":false}