Macro Calculator
Calculate your ideal daily intake of protein, carbohydrates, and fat based on your calorie target and fitness goal. Adjust macro ratios to match any diet plan from low-carb to high-protein.
Your total daily calorie target. Use a TDEE or calorie calculator if you are unsure.
Your primary fitness goal determines suggested macro ratios.
Percentage of total calories from protein. Each gram of protein provides 4 calories.
Percentage of total calories from carbohydrates. Each gram of carbs provides 4 calories.
Percentage of total calories from fat. Each gram of fat provides 9 calories.
This macro calculator converts your daily calorie target into specific gram amounts for each macronutrient. Choose from preset ratios for weight loss, maintenance, or muscle gain, or enter custom percentages to match any diet approach including IIFYM (If It Fits Your Macros), keto, zone, and more.
How It Works
Macro Calculation
Grams = (Calories x Ratio%) / Calories per GramEach macronutrient's grams equal your total calories multiplied by its percentage, divided by the calories per gram for that nutrient.
Protein grams = (Total Calories x Protein%) / 4, because protein provides 4 calories per gram
Carb grams = (Total Calories x Carb%) / 4, because carbohydrates provide 4 calories per gram
Fat grams = (Total Calories x Fat%) / 9, because fat provides 9 calories per gram
All three macro percentages should add up to 100%
Important Notes:
- •This calculator uses standard Atwater factors: 4 cal/g for protein, 4 cal/g for carbs, 9 cal/g for fat
- •Preset ratios are general recommendations; individual needs vary based on body composition, training, and health conditions
- •The IIFYM approach allows flexible food choices as long as daily macro targets are met
Worked Example
A person eating 2,000 calories per day for weight maintenance with a 30/40/30 protein/carb/fat split.
Inputs:
- calories:2,000
- goal:maintain
- protein Ratio:30
- carb Ratio:40
- fat Ratio:30
Result:
With 2,000 calories and a 30/40/30 split: 150 g protein (600 cal), 200 g carbs (800 cal), and 67 g fat (600 cal).
Who Is This Calculator For?
- people tracking macros
- IIFYM dieters
- bodybuilders and athletes
- anyone planning a balanced diet
Frequently Asked Questions
Related Tools
Related Calculators
- TDEE Calculator
Calculate your total daily calories burned based on personal stats and activity.
- Calorie Calculator
Calculate daily calorie needs for weight goals.
- BMI Calculator
Calculate Body Mass Index from height and weight.
- Body Fat Calculator
Estimate your body fat percentage from simple body measurements using the U.S. Navy method.
- Ideal Weight Calculator
Calculate ideal body weight using four medical formulas.