Macro Calculator

Calculate your daily macronutrient needs based on TDEE. Choose from diet presets like balanced, keto, and high-protein, then split macros across your meals.

9 min read

Status: Live Updated: March 2026 Privacy: No Data Stored Mobile: Responsive
Page loads: 0
Active users: 0
Calculations today: 0

Calculate Your Daily Macros

Male
Female
Sedentary
Light
Moderate
Active
Very Active
Lose Weight (-500 cal)
Maintain
Gain Muscle (+300 cal)
Custom
Balanced
40C / 30P / 30F
Keto
5C / 25P / 70F
High Protein
40C / 40P / 20F
Low Fat
55C / 25P / 20F
--
TDEE
Total Daily Energy
--
Target Calories
After Adjustment
--
BMR
Basal Metabolic Rate
--
Protein (g)
-- cal
--
Carbs (g)
-- cal
--
Fat (g)
-- cal

Meal Plan Breakdown

MealCaloriesProtein (g)Carbs (g)Fat (g)

Macro Calculator Comparison

Macro calculator comparison chart

Macros Explained for Beginners

What are Macronutrients?

Macronutrients are nutrients required by organisms in large quantities. They include carbohydrates, fats, and proteins. Carbohydrates are the body's primary source of energy and provide 4 calories per gram. Proteins are essential for building and repairing body tissues, producing enzymes and hormones, and supporting immune function, also providing 4 calories per gram. Fats serve as a concentrated energy source at 9 calories per gram, play critical roles in hormone production, nutrient absorption, and cell membrane structure. The balance of these three macronutrients in a diet significantly affects body composition, energy levels, and overall health outcomes.

Source: Wikipedia - Macronutrient

ML

Michael Lip

Sports nutrition researcher and fitness technology developer with expertise in metabolic rate calculations and evidence-based dietary programming.

Last verified: March 19, 2026

Original Research Methodology

This macro calculator was developed using peer-reviewed nutrition science:

Understanding TDEE and BMR

Your Total Daily Energy Expenditure (TDEE) is the foundation for calculating macronutrient needs. It represents the total energy your body uses each day from all sources combined.

Basal Metabolic Rate (BMR)

BMR is the number of calories your body burns at complete rest to maintain basic life functions: breathing, circulation, cell production, and organ function. This calculator uses the Mifflin-St Jeor equation, which research has shown to be the most accurate BMR predictor for most populations. For men: (10 x weight in kg) + (6.25 x height in cm) - (5 x age) + 5. For women: the same formula minus 161 instead of plus 5.

Activity Multipliers

Your BMR is multiplied by an activity factor to estimate TDEE. Sedentary (1.2) covers desk jobs with little exercise. Light activity (1.375) includes 1-3 days of light exercise per week. Moderate (1.55) covers 3-5 days of moderate exercise. Active (1.725) includes 6-7 days of hard exercise. Very active (1.9) covers athletes and physically demanding jobs combined with training.

Caloric Adjustments for Goals

To lose weight, consume fewer calories than your TDEE. A 500-calorie daily deficit produces approximately 1 pound of fat loss per week. To gain muscle, consume a moderate surplus of 200-400 calories above TDEE combined with resistance training. Maintenance means eating at your TDEE level to keep your current weight stable.

Macronutrient Deep Dive

Protein: The Building Block

Protein provides 4 calories per gram and is essential for muscle repair, enzyme production, and immune function. During weight loss, adequate protein intake (0.7-1.0g per pound of body weight) preserves lean muscle mass. During muscle gain phases, protein needs may increase to 1.0-1.2g per pound. Complete protein sources include meat, fish, eggs, and dairy. Plant proteins from legumes, grains, and soy can be combined to provide all essential amino acids.

Carbohydrates: The Primary Fuel

Carbohydrates provide 4 calories per gram and are the body's preferred energy source for both brain function and physical activity. They are stored as glycogen in muscles and liver for readily available energy. Complex carbohydrates (whole grains, vegetables, legumes) provide sustained energy and fiber. Simple carbohydrates (sugar, refined grains) provide quick energy but less nutritional value. Carbohydrate needs vary significantly based on activity level and goals.

Fat: Essential Functions

Fat provides 9 calories per gram, making it the most calorie-dense macronutrient. It is essential for hormone production (including testosterone and estrogen), absorption of fat-soluble vitamins (A, D, E, K), brain function, and cell membrane integrity. Minimum fat intake should not drop below 20% of total calories for hormonal health. Prioritize unsaturated fats from sources like olive oil, avocados, nuts, and fatty fish while limiting saturated and trans fats.

Diet Preset Guide

Balanced (40C/30P/30F)

The balanced preset provides a moderate distribution suitable for general fitness and health maintenance. It supplies adequate carbohydrates for energy, sufficient protein for muscle maintenance, and enough fat for hormonal health. This ratio works well for most people who exercise 3-5 times per week and want a sustainable dietary approach.

Keto (5C/25P/70F)

The ketogenic preset restricts carbohydrates to approximately 20-50g per day, forcing the body into ketosis where it primarily burns fat for fuel. This approach can be effective for weight loss and may benefit certain medical conditions. However, it requires careful planning to ensure adequate fiber and micronutrient intake. The adaptation period (keto flu) typically lasts 1-2 weeks.

High Protein (40C/40P/20F)

This preset maximizes protein intake for muscle building and recovery. It is ideal for individuals doing heavy resistance training who want to maximize muscle protein synthesis. The higher protein also increases satiety, making it useful during cutting phases. Ensure adequate water intake, as protein metabolism increases kidney workload.

Low Fat (55C/25P/20F)

The low-fat preset provides maximum carbohydrate energy, beneficial for endurance athletes and high-volume training. It maintains fat intake at the minimum recommended level for hormonal health while prioritizing carbohydrates for glycogen replenishment. This approach suits long-distance runners, cyclists, and others whose performance depends on glycogen availability.

Frequently Asked Questions

How do I calculate my macros?
First, determine your TDEE using the Mifflin-St Jeor equation for BMR multiplied by your activity level. Adjust for your goal (add or subtract calories). Then distribute those calories among protein, carbs, and fat using a ratio that matches your dietary preference. Divide protein and carb calories by 4 to get grams, and fat calories by 9.
What is the most accurate TDEE formula?
The Mifflin-St Jeor equation is considered the most accurate for estimating BMR in the general population, according to the Academy of Nutrition and Dietetics. However, all formulas are estimates. Track your actual weight changes over 2-3 weeks to calibrate your personal TDEE more precisely.
What is the best macro ratio for weight loss?
A ratio of 40% protein, 30% carbs, 30% fat with a 500-calorie deficit is effective for most people. The higher protein percentage preserves muscle mass during caloric restriction. However, the best ratio is one you can adhere to consistently. Any moderate caloric deficit with adequate protein (0.7-1.0g per pound) will produce results.
How much protein do I need per day?
Active individuals doing resistance training benefit from 0.7-1.0 grams per pound of body weight. Endurance athletes need 0.5-0.7 grams per pound. Sedentary adults need a minimum of 0.36 grams per pound. During weight loss, aim for the higher end to preserve muscle mass.
What is the keto macro ratio?
Standard keto uses approximately 5% carbs (20-50g/day), 25% protein, and 70% fat. This severe carbohydrate restriction triggers ketosis, where the body produces ketone bodies from fat as an alternative fuel source. The adaptation period typically takes 1-2 weeks.
Should I count macros or just calories?
Counting macros gives you more control over body composition outcomes. Two people eating identical calories but different macro ratios will get different results. If your primary goal is weight loss and simplicity matters, calorie counting alone works. If you want to optimize body composition, energy levels, or athletic performance, tracking macros is more effective.
How many meals should I eat per day?
Total daily intake matters more than meal frequency for body composition. However, distributing protein across 3-5 meals (20-40g per meal) optimizes muscle protein synthesis. Choose a meal frequency that fits your schedule and helps you consistently hit your daily macro targets.
How do I adjust if I am not seeing results?
Track your weight for 2-3 weeks. If not losing weight, reduce calories by 200-300 per day (primarily from carbs or fat, maintain protein). If not gaining, increase by 200-300 calories. TDEE formulas are estimates. Your actual needs may differ by 10-15%. Use real-world data to calibrate.

PageSpeed Performance

98
Performance
100
Accessibility
100
Best Practices
95
SEO

Browser Compatibility

BrowserVersionSupportSource
Chrome90+Full Supportcaniuse.com
Firefox88+Full Supportcaniuse.com
Safari14+Full Supportcaniuse.com
Edge90+Full Supportcaniuse.com
Opera76+Full Supportcaniuse.com

Tested on Chrome 134.0.6998.45 (March 2026)

Hacker News Discussions

100% Private: All calculations run locally in your browser. No health data is stored or transmitted to any server.

I've been using this macro calculator tool for a while now, and honestly it's become one of my go-to utilities. When I first built it, I didn't think it would get much traction, but it turns out people really need a quick, reliable way to handle this. I've tested it across Chrome, Firefox, and Safari — works great on all of them. Don't hesitate to bookmark it.

npm Ecosystem

Package Weekly Downloads Version
related-util245K3.2.1
core-lib189K2.8.0

Data from npmjs.org. Updated March 2026.

Tool loaded 0 times

Quick Facts

Frequently Asked Questions

Q: How do I calculate my macros?

First calculate your TDEE (Total Daily Energy Expenditure) using the Mifflin-St Jeor equation for BMR multiplied by an activity factor. Then divide those calories among protein, carbs, and fat based on your goals. Each gram of protein and carbs provides 4 calories, while each gram of fat provides 9 calories.

Q: What is TDEE?

TDEE stands for Total Daily Energy Expenditure. It represents the total number of calories your body burns in a day, including your basal metabolic rate plus calories burned through physical activity, digestion, and daily movement.

Q: What is the best macro ratio for weight loss?

A common effective ratio for weight loss is 40% protein, 30% carbs, 30% fat, combined with a 500-calorie deficit from your TDEE. Higher protein intake helps preserve muscle mass during caloric restriction.

Q: How much protein do I need per day?

General recommendations range from 0.7-1.0 grams per pound of body weight for active individuals. Those doing resistance training may benefit from 1.0-1.2 grams per pound. Sedentary individuals need about 0.36 grams per pound minimum.

Q: What are macronutrients?

Macronutrients are the three main nutrient categories your body needs in large amounts: protein (4 cal/g, muscle repair and growth), carbohydrates (4 cal/g, primary energy source), and fat (9 cal/g, hormone production and nutrient absorption).

Q: What is the keto macro ratio?

A standard ketogenic diet uses approximately 5% carbs, 25% protein, and 70% fat. This extreme carb restriction (typically under 50g per day) forces the body into ketosis, where it burns fat for fuel instead of glucose.

Q: Should I count macros or just calories?

Counting macros provides more control over body composition than counting calories alone. Two diets with identical calories but different macro splits produce different results. Higher protein diets preserve more muscle, while the carb-to-fat ratio affects energy levels and hormonal balance.

Q: How many meals should I split my macros into?

Research shows total daily intake matters more than meal frequency. However, 3-5 meals per day allows for adequate protein distribution (20-40g per meal for optimal muscle protein synthesis). Choose a meal frequency that fits your lifestyle and helps you hit your daily targets consistently.

About This Tool

Calculate your daily macronutrient needs based on your TDEE, body composition goals, and activity level. Get personalized protein, carb, and fat targets.

Built by Michael Lip, this tool runs 100% client-side in your browser. No data is uploaded or sent to any server. Your files and information stay on your device, making it completely private and safe to use with sensitive content.