My best utilities, now on your mobile.
Access all my tools and projects fast, optimized, and in one place.
Macronutrient Calculator
Split daily calories into carbohydrates, protein, and fat for balanced, keto, low-carb, high-protein, or custom diet planning, with calories and grams shown instantly.
Preset modes apply common macro distributions instantly. Edit sliders to move into custom planning.
| Macro | Share | Calories | Grams |
|---|---|---|---|
| Carbohydrates | 40% | 960 kcal | 240 g |
| Protein | 30% | 720 kcal | 180 g |
| Fat | 30% | 720 kcal | 80 g |
Energy factors: carbohydrate and protein use 4 kcal per gram; fat uses 9 kcal per gram.
Food scale view: gram outputs are designed for weighing ingredients and checking nutrition labels.
Planning note: daily targets are easier to follow when split across meals you already repeat.
Want this utility on your website?
Customize colors and dark mode for WordPress, Notion or your own site.
Frequently Asked Questions
How does this macronutrient calculator convert calories to grams?
The calculator uses standard energy factors: carbohydrate provides 4 kcal per gram, protein provides 4 kcal per gram, and fat provides 9 kcal per gram. It multiplies total daily calories by each selected percentage and then divides by the matching energy factor.
Which macro split should I choose?
The best split depends on training, preference, medical context, digestion, and adherence. Balanced is a general starting point, keto greatly restricts carbohydrate, low-carb reduces carbohydrate while keeping protein and fat higher, and high-protein supports people prioritizing satiety or lean-mass retention.
Do the custom sliders always add up to 100 percent?
Yes. When one custom slider changes, the calculator redistributes the remaining percentage across the other two macronutrients proportionally so the total stays at 100 percent.
Can I load calories from a TDEE calculator?
The calorie field is editable and can be filled with a total daily energy expenditure estimate or a calorie target derived from it. Use maintenance calories for weight stability, a deficit for fat loss, or a surplus for mass gain.
Is a macro calculator medical nutrition advice?
No. This tool is educational and for planning convenience. People with diabetes, kidney disease, eating disorders, pregnancy, gastrointestinal disease, or other medical conditions should use individualized guidance from a qualified clinician.
Macronutrient calculator at a glance
# How a macronutrient calculator works
A macronutrient calculator takes one daily calorie target and divides it into the three calorie-providing macronutrients: carbohydrates, protein, and fat. The calculation is mechanical, but the interpretation is practical. A 2,400 kcal day with a 40 percent carbohydrate target assigns 960 kcal to carbohydrate. Because carbohydrate provides 4 kcal per gram, that becomes 240 g of carbohydrate for the day.The same conversion is used for protein, while fat uses a different factor. Protein provides 4 kcal per gram, so 720 kcal from protein equals 180 g. Fat provides 9 kcal per gram, so 720 kcal from fat equals 80 g. This is why a fat percentage can look similar to a carbohydrate percentage while producing fewer grams: each gram of fat carries more energy.| Macronutrient | Energy factor | What the gram target helps with |
|---|---|---|
| Carbohydrate | 4 kcal per gram | Fuel planning for training, glycogen, higher-volume meals, fruit, grains, legumes, and starches |
| Protein | 4 kcal per gram | Daily protein consistency, lean-mass support, satiety, and meal structure |
| Fat | 9 kcal per gram | Energy density, essential fatty acids, palatability, and hormone-related dietary adequacy |
The calculator does not decide your calorie target
# Choosing between balanced, keto, low-carb, and high-protein
A macro preset is a starting model, not a universal rule. The right distribution depends on training load, food preference, medical context, appetite, digestion, culture, budget, and how easily the plan can be repeated. The best macro split is usually the one that supports performance and health markers while being easy enough to follow for weeks, not just one perfect day.Balanced 40/30/30
A moderate distribution with enough carbohydrate for many training routines, enough protein for structured meals, and enough fat for palatability.
- Useful general starting point
- Often easier for mixed meals and family eating
Keto 5/25/70
A very low-carbohydrate, high-fat distribution designed to keep carbohydrate intake extremely restricted.
- Requires careful food selection
- Not ideal for every sport or medical context
Low carb 20/40/40
Reduces carbohydrate without making fat as dominant as keto, while assigning a large share to protein.
- Can improve satiety for some users
- Training intensity may need carbohydrate timing
High protein 40/40/20
Keeps carbohydrate substantial while raising protein and lowering fat, commonly used in body-composition phases.
- Helpful when lean-mass retention is a priority
- Fat may become too low if calories are very low
Preset macro splits: useful and limited
- They make meal planning faster because the percentages are already defined.
- They allow quick comparison between dietary strategies at the same calories.
- They are easy to explain to clients or athletes.
- They help people learn the relationship between percentages and grams.
- They do not account for medical history, blood markers, or medication needs.
- They can hide whether absolute grams are practical for the person.
- They may be too rigid for travel, social meals, or appetite changes.
- They are not proof that one diet style is superior for every goal.
Check grams before committing to a percentage
A macro ratio can look reasonable until it is converted to grams. For example, 40 percent protein at 1,600 kcal is 160 g per day, while 40 percent protein at 3,200 kcal is 320 g per day. The same percentage creates a very different food burden.# Using macro grams for real meal planning
The grams output is the part that turns a diet idea into a grocery list. Calories describe the energy budget, but grams connect the plan to cooked rice, oats, beans, lean meat, yogurt, olive oil, avocado, nuts, protein powder, and nutrition labels. If the calculator gives 240 g carbohydrate, 180 g protein, and 80 g fat, a meal plan can divide those numbers across breakfast, lunch, dinner, snacks, and training windows.- Start with protein anchors: assign a protein source to each main meal so the daily target is not left until the evening.
- Place carbohydrate around training: higher-intensity sessions often feel better when some carbohydrate is available before or after exercise.
- Use fat deliberately: oils, nuts, cheese, butter, and sauces can move fat grams quickly because fat is energy dense.
- Keep fiber visible: carbohydrate grams from fruit, legumes, whole grains, and vegetables behave differently in fullness than refined sweets.
- Plan a tolerance range: hitting macros within a small range is more realistic than forcing exact numbers every day.
| Daily target example | Four-meal split | Practical note |
|---|---|---|
| 240 g carbohydrate | About 60 g per meal | This may be rice, potato, oats, fruit, bread, legumes, or a mix |
| 180 g protein | About 45 g per meal | Large targets are easier when every meal has a clear protein anchor |
| 80 g fat | About 20 g per meal | Cooking oil and condiments should be counted because they add up quickly |
Raw, cooked, and label weights
# Protein targets and body-composition goals
Protein is often the macro people adjust most intentionally because it affects satiety and supports muscle protein remodeling when paired with resistance training. A macro percentage alone can be misleading, so many coaches also check grams per kilogram of body weight or lean body mass. A high-protein preset can be useful during fat-loss phases, but it still needs to fit digestion, kidney-related medical guidance, total calories, and food preference.When protein targets need professional context
- Macronutrient
- A nutrient needed in relatively large amounts that provides energy: carbohydrate, protein, and fat.
- TDEE
- Total daily energy expenditure, an estimate of how many calories a person burns in a day.
- Calorie deficit
- An intake target below energy expenditure, commonly used for fat loss.
- Calorie surplus
- An intake target above energy expenditure, commonly used for mass gain.
- Glycogen
- Stored carbohydrate in muscle and liver that supports training intensity and repeated efforts.
# Carbohydrate timing for fitness and performance
Carbohydrate is not mandatory at the same level for every person, but it is a major training variable. Strength sessions, intervals, team sports, endurance workouts, and repeated high-intensity efforts often rely on carbohydrate availability. Lower-carbohydrate plans can work for some goals, but people should watch performance, mood, sleep, menstrual cycle changes, and recovery rather than judging the plan only by scale weight.Higher carb days
Often placed on hard training days, long endurance sessions, or high-volume lifting days.
- Supports glycogen
- Can improve session quality
Moderate carb days
Often used for mixed training or maintenance phases where performance and appetite are both priorities.
- Flexible food choices
- Works with balanced presets
Lower carb days
Sometimes used on rest days or for preference-driven eating patterns, but not required for fat loss.
- Can improve satiety for some
- May reduce training fuel
Carbs are best judged by outcomes
If lowering carbohydrate makes workouts worse, sleep poorer, cravings stronger, or recovery slower, the macro split may need more carbohydrate even if calories are unchanged.# Fat intake, energy density, and dietary quality
Fat is energy dense, so small portion changes can strongly affect total calories. One tablespoon of oil, a handful of nuts, or a rich sauce can move a meal from moderate to high fat very quickly. This is neither good nor bad by itself; it simply means fat grams should be handled intentionally when the goal is precise calorie control.- Keep essential fats present: very low-fat plans can become difficult to sustain and may crowd out foods that provide essential fatty acids.
- Choose quality sources: olive oil, nuts, seeds, avocado, fatty fish, eggs, and dairy can fit depending on preferences and medical context.
- Watch hidden fats: restaurant cooking oils, dressings, pastries, fried foods, and sauces often carry more fat than expected.
- Do not remove fat blindly: reducing fat too aggressively can make meals less satisfying and harder to repeat.
| Common adjustment | Macro effect | When it may help |
|---|---|---|
| Swap fried foods for grilled options | Lowers fat while preserving protein | Fat-loss phases where calories are tight |
| Add olive oil or nuts | Raises fat and calories efficiently | Mass-gain phases or low appetite days |
| Use leaner protein sources | Lowers fat without lowering protein much | High-protein plans with limited calories |
| Add avocado or whole eggs | Raises fat and meal satisfaction | Balanced plans that feel too low in fat |
# How to use custom macro sliders intelligently
Custom mode is useful when a preset is close but not quite right. Instead of manually fixing three numbers, move the macro that matters most and let the calculator redistribute the remaining percentage. If carbohydrate is raised from 20 to 30 percent, the remaining 70 percent is divided between protein and fat in proportion to their previous relationship. That keeps the total at 100 percent and prevents accidental over-allocation.A practical customization sequence
Custom slider checklist
# Common mistakes when calculating macros
Do not confuse percentages with quality
- Using maintenance calories for fat loss: if the calorie target is not a deficit, the macro split alone will not create fat loss.
- Ignoring alcohol: alcohol provides energy but is not counted as carbohydrate, protein, or fat in this calculator.
- Copying athlete macros: a larger or more active athlete may need gram targets that are unrealistic for someone smaller or less active.
- Overreacting to one day: sodium, menstrual cycle phase, glycogen, digestion, and hydration can change body weight without reflecting fat gain.
- Forgetting fiber and micronutrients: macro math should be paired with fruits, vegetables, legumes, whole grains, and varied protein and fat sources when tolerated.
| Question to ask | Why it matters | Adjustment if needed |
|---|---|---|
| Can I eat this protein target daily? | Unrealistic protein targets lead to plan abandonment | Lower protein percentage or raise calories if appropriate |
| Do workouts feel fueled? | Low carbohydrate can reduce high-intensity output | Shift some fat calories toward carbohydrate |
| Are meals satisfying? | Very low fat can reduce palatability and satiety | Shift some carbohydrate calories toward fat |
| Are health markers improving? | Macros are only one part of nutrition risk | Review fiber, food quality, sleep, activity, and clinical guidance |
# Turning daily macros into weekly progress
Macro targets are most useful when they support a repeatable weekly pattern. A body-composition phase is rarely decided by one exact meal. It is shaped by the average calorie intake, protein consistency, training quality, sleep, steps, stress, digestion, and how often the plan can survive normal life. Use the calculator to define the target, then use a weekly review to decide whether the target should change.For fat loss, monitor a multi-week weight trend, waist trend, training performance, hunger, and energy. If progress stalls for several weeks and adherence is strong, calories may need a small adjustment. For muscle gain, watch body weight, gym performance, appetite, digestion, and body measurements. If weight rises too quickly, the surplus may be too large; if performance and weight do not move, calories may be too low.Key takeaways
Bibliographic References
- [1] Manore MM: Dietary recommendations and athletic performance
https://doi.org/10.1080/02640410400023221
- [2] Thomas, Erdman, Burke: Nutrition and Athletic Performance
https://doi.org/10.1249/MSS.0000000000000852
- [3] Institute of Medicine: Dietary Reference Intakes for macronutrients
https://nap.nationalacademies.org/catalog/10490/dietary-reference-intakes-for-energy-carbohydrate-fiber-fat-fatty-acids-cholesterol-protein-and-amino-acids
- [4] International Society of Sports Nutrition position stand: protein and exercise
https://doi.org/10.1186/s12970-017-0177-8
- [5] Academy of Nutrition and Dietetics: Nutrition and Athletic Performance
https://www.jandonline.org/article/S2212-2672(15)01802-X/fulltext
- [6] Wikipedia: Macronutrient
https://en.wikipedia.org/wiki/Macronutrient
More utilities from Online Health Tools
Binaural Wave Tuner for Lucid Dreams
Induce lucid dreams and deep relaxation states with delta, theta and alpha binaural beats. Frequency generator with visual stroboscope.
Blood Test Unit Converter
Medical calculator to convert blood test results between mg/dL and mmol/L. Compatible with glucose, total cholesterol, HDL, LDL, triglycerides, creatinine and urea.
BMI Calculator: Body Mass Index Online
Calculate your Body Mass Index (BMI) for free. Online tool to assess your nutritional status based on your weight and height, with visual scale and WHO categories.
Amputation Adjusted BMI Calculator
Calculate conventional BMI and amputation-adjusted BMI with Mellor/Garrison segment weight correction, interactive body map, metric and imperial units.
Body Adiposity Index Calculator
Estimate Body Adiposity Index (BAI/IAC) from hip circumference and height. Educational calculator with metric and imperial units, visual interpretation, and clear limitations.
Body Fat Percentage Calculator
Estimate body fat percentage with the U.S. Navy tape method or a BMI-based equation, switch between metric and imperial units, and compare the result with common body fat categories.
Waist to Hip Ratio Calculator
Calculate waist-to-hip ratio (WHR) from waist and hip circumference, compare the result with WHO risk thresholds, and learn how to measure correctly.
Waist to Height Ratio Calculator
Calculate waist-to-height ratio (WHtR), compare your waist with half your height, and interpret cardiometabolic risk bands for adults.
Conscious Breathing Visualizer: Box Breathing and Wim Hof Method
Instantly reduce stress and anxiety with our breathing visualizer. Bio-feedback guide for Box Breathing, 4-7-8 and Wim Hof Method.
Caffeine Metabolism Tracker: Sleep Simulator
Calculate how much caffeine remains in your system based on your metabolism. Decay visualizer to avoid insomnia and improve your rest.
Caloric Deficit Calculator
Estimate a safe daily calorie target from BMR, activity, TDEE, desired deficit percentage, current weight, and goal weight, with clear 1200/1500 kcal safety warnings.
Daily Protein Calculator
Estimate daily protein intake from body weight, age, activity level, goal, and pregnancy or lactation status. Includes food equivalents and a soft safety-limit warning.
TDEE Calculator
Estimate total daily energy expenditure from Mifflin-St Jeor or Katch-McArdle BMR, activity multipliers, body fat percentage, and metric or imperial body measurements.
BUN/Creatinine Ratio Calculator
Calculate the BUN/creatinine ratio to differentiate prerenal azotemia, intrinsic renal failure, and postrenal obstruction. Supports mg/dL and mmol/L for BUN, mg/dL and µmol/L for creatinine.
Serum Osmolality Calculator
Calculate estimated serum osmolality from sodium, glucose, and BUN or urea, then compare it with measured osmolality to estimate the osmolar gap.
Mean Arterial Pressure Calculator
Calculate mean arterial pressure from systolic and diastolic blood pressure, with an optional heart-rate-corrected MAP estimate and perfusion range color coding.
Corrected Sodium in Hyperglycemia Calculator
Estimate glucose-corrected serum sodium with the Katz 1.6 mEq/L factor or the Hillier modified factor for marked hyperglycemia.
Fractional Excretion of Sodium (FENa) Calculator
Calculate fractional excretion of sodium from serum sodium, urine sodium, serum creatinine, and urine creatinine, with creatinine unit conversion and cautious AKI interpretation bands.
Corrected Reticulocyte Count and RPI Calculator
Calculate corrected reticulocyte percentage and reticulocyte production index (RPI) from observed reticulocytes, patient hematocrit, and reference hematocrit.
Estimated Blood Volume Calculator
Estimate adult blood volume with Nadler, Lemmens-Bernstein-Brodsky, and Gilcher methods using sex, height, weight, body habitus, and metric or imperial units.
Anion Gap Calculator
Educational anion gap calculator with optional potassium and albumin correction, a cation-anion balance graphic, and conservative acid-base interpretation prompts.
Creatinine Clearance Calculator (Cockcroft Gault)
Educational Cockcroft Gault creatinine clearance calculator with weight selection, unit conversion, and renal function bands.
Corrected Calcium Calculator
Educational corrected calcium calculator for adjusting serum calcium levels in patients with hypoalbuminemia using conventional and SI units.
Estimated Glomerular Filtration Rate (eGFR) Calculator
Educational eGFR calculator using the CKD-EPI (2021) and MDRD equations to assess kidney function and classify Chronic Kidney Disease (CKD) stages.
Target Height Estimator
Estimate a child's adult genetic target height from biological parental heights with the Tanner mid-parental height method and a +/-8.5 cm clinical range.
Color Blindness Simulator: Visualize Color Vision Deficiency
Simulate how people with color blindness perceive color. Visualize protanopia, deuteranopia, tritanopia and more with your own image or the included sample palette.
Digestion Stopwatch: Physiological Transit Tracker
Calculate how long your food takes to digest. Track progress through the stomach, small intestine, and large intestine based on macronutrients.
Epworth Sleepiness Scale Test
Measure your daytime sleepiness with the Epworth Sleepiness Scale. A clinically validated test to detect possible sleep disorders.
Climate and Weight Hydration Calculator
Calculate exactly how much water you need to drink today. Algorithm adjusted for ambient temperature, relative humidity and physical activity level.
Lean Body Mass Calculator
Estimate lean body mass from height, weight, sex, and the Boer, James, or Hume equations. Includes metric and imperial units, a live donut chart, and body-composition visualization.
Estimated Metabolic Age Calculator
Estimate metabolic age from chronological age, sex, height, weight, optional body fat percentage, and activity level using BMR-based metabolic comparison.
Pelli Robson Contrast Sensitivity Test
Measure your visual contrast sensitivity with the Pelli Robson test. Diagnose your ability to detect shades of grey, essential for night driving and eye health.
Peripheral Vision Trainer
Train your peripheral visual field with this agility game. Improve reading speed, situational awareness, and ocular reaction time.
Optimal Reading Distance Calculator
Find out how many centimetres from the screen you should sit based on your font size. Avoid eye strain and protect your vision with ergonomics.
Ocular Decompression Rest Calculator
Calculate how many minutes of visual rest you need based on your daily screen time. Personalised 20-20-20 rule to prevent digital eye strain and fatigue.
Tinnitus Relief: Online Notch Therapy Tool
Free online tool for tinnitus relief through Notch Therapy. Customizable white, pink and brown noise generator with a notch filter at your exact tinnitus frequency.
Parametric Pink and Brown Noise Synthesizer
Browser based pink, brown, white and blue noise generator with real time spectrum visualization, low pass cutoff, resonance control and a sleep fade out timer.
Standard Drink Unit Calculator
Calculate the pure grams of alcohol and Standard Drink Units (SDU) of your cocktails, beer, wine and shots for safe and informed consumption.
Emergency Water Purifier
Bleach dosage calculator to purify emergency water. Survival tool based on WHO and CDC guidelines.
Sleep Debt Recovery Planner
Estimate recent sleep debt and shape a gentle recovery plan without turning a sleep pattern into a diagnosis.