Macro Calculator
Split a daily calorie target into protein, carbohydrate and fat grams.
Results update as you type.
Game da wannan Kalkulator
A macro calculator turns a daily calorie target into grams of protein, carbohydrate and fat using a chosen ratio. It relies on the Atwater energy values — 4 calories per gram of protein and carbohydrate and 9 calories per gram of fat — so the three macros always add back up to your target. Pick a preset split or enter your own percentages under advanced options.
The math is identical for every macro: grams = (calories × macro %) ÷ calories-per-gram. Take a 2,000 kcal balanced 30/40/30 plan. Protein is 2,000 × 0.30 ÷ 4 = 150 g, carbohydrate is 2,000 × 0.40 ÷ 4 = 200 g, and fat is 2,000 × 0.30 ÷ 9 ≈ 67 g. Those convert back to 600 + 800 + 600 = 2,000 calories, confirming the split is internally consistent.
Use it after you have a calorie target from a TDEE or calorie-deficit calculator: macros decide the composition of those calories, which affects satiety, training performance and how much muscle you keep in a diet. Higher-protein splits suit people building or preserving muscle, endurance splits load more carbohydrate for glycogen, and keto splits push carbs very low. Total calories still drive weight change more than the exact ratio.
Tambayoyi da ake yi da yawa
Ta yaya ake canja macros daga calories zuwa grams?
Each macro has an energy value: protein and carbohydrate are 4 calories per gram and fat is 9 calories per gram. Grams = (calories × macro %) ÷ calories-per-gram. For a 2,000 kcal 30/40/30 split that is 150 g protein, 200 g carbs and 67 g fat.
Me ya sa aka raba macro?
A daidaitacce 30/40/30 aiki ga mafi yawan mutane, mafi girma protein (a kusa da 40%) taimaka a lokacin gina ko kiyaye jiki, da keto raba ke rike carbs sosai low. Ba a da wani mafi kyau daya ra'ayi - dukan calories abu fiye da daidai raba.
Shin macros uku suna ƙarawa zuwa kalorina?
Yes. Because the percentages you choose total 100%, the calories from protein, carbs and fat always sum back to your daily target.
Shin, kiɗan da yawa ne grams na protein a cikin 2,000-calorie abinci?
It depends on the protein percentage. At 30% protein it is 150 g (2,000 × 0.30 ÷ 4), and at 40% it is 200 g. Change the split and the calculator recomputes the grams for each macro.
Mẽne ne mafi alhẽri keto macros?
The keto preset uses 25% protein, 5% carb and 70% fat. On 2,000 kcal that is roughly 125 g protein, 25 g carbs and 156 g fat — carbs are kept very low to encourage the body to run on fat and ketones.
Shin, zan iya ƙididdige karfin ƙarfin wutar lantarki na wannan tsarin?
This tool works in total carb grams derived from calories. Net carbs (total minus fiber) is a separate tracking choice popular on low-carb diets; whatever you follow, keep it consistent from day to day.
Shin macros na na canza a ranakun shakatawa?
The calculator splits whatever calorie target you enter, so if you eat fewer calories on rest days, enter that lower number and every macro scales down. Many people keep protein steady and trim mostly carbohydrate on non-training days.
API — amfani da wannan calculator daga code
Ka kira wannan kwalban kamar wata maɓallin ƙarshe JSON mai kyauta - babu maɓalli da ake buƙata. Ka aika kimar fannin ƙasa kamar paramita na tambaya ko JSON. Anything you omit uses the same default this page is pre-filled with; an unknown parameter is a 400, never a silent zero. Read the full API docs →
Endpoint
GET https://calculator.free/api/v1/macro/
curl
curl "https://calculator.free/api/v1/macro/?calories=2000&split=30-40-30"
JavaScript fetch()
const r = await fetch(
"https://calculator.free/api/v1/macro/?" + new URLSearchParams({
"calories": "2000",
"split": "30-40-30"
}));
const data = await r.json();
console.log(data.results);
Results are estimates for general guidance only, not financial, medical or tax advice.