healthsciencecalculator.get_bmr
Functions
|
Computes Basal Metabolic Rate (BMR) using the Harris-Benedict equation. |
Module Contents
- healthsciencecalculator.get_bmr.get_bmr(weight: float, height: float, age: int, sex: str) float[source]
Computes Basal Metabolic Rate (BMR) using the Harris-Benedict equation.
The BMR is an estimate of the number of calories your body needs to perform basic life-sustaining functions, such as breathing, circulation, and cell production.
- Parameters:
weight (float) – Weight of the individual in kilograms.
height (float) – Height of the individual in centimeters.
age (int) – Age of the individual in years.
sex (str) – Biological sex of the individual. Accepted values are “male” or “female”.
- Returns:
The estimated BMR value in calories per day.
- Return type:
float
Notes
The Harris-Benedict equation is used to calculate BMR: - For males: BMR = 88.362 + (13.397 * weight) + (4.799 * height) - (5.677 * age) - For females: BMR = 447.593 + (9.247 * weight) + (3.098 * height) - (4.330 * age)
Examples
>>> get_bmr(70, 175, 25, "male") 1668.872 >>> get_bmr(60, 165, 30, "female") 1392.247