Flexible Dieting Macro Calculator

Our macro calculator is designed by flexible dieters for flexible dieters. IIFYM stands for If It Fits Your Macros, and is also referred to as Flexible Dieting.

Use it to calculate your optimal IIFYM macronutrient ratios based on your age, height, weight, gender, and activity level. Then use your results with flexible dieting or IIFYM and count macros to lose weight, maintain, or gain muscle.





Formula ?If you know your body fat %, Lean Mass formula may be more accurate.

Activity Level







Need help putting your results into action? Download our Flexible Dieting Solution and reach your goals faster!

Lose, Maintain, or Gain?

This IIFYM macro and TDEE calculator gives you the ability to adjust your TDEE and macros at 4 different goal settings.

  • Lose puts you in a 20% calorie deficit which promotes safe, steady weight loss.
  • Lose 10% puts you in a 10% calorie deficit and is intended for those with less than 10 pounds to lose and who also wish to build muscle at the same time.
  • Maintain allows you to eat at macro levels that will keep you at your current weight.
  • Gain puts you in a 20% calorie surplus and is designed for people who are wanting to build muscle fast in conjunction with a comprehensive weight training program. It can also be used by people who are underweight.

What Are My Macros?

The following formula is used:

  1. Protein ratio is set at .825 grams per pound of bodyweight.
  2. Fats are set at 25% of daily energy expenditure.
  3. Carbohydrate grams come from the remainder.

Daily energy expenditure is calculated from your age, gender, height, weight, and exercise output.

See the full guide to macro ratios here.

Which IIFYM Formula?

The default formula is fine for most people. However, there are some exceptions.

1. If you are very lean (low body fat percentage) the standard formula may not be accurate. Use the “Lean Body Mass” setting. This uses a formula that factors specific body fat percentage into the equation and since muscle tissue burns many more calories than fat tissue while even at rest, it will give you a higher TDEE. This perfect for “athletic body types” that want to use IIFYM to gain more muscle mass.

2. If you are classified as obese and have a lot of weight to lose, the standard formula will not be accurate because the equation used, factors for an average body fat percentage. If you happen to be above average it will skew the results. Please see this article for more clarification on how to do flexible dieting if you are obese.

Adjusting Protein

Setting protein to Low adjusts the ratio to .65 grams per pound of body weight. Higher will set to 1 gram / lb.

Higher protein levels may be helpful if you have a strength training component in your IIFYM exercise routine. There are many differing opinions about this.

Try starting at the Normal level. If however you do a lot of lifting (3 times a week or more), then set to the High level.

Counting Macros Amoung Meals per Day

By default, the results show the amount of grams of macronutrient should be eaten each day. Click on meal numbers to split this into a “per meal” basis for counting macros.

See our Healthy 5 Day Flexible Dieting Meal Plan. It includes 3 meals and 2 snacks per day.


By default, the results are for maintaining weight with IIFYM. Select either lose or gain if you are trying to lose fat or gain muscle. These are good starting points, but since IIFYM is highly individualized, you may have to play around with your macros until you find your personal goal reaching sweet spot. You can then count macros until you reach your desired goal.

Activity Level

A higher level activity means a higher daily calorie goal (TDEE). For example; if you can maintain your weight at 2,000 calories per day, then adding vigorous daily exercise to this means you need more calories to maintain your weight.

The same rule applies even if your flexible dieting goal is to lose weight.

If you are sedentary and your goal is to lose weight, your calorie goal might be (for example) 1,600 calories per day. If you decide to start exercising, the calculator will increase your daily calorie goal (say, to 1,800 calories/day). Although it may seem counter-intuitive, more energy is required to fuel your workouts, and your metabolism is increased – therefore calories should be higher.

Many people struggle with which exercise level to choose. Basically each level breaks down as follows:

  • Sedentary: Just normal everyday activity like a little walking, a couple flights of stairs, eating etc.
  • Light activity: Any activity that burns an additional 200-400 calories for females or 250-500 calories for a males more than your sedentary amount.
  • Moderate activity: Any activity that burns an additional 400-650 calories for females or 500-800 calories for males more than your sedentary amount.
  • Very Active: Any activity that burns more than about 650 calories for females or more than 800 calories for males in addition to your sedentary amount.

This varies based on your individual stats, but you can get a more specific amount of calorie burn by simply subtracting your sedentary calorie amount from the chosen exercise level amount.

You also need to determine how many calories you are burning: For this use an exercise database or a good app like MapMyFitness or a device like FitBit.

Too much physical activity combined with low calories could lead to muscle catabolism (breakdown of muscle fiber). This is not a good thing, and can actually stall your weight loss, so eat up!

If you need some inspiration, check out these incredible transformation stories of from people who used counting macros to reach their goals and get started with flexible dieting or IIFYM today.


  • Mifflin, M. D., St Jeor, S. T., Hill, L. A., Scott, B. J., Daugherty, S. A., & Koh, Y. O. (1990). A new predictive equation for resting energy expenditure in healthy individuals. The American Journal of Clinical Nutrition, 51 (2), 241-247. Link
  • McArdle, W. D., Katch, F. I., & Katch, V. L. (2010). Exercise physiology: nutrition, energy, and human performance. Lippincott Williams & Wilkins. Link
  • Lemon, P. W., Tarnopolsky, M. A., MacDougall, J. D., & Atkinson, S. A. (1992). Protein requirements and muscle mass/strength changes during intensive training in novice bodybuilders. Journal of Applied Physiology, 73(2), 767-775. study abstract link


  • Jessica Graham

    Hi There-
    I’m a 39 year old women who is 5’7 and weighs 145 pounds. I want to lose 15 pounds and I would like to follow the Keotone diet. I’m curious to see my calculations. I exercise at BARRE3 3 times a week at 60 minutes and run two days a week running a approx. between 2-4 miles. What do you suggest my protein, calorie, sugar level, and carb intake should be?

    • http://www.caffeineinformer.com/ Ted

      Hi Jessica, This calculator isn’t compatible with a ketogenic diet. Flexible dieting is way more sustainable long term and teaches you to eat normally.

  • Lauren Baldwin

    hoelllo, I’m 23, 5’9 female at 168lbs – I already weight train 5/6 times a week varying between strength and hypertrophy, so I know most of this weight is muscle as I initially am skinny 😅 But now want to budge my winter coat after an indulgent winter/bulk season and get ready for my summer body, my stats have come up as 2206 calories, 168p, 246c and 61f based on moderate activity being weights 5 times a week and cardio 3 times with a desk job. I have faith in you/these stats particularly the amount of carbs (scary)

    • http://www.caffeineinformer.com/ Ted

      Hi Lauren, You would need to be in a calorie deficit if you want to lean out. The setting of Lose 10% will be a slower process but will better preserve muscle mass. The Lose (20% deficit) setting will give you faster results although you won’t gain muscle with this setting.

      • Lauren Baldwin

        Hi Ted, those stats are actually based on losing 10% anyway do you think they seem high? Thank you 😊

        • http://www.caffeineinformer.com/ Ted

          Nope, they are correct for moderate activity and 10%. Make sure you also calculate a sedentary set for your rest days.

          • Lauren Baldwin

            Ooo fab thank you! I have faith and trust the process so fingers crossed!

  • Mandy Seber

    I am having a hard time understanding the fat content portion. I always seem to be over on my fat content. I seem to be under the calories and yet still over my fat percentage only each time. If I add a tblsp of Olive Oil that adds a large percentage of fat but I have always been told Olive Oil is a “healthy” fat. I am assuming it doesn’t matter if it is a healthy fat it is still calculated in the same correct?