{"uid":"cap_StO0gxlwECM8pLaE_Lfic","slug":"magent-friedewald-ldl-c-calculator-b00cd863","name":"Magent Friedewald LDL-C Calculator","description":"Friedewald estimated LDL-C from total cholesterol, HDL, and triglycerides. One unit system (mg/dL or mmol/L). Deterministic published equation with citation; not a diagnosis or statin order.","url":"https://api.magentlab.com/api/calc/friedewald","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-400). Values above 400 are rejected; Friedewald VLDL is TG/5 for typical specimens only."},"triglycerides_mmol_l":{"type":"number","description":"Triglycerides in mmol/L (0.1-4.5). Cap is the SI stand-in for 400 mg/dL (mg/dL = mmol/L * 88.57). SI LDL uses TG/2.2."},"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/friedewald","count":2,"items":[{"unit":"mg_dl","formula":"friedewald","citation":{"id":"friedewald-1972","doi":"10.1093/clinchem/18.6.499","title":"Estimation of the concentration of low-density lipoprotein cholesterol in plasma, without use of the preparative ultracentrifuge","source":"Clin Chem. 1972;18(6):499-502","authors":"Friedewald WT, Levy RI, Fredrickson DS"},"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":120,"ldl_c_mmol_l":3.1,"formula_expression":"ldl_c_mg_dl = total_cholesterol_mg_dl - hdl_mg_dl - (triglycerides_mg_dl / 5)","triglycerides_mg_dl":150,"total_cholesterol_mg_dl":200},{"unit":"mg_dl","formula":"friedewald","citation":{"id":"friedewald-1972","doi":"10.1093/clinchem/18.6.499","title":"Estimation of the concentration of low-density lipoprotein cholesterol in plasma, without use of the preparative ultracentrifuge","source":"Clin Chem. 1972;18(6):499-502","authors":"Friedewald WT, Levy RI, Fredrickson DS"},"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":120,"ldl_c_mmol_l":3.1,"formula_expression":"ldl_c_mg_dl = total_cholesterol_mg_dl - hdl_mg_dl - (triglycerides_mg_dl / 5)","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_z57dqKux8osr_QxkvXzUe","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 Friedewald equation from total cholesterol, HDL, and triglycerides in either mg/dL or mmol/L","exampleAgentPrompt":"Calculate the estimated LDL cholesterol using the Friedewald equation for a patient with total cholesterol 210 mg/dL, HDL 55 mg/dL, and triglycerides 150 mg/dL.","exampleUseCases":[{"title":"Lipid panel LDL estimation at bedside","prompt":"I have a patient's lipid panel: total cholesterol is 240 mg/dL, HDL is 45 mg/dL, and triglycerides are 180 mg/dL — what does the Friedewald equation give for their LDL?"},{"title":"SI unit LDL calculation for international lab","prompt":"Can you run the Friedewald LDL calculation using SI units? Total cholesterol is 6.2 mmol/L, HDL is 1.4 mmol/L, and triglycerides are 1.8 mmol/L."},{"title":"Automated LDL flagging in EHR pipeline","prompt":"For a patient whose total cholesterol just came back at 260 mg/dL, HDL at 38 mg/dL, and triglycerides at 220 mg/dL, compute the Friedewald estimated LDL so I can flag whether it crosses the treatment threshold."}],"resultDescription":"Returns the estimated LDL-C value computed via the Friedewald equation (LDL = Total Cholesterol − HDL − Triglycerides/5 in mg/dL, or equivalent in mmol/L), along with the unit system used and a citation to the published equation. Not a clinical diagnosis or treatment recommendation.","failureModes":["Triglycerides above 400 mg/dL (or 4.5 mmol/L) are rejected — Friedewald equation is invalid above this threshold","Mixing mg/dL and mmol/L inputs across parameters returns an error","Missing any of the three required lipid values returns a validation error","Values outside the accepted ranges (e.g. total cholesterol < 50 mg/dL) are rejected","Providing both mg/dL and mmol/L versions of the same parameter causes a conflict error"],"whenToPreferThis":"Use this endpoint when you need a fast, deterministic Friedewald LDL-C estimate from a standard lipid panel without direct LDL measurement, especially when triglycerides are under 400 mg/dL. Prefer the Sampson 2020 sibling endpoint (also on api.magentlab.com) when triglycerides exceed 400 mg/dL or when more modern accuracy is required. This endpoint is ideal for automated clinical workflows, EHR integrations, and risk-stratification pipelines that need a reproducible, citable LDL calculation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:15:30.229Z","isFirstParty":false}