Keto Macro Calculator

Calculate accurate fat, protein, and net carb targets optimized to keep you in a state of ketosis without losing lean muscle mass.

Instrument — Calculator
yrs
lbs
ft
in
%
Leave blank to auto-estimate using the Boer Formula.

How the Keto Diet Actually Works

The standard Western diet relies almost exclusively on glucose (sugar derived from carbohydrates) for energy. When you consume bread, pasta, or fruit, your body converts it into glucose, which is stored in your muscles and liver as glycogen. As long as you have glycogen available, your body will refuse to burn stored body fat for energy.

The Ketogenic (Keto) diet is a metabolic hack. By aggressively restricting your carbohydrate intake to under 20 grams per day, you starve your body of glucose. Once your liver glycogen is entirely depleted, your body enters a state of panic. To survive, the liver begins breaking down dietary fat and your own stored body fat into molecules called ketones (specifically Beta-Hydroxybutyrate). These ketones cross the blood-brain barrier and serve as a highly efficient, alternative fuel source. When your body is running on ketones rather than glucose, you are officially in a metabolic state of "ketosis."

Net Carbs vs. Total Carbs

A major point of failure for beginners is misunderstanding the difference between total carbohydrates and net carbohydrates. On a ketogenic diet, you only track Net Carbs.

Net Carbs represent the carbohydrates that actually digest into sugar and trigger an insulin response. To calculate them, you take the Total Carbohydrates listed on a nutrition label and subtract the Dietary Fiber and Sugar Alcohols (like erythritol). Because the human digestive tract lacks the enzymes to break down fiber, it passes through your system unabsorbed. Therefore, you could eat 40 grams of total carbohydrates in a day, but if 25 of those grams are pure fiber from spinach and broccoli, your Net Carbs are only 15g—keeping you safely in ketosis.

The Gluconeogenesis Trap

A ketogenic diet is a high-fat, moderate-protein diet. It is not a high-protein diet. Many beginners attempt to eat massive quantities of chicken breast, protein shakes, and lean steaks while restricting carbs. This is a fatal error.

If you consume protein in excess of what your body requires for muscle repair, your liver will initiate a biological process called gluconeogenesis. The liver strips the nitrogen from the excess amino acids and converts the remaining structure into pure glucose. This flood of new glucose will spike your insulin and immediately shut down ketone production. This is why our calculator utilizes your Lean Body Mass (LBM) to cap your protein intake at the exact threshold needed to preserve muscle tissue without triggering gluconeogenesis. Need to track your exact LBM? Check our Body Fat Calculator.

Dirty Keto vs. Clean Keto

In theory, you could achieve ketosis by eating nothing but fast-food burger patties covered in processed American cheese and deep-fried bacon. This approach is commonly referred to as "Dirty Keto." While it will technically force your body to produce ketones, it will simultaneously flood your arteries with trans fats, cause massive systemic inflammation, and deprive you of essential micronutrients.

"Clean Keto" prioritizes cardiovascular health alongside fat loss. To hit the massive daily fat target generated by this calculator, you must rely on high-quality, whole-food fats. Prioritize monounsaturated fats like avocados, extra virgin olive oil, and macadamia nuts. Consume omega-3 rich polyunsaturated fats like wild-caught salmon and chia seeds. While saturated fats (butter, coconut oil, fatty steaks) are acceptable and necessary for testosterone production, they should not be your exclusive fat source. Always verify your caloric baseline via our TDEE Calculator, as calories still matter on a Clean Keto protocol.

Beating the Keto Flu

During the first 3 to 7 days of carbohydrate restriction, you will likely experience the "Keto Flu." Symptoms include severe headaches, brain fog, fatigue, and nausea. This is not actual sickness; it is acute electrolyte depletion.

When you stop eating carbs, your insulin levels plummet. In a low-insulin state, your kidneys aggressively excrete stored sodium, dragging massive amounts of water out of your body. This rapid dehydration flushes out your potassium and magnesium reserves. To beat the Keto Flu, you must aggressively supplement electrolytes. Add pink Himalayan salt to your water, eat potassium-rich avocados, and take a high-quality magnesium glycinate supplement before bed. Once your electrolyte balance is restored, the symptoms vanish, leaving you with the boundless, crash-free energy that ketosis is famous for.


Frequently Asked Questions

How do I know if I am in ketosis?

The most accurate way to verify ketosis is by using a blood ketone meter to measure beta-hydroxybutyrate (BHB) levels (a reading of 0.5 to 3.0 mmol/L indicates nutritional ketosis). Urine strips are helpful for beginners but become inaccurate as your body adapts to utilizing ketones efficiently.

Can I do a cheat day on keto?

No. A high-carbohydrate 'cheat day' will immediately spike your insulin, shut down ketone production, and kick you out of ketosis. It can then take your body another 3 to 7 days to fully re-enter ketosis, effectively ruining a week of progress and reigniting keto flu symptoms.

Why am I gaining weight on a ketogenic diet?

Ketosis is a metabolic state, not a magical weight-loss loophole. Dietary fat is extremely calorie-dense (9 calories per gram). If you consume massive amounts of butter, bacon, and heavy cream, you can easily exceed your Total Daily Energy Expenditure (TDEE). If you are in a caloric surplus, you will gain weight, even in deep ketosis.

Do calories matter on keto?

Yes, calories absolutely matter. The primary weight-loss benefit of keto is that high fat and moderate protein are highly satiating, naturally reducing your appetite. However, the laws of thermodynamics still apply. You must maintain a caloric deficit to burn stored body fat.

What are net carbs?

Net carbs are the carbohydrates that actually impact your blood sugar. To calculate net carbs, take the Total Carbohydrates on a nutrition label and subtract the Dietary Fiber and Sugar Alcohols (such as erythritol). Fiber passes through the digestive tract unabsorbed and does not trigger an insulin response.

Can I eat unlimited protein on a keto diet?

No. If you consume excessive amounts of protein, your liver will convert the surplus amino acids into glucose through a biological process called gluconeogenesis. This unexpected spike in glucose will kick you out of ketosis. Protein must be moderated based strictly on your lean body mass.

What is the Keto Flu?

The Keto Flu is a temporary cluster of symptoms (headaches, fatigue, brain fog, nausea) experienced during the first few days of carb withdrawal. Because insulin levels drop, your kidneys excrete massive amounts of sodium and water. The Keto Flu is entirely preventable by aggressively supplementing electrolytes (sodium, potassium, and magnesium).

How long does it take to enter ketosis?

If you strictly limit your net carbs to under 20g per day, it typically takes 2 to 4 days to deplete your liver glycogen stores and force your body to begin generating ketones. Intermittent fasting and intense cardiovascular exercise can accelerate this timeline.


Medical Disclaimer: This ketogenic calculator provides estimations for healthy adults. It is not intended to treat or manage diabetes, metabolic syndrome, or epilepsy. Individuals with type 1 diabetes, kidney disease, liver conditions, or pregnant/nursing women must consult a licensed physician prior to initiating a high-fat ketogenic protocol to prevent severe complications such as ketoacidosis.