Dietitian.Tools
Loading…

Nutrition Needs Methods

How calorie, protein, and fluid estimates are built in this tool.

This page documents the Nutrition Needs calculator. The math is a reimplementation of Kimberly’s Nutrition Calculator (“KimberCalc”) by Gary Rayman (https://rayman.co/portfolio/KimberCalc/). It follows the calculator already shipping in this repository.

What the tool estimates

From height, weight, sex, amputation flags, and clinical conditions, the tool estimates calorie, protein, and fluid ranges, then optional enteral formula rate and flush math. It is clinical decision support for trained dietitians, not a diagnosis and not a place to enter patient identifiers.

Ideal body weight (Hamwi)

Ideal body weight is Hamwi, stored in pounds:

  • Men: 106 lb at 60 in, plus 6 lb per inch above 60 in, or minus 2 lb per inch below 60 in
  • Women: 100 lb at 60 in, plus 5 lb per inch above 60 in, or minus 2 lb per inch below 60 in

Unit conversions in this module: lb ÷ 2.205, in × 0.0254, and cm ÷ 2.54. %IBW is actual weight divided by IBW.

Calorie bands by BMI

Before condition rules, kcal/kg follows BMI:

  • BMI < 15 → 35–40 kcal/kg
  • BMI 15–18.4 → 30–35 kcal/kg
  • BMI 18.5–24.9 → 25–30 kcal/kg
  • BMI ≥ 25 → 20–25 kcal/kg

When %IBW is at least 150, calorie totals switch to adjusted body weight ((actual lb − IBW) × 0.25 + IBW) ÷ 2.205 and use 25–30 kcal/kg on that weight. Protein and fluid totals keep using actual weight.

Condition adjustments

Selected diagnoses change protein offsets and, for some boxes, replace or scale the kcal/kg range. Rules run in source order; later replacements can overwrite earlier ones. Exclusive groups (for example dialysis versus CKD IV & V) clear conflicting boxes the same way the live tool does.

Fluid defaults stay near 25–30 mL/kg, with sepsis, UTI, or stage 3–4 pressure wounds moving to 30–35 mL/kg and CHF to 20–25 mL/kg.

Enteral formula math

Formula rate uses the high end of the calorie range, hours on feed, and kcal/mL for the selected product. Flush volume compares formula water to the high end of the fluid range. Modular products add calories, protein, and fluid after the formula portion. See the on-screen rule text after you choose a formula for the exact printed wording.

Known quirks preserved from KimberCalc

Behavior that looks clinically odd is kept on purpose so you can compare this tool with KimberCalc before changing anything:

  • Amputation percentages multiply BMI by (1 + sum of segment fractions). They do not change ideal body weight or the kilogram weight used for calorie, protein, or fluid totals. The source marks those percentages as still needing research.
  • When %IBW is at least 150, calorie totals use adjusted body weight ((actual lb − IBW) × 0.25 + IBW) ÷ 2.205. Protein, fluid, and formula protein/fluid/sodium per kg keep using actual weight. Formula calories per kg use the adjusted weight.
  • The BMI ≥ 45 branch sets 20–25 kcal/kg, which the BMI ≥ 25 band already set. The source comment says "BMI > 40". %IBW ≥ 150 wins when both are true and sets 25–30 kcal/kg.
  • Critical-care calorie and protein checkboxes do not look at the patient's BMI. Names that say "Pro = IBW × 2.0" or "× 2.5" do not multiply IBW; protein is the normal 0.8–1 g/kg range plus 0.4 and 0.99, then the shared cap.
  • Protein sums every selected offset onto 0.8–1 g/kg, then if the low end is ≥ 2 it becomes 1.8 and if the high end is ≥ 2 it becomes 2.0. CRRT's comment says 2.0–2.5 g/kg; the cap makes it 1.8–2.0. Covid-19's high end lands on the cap (2.0). Critical care's +0.99 stops at 1.99, and the slider step of 0.1 then displays 2.
  • Calorie condition rules run in source order. Cancer or sepsis adds 5 kcal/kg, COPD multiplies by 1.1 and 1.15, then HIV, cancer cachexia, the three critical-care boxes, liver disease, pressure wounds 3 and 4, obese (not critical care), malnutrition, and s/p Whipple each replace the kcal/kg range. Later boxes win. Several of those boxes can be on together.

The full quirk list lives in src/lib/nutritionNeeds.ts next to the implementation.

Frequently asked questions

What is KimberCalc?

KimberCalc is Kimberly’s Nutrition Calculator by Gary Rayman. This tool reimplements that clinical math for testing and everyday RD use. Behavior that looks clinically odd is preserved on purpose so you can compare results before deciding what to change.

How is ideal body weight calculated?

Ideal body weight uses Hamwi in pounds: men 106 lb at 60 in plus 6 lb per inch above (or minus 2 lb per inch below); women 100 lb at 60 in plus 5 lb per inch above (or minus 2 lb per inch below). Conversions use lb ÷ 2.205, in × 0.0254, and cm ÷ 2.54.

Which weight is used for calories when %IBW is high?

When %IBW is at least 150, calorie totals use adjusted body weight ((actual lb − IBW) × 0.25 + IBW) ÷ 2.205. Protein, fluid, and most formula-per-kg lines keep using actual weight.

Should I enter protected health information?

No. Enter only the height, weight, and clinical flags you need for the estimate. Do not enter names, medical record numbers, or other identifiers. The calculator is clinical decision support for trained professionals, not a charting system.

References

  1. KimberCalc by Gary Rayman: https://rayman.co/portfolio/KimberCalc/
  2. Hamwi GJ. Changing dietary concepts. In: Wohl MG, Goodhart RS, eds. Modern Nutrition in Health and Disease. 1964. (Classic IBW method cited by name; no single stable free full-text URL was verified.)
  3. ASPEN / SCCM 2016 critical care nutrition guideline (PubMed): https://pubmed.ncbi.nlm.nih.gov/26773077/
  4. CDC adult BMI categories (context for BMI bands used upstream of kcal/kg): https://www.cdc.gov/bmi/adult-calculator/bmi-categories.html

Product nutrient values for named formulas follow the figures stored in this repository’s formula table. Confirm against current manufacturer labels before clinical use.