Macro Calculator: Protein, Carbs, Fat & Calories
Calculate daily calorie targets and optimal macronutrient grams (protein, carbohydrates, healthy fats) based on your fitness goals.
Privacy First: 100% Client-Side Processing
Processed in your browser. Files are never uploaded.
How to Use the Macro Calculator (IIFYM Diet & Calories)
- 1Select your biological sex, age, height, and body weight.
- 2Select your daily physical activity level (from sedentary desk job to competitive athlete).
- 3Choose your primary goal: Weight Loss (-500 kcal deficit), Maintenance, or Muscle Gain (+400 kcal surplus).
- 4Select your preferred diet style (Balanced, Low Carb, High Carb, or Keto).
- 5Review your target daily calories, BMR, TDEE, and exact grams of protein, carbs, and fats.
Formula & How It Works
Mifflin-St Jeor & TDEE Formula
Calculates Basal Metabolic Rate (BMR), scales by physical activity level to obtain Total Daily Energy Expenditure (TDEE), and divides goal calories into macro grams.
Worked Examples
28-Year-Old Male Weight Maintenance
Input: Male, 75kg, 178cm, 28 yrs, Moderate Activity, Balanced Diet
Explanation: BMR = 1,699 kcal. TDEE (1.55x) = 2,633 kcal. 30% Protein = 197g, 40% Carbs = 263g, 30% Fat = 88g.
Female Fat Loss Deficit (-500 kcal)
Input: Female, 68kg, 165cm, 32 yrs, Light Activity, Low Carb Diet
Explanation: BMR = 1,411 kcal. TDEE (1.375x) = 1,940 kcal. Deficit target = 1,440 kcal/day.
Male Lean Bulking Surplus (+400 kcal)
Input: Male, 80kg, 182cm, 24 yrs, Heavy Activity, High Carb
Explanation: Surplus fuels muscle protein synthesis during intense resistance training.
Frequently Asked Questions
How many calories are in a gram of protein, carb, and fat?▼
Protein has 4 calories per gram, carbohydrates have 4 calories per gram, and dietary fat has 9 calories per gram.
How much protein should I eat per day?▼
Active individuals and those lifting weights typically benefit from 1.6 to 2.2 grams of protein per kilogram of body weight (0.7 to 1.0 grams per pound).
What is BMR versus TDEE?▼
BMR (Basal Metabolic Rate) is the baseline calories burned surviving at complete rest. TDEE (Total Daily Energy Expenditure) adds your daily movement, exercise, and digestion.
Why do fats have more calories than carbs?▼
Fat molecules have a higher density of carbon-hydrogen bonds, providing 9 calories per gram compared to 4 calories per gram for carbs and protein.
Is this calculation private?▼
Yes, all health calculations execute 100% locally in your web browser.
Quick Reference & Conversion Table
| Diet Style | Carbohydrates % | Protein % | Healthy Fat % | Best Suited For |
|---|---|---|---|---|
| Balanced | 40% | 30% | 30% | General health & sustainable weight management |
| Low Carb | 20% | 40% | 40% | Fat loss, insulin sensitivity & satiety |
| High Carb Endurance | 50% | 25% | 25% | Marathoners, cyclists & high-volume athletes |
| Ketogenic (Keto) | 5% | 25% | 70% | Ketosis & therapeutic metabolic regimens |
⚠️ Common Pitfalls to Avoid
- •Overestimating activity level (e.g., classifying a 45-minute gym session as 'heavy activity' while sitting at a desk the other 23 hours).
- •Dropping calories below clinical minimum safety thresholds (1,200 kcal for women, 1,500 kcal for men).
- •Forgetting that alcohol contains 7 kcal per gram, which must be tracked when counting macros.
💡 Practical Real-World Uses
- •Tracking nutrition in calorie counter apps like MyFitnessPal and MacroFactor.
- •Bodybuilders and physique athletes prepping for cutting and bulking phases.
- •Endurance runners optimizing carbohydrate fueling for half and full marathons.
Counting Macros vs Counting Calories
- ✓Counting calories controls overall body weight change (deficit for weight loss, surplus for weight gain).
- ✓Counting macros controls body composition (ensuring adequate protein prevents muscle loss while dieting).
Related Online Tools
Explore complementary calculators and converters with instant client-side execution
Body Fat Calculator (US Navy DoD Method)
Estimate body fat percentage, lean mass, and fat mass using the official US Navy Department of Defense circumference method.
Weight Loss Percentage Calculator & Goal Tracker
Calculate the exact percentage of body weight you have lost, total pounds shed, and progress toward your goal.
Steps to Miles Calculator
Convert steps to miles, kilometers, and calories burned based on your height and stride pace.
1RM Calculator
Calculate your one-rep max (1RM) and percentage training loads for bench press, squat, and deadlift.
Water Intake Calculator
Calculate recommended daily water intake based on body weight, exercise duration, and climate.
Child Height Predictor (Khamis-Roche & Mid-Parental Method)
Predict a child's future adult height using the validated Mid-Parental (Tanner) and Khamis-Roche pediatric growth methods.
Explore Other Tool Categories
Browse our full collection of 50 free web utilities
Unit Converters
Exact metric & imperial conversions for weight, length, temperature & volume.
Math & Education
Percentage changes, fractions, square roots, geometry & statistics.
Date & Time
Calendar arithmetic, business day intervals, stopwatch & multi-counter.
Home & Construction
Paint coverage, pool volume, topsoil, roof pitch, square footage & materials.