Skip to content
Download

Method

How Basal calculates

All the app’s formulas, with their constants, sources and limits. The worked examples on this page are recalculated by the app’s own code: if a formula changes, a test flags it and the page is updated.

By Théo Serrano, creator of Basal Published on App version 1.4

In short

Basal starts from a published formula (Mifflin-St Jeor) to estimate your expenditure, derives a target and macros anchored to your weight, then corrects the expenditure with what you eat and how your weight actually changes. Every correction is bounded and gradual, and the app shows nothing until there is enough data.

Basal metabolic rate

This is the energy spent at complete rest. Basal uses the Mifflin-St Jeor equation, published in 1990 and the most widely used today:

  • man: 10 × weight (kg) + 6.25 × height (cm) − 5 × age + 5
  • woman: 10 × weight (kg) + 6.25 × height (cm) − 5 × age − 161
Example: man, 30, 175 cm, 70 kg
10 × 70 + 6.25 × 175 − 5 × 30 + 51,648.75 kcal
The same person as a woman (− 161 instead of + 5)1,482.75 kcal

What makes it vary, and its limits, are explained in the basal metabolic rate guide. This value is never changed afterwards: it stays the theoretical reference, and acts as the floor for the calorie target.

Daily expenditure

A day’s total expenditure is the basal metabolic rate multiplied by an activity factor, chosen at sign-up. The step counts shown in the app are there to help you place yourself; they do not enter any calculation.

The app’s activity factors
LevelGuideFactorExample (1,648.75 kcal)
Sedentarylittle or no sport · under 5,000 steps a day× 1.21,979 kcal
Lightly active1 to 3 sessions a week · 5,000 to 7,500 steps× 1.3752,267 kcal
Moderately active3 to 5 sessions a week · 7,500 to 10,000 steps× 1.552,556 kcal
Active6 to 7 sessions a week · 10,000 to 12,500 steps× 1.7252,844 kcal
Very activeintense daily sport · over 12,500 steps× 1.93,133 kcal

Rounded to the kcal. This is the weak point of any formula: between “sedentary” and “moderately active”, the gap is over 500 kcal a day.

Calorie target

The target is a percentage of expenditure, not a fixed number of calories: taking 500 kcal off everyone is a reasonable deficit for some and a severe one for others.

Target levels
GoalGentleModerate (default)Intense
Weight loss− 10 %− 15 %− 20 %
Weight gain+ 5 %+ 10 %+ 15 %

The surplus for gaining is deliberately smaller than the deficit for losing: a large surplus mostly adds fat mass.

Safety floor. The target never goes below the basal metabolic rate, nor below 800 kcal a day. When this floor applies, the app says so instead of correcting silently.

Example: same profile, moderately active, moderate loss
Expenditure: 1,648.75 × 1.552,555.6 kcal
Target: 2,555.6 × (1 − 0.15)2,172 kcal / day

Protein, fat, carbohydrates

Protein and fat are anchored to weight, and carbohydrates take the rest. The reverse (a fixed percentage of calories) gave too little protein on low targets.

Protein, in grams per kilo of reference weight
GoalLittle or no sport3 sessions a week or more
Loss1.82.2
Maintenance1.41.8
Gain1.62.0

“Active” from the “moderately active” level up. The need rises in a deficit, where protein protects muscle mass.

  • Reference weight. Needs follow lean mass, not total weight. Up to a BMI of 25, it is the actual weight. Above that, only a quarter of the excess counts (adjusted body weight formula). Example: 120 kg at 175 cm gives a reference weight of 87.4 kg. See the protein calculator.
  • Fat. The larger of two numbers: 0.8 g per kilo of reference weight (floor), or 30% of calories.
  • Carbohydrates. What remains after protein (4 kcal/g) and fat (9 kcal/g), divided by 4. Never negative.
  • Fibre. 14 g per 1,000 kcal.
Example: 70 kg, 175 cm, active, 2,172 kcal target for loss
Protein: 70 × 2.2154 g
Fat: the larger of 70 × 0.8 = 56 g and 2,172 × 0.3 ÷ 9 = 72.4 g72 g
Carbohydrates: (2,172 − 154 × 4 − 72 × 9) ÷ 4227 g
Fibre: 2,172 ÷ 1,000 × 1430 g

Adaptive expenditure

This is the formula corrected by your data. Over a rolling 28-day window, Basal compares your intake with how your smoothed weight changes:

observed expenditure = average intake − (change in smoothed weight × 7,700) ÷ number of days

7,700 kcal is the usual energy equivalent of one kilogram of body mass. The estimate is only calculated if the window contains:

  • at least 4 weigh-ins, spread over at least 10 days;
  • at least 8 days of logged meals, covering at least 60% of the period.

Otherwise, the app shows “not enough data”. A day with no food logged at all is ignored: it does not count as a fast.

Three safeguards stop an unusual week from derailing the number:

  • plausibility bounds: the observation is brought back between 0.8 and 1.6 times the current theoretical expenditure, which protects against a heavily under-reported log;
  • smoothing: at each usable weigh-in, the estimate only covers 30% of the gap with the observation;
  • maximum step: never more than 150 kcal of change per recalculation.
Example: the formula says 2,556 kcal
Average logged intake2,100 kcal / day
Smoothed weight: − 0.6 kg in 21 days, so 0.6 × 7,700 ÷ 21220 kcal / day
Observed expenditure: 2,100 + 2202,320 kcal
1st recalculation: 2,556 + 0.3 × (2,320 − 2,556)2,485 kcal
2nd recalculation, if the observation stays at 2,320 kcal2,436 kcal
3rd recalculation: the estimate joins the observation smoothly2,401 kcal

For a strategy’s “at maintenance” breaks, the app uses this measured expenditure rather than the formula, provided it rests on at least 5 recalculations and the latest is less than 21 days old. To do this calculation once, from your averages: calculate your real expenditure.

Weight trend

The weight shown as the trend is the average of the weigh-ins over the last 7 days. Water, salt, glycogen and digestion move your weight from one day to the next far more than fat does; it is this average, not the day’s weigh-in, that feeds adaptive expenditure. See why your weight changes from one day to the next.

Session expenditure

Session calories are calculated, never typed in: kcal = MET × weight (kg) × duration (hours). The MET (metabolic equivalent) depends on the activity and the perceived intensity. Example: 1 hour of moderate strength training at 70 kg gives 5.0 × 70 × 1 = 350 kcal.

MET values used by the app
ActivityLightModerateIntense
Strength training3.55.06.0
Running8.09.812.8
Walking2.83.55.0
Cycling4.08.010.0
Swimming5.88.310.0
Football5.07.010.0
Basketball4.56.58.0
Tennis5.07.38.0
CrossFit5.08.010.0
HIIT6.08.510.5
Yoga2.53.04.0
Climbing5.87.59.0
Dance3.04.87.8
Other3.04.56.0

Compendium of Physical Activities (Ainsworth et al., 2011, updated in 2024). CrossFit and HIIT, absent from the Compendium, are based on measurements of complete sessions, rest included (Feito et al., 2018; Nalcakan, 2014; Kliszczewicz et al., 2014). The climbing levels and “moderate” yoga are interpolations, for lack of separate codes.

Strength maximum

The estimated one-rep maximum (1RM) follows the Epley formula: 1RM ≈ load × (1 + reps ÷ 30). Example: 80 kg lifted 8 times gives an estimated 1RM of 101.3 kg. A set of a single rep is already a real maximum: the app then keeps the load as it is, instead of inflating it by 3%. Work out yours with the 1RM calculator.

Recipe values

The calories and macros of the recipes are calculated ingredient by ingredient, to the gram, from ANSES’s Ciqual 2025 food composition table (France). The split shown on each recipe relates the energy from protein (4 kcal/g), carbohydrates (4 kcal/g) and fat (9 kcal/g) to their total.

What these calculations do not do

These are estimates. An expenditure formula is commonly off by about 10% across a population, more for atypical profiles. Adaptive expenditure narrows that gap, but it depends on the quality of your log.

The app does not measure your body composition. The reference weight for macros is a standard approximation, not a measurement of your lean mass.

This is not medical advice. Basal is not a medical device. An expenditure very far from what is expected, pregnancy, illness or an eating disorder are matters for a health professional.

These calculations, on your data.

Basal redoes them for you every week, from your meals and weigh-ins. Free, no account.

Download

Sources

  1. Mifflin MD, St Jeor ST et al. “A new predictive equation for resting energy expenditure in healthy individuals”. American Journal of Clinical Nutrition, 1990, 51(2), p. 241-247.
  2. Frankenfield D, Roth-Yousey L, Compher C. “Comparison of predictive equations for resting metabolic rate in healthy nonobese and obese adults: a systematic review”. Journal of the American Dietetic Association, 2005, 105(5), p. 775-789.
  3. Wishnofsky M. “Caloric equivalents of gained or lost weight”. American Journal of Clinical Nutrition, 1958, 6(5), p. 542-546.
  4. Ainsworth BE et al. “2011 Compendium of Physical Activities: a second update of codes and MET values”. Medicine & Science in Sports & Exercise, 2011, 43(8), p. 1575-1581; 2024 update: pacompendium.com.
  5. Epley B. Poundage Chart. Boyd Epley Workout, 1985.
  6. Institute of Medicine. Dietary Reference Intakes for Energy, Carbohydrate, Fiber, Fat, Fatty Acids, Cholesterol, Protein, and Amino Acids. National Academies Press, 2005 (fibre: 14 g per 1,000 kcal).
  7. ANSES. Ciqual 2025 food composition table, Etalab 2.0 open licence.

Going further