Glyph WidgetsGlyph Widgets
ToolsAboutContactBlogPrivacyTermsRemove AdsSupport on Ko-fi

© 2026 Glyph Widgets. All rights reserved.

·

100% Client-Side Processing

Back to Blog

Macro Calculator: Protein, Carbs & Fat

Calculate daily protein, carbs, and fat for weight loss, maintenance, lean gain, or bulk using your TDEE. Free macro calculator online.

Glyph Widgets
February 27, 2026
9 min read
macro calculatormacronutrient calculatorprotein calculatorcarb calculatorfat calculatorIIFYM calculator

What Is the Macro Calculator?

The Macro Calculator converts your biometrics, activity level, and fitness goal into specific daily gram targets for protein, carbohydrates, and fat (the three macronutrients). It first calculates your TDEE (total daily energy expenditure) using the Mifflin-St Jeor BMR formula adjusted by an activity multiplier, then applies a calorie adjustment for your chosen goal, and finally allocates calories to each macronutrient using a protein-first approach. The tool displays protein, carb, and fat grams alongside the calorie contribution from each. It is free, requires no account, and all processing happens in your browser.

Key Features

  • Protein-first macro allocation: Rather than splitting macros by fixed percentages, the calculator sets protein first (at your chosen priority level), then fills remaining calories with carbs and fat. This is how most evidence-based nutrition approaches work.
  • Three protein priority levels: Choose Standard (1.6 g/kg), High (2.0 g/kg), or Very High (2.4 g/kg) based on your training intensity and body composition goals.
  • Four fitness goals: Lose Weight (−500 kcal/day), Maintain (±0), Lean Gain (+250 kcal/day), and Bulk (+500 kcal/day). Each applies a specific calorie surplus or deficit to your TDEE.
  • Shows calories from each macronutrient: The results panel displays both grams and calorie contributions (protein and carbs at 4 kcal/g, fat at 9 kcal/g) so you can verify the totals add up to your target.
  • Five activity levels: Sedentary (1.2×), Light (1.4×), Moderate (1.55×), Active (1.7×), and Very Active (1.9×) multipliers are displayed in the selector, making selection transparent.

How to Use the Macro Calculator

Step 1: Enter Biometrics

Select your gender (Male or Female) using the toggle. Enter your age in years, weight in kilograms, and height in centimeters. All three fields are required; attempting to calculate without them will display inline error messages ("Enter valid age," "Enter valid weight," "Enter valid height"). If you know your measurements in pounds and inches: divide pounds by 2.205 for kg, and multiply inches by 2.54 for cm.

Step 2: Select Activity Level

Choose the activity level that best matches your typical week. The multipliers are displayed in the selector:

  • Sedentary (1.2×): Desk job, little or no exercise.
  • Light (1.4×): Light exercise 1–3 days per week.
  • Moderate (1.55×): Moderate exercise 3–5 days per week. This is the default.
  • Active (1.7×): Hard exercise 6–7 days per week.
  • Very Active (1.9×): Physical job plus hard daily exercise, or twice-daily training.

Be honest here: most people overestimate activity level and thus overestimate TDEE.

Step 3: Select Goal and Protein Priority

Choose your goal from four options. Lose Weight applies a 500 kcal/day deficit, which is associated with approximately 0.5 kg of fat loss per week. Maintain keeps calories at TDEE. Lean Gain adds 250 kcal/day for a slow, muscle-focused surplus. Bulk adds 500 kcal/day for faster mass gain.

Select protein priority: Standard (1.6 g/kg body weight), High (2.0 g/kg), or Very High (2.4 g/kg). Research suggests 1.6–2.0 g/kg covers most strength training needs; 2.4 g/kg is used by athletes in aggressive cuts or very high training loads.

Step 4: Calculate and Read Results

Click "Calculate." The results display:

  • Target Calories: The large headline number in kcal/day.
  • Goal Description: Confirms what calorie adjustment was applied.
  • Protein (blue): Grams, percentage of calories, and kcal contributed.
  • Carbs (yellow): Grams, percentage, and kcal.
  • Fat (red): Grams, percentage, and kcal.

Practical Examples

Example 1: Weight Loss - Standard Protein

A 32-year-old female, 68 kg, 165 cm, moderately active, goal: Lose Weight, Standard protein (1.6 g/kg). TDEE at 1.55× multiplier comes to roughly 2,150 kcal. With a 500 kcal deficit, target is approximately 1,650 kcal. Protein is set at 109 g/day (68 kg × 1.6). Remaining calories are allocated to carbs and fat. The protein block shows 109 g / 436 kcal / ~26%.

Example 2: Lean Gain - High Protein

A 26-year-old male, 78 kg, 180 cm, very active, goal: Lean Gain, High protein (2.0 g/kg). TDEE approaches 3,400 kcal. Lean Gain adds 250 kcal, yielding a ~3,650 kcal target. Protein is set at 156 g (78 × 2.0), contributing 624 kcal. Carbs fill most of the remaining calorie budget. This is a typical IIFYM-style lean bulk setup.

Example 3: Maintenance - Very High Protein

A 40-year-old male, 90 kg, 178 cm, active, goal: Maintain, Very High protein (2.4 g/kg). The large protein allocation (216 g/day) leaves less room for carbs and fat within the maintenance calorie budget. This is appropriate for someone prioritizing muscle protein synthesis and recovery while keeping body weight stable.

Tips and Best Practices

Round to the nearest 5 grams when tracking. The calculator produces precise gram values, but in practice, hitting within 5 g of each target on any given day is effective. Don't let precision undermine consistency.

Protein first is the right mental model. Hit your protein target daily. It is the most important macro for body composition. Carbs and fat can be adjusted day-to-day based on hunger, performance, and preference.

1.6 g/kg is evidence-based for most people. A 2020 meta-analysis (Morton et al.) established that 1.6 g/kg is the threshold beyond which additional protein provides minimal further muscle-building benefit for most individuals. Standard priority is appropriate for most fitness goals.

Recalculate every 4–6 weeks. As body weight changes, your TDEE and protein targets change. A 5 kg weight loss means your TDEE drops and your protein target decreases. Recalculate to stay accurate.

Use the Presets panel to save scenarios. You can save your weight loss setup and your maintenance setup as separate presets, then toggle between them for comparison or seasonal periodization.

Common Issues and Troubleshooting

Validation errors appear on Calculate: All three numeric fields (age, weight, and height) must be filled with positive values. The error messages "Enter valid age," "Enter valid weight," and "Enter valid height" appear inline next to the fields that need correction.

Protein grams seem very high: At Very High priority (2.4 g/kg), protein becomes a large portion of calories. For a 100 kg person, this means 240 g of protein daily, over 960 kcal from protein alone. This is intentional for athletes in aggressive cuts. If it feels too high, switch to Standard or High priority.

Target calories seem too low for weight loss: A 500 kcal deficit is the standard recommendation, but for individuals with low TDEE (sedentary female, small frame), this may push target calories below 1,200 kcal, a level that should only be maintained under medical supervision. Consider switching to Lean Gain or Maintain and increasing activity instead.

Macro percentages don't add up to exactly 100%: The calculator rounds gram values to whole numbers, which can cause small rounding discrepancies in the percentage display. This is expected. The gram amounts are the actionable targets.

Privacy and Security

The Macro Calculator processes all inputs in your browser. Your weight, height, age, gender, and goals are not transmitted to any server, stored, or shared. The tool functions offline after initial load, so your biometric data stays private.

Frequently Asked Questions

Is the Macro Calculator free to use?

Yes, completely free. No account, subscription, or payment is required at any stage.

Does the Macro Calculator work offline?

Yes. After the page first loads, all calculations run locally in your browser without an internet connection.

Is my data safe with the Macro Calculator?

Your biometric data is processed only in your browser. Nothing is sent to a server or stored externally.

What is the Mifflin-St Jeor formula?

Mifflin-St Jeor is a BMR (basal metabolic rate) estimation formula validated in a 1990 study and widely considered the most accurate among standard equations for most adults. For males: BMR = (10 × weight in kg) + (6.25 × height in cm) − (5 × age) + 5. For females: the same formula minus 161 instead of plus 5. TDEE is then BMR × the activity multiplier.

What is IIFYM?

IIFYM stands for "If It Fits Your Macros," a flexible dieting approach that tracks daily macronutrient gram totals rather than requiring specific foods. The macro targets from this calculator are directly compatible with IIFYM-style tracking in apps like Cronometer or MyFitnessPal.

How is protein priority different from protein percentage?

Protein priority sets a fixed gram target per kilogram of body weight (e.g., 1.6 g/kg), which scales with your weight. Protein percentage sets a fixed fraction of total calories for protein (e.g., 30%). The gram-based approach is more aligned with research on muscle protein synthesis, where the stimulus is grams of protein consumed, not percentage of calories.

What is the difference between Lean Gain and Bulk?

Lean Gain adds +250 kcal/day to TDEE, producing a slow surplus associated with minimizing fat gain while building muscle. Bulk adds +500 kcal/day, accelerating mass gain but accepting more fat accumulation. Lean Gain is appropriate for experienced lifters; Bulk may suit beginners who gain muscle more easily.

How many grams of each macro equal one calorie?

Protein provides 4 kcal/g. Carbohydrates provide 4 kcal/g. Fat provides 9 kcal/g. Alcohol provides 7 kcal/g (not tracked by this tool). These are the values used by the calculator to compute calorie contributions from each macro.

Should I use these macros on rest days?

Many athletes use the same macro targets on rest days as on training days, particularly for protein, since muscle protein synthesis continues for 24–48 hours after a session. Some reduce carb intake slightly on rest days and increase it on training days (carb cycling). The simplest approach is consistent daily macros, especially when starting out.

Related Tools

  • Calorie Calculator: Calculate total daily calorie needs as a standalone step before macro splitting.
  • TDEE Calculator: Dedicated TDEE estimation for understanding your energy baseline.
  • BMR Calculator: Calculate basal metabolic rate, the foundation of TDEE and macro calculations.

Try the Macro Calculator now: Macro Calculator

Last updated: February 27, 2026

Keep Reading

More ArticlesTry Macro Calculator