To calculate calories for food, multiply the grams of each macronutrient by its energy factor — 4 kcal per gram of carbohydrate, 4 per gram of protein, and 9 per gram of fat — then add the totals to get the food's calorie content. That single number tells you what the food contributes to your day, but it only becomes useful once you know your personal daily allowance. Most people managing their weight pair the food-side calculation with a Total Daily Energy Expenditure (TDEE) number on the intake side: the calories your body actually burns in a full day, scaled by how active you are. A 100 g apple at roughly 52 kcal and a 200 g bowl of cooked rice at about 260 kcal each fit into the day quite differently once you know whether your TDEE is 1,800 or 2,600. This guide walks through the 4-4-9 method for figuring any food's calories, the Mifflin-St Jeor BMR equation that anchors daily targets, and how the Calorie Calculator turns age, sex, weight, height, and activity level into a maintenance number plus a goal-specific target — all computed in your browser, with your inputs never uploaded.

How Food Calories Are Calculated
The calories in any food come almost entirely from three macronutrients. Carbohydrates supply about 4 kcal per gram, protein about 4 kcal per gram, and fat about 9 kcal per gram. Alcohol adds another roughly 7 kcal per gram but is not classed as a nutrient. The totals assume the food is digested and metabolized normally; dietary fiber is partly subtracted from "total carbohydrate" in some labelling schemes, which is why two packages can show the same carbohydrate number and still report slightly different calories on the front of the pack.
A worked example shows the method in plain terms. Take a 30 g snack portion that supplies 10 g of carbohydrate, 6 g of protein, and 8 g of fat. Carbohydrate contributes 10 × 4 = 40 kcal, protein contributes 6 × 4 = 24 kcal, and fat contributes 8 × 9 = 72 kcal. Adding those gives 40 + 24 + 72 = 136 kcal for the portion. The same arithmetic works for a single banana, a chicken breast, or a homemade stew once you know the gram weights of each macronutrient. Recipes get the same treatment applied to the whole dish, then the total is divided by the number of servings before being compared to your daily budget.
Reading Nutrition Labels and Food Composition Tables
Pre-packaged food in most markets carries a nutrition label that lists carbohydrate, protein, and fat in grams per 100 g or per serving, plus a single calorie line. That calorie number is itself computed with the 4-4-9 rule (rounded by labelling rules), so checking the math is straightforward: read each macronutrient line, multiply by its factor, and confirm the sum roughly matches the printed total. If the printed total is well above the sum, the product likely contains sugar alcohols or other low-digestible carbs that the label credits at less than 4 kcal/g.
For unpackaged food — fresh produce, restaurant meals, homemade dishes — you turn to a food composition table. National databases list thousands of raw and cooked items by 100 g, and for whole dishes you either estimate macros by ingredient or look up a close match. Once you have a 100 g figure, scale it by the portion size you actually eat: a 100 g apple at 52 kcal becomes 26 kcal for a 50 g snack, and a 200 g portion of cooked rice at 130 kcal per 100 g becomes 260 kcal. The standard energy unit used in those tables is the kilocalorie (kcal), also called a "large calorie" or "Calorie" with a capital C; 1 kcal equals roughly 4.184 kJ if you ever see a kJ figure instead.
For recipes and mixed dishes, the same 4-4-9 logic applied to every ingredient gives a defensible per-serving number. A step-by-step walkthrough is in the food calorie and daily needs guide.
Your Daily Calorie Budget Comes From BMR and Activity
The intake side starts with your basal metabolic rate (BMR): the calories your body burns at complete rest, just to keep organs, breathing, and body temperature running. A reliable general-population estimate comes from the Mifflin-St Jeor equation, published in 1990 and widely regarded as the most accurate general formula. For men, BMR = 10 × weight in kilograms + 6.25 × height in centimeters − 5 × age in years + 5; for women the formula is identical except the trailing constant is −161 instead of +5.
BMR is not a daily target, because nobody spends the day in bed. Multiplying BMR by an activity factor scales that resting figure to your real Total Daily Energy Expenditure (TDEE). The five standard multipliers used to turn BMR into TDEE are:
| Activity Level | Multiplier | Typical Week |
|---|---|---|
| Sedentary | 1.2 | Little or no exercise |
| Lightly active | 1.375 | 1-3 days per week |
| Moderately active | 1.55 | 3-5 days per week |
| Very active | 1.725 | 6-7 days per week |
| Extra active | 1.9 | Hard daily training or a physical job |
These factors trace back to the Harris-Benedict activity model and remain the default in most calorie tools. Multiplying your Mifflin-St Jeor BMR by the row that matches your week gives your maintenance number — roughly what you can eat each day and stay the same weight, on average. The Mifflin-St Jeor derivation and the underlying activity factors are summarized on Wikipedia's basal metabolic rate page.
Get Your Personal Daily Target in 3 Steps
Once you know how to figure a food's calories, the next piece is your personal daily allowance. Five short inputs feed the Calorie Calculator, and the result is computed entirely in your browser.
- Choose your sex, then enter your age, weight in kilograms, and height in centimeters.
- Pick the activity level that best matches your typical week, from sedentary to extra active.
- Read your maintenance calories (TDEE) instantly, then switch the goal toggle to lose, maintain, or gain weight to see your daily calorie target.
That daily target is the number every food's calorie count gets compared against. The calculator never reports a result below 1,000 kcal per day, so very aggressive deficits get clamped upward even when the arithmetic would otherwise go lower — a deliberate safety floor, since intakes that low should only be attempted under professional supervision.
Match Each Food's Calories to Your Target
With a per-food calorie figure from the 4-4-9 method and a per-day budget from the calculator, the matching step is just addition. A breakfast of oats, milk, and banana totaling 420 kcal against a 2,000 kcal maintenance target leaves 1,580 kcal for the rest of the day. A lunch of 700 kcal brings the running total to 1,120 kcal, leaving 880 kcal for dinner and snacks. People aiming to lose weight run the same tally against a TDEE-minus-500 target; people aiming to gain run it against a TDEE-plus-500 target. Those 500 kcal shifts align with the rough convention that 3,500 kcal of stored energy roughly equals 1 lb (0.45 kg) of body fat, so a daily 500 kcal deficit or surplus corresponds to about 0.45 kg per week.
A few practical tips keep the matching from drifting. Weigh portions at least until you have a feel for what 100 g of rice or 30 g of cheese actually looks like on a plate. When eating restaurant or packaged meals, use the published per-serving numbers or scan the dish in a food database. Avoid double-counting cooking oils, which show up twice in many homemade recipes — once in the ingredient list and once as the visible fat at the bottom of the pan.
Track your weight for two to three weeks before assuming the number is exactly right. The activity multipliers are population averages, so two people with identical age, sex, weight, and height can still have meaningfully different real needs. If the trend on the scale after two to three weeks does not match the goal, nudge intake up or down by 100-200 kcal and re-check rather than rewriting the underlying equation.
Limitations and Safe Use
The Mifflin-St Jeor equation does not model body composition, pregnancy, medical conditions, medications, or individual metabolic variation. Very lean or very muscular bodies deviate noticeably from the prediction because muscle burns more at rest than fat does, and the formula only sees total kilograms. The 3,500-kcal-per-pound rule used for the 500 kcal/day deficit is itself a population approximation that real-world studies have shown can over- or under-shoot actual weight change, especially for larger people or longer timelines.
Treat the calculator's output as a well-grounded starting point rather than a precise prescription. Weigh yourself under consistent conditions for two to three weeks, note the trend, and adjust the daily target in modest steps from there. Anyone with a chronic condition, an eating history, a planned intake below about 1,200 kcal/day, or specific performance goals should clear the plan with a registered dietitian or doctor first; the tool does not replace individualized medical or nutritional advice.
Used together — a reliable per-food calorie count from labels, food tables, or the 4-4-9 rule, paired with a per-day TDEE-based budget — you have a practical framework for managing weight, energy, or an athletic goal without needing to weigh every grain of rice. The arithmetic is simple, the inputs are five numbers you already know, and the running total tells you exactly where each meal lands inside your day.