Cholesterol Calculator
Ratio, non-HDL and LDL from your lipid panel, with NIH healthy levels by age and sex
A cholesterol calculator turns a lipid panel into the numbers clinicians read: the ratio of total cholesterol to HDL, non-HDL cholesterol and an LDL estimate, each compared with the NIH healthy level for your age and sex. A man with total cholesterol of 220 mg/dL, HDL of 45 and triglycerides of 160 has a ratio of 4.9, non-HDL cholesterol of 175 mg/dL (the healthy level for adults is under 130) and an LDL of 146 mg/dL by the NIH equation or 143 by the Friedewald formula, both in the borderline high range of 130 to 159.
Last updated: November 10, 2026
Method: Non-HDL = total cholesterol − HDL; ratio = total ÷ HDL. LDL by the Friedewald formula (1972), used only below triglycerides of 400 mg/dL, and the Sampson/NIH equation (2020), valid up to 800 mg/dL and preferred over Friedewald by the 2026 ACC/AHA guideline. Healthy levels from MedlinePlus (NIH, October 7, 2026), adult categories from NHLBI (ATP III), ages 2 to 19 from Table 18 of the 2026 guideline. mmol/L = mg/dL × 0.02586 (cholesterol) or × 0.01129 (triglycerides), per CDC NHANES.
Included: Ratio, non-HDL, two LDL estimates, an optional lab LDL, a category and healthy level for every value in mg/dL or mmol/L, and the step-by-step math. The LDL category and the count of healthy values use your lab LDL if you enter one, otherwise the NIH estimate; the Friedewald result is shown for comparison and used only when the NIH equation gives no usable value.
Not included: Martin/Hopkins LDL (it needs a 180-cell lookup table), apoB, lipoprotein(a), risk scores such as PREVENT and treatment advice. Educational estimate, not a diagnosis.
🧪 Your lipid panel
Needed for the LDL estimates.
Calculated or direct; used for the LDL category if entered.
Age (years)
Sex
Sex changes one cut point: for adults, HDL below 40 mg/dL is low in men and below 50 mg/dL in women.
🧪 Total cholesterol to HDL ratio
A risk marker without an official cut point: NHLBI's ATP III report calls it a powerful predictor of heart disease but not a treatment target.
📊 Your numbers vs. healthy levels
1 of 5 values is within the healthy level for men 20 and older.
Healthy levels from MedlinePlus (NIH, updated October 7, 2026); categories from NHLBI (ATP III) and MedlinePlus. Calculated values are rounded to whole mg/dL, as labs report them, before they are rated.
📋 Step-by-step (mg/dL)
- 1. Non-HDL. 220 − 45 = 175
- 2. Ratio. 220 ÷ 45 = 4.89
- 3. Friedewald. VLDL ≈ 160 ÷ 5 = 32; LDL = 175 − 32 = 143
- 4. NIH equation. 220 ÷ 0.948 − 45 ÷ 0.971 − (160 ÷ 8.56 + 160 × 175 ÷ 2140 − 160² ÷ 16100) − 9.44 = 146.10
Cholesterol calculator: ratio, LDL, non-HDL and healthy levels by age
A standard lipid panel measures total cholesterol, HDL cholesterol and triglycerides. LDL is usually calculated from those three, and non-HDL is total minus HDL, as the 2026 ACC/AHA dyslipidemia guideline describes the panel. MedlinePlus notes that an LDL marked "calculated" on a report is such an estimate, while a "direct" LDL was measured. This calculator repeats the lab's arithmetic, shows two LDL equations side by side and rates each value against the published NIH levels.
For the rest of a heart check, see the Blood Pressure Calculator and the Waist to Height Ratio Calculator; the eGFR Calculator reads the kidney result that often comes from the same blood draw.
Healthy cholesterol levels by age and sex
MedlinePlus, the National Library of Medicine's health site, lists these desirable levels, "levels that are healthy for most people", and names NHLBI as the NIH institute behind the topic. The mmol/L values are converted with CDC's factors.
| Value | 19 or younger | Men 20 and older | Women 20 and older |
|---|---|---|---|
| Total cholesterol | Less than 170 mg/dL (4.40 mmol/L) | Less than 200 mg/dL (5.17) | Less than 200 mg/dL (5.17) |
| Non-HDL | Less than 120 mg/dL (3.10) | Less than 130 mg/dL (3.36) | Less than 130 mg/dL (3.36) |
| LDL | Less than 110 mg/dL (2.84) | Less than 100 mg/dL (2.59) | Less than 100 mg/dL (2.59) |
| HDL | More than 45 mg/dL (1.16) | 60 mg/dL (1.55) or higher is best; below 40 (1.03) is low | 60 mg/dL (1.55) or higher is best; below 50 (1.29) is low |
Triglycerides are not cholesterol but come from the same test; MedlinePlus calls a level below 150 mg/dL (1.69 mmol/L) normal. It adds that the best numbers for you may depend on your age, race, blood pressure, weight, family history and more, so your clinician may set other goals.
Adult categories, from optimal to very high
NHLBI's ATP III guideline and MedlinePlus sort adult values into graded categories, which the calculator uses from age 20:
| Value | Category | mg/dL | mmol/L |
|---|---|---|---|
| Total cholesterol | Desirable | less than 200 | less than 5.17 |
| Borderline high | 200 to 239 | 5.17 to 6.20 | |
| High | 240 or more | 6.21 or more | |
| LDL | Optimal | less than 100 | less than 2.59 |
| Near optimal/above optimal | 100 to 129 | 2.59 to 3.35 | |
| Borderline high | 130 to 159 | 3.36 to 4.13 | |
| High | 160 to 189 | 4.14 to 4.90 | |
| Very high | 190 or more | 4.91 or more | |
| HDL | Low in men | less than 40 | less than 1.03 |
| Low in women | less than 50 | less than 1.29 | |
| Best | 60 or more | 1.55 or more | |
| Triglycerides | Normal | less than 150 | less than 1.69 |
| Borderline high | 150 to 199 | 1.69 to 2.25 | |
| High | 200 to 499 | 2.26 to 5.64 | |
| Very high | 500 or more | 5.65 or more |
CDC uses the same line for high total cholesterol, and the 2026 ACC/AHA guideline calls an LDL of 190 mg/dL or more severe hypercholesterolemia. NHLBI pairs the single adult non-HDL line, under 130 mg/dL, with an HDL of at least 40 in men and 50 in women. MedlinePlus also lists risk-based LDL goals of 100 mg/dL or below at low or borderline risk, 70 or below at high risk or with heart disease, and 55 or below with heart disease at very high risk; those need a clinician's risk assessment.
Children and teens: acceptable, borderline and high
For ages 2 to 19 the calculator uses the pediatric cut points in Table 18 of the 2026 guideline, which come from the National Cholesterol Education Program's Expert Panel on Cholesterol Levels in Children, with non-HDL from the Bogalusa Heart Study. Borderline and high sit near the 75th and 95th percentiles, low HDL near the 10th, and the acceptable column equals the MedlinePlus healthy levels for ages 19 and younger (mg/dL, mmol/L in brackets; the guideline heads the third column Abnormal):
| Value | Acceptable | Borderline | High (HDL: low) |
|---|---|---|---|
| Total cholesterol | less than 170 (4.40) | 170 to 199 (4.40 to 5.16) | 200 or more (5.17) |
| LDL | less than 110 (2.84) | 110 to 129 (2.84 to 3.35) | 130 or more (3.36) |
| Non-HDL | less than 120 (3.10) | 120 to 144 (3.10 to 3.74) | 145 or more (3.75) |
| HDL | more than 45 (1.16) | 40 to 45 (1.03 to 1.16) | less than 40 (1.03) |
| Triglycerides, ages 0 to 9 | less than 75 (0.85) | 75 to 99 (0.85 to 1.12) | 100 or more (1.13) |
| Triglycerides, ages 10 to 19 | less than 90 (1.02) | 90 to 129 (1.02 to 1.46) | 130 or more (1.47) |
A total of 185 mg/dL is desirable for an adult but borderline for a 15-year-old. CDC's survey from August 2021 to August 2023 found at least one abnormal value in 16.5% of children and teens aged 6 to 19, more often in boys (19.2%) than in girls (13.6%).
The cholesterol ratio: formula, examples and limits
Ratio = total cholesterol ÷ HDL cholesterol For 220 and 45 mg/dL the ratio is 4.9, often written 4.9 to 1. Both numbers are cholesterol, so the ratio is the same in mg/dL and mmol/L. NHLBI's ATP III report calls it "a powerful predictor" of coronary heart disease risk that is built into the Framingham risk equations, but it does not make the ratio a target of therapy. The 2026 guideline sets no ratio target either; the PREVENT risk equations it uses include total cholesterol and HDL as separate inputs. The ratio for common combinations:
| Total cholesterol | HDL 35 | HDL 40 | HDL 50 | HDL 60 | HDL 70 |
|---|---|---|---|---|---|
| 160 | 4.6 | 4.0 | 3.2 | 2.7 | 2.3 |
| 180 | 5.1 | 4.5 | 3.6 | 3.0 | 2.6 |
| 200 | 5.7 | 5.0 | 4.0 | 3.3 | 2.9 |
| 220 | 6.3 | 5.5 | 4.4 | 3.7 | 3.1 |
| 240 | 6.9 | 6.0 | 4.8 | 4.0 | 3.4 |
| 260 | 7.4 | 6.5 | 5.2 | 4.3 | 3.7 |
| 280 | 8.0 | 7.0 | 5.6 | 4.7 | 4.0 |
One ratio can hide very different profiles: 160 with HDL 40, 240 with HDL 60 and 300 with HDL 75 all give 4.0, yet their non-HDL is 120, 180 and 225 mg/dL, and only the first is under the adult healthy level of 130.
Non-HDL cholesterol
Non-HDL = total cholesterol − HDL cholesterol Non-HDL counts the cholesterol in every particle except HDL, LDL plus VLDL and the other "bad" types, which is why MedlinePlus says it gives a better picture of heart risk. It needs no triglycerides and no equation and works on a nonfasting sample. The 2026 guideline recommends (Class 1) that labs report it with every standard lipid panel and calls it particularly useful at triglycerides of 150 mg/dL or more. The healthy level is under 130 mg/dL (3.36 mmol/L) for adults and under 120 (3.10) through age 19.
How LDL is calculated: Friedewald and the NIH equation
Friedewald: LDL = TC − HDL − TG ÷ 5 NIH: LDL = TC ÷ 0.948 − HDL ÷ 0.971 − (TG ÷ 8.56 + TG × non-HDL ÷ 2140 − TG2 ÷ 16100) − 9.44 TC is total cholesterol and TG triglycerides, all in mg/dL. Friedewald, Levy and Fredrickson published their formula in 1972, working from fasting samples; it treats one fifth of the triglycerides as VLDL cholesterol. CDC notes that it underestimates LDL below about 70 mg/dL and at high triglycerides, and the 2026 guideline says it cannot be used at triglycerides of 400 mg/dL (4.5 mmol/L) or more. In mmol/L its triglyceride term becomes TG ÷ 2.18.
Sampson and NIH colleagues developed the second equation in 2020 with 18,715 beta-quantification results from 8,656 NIH Clinical Center patients; up to triglycerides of 800 mg/dL it is as accurate as Friedewald is below 400. The 2026 guideline prefers (Class 1) the Martin/Hopkins or Sampson/NIH equation over Friedewald and over most direct LDL tests. Martin/Hopkins swaps the fixed 5 for one of 180 factors from a lookup table; this calculator uses the NIH equation, whose coefficients are published. The two estimates at a total of 200 and HDL of 50 mg/dL:
| Triglycerides | Friedewald LDL | NIH LDL | Gap |
|---|---|---|---|
| 75 | 135 | 136 | 1 |
| 100 | 130 | 132 | 2 |
| 150 | 120 | 123 | 3 |
| 200 | 110 | 115 | 5 |
| 300 | 90 | 100 | 10 |
| 399 | 70 | 85 | 15 |
| 450 | not valid | 79 | |
| 600 | not valid | 60 | |
| 800 | not valid | 40 |
The estimates agree at typical triglycerides and drift apart as triglycerides rise and LDL falls. The LDL row, its category and the count of healthy values use the LDL from your lab report if you enter one, otherwise the NIH estimate; the Friedewald result is shown for comparison and is used only when the NIH equation gives no usable value.
Worked examples
A man in his 50s: total 220, HDL 45, triglycerides 160 mg/dL (the calculator's starting values):
- Ratio: 220 ÷ 45 = 4.89, shown as 4.9
- Non-HDL: 220 − 45 = 175 mg/dL, above the adult healthy level of 130
- Friedewald: 160 ÷ 5 = 32, so LDL = 175 − 32 = 143 mg/dL
- NIH: 232.07 − 46.34 − (18.69 + 13.08 − 1.59) − 9.44 = 146.1, reported as 146 mg/dL
Both LDL estimates are borderline high (130 to 159), as are his total cholesterol and triglycerides. His HDL of 45 is healthy for a man but would be low for a woman, whose line is 50. One of five values is within the healthy level.
A woman in her 60s: total 250, HDL 38, triglycerides 450 mg/dL. Her ratio is 6.6 and non-HDL 212 mg/dL. Friedewald cannot be used at triglycerides of 450; applied anyway, it would give 212 − 90 = 122 mg/dL, near optimal, and understate her LDL. The NIH equation gives 263.71 − 39.13 − (52.57 + 44.58 − 12.58) − 9.44 = 130.57, so 131 mg/dL, borderline high. Her HDL of 38 is low, and her total cholesterol and triglycerides are high. If she had not fasted, the 2026 guideline recommends repeating the test fasting.
Converting between mg/dL and mmol/L
US labs report mg/dL, most other countries mmol/L. Following CDC's national survey, multiply mg/dL by 0.02586 for cholesterol and by 0.01129 for triglycerides, and divide to go back; the calculator converts your entries when you switch units. Cut points are rounded to two decimals, so 200 mg/dL becomes 5.17 mmol/L. Example: 5.2, 1.3 and 1.7 mmol/L are 201, 50 and 151 mg/dL. The ratio is 4.0, non-HDL 3.90 mmol/L and the NIH LDL 3.21 mmol/L (124 mg/dL), near optimal, while the total of 5.2 and triglycerides of 1.7 sit just past their lines and count as borderline high.
How common high cholesterol is, by age and sex
CDC's NHANES survey from August 2021 to August 2023 found high total cholesterol (240 mg/dL or more) in 11.3% of adults and low HDL (below 40 mg/dL) in 13.8%:
| Age | High total, men | High total, women | Low HDL, men | Low HDL, women |
|---|---|---|---|---|
| 20 to 39 | 7.4% | 4.7% | 25.1% | 7.6% |
| 40 to 59 | 18.3% | 15.2% | 20.8% | 7.0% |
| 60 and older | 5.6% | 16.4% | 17.9% | 5.2% |
| All 20 and older | 10.6% | 11.9% | 21.5% | 6.6% |
High total cholesterol is most common at 40 to 59 in men and stays high after 60 in women (15.2% at 40 to 59, 16.4% at 60 and older), in line with MedlinePlus's note that a woman's risk goes up after menopause. Low HDL (below 40 mg/dL in both sexes) is about three times as common in men. CDC estimates that about 86 million US adults have total cholesterol above 200 mg/dL.
Getting tested: fasting, timing and how often
The 2026 guideline accepts a fasting or nonfasting lipid profile and says nonfasting samples work for most people; it advises fasting after a nonfasting triglyceride result of 400 mg/dL or more or with a family history of early heart disease or an inherited lipid disorder. Otherwise follow your lab's instructions; MedlinePlus mentions 9 to 12 hours.
MedlinePlus advises screening children at ages 9 to 11 and 17 to 21 (from age 2 with a family history), younger adults every 5 years, men 45 to 65 and women 55 to 65 every 1 to 2 years, and adults over 65 every year; CDC says most healthy adults need a check every 4 to 6 years. The 2026 guideline starts adult screening at 19, at least every 5 years, and recommends measuring lipoprotein(a) at least once in every adult. High cholesterol has no symptoms, so only a blood test shows it.
What affects cholesterol levels
MedlinePlus lists saturated fat, overweight, physical inactivity and smoking, which lowers HDL, among the factors you can change. Cholesterol also rises with age; men 20 to 39 are more likely than women to have high total cholesterol, but a woman's risk rises after menopause. The heterozygous form of familial hypercholesterolemia, an inherited disorder, affects about 1 in 250 to 300 people according to the 2026 guideline, and steroids, some blood pressure and HIV medicines, chronic kidney disease, diabetes and HIV can raise LDL.
Limitations
LDL equations describe an average relationship and can miss for an individual, especially at very low LDL or very high triglycerides. The calculator cannot tell whether you fasted, does not use apoB or lipoprotein(a), and does not estimate 10-year risk, which the 2026 guideline bases on the PREVENT equations. One test is a snapshot; clinicians look at repeated results and your overall health.
Sources
- MedlinePlus, National Library of Medicine (NIH): Cholesterol Levels: What You Need to Know (updated October 7, 2026), LDL, HDL, Triglycerides and Cholesterol Levels (lab test).
- National Heart, Lung, and Blood Institute (NHLBI): Blood Cholesterol: Diagnosis, ATP III Guidelines At-A-Glance and the ATP III full report (2002).
- Blumenthal RS, Morris PB, Gaudino M, et al. (2026). 2026 ACC/AHA/AACVPR/ABC/ACPM/ADA/AGS/APhA/ASPC/NLA/PCNA Guideline on the Management of Dyslipidemia. Circulation 153(17):e1154-e1276. PubMed
- Friedewald WT, Levy RI, Fredrickson DS (1972). Estimation of the concentration of low-density lipoprotein cholesterol in plasma, without use of the preparative ultracentrifuge. Clinical Chemistry 18:499-502. PubMed
- Sampson M, Ling C, Sun Q, et al. (2020). A New Equation for Calculation of Low-Density Lipoprotein Cholesterol in Patients With Normolipidemia and/or Hypertriglyceridemia. JAMA Cardiology 5:540-548. PubMed; the authors' NIH equation calculator.
- Martin SS, Blaha MJ, Elshazly MB, et al. (2013). Comparison of a novel method vs the Friedewald equation for estimating low-density lipoprotein cholesterol levels from the standard lipid profile. JAMA 310:2061-2068. PubMed
- Centers for Disease Control and Prevention (CDC): NHANES laboratory documentation for total cholesterol, HDL and LDL and triglycerides (conversion factors, equation limits); High Cholesterol Facts; Getting Your Cholesterol Checked; NCHS Data Briefs No. 515 (adults, 2024) and No. 552 (children and teens, 2026).
⚠️ Common mistakes & edge cases
Mixing up mg/dL and mmol/L
A total cholesterol of 5.2 is mmol/L (201 mg/dL). Typed into the mg/dL field it is impossible, so the calculator rejects it and suggests switching the unit; the switch keeps the numbers you typed and changes only the unit.
Using a Friedewald LDL at triglycerides of 400 or more
In the second worked example the formula would report 122 mg/dL, near optimal, while the NIH equation gives 131, borderline high. From 400 mg/dL on, the calculator hides the Friedewald value and says why.
Treating the ratio as a goal
NHLBI's ATP III report makes LDL, not the ratio, the target of therapy. Two people with a ratio of 4.0 can have non-HDL levels of 120 and 225 mg/dL.
Judging a teenager by adult numbers
A total of 185 mg/dL is desirable at 30 but borderline at 15, and an HDL of 44 that is healthy for an adult man is borderline for a teen. Choose the matching age group.
Comparing LDL from different equations
If an older report used Friedewald and a newer one uses Martin/Hopkins or the NIH equation, LDL can shift without any real change: at a total of 200, HDL 50 and triglycerides 300, the two equations differ by 10 mg/dL. Non-HDL is not affected.
Reading a nonfasting triglyceride against fasting lines
Triglycerides rise after a meal. When the 2026 guideline describes elevated triglycerides, it pairs a fasting level of 150 mg/dL with a nonfasting level of 175 mg/dL, so note whether you had eaten.
❓ Frequently asked questions
What is a normal cholesterol level by age?
MedlinePlus (NIH) lists healthy levels for anyone 19 or younger as total cholesterol under 170 mg/dL, non-HDL under 120, LDL under 110 and HDL above 45. For adults 20 and older they are total cholesterol under 200, non-HDL under 130 and LDL under 100; HDL of 60 or more is best, and HDL below 40 in men or below 50 in women is low.
What is a good cholesterol ratio?
No official cut point exists. NHLBI's ATP III report calls the total cholesterol to HDL ratio a powerful predictor of heart disease risk but not a target of therapy, and the 2026 ACC/AHA guideline sets no ratio target. The ratio falls as total cholesterol drops or HDL rises: 200 ÷ 50 is 4.0, 200 ÷ 40 is 5.0. Read it together with LDL and non-HDL.
How do you calculate non-HDL cholesterol?
Subtract HDL from total cholesterol: 220 − 45 = 175 mg/dL. Non-HDL covers LDL, VLDL and the other particles that can build up in arteries, needs no triglyceride value and works on a nonfasting sample. MedlinePlus lists under 130 mg/dL as healthy for adults and under 120 for ages 19 and younger.
How is LDL cholesterol calculated?
Labs usually calculate LDL from total cholesterol, HDL and triglycerides. The Friedewald formula is LDL = total − HDL − triglycerides ÷ 5. The NIH (Sampson) equation adjusts the triglyceride term for your non-HDL level and stays accurate up to triglycerides of 800 mg/dL; the 2026 ACC/AHA guideline prefers it or Martin/Hopkins over Friedewald. For 220, 45 and 160 mg/dL they give 143 and 146.
Why can't LDL be calculated when triglycerides are high?
Friedewald treats one fifth of the triglycerides as VLDL cholesterol, which fails as triglycerides rise. The 2026 ACC/AHA guideline says it cannot be used at triglycerides of 400 mg/dL (4.5 mmol/L) or more, and CDC's national survey calculates it only below 400. The NIH equation works up to 800 mg/dL.
What LDL level is considered high?
For adults, NHLBI and MedlinePlus rate LDL below 100 mg/dL as optimal, 100 to 129 near optimal or above optimal, 130 to 159 borderline high, 160 to 189 high and 190 or more very high; the 2026 ACC/AHA guideline calls 190 or more severe hypercholesterolemia. For ages 2 to 19, under 110 is acceptable, 110 to 129 borderline and 130 or more high.
What is a good HDL level for men and women?
MedlinePlus lists HDL of 60 mg/dL or higher as best for adults. Below 40 mg/dL is low in men and below 50 mg/dL in women; for ages 19 and younger the healthy level is above 45. In CDC's 2021 to 2023 national survey, 21.5% of men and 6.6% of women had HDL below 40 mg/dL.
Do I need to fast before a cholesterol test?
Often not. The 2026 ACC/AHA guideline accepts a fasting or nonfasting lipid profile and says nonfasting samples work for most people, because LDL changes little after a normal meal. It advises fasting after a nonfasting triglyceride result of 400 mg/dL or more or with a family history of early heart disease. MedlinePlus mentions 9 to 12 hours of fasting, so follow your lab's instructions.
How do I convert cholesterol from mmol/L to mg/dL?
Divide total, LDL, HDL and non-HDL cholesterol by 0.02586 and triglycerides by 0.01129, the factors CDC uses in its national survey; multiply to go from mg/dL to mmol/L. A total cholesterol of 5.2 mmol/L is 201 mg/dL, and triglycerides of 1.7 mmol/L are 151 mg/dL. The total to HDL ratio is the same in both units.
How often should I have my cholesterol checked?
MedlinePlus advises testing children at ages 9 to 11 and again at 17 to 21, or from age 2 with a family history of high cholesterol, heart attack or stroke; younger adults every 5 years; men 45 to 65 and women 55 to 65 every 1 to 2 years; and adults over 65 every year. CDC says most healthy adults need a check every 4 to 6 years.
💡 Good to know
The ratio is the same in every unit
Total cholesterol and HDL use the same conversion factor, so 220 ÷ 45 mg/dL and 5.69 ÷ 1.16 mmol/L both give 4.9.
"Calculated" or "direct" LDL on your report
A calculated LDL is an estimate from total cholesterol, HDL and triglycerides; a direct LDL was measured. The 2026 guideline prefers the Martin/Hopkins or NIH equation even over most direct measurements.
Non-HDL needs no equation
Non-HDL is plain subtraction, so it is identical whichever LDL equation your lab uses, and it holds up on a nonfasting sample and at high triglycerides.
Related Calculators
Blood Pressure Calculator
Blood pressure category, chart and MAP (mean arterial pressure)
Waist to Height Ratio Calculator
Waist-to-height ratio and what it indicates
BMI Calculator
Calculate your body mass index and healthy weight range
eGFR Calculator
Kidney function from creatinine (CKD-EPI 2021)
Waist-to-Hip Ratio Calculator
Calculate your waist-to-hip ratio and health risk
Calorie Calculator
Find your daily calorie needs to maintain, lose or gain weight