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
| Meal | Calories | Protein (g) | Carbs (g) | Fat (g) |
|---|
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
This macro calculator was developed using peer-reviewed nutrition science:
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.
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.
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.
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.
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 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 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.
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.
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.
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.
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.
| Browser | Version | Support | Source |
|---|---|---|---|
| Chrome | 90+ | Full Support | caniuse.com |
| Firefox | 88+ | Full Support | caniuse.com |
| Safari | 14+ | Full Support | caniuse.com |
| Edge | 90+ | Full Support | caniuse.com |
| Opera | 76+ | Full Support | caniuse.com |
Tested on Chrome 134.0.6998.45 (March 2026)
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.
| Package | Weekly Downloads | Version |
|---|---|---|
| related-util | 245K | 3.2.1 |
| core-lib | 189K | 2.8.0 |
Data from npmjs.org. Updated March 2026.
Tool loaded 0 times
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.
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.
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.
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.
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).
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.
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.
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.
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.