Macro calculator
Macro calculator for weight loss: set daily macro targets
Multiply daily calories by each macro percentage, then divide by 4 for protein and carbs or 9 for fat. This calculator converts your calorie target into grams using three splits and shows whether each sits inside the Malaysian RNI ranges. It does not work out calorie needs. Estimate a daily target first.
Get it on Google Play → Join the iPhone waitlist Available on Android and on the web. iPhone coming soon. Free to start.
Use the macro calculator
For healthy adults aged 18 and over. Not for use in pregnancy or breastfeeding, by children or teens, or by people with a medical condition or an eating disorder. Results are estimates, not medical advice: speak to a doctor or registered dietitian before changing your diet.
How do I calculate my macros?
Start with your daily calorie target, choose the share of calories for protein, carbs and fat, then convert each share to grams. Protein and carbohydrate give 4 calories per gram and fat gives 9. For 2,000 calories at 20% protein, that is 400 calories, or 100 grams of protein.
Not sure of your calories? Use the calorie calculator or TDEE calculator first.
How many calories are in a gram of protein, carbs and fat?
Protein and carbohydrate provide about 4 calories per gram and fat about 9 calories per gram. These are the standard Atwater factors used on most nutrition labels. Alcohol provides about 7 calories per gram. They are averages, so labelled totals can differ slightly.
Do macro percentages work the same for everyone?
No. The Malaysian Recommended Nutrient Intakes (2017) give adults 10 to 20% of energy from protein, 50 to 65% from carbohydrate and 25 to 30% from fat; the U.S. National Academies list wider ranges. The best split depends on your goals, training and health, so adjust with a professional if needed.
U.S. National Academies (2005): protein 10 to 35%, carbohydrate 45 to 65%, fat 20 to 35% of calories.
How many carbohydrates should I eat a day?
The Malaysian RNI (2017) gives 50 to 65 percent of energy from carbohydrate for adults. At 2,000 calories that is 250 to 325 grams, since carbohydrate gives 4 calories per gram. The right amount for you depends on activity, goals and health, so adjust with a professional if needed.
The U.S. National Academies list a wider 45 to 65 percent.
How much fat should I eat a day?
The Malaysian RNI (2017) gives 25 to 30 percent of energy from fat for adults. At 2,000 calories that is about 56 to 67 grams, because fat gives 9 calories per gram. Very low fat intakes can cause problems, and saturated fat is best kept limited, so ask a professional if you have a condition.
The U.S. National Academies list a wider 20 to 35 percent.
Is a high-protein split better for weight loss?
Some people find a higher-protein split helps them feel full, which can make a calorie target easier to follow. It is not right for everyone, for example people with kidney disease. Check with your doctor or dietitian before making big changes to protein intake.
How do I calculate macros for weight loss?
First set a calorie target below your daily energy use, for example about 300 to 500 calories under it. Then split that target into protein, carbohydrate and fat grams, keeping the split inside the adult ranges. Check your weight trend every few weeks and adjust the target if it is not working.
Worked example and steps are below the calculator, and the protein for weight loss guide covers protein in more detail.
Do I need to count macros to lose weight?
No. Weight change depends mainly on total calories, and research finds many diet styles can work about equally well, so tracking calories alone can be enough. Macros help if you want enough protein to stay full or to match a training or health plan. If counting becomes stressful, track calories only.
How to calculate your macros in 4 steps
- Estimate your daily calories. Use the TDEE calculator or the calorie calculator.
- Set a calorie target. For weight loss this sits below your daily energy use. See the calorie deficit guide and calorie deficit calculator.
- Choose a split inside the Malaysian RNI ranges. For protein, the protein calculator and the protein for weight loss guide show gram targets by body weight.
- Convert percentages to grams. Calories for each macro divided by 4 (protein, carbs) or 9 (fat).
| Worked example | Value |
|---|---|
| Person | Woman, 35 years, 165 cm, 70 kg, lightly active |
| BMR (10 x 70 + 6.25 x 165 - 5 x 35 - 161) | about 1,395 kcal |
| TDEE (BMR x 1.375) | about 1,918 kcal |
| Example daily target | 1,600 kcal (about 320 kcal below TDEE) |
| Split chosen: 20% protein, 30% fat, 50% carbs | inside the Malaysian RNI and U.S. ranges |
| Protein: 1,600 x 0.20 / 4 | 80 g |
| Fat: 1,600 x 0.30 / 9 | 53 g |
| Carbs: 1,600 x 0.50 / 4 | 200 g |
Macro ranges for adults at 2,000 calories
| Macro | Malaysia (RNI 2017) | Grams at 2,000 kcal | U.S. (IOM 2005) | Grams at 2,000 kcal |
|---|---|---|---|---|
| Protein | 10 to 20% | 50 to 100 g | 10 to 35% | 50 to 175 g |
| Carbohydrate | 50 to 65% | 250 to 325 g | 45 to 65% | 225 to 325 g |
| Fat | 25 to 30% | 56 to 67 g | 20 to 35% | 44 to 78 g |
Log what you eat in the app



A target only helps if you know what you eat. AI Calorie estimates calories and macros from a photo or a short description. It is free to start with daily limits: see pricing. This calculator is not medical advice; see medical review.
Sources
Malaysian guidance is listed first, international sources second.
- National Coordinating Committee on Food and Nutrition (NCCFN), Ministry of Health Malaysia. Recommended Nutrient Intakes for Malaysia. Putrajaya: MOH; 2017. ISBN 978-967-12050-4-4. Adult shares of total energy intake: carbohydrate 50-65%, fat 25-30%, protein 10-20%.
- Institute of Medicine. Dietary Reference Intakes for Energy, Carbohydrate, Fiber, Fat, Fatty Acids, Cholesterol, Protein, and Amino Acids. National Academies Press; 2005. (Acceptable Macronutrient Distribution Ranges.)
- Merrill AL, Watt BK. Energy value of foods: basis and derivation. USDA Agriculture Handbook No. 74; 1955. (Atwater factors: 4, 4 and 9 calories per gram.)
- Mifflin MD, St Jeor ST, et al. "A new predictive equation for resting energy expenditure in healthy individuals." Am J Clin Nutr 1990;51(2):241-247. doi:10.1093/ajcn/51.2.241
- Aragon AA, Schoenfeld BJ, Wildman R, et al. "International society of sports nutrition position stand: diets and body composition." J Int Soc Sports Nutr 2017;14. PubMed 28630601 · doi:10.1186/s12970-017-0174-y

AI Calorie gives general nutrition information and AI-generated estimates. It is not medical advice. See medical review and our Terms of Use.