gram
gram
gram
gram

# Macronutrients

Fats, proteins and carbohydrates are macronutrients and thus provide energy. Energy is measured in calories. The amount of energy in 1 gram differs between macronutrients:

• Fat has 9 calories per gram.
• Protein has 4 calories per gram.
• Carbohydrates have 4 calories per gram.
Carbohydrates may partially consist of Dietary Fiber. Dietary fiber can not be digested and thus should be subtracted from the total Carbohydrates.

# The formula

(Fat x 9) + (Protein x 4) + ( (CarbohydratesDietary Fiber) * 4) = Total Calories

###### Example:

(1 x 9) + (1 x 4) + ( (354) * 4) = 137

# BMR

To find out how many calories you require a day with different levels of activity, please refer to the BMR (Basal Metabolic Rate) Calculator.

# How to calculate BMI – BMI Formula and Online BMI Calculator

Despite it’s name – Body Mass Index, BMI does not measure body fat directly. However, research has shown that BMI is moderately correlated with direct measures of body fat, and more importantly BMI appears to be as strongly correlated with various metabolic and disease outcome as the direct measures of body fat.
If you are looking for direct measurements you might be interested in the instruments below, otherwise continue reading.

# How is BMI calculated?

###### Step 1 – height

Multiply your height by itself.

###### Step 2 – weight

Divide your weight in kilograms by the value calculated in step 1. For US unit multiply your height by 703 and then divide by the value calculated in step 1.

# BMI calculator

``` Units MetricUS Gender MaleFemale Age Height CM Weight KG Height ft. in. Weight lbs. Result 0.0 Underweight < 0 Healthy weight 0 - 0 Overweight 0 - 0 Obese 0 - 0 Morbidly obese > 0 Ideal weight 0 - 0 .additional img{display:inline;float:left;margin:0px 10px;}.additional img:hover{ outline:2px solid #21759B}.clearBoth{display:block;clear:both;}.buddy p{display:inline;margin:0px;padding:0px;}.buddy form, .buddy p, .buddy pre, .buddy h1, .buddy h2, .buddy h3, .buddy h4, .buddy h5, .buddy h6 {text-decoration:none; margin: 0; border:0px;}.buddy ul, .buddy ol { list-style: none; margin: 0; padding: 0; }.buddy * { line-height: 1.5; }.buddy h1, .buddy h2, .buddy h3, .buddy h4, .buddy h5, .buddy h6, .buddy input, .buddy button, .buddy select, .buddy textarea { font-size: 18px; }.buddy input[type="button"], .buddy input[type="submit"], .buddy input[type="reset"] { font-size: 16px; }.buddy input, .buddy button, .buddy select, .buddy option, .buddy textarea, .buddy pre { font-family: Arial, Roboto, 'Droid Sans', 'Hiragino Sans GB', 'Microsoft YaHei', 'Simsun', STXihei, 'sans-serif'; }.buddy a { color: #000000; }.buddy a:hover { text-decoration: underline; color: #FF0000; }.buddy img { vertical-align: middle; }.buddy a img { border: 0 none; }.buddy fieldset { margin: 0; padding: 0; }.buddy legend { color: windowtext; }.buddy button, .buddy input.ie6 { overflow: visible; padding: .1em .25em; cursor: pointer; }.buddy input[type="button"], .buddy input[type="submit"], .buddy input[type="reset"] { overflow: visible; padding: .1em .25em; cursor: pointer; }.buddy input[type="text"], .buddy select, .buddy textarea { background-color: #FFFFFF; }.buddy select { border: 1px inset; }.buddy textarea { overflow: auto; vertical-align: text-bottom; border: 1px solid; resize: vertical; }.buddy table { border-spacing: 0; }.buddy .fl { float: left; }.buddy .fr { float: right; }.buddy .hide { display: none; }.buddy .hr_25px { height: 25px; }.buddy .clr { clear: both}.buddy { position: relative; color: #444; position: relative;}.us{display:none;}.content .info_content .us.height_info1 input{width:130px;}.content .info_content { padding: 0 25px;}.content .info_content li { text-align: left; margin-top: 25px;}.content .info_content h3 { float: left; height: 54px; line-height: 54px; display: inline-block; width:200px;}.content .info_content input, select { width: 300px; height: 50px; border: 1px solid #CCC; border-radius: 5px; text-align: center;}.content .age_info .line { float: left; padding-left: 3px;}.result_content { font-size: 18px;}.result_content .top_result { height: 25px; line-height: 25px; padding: 0 25px; text-align: center; border-radius: 4px 4px 0px 0px; margin-bottom: 1px}.result_content .top_result h3 { height: 25px; line-height: 25px; font-weight: normal; float: left;}.result_content .top_result span { height: 25px; line-height: 25px;}.result_content .top_result i { height: 25px; line-height: 25px; width: 35px; float: right;}.result_content .bottom_result { width: 100%; height: 25px; background: url("/bmi/imgs/icon/spectrum.png") center bottom no-repeat; background-size: 100% 100%; position: relative; border-radius: 0px 0px 4px 4px;}.result_content .bottom_result i { position: absolute; color: #F9F9F9; font-size: 23px; top: -32%; left: -6.5px; display: none;}.range_info { padding: 0 8px;}.range_info li { height: 30px; line-height: 30px;}.range_info .li_1 { color: #6FDCFF;}.range_info .li_2 { color: #56A95A;}.range_info .li_3 { color: #FBD432;}.range_info .li_4 { color: #FF8D12;}.range_info .li_5 { color: #FF4746;}.range_info h3 { font-weight: normal; display: inline-block;}.range_info li span { width: 90px; margin: 0 auto; text-align: center; font-size: 18px; float: right; margin-right: 5px;} /* <![CDATA[ */ var google_conversion_id = 937691511; var google_conversion_language = "en"; var google_conversion_format = "3"; var google_conversion_color = "ffffff"; var google_conversion_label = "TkHLCOXXumUQ95KQvwM"; var google_remarketing_only = false; /* ]]&gt; */ ```

# BMR

If your BMI is above or below healthy weight, please refer to the BMR Calculator to find out how many calories you should be taking in daily.

# Macronutrients

If you would like to calculate how many of your calories come from fat, protein, and carbohydrates, please refer to the Online Grams to Calories Converter.

# How to Calculate Average (Arithmetic Mean)

To calculate the average of a group of numbers, all one must do is add all the numbers up and then divide by the total amount of numbers.

Let’s take the following numbers for example:

`6, 5, 4, 3`

The sigma of 1 through n – or the sum of all the numbers is 18.

`6 + 5 + 4 + 3 = 18`

The n – or the total count of numbers is 4.
18 divided by 4 is 4.5.

`18 / 4 = 4.5`

It’s easy. Here, you can try it yourself.
``` function calcAvg(){ var string = document.getElementById('numbers').value; var array = string.split(','); var sum = 0; for (index = 0; index < array.length; ++index) { var myx = parseFloat(array[index]); if(isNaN(myx )){ alert(myx + ' is not a number. Please enter comma separated numbers only.'); return false; } sum = sum + myx ; } var avrg = sum / array.length; var result = document.getElementById('result').value; var msg = ''; if(avrg == parseFloat(result) ){ msg = 'Correct!'; }else{ msg = 'Incorrect, the average is ' + avrg + '.'; } document.getElementById('answer').innerHTML = msg ; } Enter your comma separated numbers here: Enter your calculation result for the average here: ```

``` ```