Nutrition & Diet
IIFYM Calculator (If It Fits Your Macros)
IIFYM (If It Fits Your Macros) lets you eat any foods as long as you hit protein, carb, and fat targets. Calculate your macros below.
Enter your details
Results
Flexible macro tracking sets boundaries, not a menu
Flexible macro tracking assigns daily protein, fat, and carbohydrate grams while leaving food selection and meal timing open. The numbers can organize a calorie target without banning individual foods.
They do not guarantee enough fiber, vitamins, minerals, or minimally processed food. Protein and carbohydrate each supply about 4 kcal per gram, while fat supplies about 9. Alcohol supplies about 7 kcal per gram and must be counted separately because it does not fit the three-macro remainder. Label rounding and fiber energy mean logged calories will not always equal the exact gram equation.
Research on flexible versus rigid restraint is mainly observational and uses varied definitions. Flexible control can correlate with fewer disordered-eating features than rigid rules, but detailed tracking can become rigid in practice. The user response matters more than the name of the approach.
Reference checks for a flexible macro plan
| Component | Adult reference | Planning check |
|---|---|---|
| Protein | 10 to 35% of energy | Also compare with g/kg need |
| Carbohydrate | 45 to 65% of energy | Adult RDA is 130 g/day |
| Fat | 20 to 35% of energy | Favor unsaturated sources |
| Fiber | 14 g per 1,000 kcal | Not guaranteed by carb grams |
How this IIFYM calculator works
Enter body weight, daily calories, a protein factor, and fat percentage. Protein grams = kilograms × protein factor. Fat grams = calories × fat percentage ÷ 9. Carbohydrate grams = [calories minus protein grams × 4 minus fat grams × 9] ÷ 4. For an 80 kg adult at 2,200 kcal, 1.6 g/kg protein gives 128 g and 512 kcal. Fat at 30 percent gives 73 g and about 660 kcal. The carbohydrate remainder is 2,200 minus 512 minus 660 = 1,028 kcal, or 257 g.
An invalid negative carbohydrate result means protein and fat already exceed the calorie target.
A very low remainder may also conflict with the carbohydrate RDA or training demands. The tool does not validate that the calorie target itself is safe.
Worked 80 kg, 2,200 kcal example
| Macro | Calculation | Result |
|---|---|---|
| Protein | 80 × 1.6 | 128 g |
| Fat | 2,200 × 0.30 ÷ 9 | 73 g |
| Remaining carbohydrate energy | 2,200 - 512 - 660 | 1,028 kcal |
| Carbohydrate | 1,028 ÷ 4 | 257 g |
Flexible dieting (IIFYM) typical macro targets for body composition goals.
| Goal | Protein | Fat | Carbs |
|---|---|---|---|
| Fat loss | 2.0 to 2.4 g/kg | 20 to 30% calories | Remainder of calories |
| Maintenance | 1.6 to 2.0 g/kg | 25 to 30% calories | Remainder of calories |
| Muscle gain | 1.8 to 2.2 g/kg | 20 to 25% calories | Remainder of calories |
How to use the result
Select protein first from the relevant RDA or training range, choose fat within the adult AMDR, and let carbohydrate fill the remaining calories.
Use a tolerance band instead of chasing exact grams. Five grams around protein and carbohydrate and three grams around fat is more precise than food labels and home portions warrant. Plan two or three meals before using the remaining macros for flexible choices. Anchor meals with protein, vegetables or fruit, and a fiber-rich starch or legume, then add unsaturated fat. This sequence protects diet quality without assigning moral labels to foods.
Review seven-day averages, body-weight trend, waist, training, hunger, bowel function, and menstrual regularity after two to four weeks. If weight change differs from the goal, adjust total calories modestly. Do not keep changing the split to compensate for an inaccurate calorie estimate.
Translate macros into meals
A 128 g protein target can be divided into four eating occasions of roughly 30 to 35 g. Fish, poultry, tofu, Greek yogurt, eggs, beans, lentils, and soy milk can supply it. Carbohydrate can come from oats, rice, potatoes, fruit, legumes, and whole-grain bread, with portions scaled to the 257 g example. A 73 g fat target includes cooking oil, nuts, seeds, avocado, dairy, meat, and hidden restaurant fat.
Measure oils and nut butter at first because they are energy dense. Use package labels and USDA FoodData Central for the actual portion and cooked state.
A flexible choice such as dessert can fit after the nutrient-dense base is planned. No evidence establishes a universal 80/20 rule, so do not present it as a scientific threshold. The Dietary Guidelines instead describe an overall pattern that meets food-group needs while limiting saturated fat, added sugar, sodium, and alcohol.
Track consistently without pretending precision
Match the logged food state to the weighed state.
Raw rice and cooked rice differ sharply in grams because cooking adds water. Meat can lose water and fat. Use the database entry that names the state instead of applying one rule to every food. Nutrition labels legally round values, recipes vary, and restaurant portions are estimates. Daily totals that differ by a few grams are not meaningfully different. Weekly averages and body-weight trends reveal larger systematic errors.
Prelogging can expose a dinner shortage, but repeatedly skipping daytime food to reserve calories for an event can produce intense hunger. Use a normal protein- and fiber-containing meal earlier, estimate the event reasonably, and resume the usual plan at the next meal.
Interpret progress and plateaus
Weight falls when average absorbed energy remains below expenditure. Trials comparing diets with different macro proportions often find similar average loss when behavioral support and calorie targets are comparable. Individual adherence and food preference produce wide variation around the average. A short plateau can reflect water, sodium, menstrual-cycle changes, constipation, or harder training.
Use at least two to three weeks of average weights before lowering calories. Strength loss, persistent fatigue, cold intolerance, or menstrual disruption argues against a larger deficit.
If weight falls faster than intended, add calories through the preferred macro while preserving protein adequacy. If weight rises during maintenance, first audit portions, alcohol, cooking fats, and weekends. Changing all three targets at once makes the cause harder to identify.
Limits and special populations
The protein, carbohydrate, and fat outputs should be checked against the adult AMDRs and life-stage RDAs. Pregnancy raises carbohydrate and protein needs. Children require age-specific references, and adolescent athletes need enough energy for growth rather than an adult cutting preset. Chronic kidney disease can require a clinician-set protein target. Diabetes medications can require coordinated carbohydrate intake. Pancreatic, gallbladder, and malabsorption disorders can alter fat tolerance.
A generic macro remainder cannot account for these conditions.
People with a current or past eating disorder, compulsive exercise, frequent bingeing, or marked anxiety around unlogged food should avoid detailed tracking unless a treatment team uses it deliberately. Flexible tracking has failed its purpose when the person cannot eat outside the numbers.
Evidence limits and safety
IIFYM itself has limited direct trial evidence. Most support comes from broader research on calorie restriction, self-monitoring, protein, dietary restraint, and macro-comparison diets. Observational restraint findings cannot prove that choosing a flexible label improves outcomes. Metabolic adaptation during weight loss is real, but claims of permanent metabolic damage from a brief tracking error are not supported.
The immediate risks come from excessive restriction, nutrient displacement, medication mismatch, and disordered behavior.
Stop the deficit and seek care for fainting, chest pain, repeated hypoglycemia, severe weakness, purging, or rapid unintended loss. A registered dietitian can build flexibility around allergies, culture, budget, training, laboratory results, and medical treatment without making macro precision the only measure of health. Food logging studies consistently face underreporting, changed behavior during recording, and database error. A person can match displayed macros while actual intake differs enough to alter weight. The practical correction is not tighter anxiety-driven tracking. Use standardized portions for calorie-dense foods, repeatable meal patterns when helpful, and measured weight trends to calibrate the estimate. Diet quality remains measurable outside macros. Vegetables, fruit, whole grains, legumes, seafood, dairy or fortified alternatives, and varied protein foods contribute nutrients that protein, carbohydrate, and fat totals cannot identify. Saturated fat, added sugar, sodium, and alcohol also need separate checks. A flexible plan should make these foods easier to include. Maintenance deserves the same adjustment process as weight loss. After reaching the desired weight, increase calories gradually or directly to the estimated maintenance level, hold activity reasonably stable, and watch the multiweek trend. Early weight gain can reflect restored glycogen and food mass. Repeated gain over several weeks indicates that the maintenance estimate is high. Tracking breaks can test whether the method supports autonomy. Use familiar portions and regular meals for several days while monitoring hunger and behavior rather than exact numbers. If stopping the app causes panic, compensatory restriction, or loss of control, the problem is no longer a calculation error and deserves eating-disorder-informed support.
How it works
Set protein by g/kg body weight, fat by percentage, fill remaining calories with carbs.
Frequently asked questions
- Does IIFYM work for weight loss?Yes, if calories are in a deficit. Macro split affects muscle retention more than total loss rate.
Related calculators
References
- Dietary Reference Intakes for macronutrients
- Dietary Guidelines for Americans, 2020 to 2025
- Rigid versus flexible control of eating behavior
- Dietary Reference Intakes for energy
- Comparison of weight-loss diets with different fat, protein, and carbohydrate compositions
- FoodData Central
- Nutrition Facts label rounding requirements
- Effect of a healthy low-fat diet versus healthy low-carbohydrate diet on weight change
- Protein supplementation and resistance training induced gains
- Clinical practice guideline for nutrition in chronic kidney disease