Skip to content
My Tiny Utils

Search tools

Type to find a tool, then press Enter to open it.

Macro Calculator

Work out your daily calories and how many grams of protein, carbs, and fat to eat for weight loss, maintenance, or gain — balanced, high-protein, low-carb, keto, custom, or protein per kg of body weight.

Processed locally in your browser — nothing is uploaded.

Macro Calculator

Enter your age, weight, and height to calculate your macros.

About Macro Calculator

Enter your age, weight, height, and how active you are, pick a goal, and the calculator gives you a daily calorie target and the grams of protein, carbohydrate, and fat that make it up — per day and per meal. Choose a preset split, type your own percentages, or set protein by body weight and let carbs fill whatever is left after fat.

How it works

  1. Maintenance calories. Your basal metabolic rate comes from the Mifflin–St Jeor equation — 10 × weight (kg) + 6.25 × height (cm) − 5 × age, plus 5 for men or minus 161 for women — multiplied by an activity factor from 1.2 (sedentary) to 1.9 (extra active). This is the same model the calorie calculator uses, and the result is your total daily energy expenditure (TDEE).
  2. Goal. Losing weight subtracts 500 or 250 kcal a day (roughly 0.5 or 0.25 kg a week); gaining adds the same.
  3. Split. Each macro's share of the calories is divided by its energy per gram — 4 kcal for protein and carbohydrate, 9 kcal for fat (the Atwater factors used on food labels).
SplitProteinCarbsFat
Balanced30%40%30%
High protein40%30%30%
Low carb40%20%40%
Keto20%5%75%

With protein by body weight, protein is fixed at the grams per kilogram (or pound) you choose, fat takes the percentage you set, and carbs get the remaining calories.

Example

Input

Male · 30 years · 80 kg · 180 cm · moderately active · maintain · balanced

Output

2,759 kcal a day
Protein 207 g · Carbs 276 g · Fat 92 g
(3 meals: 69 g · 92 g · 31 g)

BMR 1,780 kcal × 1.55 = 2,759 kcal. 30% of that is 828 kcal of protein, or 207 g at 4 kcal per gram; 30% as fat is 828 kcal ÷ 9 = 92 g.

Common uses

  • Turn a calorie target into gram targets you can track in a food app
  • Set a protein target for building or keeping muscle while cutting
  • Compare how a keto or low-carb split changes what's on the plate
  • Split the day's macros across meals for meal prep

Limitations

  • The calorie estimate is a population average; individual needs commonly differ by 10% or more. Adjust after two to four weeks of real results.
  • The presets are common starting points, not prescriptions. Protein needs depend on training, age, and body composition.
  • Not designed for children, pregnancy or breastfeeding, or medical diets. This is not medical or nutritional advice — check with a doctor or registered dietitian before a major change, especially below 1,200 kcal a day.

Frequently asked questions

How do I calculate my macros?

Start with your daily calorie target — maintenance calories from an equation like Mifflin–St Jeor, minus a deficit to lose weight or plus a surplus to gain. Multiply it by each macro's percentage, then divide protein and carb calories by 4 and fat calories by 9 to get grams. At 2,000 kcal with 30% protein, that's 600 kcal ÷ 4 = 150 g of protein.

What is the best macro split for weight loss?

The calorie deficit matters more for weight loss than the split. Within that, a higher protein intake helps keep muscle and keeps you fuller, which is why high-protein splits like 40/30/30 are popular for cutting. Low-carb and keto splits work if you find them easier to stick to, but they don't burn more fat at the same calories.

How much protein should I eat a day?

The basic recommended intake for adults is 0.8 g per kg of body weight. People who lift or train hard often aim for about 1.6 to 2.2 g per kg (roughly 0.7 to 1 g per pound), and higher in a calorie deficit to protect muscle. Use the protein-by-body-weight option to set it directly.

Why is fat 9 calories per gram but protein and carbs only 4?

Those are the Atwater factors: the average energy the body gets from a gram of each nutrient. Fat holds more than twice as much energy per gram as protein or carbohydrate, so the same calories of fat weigh less than half as much. Alcohol, if you track it, provides about 7 kcal per gram.

What are keto macros?

A ketogenic diet keeps carbohydrates very low — typically under about 20 to 50 g a day, around 5% of calories — with roughly 70 to 75% from fat and the rest from protein. The keto preset here uses 20% protein, 5% carbs, and 75% fat.

Is my information stored?

No. The calculation runs entirely in your browser, and your age, weight, and height are never sent anywhere or saved.