Total parenteral nutrition (TPN) calculations demand precise math and clinical reasoning. Every number affects safety: osmolarity determines line choice, calcium-phosphate balance prevents precipitation, acetate versus chloride shifts acid–base status, and glucose and lipid rates affect liver and metabolic risk. This guide walks through macronutrient and electrolyte calculations step by step, shows the conversions you need, and finishes with a full worked example.
Set clinical targets first
Before doing math, define the daily goals. The “why” behind each target guides the numbers you choose.
- Energy: Adults generally 20–30 kcal/kg/day. Lower end for obesity or critical illness early on; higher for malnourished or hypermetabolic patients. Calories prevent catabolism but excess dextrose drives fatty liver and hyperglycemia.
- Protein (amino acids): 1.2–2.0 g/kg/day depending on illness severity. Protein preserves lean mass and supports healing; insufficient protein impairs recovery even if calories are adequate.
- Lipids: Typically 20–30% of total kcal. Limit if triglycerides are high. Lipids provide dense calories and essential fatty acids; too little lipid risks deficiency, too much can cause hypertriglyceridemia and immune effects.
- Dextrose: Set by remaining non-protein calories and keep glucose infusion rate (GIR) safe (adults ≤ 4–5 mg/kg/min). Excess GIR increases CO2 production, hepatic steatosis, and hyperglycemia.
- Fluid: Usually 25–35 mL/kg/day unless restricted. Volume affects final concentrations and osmolarity; tighter volumes raise % dextrose and % amino acids.
- Electrolytes (adult daily maintenance ranges):
- Sodium: 1–2 mEq/kg/day
- Potassium: 1–2 mEq/kg/day
- Magnesium: 8–20 mEq/day
- Calcium: 10–15 mEq/day (as calcium gluconate)
- Phosphate: 20–40 mmol/day
Choose salts (chloride vs acetate vs phosphate) based on labs and acid–base status.
Note: Pediatric and neonatal targets differ. Always apply age-specific guidelines.
Convert macronutrient goals to grams, volumes, and rates
- Calories from protein: protein grams × 4 kcal/g.
- Calories from dextrose: dextrose grams × 3.4 kcal/g.
- Lipid emulsions: 20% lipid = 2 kcal/mL (10% = 1.1 kcal/mL; 30% = 3 kcal/mL).
- GIR (mg/kg/min): [dextrose g/day × 1000] ÷ [weight (kg) × 1440]. Keep ≤ 4–5 in adults.
- % dextrose (w/v): (dextrose g ÷ final PN mL) × 100.
- % amino acids (w/v): (amino acid g ÷ final PN mL) × 100.
- Convert grams to stock solution volume:
- Dextrose 70%: 0.7 g/mL. Volume = needed grams ÷ 0.7.
- Amino acids 15%: 0.15 g/mL. Volume = needed grams ÷ 0.15.
- Lipid 20%: kcal needed ÷ 2 kcal/mL.
Electrolytes: dose, choose the right salt, and convert to volumes
The clinical “why” for each salt:
- Acid–base: Acetate is metabolized to bicarbonate and helps correct metabolic acidosis. Chloride helps in metabolic alkalosis. Phosphate salts also bring sodium or potassium.
- Potassium vs sodium source: Choose sodium phosphate if potassium is high; choose potassium phosphate if sodium is high or potassium is low.
Common adult daily targets (adjust to labs, renal/hepatic status):
- Sodium: 1–2 mEq/kg/day. Delivered as sodium chloride, sodium acetate, and sodium phosphate.
- Potassium: 1–2 mEq/kg/day. Delivered as potassium chloride, potassium acetate, and potassium phosphate.
- Magnesium: 8–20 mEq/day. Usually magnesium sulfate.
- Calcium: 10–15 mEq/day. Prefer calcium gluconate in PN (safer with phosphate than calcium chloride).
- Phosphate: 20–40 mmol/day. Sodium or potassium phosphate.
Typical stock concentrations (verify your institution’s products):
- 23.4% sodium chloride: 4 mEq Na and 4 mEq Cl per mL
- Sodium acetate: 2 mEq/mL
- Potassium chloride: 2 mEq/mL
- Potassium acetate: 2 mEq/mL
- Sodium phosphate: 3 mmol phosphate/mL and 4 mEq Na/mL
- Potassium phosphate: 3 mmol phosphate/mL and 4.4 mEq K/mL
- Magnesium sulfate 50%: 4 mEq Mg/mL
- Calcium gluconate 10%: 0.465 mEq Ca/mL
Convert dose to volume by dividing the target mEq or mmol by the product’s mEq or mmol per mL.
Calcium–phosphate compatibility: keep it soluble
Ca–phos precipitation is the most dangerous compounding error. Risk increases with higher concentrations, higher temperatures, higher pH (lower amino acid%), and using calcium chloride. To reduce risk:
- Use calcium gluconate for PN.
- Ensure adequate amino acid concentration (higher % AA improves solubility).
- Add phosphate first, mix, then add calcium near the end.
- Keep the product of concentrations conservative: many use Ca (mEq/L) × Phos (mmol/L) ≤ ~150–200 as a practical ceiling, recognizing exact limits depend on formula and temperature.
Osmolarity, route, and final concentrations
- Central line: Required for most adult TPN. Final osmolarity commonly > 900–1000 mOsm/L.
- Peripheral PN: Keep osmolarity typically ≤ 900 mOsm/L; often limit dextrose and amino acids to avoid phlebitis.
- Estimating osmolarity:
- Dextrose ≈ 5 mOsm per gram
- Amino acids ≈ 10 mOsm per gram
- Electrolytes: roughly sum of mOsm contributed by each ion (≈ mEq for monovalent; account for both cation and anion). Lipids contribute little to osmolarity.
Worked example: 70‑kg adult on central TPN (1.8 L/day)
Clinical goals: 25 kcal/kg/day; protein 1.5 g/kg/day; lipids 30% of total kcal; remainder from dextrose. Moderate metabolic acidosis (prefer acetate). Normal renal function.
- Total calories: 70 kg × 25 = 1750 kcal/day.
- Protein: 70 × 1.5 = 105 g/day → protein kcal = 105 × 4 = 420 kcal.
- Lipids: 30% of total kcal = 0.30 × 1750 = 525 kcal → with 20% lipid (2 kcal/mL): 525 ÷ 2 = 262.5 mL/day.
- Dextrose kcal needed: 1750 − 420 − 525 = 805 kcal → dextrose grams = 805 ÷ 3.4 = 237 g/day.
- Check GIR: 237,000 mg ÷ (70 × 1440) = 2.35 mg/kg/min (safe ≤ 4–5).
- Final volume target: 1800 mL/day (3-in-1 assumed for simplicity).
Convert macronutrients to volumes:
- Dextrose 70%: 237 g ÷ 0.7 = 339.9 mL.
- Amino acids 15%: 105 g ÷ 0.15 = 700 mL.
- Lipid 20%: 262.5 mL.
- Subtotal volume (before electrolytes, vitamins, water): 339.9 + 700 + 262.5 = 1302.4 mL.
Electrolyte goals: Na 1.5 mEq/kg = 105 mEq/day; K 1 mEq/kg = 70 mEq/day; Mg 12 mEq/day; Ca 12 mEq/day; Phos 30 mmol/day.
Choose salts (acidosis → favor acetate):
- Phosphate: Use sodium phosphate to avoid extra potassium. 30 mmol as sodium phosphate (3 mmol/mL) = 10 mL; sodium load from NaPhos = 10 mL × 4 mEq/mL = 40 mEq Na.
- Remaining sodium needed: 105 − 40 = 65 mEq → give mostly acetate: 55 mEq Na acetate + 10 mEq Na chloride.
- Na acetate 2 mEq/mL: 55 mEq → 27.5 mL.
- 23.4% NaCl 4 mEq/mL: 10 mEq → 2.5 mL.
- Potassium: 70 mEq total → 50 mEq as potassium acetate + 20 mEq as potassium chloride.
- K acetate 2 mEq/mL: 50 mEq → 25 mL.
- K chloride 2 mEq/mL: 20 mEq → 10 mL.
- Magnesium: 12 mEq as Mg sulfate 50% (4 mEq/mL) → 3 mL.
- Calcium: 12 mEq as calcium gluconate 10% (0.465 mEq/mL) → 25.8 mL.
Additives (typical): adult multivitamin 10 mL; trace elements 1–3 mL; thiamine 100 mg per refeeding risk. Use your local protocol.
Volume check: Electrolytes volume ≈ 10 + 27.5 + 2.5 + 25 + 10 + 3 + 25.8 ≈ 103.8 mL. Add vitamins/trace ≈ ~12–15 mL. Total so far ≈ 1302.4 + 103.8 + 12 = 1418.2 mL. Add sterile water to reach 1800 mL final volume: ~381.8 mL.
Final concentrations and compatibility checks:
- % dextrose: 237 g ÷ 1800 mL × 100 = 13.2%.
- % amino acids: 105 g ÷ 1800 mL × 100 = 5.8%.
- Calcium–phosphate product (approximate): Ca per L = 12 mEq ÷ 1.8 L = 6.7 mEq/L; phosphate per L = 30 mmol ÷ 1.8 L = 16.7 mmol/L; product ≈ 112 (conservative, typically acceptable with AA 5.8% and dextrose 13%).
- Osmolarity (rough): Dextrose 237 g × 5 ≈ 1185 mOsm; AA 105 g × 10 ≈ 1050 mOsm; electrolytes add several hundred more. Per liter > 1000 mOsm/L → central line appropriate.
- GIR: 2.35 mg/kg/min (safe).
- Lipid infusion rate: 262.5 mL of 20% = 52.5 g/day → 52.5 ÷ 70 = 0.75 g/kg/day and 0.031 g/kg/hr (well below 0.11 g/kg/hr ceiling).
Safety checks and adjustments
- Refeeding risk (low BMI, prolonged poor intake): Start low dextrose (e.g., ≤ 150 g/day), advance over 3–5 days, preload and supplement phosphate, potassium, magnesium, and thiamine.
- Hyperglycemia: Lower dextrose or rate; add insulin per protocol; verify GIR ≤ 4–5 mg/kg/min in adults.
- Hypertriglyceridemia: Hold or reduce lipid if TG > 400–500 mg/dL; reassess daily.
- Renal impairment: Reduce potassium, magnesium, and possibly phosphate; consider lower protein only in non-dialysis acute kidney injury; dialysis patients often need higher protein and more electrolytes replacement.
- Hepatic impairment: Avoid excessive dextrose; adjust protein to tolerance (often 1–1.5 g/kg); monitor ammonia and mental status.
- Acid–base: Use acetate to correct metabolic acidosis; use chloride to address metabolic alkalosis. Reassess daily chemistry and ABG/CO2.
- Sodium and fluid restrictions: Tighten sodium and total volume; this raises % dextrose and % AA—recheck osmolarity and line route.
- Calcium safety: Do not use calcium chloride in PN. Avoid co-infusion of calcium-containing PN with incompatible drugs at the Y-site (e.g., ceftriaxone in neonates).
- Order of mixing: Add phosphate first, then other components, calcium near the end; follow compounding SOPs to minimize precipitation.
Quick reference: formulas you will use
- Total kcal/day: target kcal/kg × weight (kg).
- Protein grams: target g/kg × weight (kg); protein kcal = grams × 4.
- Lipid volume (20%): desired lipid kcal ÷ 2 kcal/mL.
- Dextrose grams: total kcal − protein kcal − lipid kcal, then ÷ 3.4.
- GIR (mg/kg/min): [dextrose g/day × 1000] ÷ [weight × 1440].
- % dextrose: (dextrose g ÷ final mL) × 100.
- % amino acids: (AA g ÷ final mL) × 100.
- Dextrose 70% volume: grams ÷ 0.7; AA 15% volume: grams ÷ 0.15.
- Electrolyte volume: ordered mEq or mmol ÷ product concentration (mEq or mmol per mL).
- Osmolarity estimate: (dextrose g × 5) + (AA g × 10) + electrolytes ≈ mOsm per bag; then ÷ liters for mOsm/L.
- Ca–phos check: keep Ca (mEq/L) × Phos (mmol/L) conservatively ≤ ~150–200; prefer calcium gluconate.
Mastering TPN math is about linking physiology to numbers. Set clear goals, choose the right salts, convert accurately to grams and volumes, and run the compatibility and safety checks every time. When in doubt, start conservatively, monitor daily labs, and titrate toward targets.

I am a Registered Pharmacist under the Pharmacy Act, 1948, and the founder of PharmacyFreak.com. I hold a Bachelor of Pharmacy degree from Rungta College of Pharmaceutical Science and Research. With a strong academic foundation and practical knowledge, I am committed to providing accurate, easy-to-understand content to support pharmacy students and professionals. My aim is to make complex pharmaceutical concepts accessible and useful for real-world application.
Mail- Sachin@pharmacyfreak.com
