Free Macro Calculator

Calculate your ideal macronutrient split for any goal. Get personalized protein, carbs, and fat targets with visual charts, diet type comparisons, and meal prep suggestions powered by the IIFYM approach.

4 Diet Types
Visual Donut Chart
Meal Prep Tips

Calculate Your Macros

Enter your details to get a personalized macronutrient breakdown

years
cm
kg

What Are Macros?

Macronutrients -- commonly called "macros" -- are the three main nutrient categories that provide your body with energy (calories). Every food you eat is made up of some combination of these three macros:

While total calorie intake determines whether you gain, lose, or maintain weight, the way you divide those calories among the three macronutrients has a significant impact on body composition, energy levels, workout performance, satiety, and long-term health outcomes.

IIFYM Explained (If It Fits Your Macros)

IIFYM, short for "If It Fits Your Macros," is a flexible dieting approach that has gained widespread popularity in the fitness community. Rather than labeling foods as "good" or "bad," IIFYM focuses on hitting daily targets for protein, carbohydrates, and fat -- regardless of which specific foods you choose to eat.

The core principle is straightforward: as long as you meet your macro targets by the end of the day, your body will respond the same way whether those macros came from chicken and rice or a burger and sweet potato. This does not mean nutrition quality is irrelevant -- micronutrients, fiber, and food quality still matter for overall health. But for body composition purposes, hitting your macro targets is the most important variable after total calories.

How IIFYM Works in Practice

  1. Calculate your macros based on your TDEE, goal (lose, maintain, or gain), and preferred diet type using the calculator above.
  2. Track your food intake using a food logging app such as MyFitnessPal, Cronometer, or MacroFactor.
  3. Hit your targets by the end of each day, aiming for within 5-10g of each macro. Prioritize protein first, then fill in carbs and fat.
  4. Adjust every 4-6 weeks based on your progress. If weight is not changing as expected, modify your calorie target by 100-200 calories.

The main advantage of IIFYM over rigid meal plans is sustainability. Because no foods are off-limits, adherence tends to be higher, which is the single most important factor in any diet's success.

Protein, Carbs & Fat: A Complete Guide

Protein -- The Muscle Builder

Protein is arguably the most important macro to get right, regardless of your goal. During weight loss, adequate protein prevents muscle breakdown. During muscle gain, it provides the raw materials for growth. Protein also has the highest thermic effect of food (TEF), meaning your body burns 20-30% of protein calories just digesting it, compared to 5-10% for carbs and 0-3% for fat.

Recommended intake: 1.6 to 2.2 grams per kilogram of body weight for active individuals. During aggressive calorie deficits, aim for the higher end to preserve muscle.

Best sources: Chicken breast (31g per 100g), lean beef (26g per 100g), salmon (20g per 100g), eggs (6g each), Greek yogurt (10g per 100g), cottage cheese (11g per 100g), lentils (9g per 100g cooked), tofu (8g per 100g).

Carbohydrates -- The Energy Source

Carbohydrates are your body's preferred fuel for high-intensity activities and the only macronutrient the brain can efficiently use for energy. When you eat carbs, they are broken down into glucose and either used immediately for energy or stored as glycogen in your muscles and liver for later use.

Carb needs are highly individual and depend on your activity level, training style, and personal tolerance. Endurance athletes and those who train at high volumes benefit from higher carb intake, while sedentary individuals or those with insulin resistance may do better with moderate carb intake.

Best sources: Oats, brown rice, sweet potatoes, quinoa, fruits, whole grain bread, legumes, and vegetables.

Fat -- The Hormone Regulator

Dietary fat is essential for life. It supports the production of key hormones (including testosterone, estrogen, and cortisol), enables the absorption of vitamins A, D, E, and K, protects your organs, and provides long-lasting energy. Cutting fat too low can lead to hormonal disruption, dry skin, poor cognitive function, and reduced athletic performance.

Minimum recommended: At least 0.5-0.7 grams per kilogram of body weight, or roughly 20-25% of total calories. Going below this consistently can negatively impact hormone levels.

Best sources: Extra virgin olive oil, avocado, nuts (almonds, walnuts), seeds (chia, flax), fatty fish (salmon, mackerel), eggs, and dark chocolate.

Best Macro Ratio for Your Goal

There is no single "best" macro ratio -- the optimal split depends on your goal, activity level, preferences, and how your body responds. Here is a guide to choosing the right one:

For Weight Loss

When in a calorie deficit, protein becomes even more critical to prevent muscle loss. A Low Carb (40/20/40) or Balanced (30/40/30) approach works well for most people. The higher protein in the Low Carb split helps preserve lean mass and increases satiety, making it easier to stick to a deficit. If you train heavily with weights, keep carbs moderate (Balanced split) to fuel your workouts.

For Muscle Gain

Building muscle requires a calorie surplus combined with adequate protein and carbohydrates to fuel training and recovery. A Balanced (30/40/30) or High Carb (30/50/20) approach provides the carbohydrates needed to fuel intense training sessions and maximize muscle glycogen. Protein at 30% of a surplus caloric intake is typically sufficient for muscle protein synthesis.

For Maintenance

At maintenance calories, the Balanced (30/40/30) split is an excellent default for most people. It provides sufficient protein for health and fitness, adequate carbs for energy and brain function, and enough fat for hormonal health. Adjust based on personal preference and how your body feels.

For Endurance Athletes

High-volume endurance training demands significant carbohydrate intake to maintain glycogen stores. The High Carb (30/50/20) split is ideal, providing the carbohydrate fuel needed for long training sessions while maintaining adequate protein for recovery.

For Keto / Very Low Carb

The Keto (25/5/70) split is designed to induce ketosis by restricting carbohydrates to approximately 20-50 grams per day. This approach may be effective for rapid fat loss and blood sugar control, but it requires strict carb tracking and may not be suitable for high-intensity athletes. Consult a healthcare professional before starting a keto diet.

How to Track Macros

Tracking your macros does not need to be complicated. Here is a step-by-step guide to getting started:

Step 1: Calculate Your Targets

Use the macro calculator above to determine your daily protein, carb, and fat targets based on your stats, activity level, and goal. Write these numbers down or save them in your tracking app.

Step 2: Get a Food Scale

A digital kitchen scale (accurate to 1g) is the single most important tool for accurate macro tracking. Eyeballing portions is notoriously inaccurate -- studies show people underestimate food intake by 30-50%. A scale costs very little and eliminates guesswork.

Step 3: Use a Tracking App

Log everything you eat in a food tracking app. Popular options include MyFitnessPal, Cronometer, and MacroFactor. Most apps have extensive food databases and barcode scanners for convenience. When possible, use entries that include specific brand names and verified nutritional data.

Step 4: Plan Meals in Advance

Pre-logging your meals for the next day takes about 5 minutes and makes hitting your targets much easier. Start by allocating your protein across meals, then fill in carbs and fat around it. This prevents situations where you have used up all your fat by dinner but still need protein.

Step 5: Allow Flexibility

Do not stress about hitting exact numbers. A margin of plus or minus 5-10 grams per macro is perfectly acceptable. Focus on consistency over perfection. If you hit your targets 80-90% of the time, you will see excellent results.

Step 6: Reassess Regularly

Re-evaluate your macro targets every 4-6 weeks. As your weight changes, your calorie needs change too. If progress stalls, adjust your calorie target by 100-200 calories and recalculate your macros accordingly.

Flexible Dieting: The Sustainable Approach

Flexible dieting is a nutrition philosophy built on the principle that no single food will make or break your results. What matters is your total daily intake of calories and macronutrients over time. This evidence-based approach rejects the rigid rules of traditional dieting in favor of a balanced, sustainable relationship with food.

Why Flexible Dieting Works

The 80/20 Rule

A practical guideline within flexible dieting is the 80/20 rule: aim to get roughly 80% of your food from nutrient-dense, minimally processed sources (lean proteins, whole grains, fruits, vegetables, healthy fats), and allow 20% for foods you enjoy purely for taste. This ensures you meet your micronutrient needs while maintaining dietary flexibility and enjoyment.

Common Misconceptions

Flexible dieting does not mean eating junk food all day. It means having the freedom to include any food within a structured framework. Most people who practice flexible dieting end up eating a diet rich in whole foods because these foods are more satiating and nutrient-dense per calorie. The key difference is that when they do have a treat, it is planned, accounted for, and guilt-free.

Frequently Asked Questions

Macros (macronutrients) are the three main nutrients that provide calories: protein (4 cal/g), carbohydrates (4 cal/g), and fat (9 cal/g). While total calories determine weight change, your macro ratio affects body composition, energy, workout performance, satiety, and overall health. Tracking macros gives you more precise control over your nutrition than counting calories alone, allowing you to optimize for muscle gain, fat loss, or athletic performance.

IIFYM is a flexible dieting approach where you set daily targets for protein, carbs, and fat, and eat any foods you choose as long as you hit those targets. The philosophy is that your body responds to the total macronutrient intake, not individual food choices. This allows dietary flexibility -- you can include treats and eat at restaurants while still making progress toward your goals. Most practitioners still eat mostly whole, nutritious foods but appreciate having no "forbidden" foods.

For weight loss, higher protein ratios work best because protein preserves muscle mass during a calorie deficit, increases satiety, and has the highest thermic effect. A common effective split is 40% protein, 20% carbs, 30% fat (Low Carb) or 30% protein, 40% carbs, 30% fat (Balanced). The "best" ratio is ultimately the one you can stick to consistently. The calorie deficit itself drives weight loss -- the macro ratio helps optimize what type of weight you lose (fat vs. muscle).

Protein needs depend on your goal and activity level. The RDA minimum is 0.8 g/kg, but this is the minimum to prevent deficiency, not the optimal amount. For active individuals, research supports 1.6-2.2 g/kg body weight. During aggressive fat loss, aim for the higher end (2.0-2.4 g/kg) to preserve muscle. For muscle gain, 1.6-2.0 g/kg is sufficient when combined with a calorie surplus. Spreading protein evenly across 3-5 meals throughout the day optimizes muscle protein synthesis.

Low Carb diets reduce carbs to about 20% of total calories (typically 50-150g/day) while increasing protein and fat. You still eat enough carbs to fuel moderate activity and brain function. Keto is significantly more restrictive, limiting carbs to just 5% of calories (usually 20-50g/day) to trigger ketosis -- a metabolic state where your body primarily burns fat for fuel instead of glucose. Keto requires very high fat intake (70%) and strict tracking. Low Carb is generally easier to follow and more flexible.

Start with a food tracking app (MyFitnessPal, Cronometer, or MacroFactor) and a digital kitchen scale. Log everything you eat, using the scale for accuracy. Pre-log meals the night before to make hitting targets easier. Focus on hitting protein first, then fill in carbs and fat. Allow a margin of plus or minus 5-10g per macro. As you gain experience, you will develop an intuitive sense of portion sizes and may need to weigh food less often. Re-evaluate your targets every 4-6 weeks.

Not necessarily. Many people benefit from macro cycling, eating more carbs on training days and fewer on rest days (with fat adjusted inversely) while keeping protein and total weekly calories consistent. This can optimize workout performance and recovery. However, for simplicity and consistency, especially for beginners, eating the same macros daily works perfectly well. Choose the approach that fits your lifestyle and that you can sustain.

Medical Disclaimer

This macro calculator provides estimates based on the Mifflin-St Jeor equation, standard activity multipliers, and commonly used macronutrient ratios. The results are intended for informational and educational purposes only and should not be interpreted as medical advice, diagnosis, or treatment recommendations.

Individual macronutrient needs vary significantly based on factors not captured by this calculator, including medical conditions, medications, metabolic disorders, food allergies, pregnancy, breastfeeding, and genetics. The targets presented are general estimates and may not be appropriate for everyone.

Always consult a qualified healthcare professional, registered dietitian, or physician before making significant changes to your diet, especially if you have diabetes, kidney disease, liver disease, eating disorders, or other pre-existing health conditions. Keto and very low carb diets in particular should be undertaken with professional guidance. This tool is not a substitute for professional medical or nutritional advice.