{"uid":"cap_bLa_iu_C1ILE-YpvKl9mG","slug":"sampson-2020-ldl-c-calculator-0014a867","name":"Sampson 2020 LDL-C Calculator","description":"Sampson 2020 estimated LDL-C from total cholesterol, HDL, and triglycerides (valid through 800 mg/dL). One unit system (mg/dL or mmol/L). Deterministic published equation with citation; not Friedewald, not a diagnosis or statin order.","url":"https://api.magentlab.com/api/calc/sampson","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":[],"properties":{"hdl_mg_dl":{"type":"number","description":"HDL cholesterol in mg/dL (5-150). Same unit system as the other lipids."},"hdl_mmol_l":{"type":"number","description":"HDL cholesterol in mmol/L (0.1-3.9). Converted as mg/dL = mmol/L * 38.67."},"triglycerides_mg_dl":{"type":"number","description":"Triglycerides in mg/dL (10-800). Values above 800 are rejected; Sampson 2020 is not applied above 800 mg/dL."},"triglycerides_mmol_l":{"type":"number","description":"Triglycerides in mmol/L (0.1-9.03). Cap is the SI stand-in for 800 mg/dL (mg/dL = mmol/L * 88.57). The Sampson equation is applied in mg/dL."},"total_cholesterol_mg_dl":{"type":"number","description":"Total cholesterol in mg/dL (50-500). Provide the full mg/dL set or the full mmol/L set, not mixed."},"total_cholesterol_mmol_l":{"type":"number","description":"Total cholesterol in mmol/L (1.3-12.9). Converted as mg/dL = mmol/L * 38.67. Do not mix with mg/dL keys."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"path":"/api/calc/sampson","count":2,"items":[{"unit":"mg_dl","formula":"sampson","citation":{"id":"sampson-2020","doi":"10.1001/jamacardiol.2020.0013","title":"A new equation for calculation of low-density lipoprotein cholesterol in patients with normolipidemia and/or hypertriglyceridemia","source":"JAMA Cardiol. 2020;5(5):540-548","authors":"Sampson M, Ling C, Sun Q, et al."},"hdl_mg_dl":50,"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.","ldl_c_mg_dl":123.4,"ldl_c_mmol_l":3.2,"formula_expression":"LDL-C = TC/0.948 - HDL/0.971 - (TG/8.56 + TG*(TC-HDL)/2140 - TG^2/16100) - 9.44 (mg/dL)","triglycerides_mg_dl":150,"total_cholesterol_mg_dl":200},{"unit":"mg_dl","formula":"sampson","citation":{"id":"sampson-2020","doi":"10.1001/jamacardiol.2020.0013","title":"A new equation for calculation of low-density lipoprotein cholesterol in patients with normolipidemia and/or hypertriglyceridemia","source":"JAMA Cardiol. 2020;5(5):540-548","authors":"Sampson M, Ling C, Sun Q, et al."},"hdl_mg_dl":50,"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.","ldl_c_mg_dl":123.4,"ldl_c_mmol_l":3.2,"formula_expression":"LDL-C = TC/0.948 - HDL/0.971 - (TG/8.56 + TG*(TC-HDL)/2140 - TG^2/16100) - 9.44 (mg/dL)","triglycerides_mg_dl":150,"total_cholesterol_mg_dl":200}]}},"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_dtSjkGbTr2a5lRQrbeCUq","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":"Estimates LDL cholesterol using the Sampson 2020 equation from total cholesterol, HDL, and triglycerides (valid up to 800 mg/dL triglycerides), in either mg/dL or mmol/L.","exampleAgentPrompt":"Can you estimate the LDL cholesterol using the Sampson 2020 equation for a patient with a total cholesterol of 210 mg/dL, HDL of 55 mg/dL, and triglycerides of 150 mg/dL?","exampleUseCases":[{"title":"Lipid panel LDL estimation","prompt":"I have a patient's lipid panel: total cholesterol 240 mg/dL, HDL 45 mg/dL, triglycerides 300 mg/dL — can you use the Sampson 2020 equation to estimate their LDL-C?"},{"title":"SI units LDL calculation","prompt":"Calculate the Sampson 2020 estimated LDL for these values in mmol/L: total cholesterol 6.2, HDL 1.4, triglycerides 2.1."},{"title":"High triglyceride LDL estimation","prompt":"My patient has very high triglycerides at 750 mg/dL, total cholesterol 310 mg/dL, and HDL 38 mg/dL — the Friedewald formula won't work here, can you use the Sampson 2020 method to estimate their LDL?"}],"resultDescription":"Returns the estimated LDL-C value computed via the Sampson 2020 published equation, valid for triglycerides up to 800 mg/dL. Output is in the same unit system as the input (mg/dL or mmol/L). Includes the calculated LDL-C figure with citation context; not a diagnostic recommendation or statin guidance.","failureModes":["Triglycerides exceed 800 mg/dL — request rejected as outside equation validity range","Mixed unit systems provided (some mg/dL, some mmol/L) — validation error","Missing required lipid value (total cholesterol, HDL, or triglycerides) — parameter error","Out-of-range values (e.g. HDL below 5 mg/dL or total cholesterol below 50 mg/dL) — rejected with range error","Payment not provided or insufficient — x402 payment required response"],"whenToPreferThis":"Choose this endpoint when you need to estimate LDL-C from a standard lipid panel, especially when triglycerides are elevated (up to 800 mg/dL) where the Friedewald formula becomes unreliable. Prefer this over Friedewald-based calculators for patients with hypertriglyceridemia. Use when both mg/dL and mmol/L inputs are supported and you need a deterministic, citable published equation rather than a model-based estimate.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:57:55.743Z","isFirstParty":false}