IIFYM Calculator
If It Fits Your Macros turns a calorie target into three gram targets. Enter your calories, your body weight and protein need, and your fat share, and this calculator returns your daily protein, fat and carbohydrate targets in grams — with carbohydrate taking whatever room is left after the fixed obligations, exactly as it does in every working IIFYM plan ever kept.
Protein First, Fat Second, Carbs Take the Rest
IIFYM's construction is a priority queue applied to a calorie budget: protein is set by body weight (the muscle-preserving dose, grams per kilo), fat by a share of calories (hormonal adequacy with a floor near 20%), and carbohydrate — the remainder divided by 4 — absorbs whatever energy is left for fuel and flexibility. The order is the philosophy: calories decide the weight's direction, protein guards the tissue, and within those two constraints ANY food fits, which is the doctrine the name advertises — dietary quality judged by totals rather than by food moralities. The calculator implements the queue exactly, guards its failure mode (protein plus fat overshooting the budget leaves negative carbs, an impossibility it reports rather than printing), and states the working priority in its note. What it cannot encode — micronutrients, fiber, satiety, the reader's actual pleasure in food — the sections below argue the method itself must borrow from outside its arithmetic. Even so, the queue's ordering teaches the subject's deepest simple truth in one gesture: in nutrition, as in budgeting, the fixed obligations are few and knowable, and freedom lives in what remains after they are honoured — which is why the remainder, carbohydrate, is where this method's personality resides.
Worked Example: 2,500 Calories, 80 Kilos
The defaults: protein at 2.0 g/kg gives 160 g (640 kcal); fat at 25% gives 625 kcal, 69 g; the remaining 1,235 kcal becomes 309 g of carbohydrate — a 26/25/49 percentage split in the classic flexible-dieting shape. Sanity-check the levers before trusting the outputs: raise protein to 2.2 g/kg (a hard cut's insurance) and carbs fall by 16 g; drop fat to 20% and carbs gain 31 g — the remainder's sensitivity to the fixed quantities is the planning reality, and the calculator makes it a one-field experiment. During a deficit, the same frame at 2,000 kcal yields 160 g protein (now 32% — deficits raise protein's share automatically under the g/kg rule, which is the rule's quiet wisdom), 56 g fat and 215 g carbs: the plan migrates without redesign, one of the method's genuine ergonomic victories.
The Honest Critique of Fitting
IIFYM's critics land one true blow: the arithmetic is indifferent to food quality — 309 g of carbs from lentils and oats and 309 g from confectionery fit identically, while differing in fiber, micronutrients, satiety and glycaemic behaviour. The method's mature form answers with guardrails rather than denial (a fiber floor near 14 g per 1,000 kcal, a fruit-and-vegetable minimum, an added-sugar cap — borrowed from the guidelines the carb page cites), and its defenders note that flexibility is what makes the guardrails survivable for the people who would abandon a stricter plan entirely. The calculator computes the macros, as titled; this section exists so the page's reader meets the critique on the page itself, guardrails attached, instead of discovering it in a comment thread after the first all-popcorn week fits beautifully and feels terrible.
From Targets to a Day of Eating
The gram targets become food by division of labour: protein is planned first (a palm-to-two of protein food per meal across three or four meals, anchored by the foods whose protein-per-calorie the reader learns by heart), fat arrives substantially uninvited inside the protein foods and cooking oils — tracked, not chased — and carbs fill the visible remainder (the rice, bread and fruit whose portions the day's training scales). Pre-logging a template day that hits the calculator's outputs within a few grams converts the arithmetic into a repeatable menu within a week; the method's veterans all converge on this translation step, because a target that cannot be pictured as plates is a target that will be missed by Friday. The calculator's numbers are the template's blueprint; the kitchen does the building.
Your First Week on the Numbers
Expect the first week to be clumsy: hitting three gram targets at once is a skill, not a calculation. Weigh and log without judging, let the averages settle, and adjust one variable at a time — the method rewards patience far more than it rewards perfection.
Related Tools
More from the Health Calculators hub: the Maintenance Calorie Calculator — the calorie target this page divides — and the Carb Calculator for the percentage-first approach to the same split.
Frequently Asked Questions
How much protein per kilo is right?
The evidence's centre of mass: 1.6 g/kg saturates muscle-protein benefits for most trainees in energy balance (the 2018 Morton meta-analysis's breakpoint), 2.2 g/kg is the prudent ceiling during deficits where lean mass is at risk, and sedentary adults thrive nearer 1.0–1.2. The calculator's field accepts the reader's chosen dose and its label states the training range; overshooting within reason costs only carbs (protein beyond need is expensive fuel), while undershooting in a deficit costs tissue — the asymmetry that argues for the range's upper half whenever calories fall. Kidney-disease patients follow their clinician's protein prescription, not this page's range.
Why set fat as a percentage instead of grams per kilo?
Convention with a physiological excuse: fat's essential functions (hormones, fat-soluble vitamins, cell membranes) scale partly with energy throughput, and the percentage frame guarantees the floor rises on gain phases and holds proportionally on cuts — while the alternative frame (0.7–1.0 g/kg) suits readers who think in body weight throughout. The two frames convert within a gram or two at ordinary stats; the calculator speaks percentage because IIFYM's founding literature does, and its fat floor warning is the number to respect under either accounting: chronically below ~20% of calories, fat intake starts costing the functions it exists to serve.
Must every macro be hit exactly, daily?
No — the method's own practitioners grade the targets: protein is the near-daily obligation (its muscle economics are per-day), total calories the week's average that matters (a ±100 kcal day is bookkeeping noise), and fat and carbs may trade against each other within the calorie total on appetite's orders, which is the flexibility the name celebrates. Perfectionism about all three numbers daily is the disorder the doctrine was invented to cure. The calculator prints one day's targets; the week is the unit of compliance, a relaxation this FAQ states because calculators cannot relax themselves.
Where do alcohol and fiber land?
Alcohol is the uninvited fourth macro (7 kcal/g, no storage depot, oxidised first) — IIFYM practice books it against carbs or fat (never protein) by its calories, which the reader can replicate by trimming this page's carb output by the drink's calories ÷ 4. Fiber lives inside the carb total as labelled in the US system (its ~2 kcal/g making strict ledgers slightly over-count energy, a known and tolerated rounding). Neither guest breaks the frame; both are priced by the same division the calculator performs, with this FAQ as their invitation.
How does IIFYM differ from just counting calories?
By the protein floor and the composition of the weight change: at equal calories, higher-protein intakes preserve lean mass in deficits and direct more of a surplus toward muscle (with training), so two dieters on identical calories but 80 g versus 160 g of protein finish at the same weight and different bodies. Calorie counting alone cannot see that difference; macro counting exists to govern it. The calculator's three outputs are therefore not pedantry atop the calorie — they are the mechanism by which the calorie's QUALITY of outcome is chosen, which users of the method consider the entire point.
How do I adjust macros when progress stalls?
By the maintenance page's calibration logic applied to this page's split: if the weight trend (two to three weeks, averaged) defies the calorie target, move the TARGET by 100–200 kcal and re-run — the protein holds by g/kg, fat holds its share, and carbs absorb the change, which is exactly the remainder's design job. Stalls inside two weeks are water and noise, not signal; the method's discipline is patience between adjustments, because each change needs its own fortnight of evidence. Plateaus are the plan working slowly, metabolically adapting, or being mis-logged — in that order of politeness, and the re-run is the same regardless.
Are liquid calories treated differently?
Arithmetically no — a calorie of juice fits the macros by its (nearly all-carb) composition identically to a calorie of rice — and practically yes, because liquid carbs satiate weakly, so a plan that drinks its carb budget tends to hunger its way off-plan by evening. The mature IIFYM practice quietly rations liquids (a tenth of the day is a common self-rule) without amending the arithmetic; the calculator prices the fitting, and this FAQ files the appetite warning the slogan always needed: fitting is necessary, satiety is what makes it survivable.
Who coined IIFYM?
The phrase grew in bodybuilding forums of the late 2000s — "if it fits your macros" as the rebuttal to clean-eating orthodoxy, spread by coaches and early fitness YouTube — formalising what sports nutrition already practised (targets by nutrient, freedom within them) into a slogan with an accounting system attached. Its migration from forums to mainstream diet culture is complete enough that the calculator needs no allegiance test at the door: the arithmetic serves any reader with a calorie target and a protein dose, whatever brought them to the queue.