Macro Calculator

Split a daily calorie target into protein, carbohydrate and fat.

Result

180 g
Protein
270 g
Carbs
67 g
Fat
100%
Total %

Formula

Grams = (%macro / totalPct) × calories / kcal-per-gram (protein/carbs = 4, fat = 9).

Worked example

2,400 kcal at 30/45/25 → 180 g protein, 270 g carbs, 67 g fat.

About the macro calculator

A macro calculator turns a calorie target into concrete daily gram counts for protein, carbohydrate and fat. A well-built calculator turns a topic that usually requires spreadsheets, formulas, or expert guidance into a single input form with an instant, trustworthy answer. That matters because most people making a decision — a budget, a purchase, a health goal, a homework problem — do not want to install software or open a textbook. They want a clear number and a short explanation of where it came from, and they want it to load on their phone in a second.

This tool is for athletes managing performance, dieters chasing body-composition changes, and anyone working with a registered dietitian. Different visitors arrive here with very different backgrounds. Some are professionals double-checking a value they already estimated in their head. Others are complete beginners who have never seen the underlying formula before. The tool above is designed so both groups can succeed on the first try: defaults reflect realistic real-world inputs, labels are written in plain English, and the result panel highlights the primary number in a large, glanceable format while keeping supporting figures visible for context.

Calories tell you how much energy you're eating; macros tell you what shape that energy takes. Understanding the "why" behind a calculation is what turns a one-off answer into a lasting mental model. This is why every calculator on CalcCosmos publishes the exact formula it uses and walks through a worked example with real numbers. When you can see that a percentage change is nothing more than the difference divided by the starting value, or that a monthly loan payment is a rearranged annuity formula, you gain a portable skill you can reuse anywhere — on a napkin, in a job interview, or with a friend who needs help.

Enter your daily calorie target and adjust the three percentage sliders to match your split. Using the tool above is intentionally straightforward. Enter your values, and the result updates instantly — there is no submit button, no loading spinner, and no page reload. When you're happy with the answer, tap "Copy" to place the result on your clipboard for pasting into a message, a spreadsheet, or a form. Tap "Share" to send it to a friend using your device's native share sheet, which falls back to copying a formatted summary when native sharing is unavailable. All of the math runs directly in your browser, so nothing you enter is transmitted or stored on our servers.

Weigh food at least occasionally to keep gram counts honest, and prioritize hitting protein first. A few small habits will make the tool more useful over time. First, treat the default values as a sanity check: if your inputs produce a result that is dramatically different from the default, verify that you entered the right units. Second, if the calculator supports multiple modes, try each one — you often learn something new about the problem simply by comparing how the same variables interact under different assumptions. Third, bookmark the tools you return to often; each calculator lives at a permanent URL that will not change.

Combine the macro calculator with our BMR, calorie and ideal-weight tools for a complete plan. CalcCosmos exists to give you the fastest possible path from question to trustworthy answer. If a calculation you rely on is missing from our library, or if you'd like to see additional inputs, edge-case handling, or worked examples added to this page, we want to hear about it. New calculators launch every week based on what people ask us for, and every existing tool is refined based on real user feedback. Thank you for choosing CalcCosmos — we hope this calculator saves you time today and teaches you something you can use tomorrow.

Frequently asked questions

What macro split is best?+

For general health, 25–35% protein / 35–50% carbs / 20–35% fat is a wide safe range. Adjust to preference and goals.

Do I need to hit these numbers exactly?+

No — being within ~10 g on each per day is close enough for most people.

Does fiber count as carbs?+

Yes on total-carb tracking, no on net-carb tracking. Pick a convention and stick to it.

Related calculators