Fiber Calculator Formula
Understand the math behind the fiber calculator. Each variable explained with a worked example.
Formulas Used
Dietary Fiber
fiber_g = food_weight_g * fiber_pct / 100% of 28 g Daily Value
pct_daily_28g = (food_weight_g * fiber_pct / 100) / 28 * 100Variables
| Variable | Description | Default |
|---|---|---|
food_weight_g | Food Weight(g) | 100 |
fiber_pct | Fiber Content | 7 |
How It Works
How to Calculate Fiber Content
Formula
Fiber (g) = Food Weight (g) x Fiber Percentage / 100
Daily Recommendations
High-Fiber Foods
Worked Example
Calculate fiber in 100 g of cooked lentils.
food_weight_g = 100fiber_pct = 7
- 01Lentil fiber content: 7 g per 100 g cooked.
- 02Fiber: 100 x 7/100 = 7 g.
- 03% of daily value: (7/28) x 100 = 25%.
Ready to run the numbers?
Open Fiber Calculator