LDL calculator and cholesterol ratio calculator

This LDL calculator works out your LDL from three numbers on your cholesterol test. Those are your total, your HDL and your triglycerides. The classic formula is total minus HDL minus triglycerides divided by 5 (Friedewald, 1972). You also get a newer formula and your cholesterol ratios.

Next to each result is the range most labs print, where there is one. Where a named physician has stated an optimal line on video, you see that too.

Published 10 November 2026 · free, with no account

Your numbers

Units on your lab results

The boxes start with an example: total cholesterol 200, HDL 50 and triglycerides 150 mg/dL. Type your own numbers and the results change as you go.

LDL, newer formula (Sampson) 123 mg/dL

LDL, classic formula (Friedewald) 120 mg/dL

Worked out from your three numbers
ResultYoursTypical lab rangeOptimal, on video
LDL, newer formula (Sampson)123 mg/dLUp to 130 mg/dL Yours is inside itNone found. See why
LDL, classic formula (Friedewald)120 mg/dLUp to 130 mg/dL Yours is inside itNone found. See why
Non-HDL cholesterol150 mg/dLUp to 130 mg/dL Yours is over itNone found. See why
Total cholesterol to HDL ratio4.0Your lab's own, if it prints oneNo quote on file yet
LDL to HDL ratio2.5Your lab's own, if it prints oneNo quote on file yet
Triglycerides to HDL ratio3.0 in mg/dLYour lab's own, if it prints oneNo quote on file yet
The three numbers in the boxes
TestYoursTypical lab rangeOptimal, on video
Total cholesterol200 mg/dLUp to 200 mg/dL Yours is inside itNone found. See why
HDL cholesterol50 mg/dLMen: 40 to 90 mg/dL Yours is inside itWomen: 50 to 100 mg/dL Yours is inside itOver 60 mg/dL, ideally Dr. Mark Hyman 11:21 Yours is under itOver 50 mg/dL, if you can Dr. Mark Hyman 11:21 Yours is right on it
Triglycerides150 mg/dLUnder 150 mg/dL Yours is right on itUnder 100 mg/dL Dr. Peter Attia 0:36 Yours is over it100 mg/dL or under Dr. Sarah Hallberg 22:06 Yours is over it

A number over a line is worth your attention. It is not a diagnosis. Every line is in mg/dL, the unit US labs print. If you switch to mmol/L, the “Yours is” words still check your own number. Tap a time to watch them say it.

Skip the typing: add your whole report to the Decode app as a photo or PDF. Join the waitlist

How does this LDL calculator work?

Your lab measures total cholesterol, HDL and triglycerides. Labs often work out LDL from those three. Each formula here starts with your total and takes away your HDL. Then it takes away a guess at the cholesterol in the particles that carry blood fats (VLDL).

The classic formula, from 1972

LDL = total cholesterol − HDL − triglycerides ÷ 5

This formula guesses the cholesterol in VLDL as your triglycerides divided by 5. It uses that same 5 for everyone. A Johns Hopkins paper found the right number to divide by changes as your levels change (Martin and colleagues, JAMA, 2013). The formula itself dates from 1972 (Friedewald and colleagues).

The newer formula, from 2020

LDL = TC ÷ 0.948 − HDL ÷ 0.971 − (TG ÷ 8.56 + TG × non-HDL ÷ 2140 − TG² ÷ 16100) − 9.44

TC is total cholesterol and TG is triglycerides, all in mg/dL. This one comes from the National Institutes of Health. Its guess for VLDL moves with your triglycerides and your non-HDL (Sampson and colleagues, JAMA Cardiology).

Why do the two LDL numbers differ?

When your triglycerides are low, the two numbers sit close together. As your triglycerides rise, they drift apart. Only the classic formula divides by 5 for everyone (Martin and colleagues, 2013).

From 400 mg/dL of triglycerides up, Friedewald gets less accurate. The Sampson paper says its equation is as accurate up to 800 mg/dL as Friedewald is under 400 (JAMA Cardiology, 2020). The calculator shows a note when you pass either line.

Your own lab may print a third number. Many labs have switched to the Johns Hopkins method, the Sampson paper says (2020). That method picks the divisor from a table of 180 values (Martin and colleagues, 2013). So your lab's LDL may not match either number here. Some labs measure LDL instead, and print the word direct next to it.

How are the cholesterol ratios worked out?

This cholesterol ratio calculator divides one number by another. Total cholesterol to HDL is your total divided by your HDL. LDL to HDL uses the Sampson LDL. Triglycerides to HDL is your triglycerides divided by your HDL.

The triglycerides to HDL ratio depends on units. The same blood gives a bigger ratio in mg/dL than in mmol/L. So only compare it with a ratio in the same unit.

Non-HDL cholesterol is your total minus your HDL. It counts all the cholesterol that HDL does not carry.

Decode has no quote on file yet that puts a number on these ratios. If your lab prints a range for one, it sits next to the ratio on your results.

What optimal lines are on video for these numbers?

LDL cholesterol

Nobody Decode quotes puts a target on LDL cholesterol, so the calculator shows the range most US labs print.

“I don't pay attention to LDL cholesterol.” Dr. Peter Attia, M.D. Watch at 6:12 →

He looks at a different test instead, ApoB, which counts the particles that carry cholesterol into artery walls. His line for ApoB is on the ApoB page.

Total cholesterol

Nobody Decode quotes puts a target on total cholesterol either. A doctor's quote on why is on the total cholesterol page.

Non-HDL cholesterol

Nobody Decode quotes has named a number for non-HDL cholesterol either.

HDL cholesterol

Labs print 40 to 90 mg/dL for men and 50 to 100 for women. Dr. Mark Hyman's optimal line starts higher, at 60.

“Your HDL should be over 60 ideally, over 50 if you can manage it.” Dr. Mark Hyman, M.D. Watch at 11:21 →

Dr. Thomas Dayspring, a lipid doctor, does not trust this test at all.

“If HDLs are important to the cardiovascular system, and I maintain they are, the metric HDL cholesterol is useless.” Dr. Thomas Dayspring, M.D. Watch at 43:31 →

Triglycerides

Most labs call triglycerides normal under 150 mg/dL. Dr. Peter Attia and Dr. Sarah Hallberg put the optimal line at 100.

“I generally like to see triglycerides below 100” Dr. Peter Attia, M.D. Watch at 0:36 →

“they have normal triglycerides, which are being defined as less than 150. We argue in our practice that's very high, and anything over 100 is elevated.” Dr. Sarah Hallberg, D.O., medical director, Virta Health Watch at 22:06 →

What does this calculator leave out?

Your LDL here is an estimate from three other numbers. A direct LDL test measures it.

The Johns Hopkins table that many labs have switched to is not built in.

Age, sex and health history are not part of the math, and nothing here is a diagnosis.

Common questions

How do you calculate LDL cholesterol?

Start with total cholesterol. Subtract HDL. Then subtract a guess at the cholesterol in the particles that carry blood fats (VLDL). The classic Friedewald formula guesses from triglycerides alone. The newer Sampson equation also uses non-HDL cholesterol.

Can you calculate LDL when triglycerides are over 400?

Yes, with the newer Sampson equation. The classic Friedewald formula gets less accurate there. The Sampson paper says its equation is as accurate up to 800 mg/dL as Friedewald is under 400 (JAMA Cardiology, 2020).

What is a good cholesterol ratio?

Decode has no quote on file yet that puts a number on the total cholesterol to HDL ratio. If your lab prints a range for it, that range sits next to the ratio on your results.

Why does my lab's LDL differ from this calculator?

Your lab may use a third method, from Johns Hopkins. Or it may measure LDL directly. Your results may name the method next to the number, such as calc or direct.

Keep reading