Macro Calculator

A macro calculator estimates your daily protein, carbohydrate, and fat targets in grams based on your body stats, activity level, and fitness goal. Enter your details in the panel to get personalized macronutrient recommendations for weight loss, maintenance, or muscle gain.

What Is a Macro Calculator?

A macro calculator is a tool that determines how many grams of protein, carbohydrates, and fat you should eat each day to reach a specific body composition goal. It works by first calculating your Total Daily Energy Expenditure (TDEE) — the number of calories your body burns in a day — and then dividing those calories into macronutrient targets based on your goal, whether that is losing weight, maintaining your current weight, or building muscle.

Unlike generic calorie targets, macro tracking gives you a more precise framework for nutrition. Two people eating the same number of calories can have vastly different body composition outcomes depending on how those calories are distributed across protein, carbs, and fat. This calculator uses the Mifflin-St Jeor equation, the most widely validated formula for estimating Basal Metabolic Rate (BMR) in research and clinical practice.

A premium Macro Calculator hero image shows a centered UI panel with weight input, activity level dropdown, goal toggle, and Generate button over a sleek food-and-fitness scene with subtle grid lines and soft reflections.

What Are Macronutrients?

Macronutrients are the three major categories of nutrients that provide your body with energy. Every food you eat contains some combination of protein, carbohydrates, and fat. Each macronutrient has a specific caloric value and plays distinct roles in your body.

Protein

Protein provides 4 calories per gram and is the primary building block of muscle tissue, enzymes, hormones, and immune cells. Adequate protein intake is critical for preserving lean muscle mass during weight loss and for supporting muscle growth during a caloric surplus. Protein also has the highest thermic effect of any macronutrient, meaning your body burns more calories digesting protein than it does digesting carbs or fat. Common protein sources include chicken, fish, eggs, Greek yogurt, cottage cheese, legumes, and protein supplements. Lean beef and steak are also excellent protein sources — use the steak temperature chart to cook them to the right internal temperature for safety and optimal texture.

Carbohydrates

Carbohydrates provide 4 calories per gram and are your body's preferred source of energy, particularly for high-intensity exercise and brain function. Carbohydrates are stored as glycogen in the muscles and liver, which fuels athletic performance. Not all carbohydrates are equal: complex carbohydrates from whole grains, vegetables, fruits, and legumes digest slowly and provide sustained energy, while refined carbohydrates cause rapid blood sugar spikes — see the normal blood sugar levels chart for reference ranges. For most fitness goals, the majority of carbohydrates should come from whole food sources rich in fiber.

Fat

Dietary fat provides 9 calories per gram and is essential for hormone production, fat-soluble vitamin absorption (vitamins A, D, E, and K), cell membrane integrity, and joint health. Fat has the highest caloric density of the three macronutrients, which is why fat targets are typically lower in grams than protein or carbohydrate targets even when the caloric contribution is substantial. Healthy fat sources include avocados, nuts, seeds, olive oil, and fatty fish. Fat intake should not fall below roughly 20% of total calories to avoid hormonal disruption.

How to Calculate Your Macros

Step 1 - Calculate TDEE

The first step is calculating your Basal Metabolic Rate using the Mifflin-St Jeor formula, then multiplying by an activity factor to get your TDEE. The BMR formula is:

Male BMR = (10 × weight in kg) + (6.25 × height in cm) − (5 × age) + 5

Female BMR = (10 × weight in kg) + (6.25 × height in cm) − (5 × age) − 161

Need to convert your height to cm? Use the height comparison chart for a full feet-to-cm conversion table.

TDEE = BMR × Activity Multiplier. Activity multipliers range from 1.2 for sedentary individuals to 1.9 for those with physically demanding jobs combined with structured exercise.

Step 2 - Set Calorie Target

Your calorie target is adjusted from TDEE based on your goal. For weight loss, a deficit of approximately 500 calories per day below TDEE creates a safe rate of fat loss of roughly one pound per week. For muscle gain, a surplus of 250 calories above TDEE supports lean mass growth while minimizing excess fat gain. For maintenance, calories equal TDEE.

Step 3 - Determine Macro Ratios

Macro ratios are the percentage of total calories allocated to each macronutrient. This calculator uses evidence-based ratios suited to each goal. Weight loss prioritizes higher protein to preserve muscle during a deficit. Maintenance uses a balanced approach. Muscle gain increases carbohydrate intake to fuel training while keeping fat moderate.

Step 4 - Convert to Grams

Once calorie allocations are set for each macronutrient, they are divided by the caloric density of that macro to get gram targets. Protein and carbohydrate calories are divided by 4 (4 calories per gram). Fat calories are divided by 9 (9 calories per gram). The result is your daily macro targets in grams, which you can track using a food logging app such as MyFitnessPal or Cronometer.

Macro Ratios by Goal

Weight Loss Macros

For weight loss, this calculator applies a 40/30/30 split: 40% protein, 30% carbohydrates, and 30% fat. The elevated protein intake serves two purposes: it preserves lean muscle mass in a calorie deficit, and it increases satiety by slowing gastric emptying and regulating hunger hormones. Higher protein during weight loss also has a greater thermic effect, meaning more of the calories are burned during digestion. Carbohydrates are moderated but not eliminated, as adequate carbohydrate intake supports energy levels and prevents fatigue during workouts. Fat is kept moderate to support hormonal balance and fat-soluble vitamin absorption.

Maintenance Macros

For maintenance, this calculator uses a 30/40/30 split: 30% protein, 40% carbohydrates, and 30% fat. This balanced ratio supports overall health, athletic performance, and body composition stability. At maintenance calories, the body is not under the stress of a calorie deficit, so protein needs are slightly lower. Carbohydrates take a larger share to fuel physical activity and support cognitive function. This split aligns closely with general dietary guidelines for healthy active adults.

Muscle Gain Macros

For muscle gain, this calculator uses a 30/45/25 split: 30% protein, 45% carbohydrates, and 25% fat. Carbohydrates are increased substantially because muscle building requires full glycogen stores for training performance and recovery. Adequate carbohydrate intake creates an anabolic environment by stimulating insulin, which drives amino acids into muscle cells. Protein remains at 30% to provide the raw material for muscle protein synthesis, while fat is kept at 25% — sufficient for hormone production without crowding out the carbohydrates and protein needed for performance and growth.

How Much Protein Do I Need?

Protein Per Pound of Body Weight

The most practical way to estimate protein needs is by body weight. General recommendations for active individuals fall between 0.7 and 1.2 grams of protein per pound of body weight per day, depending on the goal and training intensity. For weight loss with resistance training, targeting the higher end of this range (1.0 to 1.2g per pound) helps maximize muscle retention. For maintenance, 0.7 to 0.9g per pound is sufficient for most active adults. For muscle gain with heavy resistance training, 0.8 to 1.0g per pound supports optimal muscle protein synthesis.

The percentage-based approach used in this calculator aligns with these per-pound targets for most body weights. For example, a 170-pound person at a 2,000-calorie weight loss target would receive approximately 200g of protein, which equals roughly 1.18g per pound — within the optimal range. If you want a personalized protein recommendation factoring in your training type and recovery needs, use the AI chat feature to get a detailed breakdown. You can also explore our free AI meal planner to build meals that hit your macro targets each day.

How to Track Macros

Tracking macros requires logging the food you eat and recording the protein, carbohydrate, and fat content of each item. The most reliable way to do this is by weighing food with a kitchen scale and using a nutrition tracking app that has a verified food database. Apps such as MyFitnessPal, Cronometer, and Lose It connect to large databases of branded and whole foods, making it possible to scan barcodes or search by name to log meals quickly.

For beginners, strict macro tracking can feel overwhelming. A practical approach is to start by hitting your protein target first, since protein is the most important macro for body composition outcomes. Once protein tracking becomes consistent, add carbohydrate and fat tracking. Over time, many people develop an intuitive sense of the macronutrient content of their regular foods and can reduce the reliance on logging while maintaining their results. Planning meals in advance using your macro targets makes daily tracking significantly easier.

Frequently Asked Questions

What are macros?

Macros, short for macronutrients, are the three main categories of nutrients that provide calories: protein, carbohydrates, and fat. Protein and carbohydrates each provide 4 calories per gram, while fat provides 9 calories per gram. Tracking macros means monitoring how many grams of each you consume each day to meet a specific nutrition goal.

How do I calculate macros for weight loss?

To calculate macros for weight loss, first find your TDEE using the Mifflin-St Jeor formula multiplied by your activity factor, then subtract approximately 500 calories to create a deficit. Apply a macro split of 40% protein, 30% carbohydrates, and 30% fat. Divide the calorie allocation for each macro by its caloric density (4 for protein and carbs, 9 for fat) to get gram targets. Our macro calculator above does this automatically.

How much protein do I need per day?

For active adults, the recommended protein intake is 0.7 to 1.2 grams per pound of body weight per day, depending on your goal and training intensity. Those in a calorie deficit for weight loss benefit from being at the higher end of this range to preserve muscle mass. For muscle gain, 0.8 to 1.0g per pound is commonly recommended. Sedentary individuals need less, approximately 0.36g per pound based on the RDA, but this is considered the minimum to prevent deficiency rather than an optimal amount for fitness goals.

What is the best macro ratio?

There is no single best macro ratio that applies to everyone. The optimal split depends on your goal, body type, activity level, and food preferences. For weight loss, a higher protein ratio such as 40/30/30 (protein/carbs/fat) is generally effective. For muscle gain, more carbohydrates are beneficial, such as 30/45/25. For maintenance, a balanced 30/40/30 split works well for most active adults. Consistency with any evidence-based ratio matters more than finding a perfect number.

Do I need to count macros?

Counting macros is not strictly necessary for everyone, but it is a useful tool for people who want precise control over their body composition. For general health, focusing on whole foods and appropriate portion sizes may be sufficient. For specific goals like competitive physique change, weight loss plateaus, or athletic performance, macro tracking provides a level of precision that general eating does not. Many people use macro tracking short-term to develop an intuitive understanding of food composition, then reduce or stop tracking once eating habits are established.

Also check out:

Related Tools