Ketosis & Keto Macro Calculator
Input Parameters
Computed Results
The ketosis calculator determines your daily macronutrient targets—fat, protein, and net carbs—to help you align with a ketogenic dietary pattern. By estimating your Basal Metabolic Rate (BMR) and Total Daily Energy Expenditure (TDEE), it calculates the specific grams of each macronutrient needed to meet your daily calorie and weight goals.
Disclaimer: This calculator provides mathematical estimates for informational purposes only and does not constitute medical or dietary advice.
Verified Scenario Walkthroughs
To understand how different inputs affect your daily macronutrient targets, review these verified calculation scenarios.
Young Male Athlete (Aggressive Weight Loss)
Consider a 22-year-old male who is 6 feet 1 inch tall and weighs 210 pounds. He has a very high activity level (1.9 multiplier) and sets a 25% calorie deficit. He targets 30 grams of net carbs and a protein ratio of 2.0 grams per kilogram of body weight. The calculator estimates his TDEE at 3,812 calories. Applying the 25% deficit results in a target of 2,859 daily calories. His macro breakdown becomes 219 grams of fat (69%), 191 grams of protein (27%), and 30 grams of net carbs (4%).
Sedentary Older Adult (Maintenance Mode)
Consider a 65-year-old female who is 5 feet 2 inches tall and weighs 135 pounds. She is sedentary (1.2 multiplier) and wants to maintain her weight (0% deficit). She targets 25 grams of net carbs and a protein ratio of 1.2 grams per kilogram. Her estimated TDEE is 1,333 calories. Because she is in maintenance mode, her target daily calories are 1,066 (adjusted mathematically based on the minimum thresholds and macro rounding). Her daily targets are 75 grams of fat (63%), 73 grams of protein (27%), and 25 grams of net carbs (9%).
Formula & Explanation
The calculator uses a multi-step mathematical process to determine your macronutrient needs. It begins by estimating your Basal Metabolic Rate (BMR) using the Mifflin-St Jeor equation, which requires your weight in kilograms and height in centimeters.
BMR for Males:
BMR for Females:
Next, it calculates your Total Daily Energy Expenditure (TDEE) by multiplying your BMR by your selected activity level multiplier.
Your Target Daily Calories are then calculated by applying your weight goal (calorie deficit or surplus) to your TDEE. The calculator enforces a minimum floor of 1,000 calories.
Finally, the macronutrients are calculated in a specific order:
- Carbohydrates: Set directly by your Daily Net Carbs input. (Carbs provide 4 calories per gram).
- Protein: Calculated by multiplying your weight in kilograms by your chosen Protein Ratio. (Protein provides 4 calories per gram).
- Fat: The remaining calories (Target Calories − Carb Calories − Protein Calories) are allocated to fat. (Fat provides 9 calories per gram).
How to Use the Calculator
Follow these steps to generate your macronutrient breakdown:
- Enter Personal Details: Select your biological sex, age, height, and current weight. You can toggle between imperial and metric units.
- Select Activity Level: Choose the multiplier that best represents your average daily physical activity.
- Set Weight Goal: Select your desired calorie deficit for weight loss, or set it to zero for maintenance.
- Define Macro Baselines: Input your target daily net carbs (the standard guideline is often 20g) and your preferred protein ratio per kilogram of body weight.
- Review Results: The calculator will display your target daily calories, specific gram targets for fat, protein, and carbs, and the percentage share of calories each macronutrient represents.
Inputs & Outputs Table
| Field | Type | Description |
|---|---|---|
| Biological Sex | Input | Used to determine the correct BMR formula constant. |
| Age, Height, Weight | Input | Core metrics used in the Mifflin-St Jeor equation. |
| Activity Level | Input | A multiplier applied to your BMR to estimate total daily energy expenditure. |
| Weight Goal | Input | The percentage deficit or surplus applied to your TDEE. |
| Daily Net Carbs (g) | Input | Your fixed daily allowance for net carbohydrates. |
| Protein Ratio | Input | Grams of protein targeted per kilogram of body weight. |
| Target Daily Calories | Output | Your total estimated caloric intake based on your TDEE and weight goal. |
| Fat / Protein / Carbs (g) | Output | The specific daily gram targets for each macronutrient. |
| Calories Share (%) | Output | The percentage of your total daily calories coming from fat, protein, and carbs. |
| Maintenance Calories (TDEE) | Output | The estimated number of calories you burn in a day. |
| Basal Metabolic Rate (BMR) | Output | The estimated calories your body burns at rest. |
Practical Use Cases
This calculator is primarily used to establish a mathematical baseline for macronutrient tracking. By adjusting the activity level and weight goal inputs, users can model how changes in their routine impact their daily energy requirements. For example, someone transitioning from a sedentary lifestyle to a highly active one can recalculate their TDEE to see how many additional fat grams are required to maintain their energy balance without increasing their carbohydrate intake. Similarly, adjusting the protein ratio allows users to model different dietary approaches while keeping their net carbs fixed.
Frequently Asked Questions
How does the calculator determine my fat target?
Fat is calculated by subtracting the calories from your daily net carbs and protein from your total target calories. The remaining calories are then divided by 9, as fat provides 9 calories per gram.
What is the Mifflin-St Jeor equation?
It is a mathematical formula used to estimate your Basal Metabolic Rate (BMR) based on your biological sex, age, height, and weight. It serves as the baseline for calculating your total daily energy expenditure.
Why does the calculator ask for a protein ratio?
The protein ratio determines how many grams of protein you need per kilogram of body weight. This ensures your protein target scales mathematically with your body mass rather than just being a fixed percentage of your total calories.