Macro Calculator

Calculate your daily macronutrient targets based on your Total Daily Energy Expenditure. Get personalized protein, carbs, and fat goals in grams and calories with preset diet ratios or fully custom splits. Free, instant, and completely private.

Core Capabilities

Accurate TDEE-Based Macros

Your macro targets are built on a precise TDEE calculation using the Mifflin-St Jeor equation, the formula recommended by leading nutrition organizations. By accounting for your gender, age, height, weight, and activity level, the calculator produces a calorie target that accurately reflects your real energy needs before dividing those calories into protein, carbohydrates, and fat.

Preset and Custom Ratios

Choose from three research-backed preset ratios (Balanced, Low Carb, High Protein) or create your own custom split. Whether you follow a standard balanced diet, a ketogenic approach, or a high-protein bodybuilding plan, you can adjust the percentages to match any dietary strategy and see the gram breakdown update in real time.

Complete Gram and Calorie Breakdown

Every result shows both grams and calories for each macronutrient, so you know exactly how much protein, carbohydrates, and fat to consume. The visual stacked bar chart provides an instant snapshot of your macro distribution, and the preset comparison table lets you compare all ratio options at a glance.

Goal-Adjusted Targets

Select your fitness objective, whether it is weight loss, maintenance, or muscle gain, and the calculator automatically adjusts your total calorie target before distributing macros. This ensures your protein, carb, and fat goals are aligned with your specific body composition goals rather than generic guidelines.

100% Private Calculations

All calculations run entirely in your browser using JavaScript. No personal data is ever sent to a server, stored in a database, or shared with third parties. Your body measurements, fitness goals, and macro targets remain completely private. Close the tab and your data is gone.

Getting Started with Macro Calculator

  1. Enter your personal details — Select your gender and enter your age, height, and weight. Toggle between metric (cm/kg) and imperial (ft-in/lbs) units at any time. Accurate measurements lead to more reliable macro targets.
  2. Choose your activity level — Pick the option that honestly reflects your typical weekly physical activity. If you are unsure, select one level lower than you think, as overestimating activity is the most common source of error in TDEE calculations.
  3. Select your goal — Choose whether you want to lose weight, maintain your current weight, or gain weight. The calculator adjusts your calorie target by the appropriate amount before splitting it into macronutrients.
  4. Click Calculate — Your daily calorie target, TDEE, BMR, and full macronutrient breakdown will appear instantly. Review the protein, carbs, and fat targets in both grams and calories.
  5. Choose or customize a macro ratio — Select a preset ratio like Balanced (30/40/30), Low Carb (40/20/40), or High Protein (40/30/30). For full control, switch to Custom and enter your own percentages. The results update as you change ratios.
Pro Tip

The International Society of Sports Nutrition (ISSN) recommends 1.4–2.0 g of protein per kg of body weight for physically active individuals. Start at the higher end during fat loss phases to preserve lean mass.

Common Mistake

Obsessing over the perfect macro ratio while ignoring total calorie intake. Macros matter, but if your total calories are off target, no ratio will produce the results you want. Always nail your calorie target first, then fine-tune the split.

Understanding Macronutrients and Why Tracking Them Matters

Macronutrients, often shortened to macros, are the three categories of nutrients that provide the energy your body needs to function: protein, carbohydrates, and fat. Unlike micronutrients such as vitamins and minerals that are required in tiny amounts, macronutrients are consumed in large quantities measured in grams and collectively account for every calorie in your diet. Understanding what each macronutrient does and how much of each you need is one of the most powerful tools available for improving body composition, athletic performance, and overall health.

Protein, yielding four calories per gram, is the building block of muscle tissue, enzymes, hormones, and immune cells. When you consume protein, your body breaks it down into amino acids that are used to repair damaged muscle fibers after exercise, synthesize new tissue during growth, and maintain a vast array of biochemical processes. Adequate protein intake is especially critical during weight loss because it helps preserve lean muscle mass when you are in a caloric deficit. Research consistently shows that higher protein diets improve satiety, meaning you feel full longer, which makes it easier to stick to your calorie targets. For active individuals and those engaged in resistance training, a protein intake of 1.6 to 2.2 grams per kilogram of body weight is commonly recommended to optimize muscle protein synthesis and recovery.

Carbohydrates, also providing four calories per gram, serve as the body's primary and preferred source of quick energy. During moderate to high-intensity exercise, your muscles rely heavily on glycogen, which is the stored form of carbohydrates, to sustain performance. Carbs also fuel brain function, with the brain alone consuming roughly 120 grams of glucose per day under normal conditions. While low-carb and ketogenic diets can be effective for certain goals, maintaining adequate carbohydrate intake is important for athletes, those performing intense training, and anyone who wants to optimize cognitive function and workout performance. Complex carbohydrates from whole grains, vegetables, and legumes also supply dietary fiber, which supports digestive health and helps regulate blood sugar levels.

Fat, the most calorie-dense macronutrient at nine calories per gram, plays essential roles that go far beyond energy storage. Dietary fat is required for the absorption of fat-soluble vitamins (A, D, E, and K), the production of steroid hormones including testosterone and estrogen, the integrity of every cell membrane in your body, and the insulation and protection of vital organs. Healthy fats from sources like avocados, nuts, seeds, olive oil, and fatty fish provide omega-3 and omega-6 fatty acids that support cardiovascular health and reduce inflammation. Consuming too little fat can disrupt hormonal balance, impair nutrient absorption, and leave you feeling perpetually hungry.

Tracking macros rather than just counting total calories gives you far greater control over your body composition and performance outcomes. Two diets with identical calorie counts can produce dramatically different results depending on their macronutrient composition. A high-protein diet at a given calorie level will preserve more muscle and burn more fat than a low-protein diet at the same calorie level. This concept is the foundation of flexible dieting, also known as IIFYM (If It Fits Your Macros), an approach that allows you to eat a wide variety of foods as long as you meet your daily macro targets. By using this macro calculator to set personalized targets and then tracking your intake with a food diary or app, you gain the flexibility to enjoy the foods you love while steadily progressing toward your body composition and performance goals.

Who Uses a Macro Calculator?

Weight Loss Dieters

Set a calorie deficit with enough protein to preserve muscle while losing fat. Macro tracking prevents the common pitfall of losing lean mass alongside body fat during a cut.

Bodybuilders & Strength Athletes

Dial in precise protein, carb, and fat targets for bulking, cutting, or maintenance phases. Accurate macros are essential for optimizing muscle protein synthesis and recovery.

Nutrition Coaches

Generate personalized macro prescriptions for clients based on their goals, activity level, and body composition. Use preset ratios as starting points and adjust based on client progress.

FAQ

What are macronutrients?

Macronutrients are the three main categories of nutrients that provide calories and energy to your body: protein, carbohydrates, and fat. Protein provides four calories per gram and is essential for building and repairing muscle tissue, producing enzymes and hormones, and supporting immune function. Carbohydrates also provide four calories per gram and serve as the body's primary energy source for high-intensity physical activity and brain function. Fat provides nine calories per gram and is critical for hormone production, vitamin absorption, cell membrane integrity, and long-term energy storage. Every food you eat is a combination of these three macronutrients in varying proportions, and hitting the right balance is key to supporting your specific health and fitness goals.

How much protein do I need per day?

The amount of protein you need depends on your body weight, activity level, and fitness goals. The minimum recommended dietary allowance is 0.8 grams per kilogram of body weight, which is sufficient to prevent deficiency in sedentary individuals. However, for anyone who exercises regularly, this amount is generally considered too low. Most sports nutrition research recommends 1.2 to 1.6 grams per kilogram for endurance athletes, 1.6 to 2.2 grams per kilogram for strength athletes and bodybuilders, and up to 2.4 grams per kilogram during aggressive weight loss phases to preserve lean mass. A practical guideline for active individuals is to aim for roughly one gram of protein per pound of body weight, which provides a reasonable margin that covers most goals.

What is carb cycling and how does it work?

Carb cycling is a dietary approach where you alternate between high-carbohydrate and low-carbohydrate days throughout the week, typically aligning your carb intake with your training schedule. On days when you perform intense exercise, particularly resistance training or high-intensity interval work, you eat more carbohydrates to fuel performance and promote glycogen replenishment. On rest days or days with lighter activity, you reduce carb intake and may slightly increase fat intake to keep total calories consistent. The theory is that this approach maximizes the benefits of carbohydrates around training while encouraging fat oxidation on lower-activity days. While the evidence for carb cycling being superior to a consistent daily intake is mixed, many athletes and dieters find that it helps them feel more energized during workouts while still managing body fat effectively.

What macros should I eat for a ketogenic diet?

A standard ketogenic diet typically calls for approximately 70 to 75 percent of calories from fat, 20 to 25 percent from protein, and only 5 to 10 percent from carbohydrates. In practical terms, this usually means consuming fewer than 50 grams of net carbohydrates per day, and some strict keto protocols recommend staying under 20 grams. This extreme carbohydrate restriction shifts your body into a metabolic state called ketosis, where it begins producing ketone bodies from fat to use as its primary fuel source instead of glucose. The ketogenic diet has shown effectiveness for certain populations, including people with epilepsy and type 2 diabetes, and some individuals use it successfully for weight loss. However, it is not suitable for everyone, particularly high-intensity athletes who depend on glycogen for performance.

What is the difference between macro counting and calorie counting?

Calorie counting focuses solely on the total number of calories consumed each day, without concern for where those calories come from. While this approach can produce weight loss if a caloric deficit is maintained, it does not account for the quality or composition of the diet. Macro counting takes the concept further by tracking the specific grams of protein, carbohydrates, and fat you consume, ensuring you hit targets for each macronutrient individually. This matters because two diets with identical calorie counts can produce very different results. A diet with adequate protein preserves more muscle mass during weight loss, improves satiety, and has a higher thermic effect compared to a diet low in protein at the same calorie level. Macro counting gives you control over body composition outcomes, not just the number on the scale.

What is IIFYM (If It Fits Your Macros)?

IIFYM, which stands for If It Fits Your Macros, is a flexible dieting approach that places no food off-limits as long as your daily macronutrient targets are met. Instead of following a rigid meal plan with specific foods at specific times, you simply track the total grams of protein, carbohydrates, and fat you consume and adjust your food choices to fit within those targets. This approach was popularized in the bodybuilding community and has gained mainstream appeal because it allows for dietary variety, reduces feelings of deprivation, and promotes long-term adherence. While IIFYM offers significant flexibility, most practitioners recommend that at least 80 percent of your diet should consist of whole, nutrient-dense foods to ensure adequate micronutrient intake and overall health.

How do I adjust my macros for different fitness goals?

Your macro ratios should shift depending on your primary objective. For fat loss, increasing protein to 30 to 40 percent of total calories helps preserve lean muscle mass and enhances satiety, while moderating carbs and fats within your calorie deficit. For muscle gain, keep protein at 25 to 35 percent and maintain higher carbohydrate intake (40 to 50 percent) to fuel intensive resistance training sessions and support recovery and glycogen replenishment. For general maintenance and health, a balanced split of approximately 30 percent protein, 40 percent carbs, and 30 percent fat works well for most people. Regardless of your goal, monitor your progress through body weight trends, measurements, and performance metrics over two to four weeks, then make small adjustments of five percent or 100 to 200 calories at a time until you find the optimal split for your body.

Popular Macro Ratios Explained

Different health and fitness goals call for different macronutrient distributions. The ratios below represent the percentage of total daily calories from carbohydrates, protein, and fat respectively. Each approach has specific advantages depending on your body composition goals, activity level, and metabolic health.

Weight Loss

40C / 30P / 30F

Moderate carbs with elevated protein to preserve lean muscle during a calorie deficit. The higher protein intake (around 1.6 g per kg of body weight) increases satiety, reduces cravings, and supports a higher thermic effect of food. This ratio works well for most people targeting steady fat loss of 0.5 to 1 pound per week while maintaining strength training performance.

Muscle Gain

40C / 30P / 30F

Higher carbohydrate intake fuels intense resistance training sessions and replenishes glycogen stores for recovery. Protein is kept at 30 percent to support muscle protein synthesis at approximately 1.8 to 2.2 g per kg of body weight. This ratio is paired with a moderate calorie surplus of 250 to 500 calories above TDEE to maximize lean mass gains while minimizing excess fat accumulation.

Ketogenic

5C / 25P / 70F

Very low carbohydrate intake (typically under 50 grams per day) forces the body into ketosis, where fat becomes the primary fuel source. This approach can be effective for rapid fat loss and may benefit individuals with insulin resistance or type 2 diabetes. However, it requires careful planning to avoid nutrient deficiencies and is difficult to sustain long-term for many people. Athletic performance in high-intensity activities may be reduced.

Balanced / Maintenance

50C / 25P / 25F

This ratio aligns closely with general dietary guidelines and suits people who want to maintain their current weight and support overall health without a specific body composition goal. Carbohydrates provide ample energy for daily activities and moderate exercise. Protein is sufficient for tissue maintenance, and fat intake supports hormone production and nutrient absorption. This is the most flexible and sustainable approach for long-term adherence.

No single macro ratio is universally best. The ideal split depends on your individual metabolism, training style, food preferences, and health conditions. Start with the ratio closest to your goal, track your results for two to four weeks, and make small adjustments of 5 percent at a time based on how your body responds in terms of energy, performance, and body composition changes.

Disclaimer: Macronutrient recommendations are general guidelines. Individuals with medical conditions should consult a registered dietitian before making significant dietary changes.

Tools That Pair Well

Citations & Resources