Back to methodology
Onboarding calculation
Fiber Target Methodology
How onboarding generates the daily fiber target and the higher therapeutic fiber reference.
Status: Used in the final target summary and gut-health tracking.
Last updated: June 15, 2026
Inputs and outputs
Inputs
- Age
- Gender
- Target calories
- Lean mass
- Goal
- Zone 2 minutes per week
Outputs
- Recommended fiber grams per day
- Therapeutic fiber grams per day
Formula
who_minimum_g = 25
demographic_reference_g = male 38, male over 50 30, female 25, female over 50 21, teen male 38, teen female 26
calorie_driven_g = (target_calories / 1000) * 14
lean_mass_adjustment_g = clamp((lean_mass_kg - sex_reference_lean_mass) * 0.12, -2, 4)
activity_adjustment_g = zone2 >= 180 ? 2 : zone2 >= 135 ? 1 : 0
metabolic_adjustment_g = goal == lose ? 2 : 0
recommended_g = round(clamp(max(who_minimum_g, demographic_reference_g, calorie_driven_g) + adjustments, 21, 50))
therapeutic_g = clamp(round(recommended_g + 10), 30, 50)
Calculation steps
- Start with WHO minimum fiber and demographic reference targets.
- Compare those with a calorie-density target of 14 g per 1000 kcal.
- Add small adjustments for lean mass, activity, and fat-loss goal.
- Clamp the result to a practical 21 to 50 g/day planning range.
- Create a higher therapeutic reference by adding 10 g/day, capped at 50 g/day.
Guardrails
- Fiber should generally be increased gradually.
- People with gastrointestinal disease, swallowing issues, strict low-residue diets, or fluid restrictions need individualized clinical advice.
Sources
These formulas describe how Unflame estimates onboarding targets. They are planning estimates and should be reviewed against real-world trends, user preference, symptoms, and professional guidance where relevant.