What macros are
Macronutrients are the main energy-yielding parts of the diet: protein, carbohydrate, and fat. A macro calculator starts from an estimated calorie target and then allocates that total across those three nutrients. The result is usually shown in grams per day, because food labels, meal plans, and tracking apps are easier to use in gram targets than in percentages alone.
This is why a macros calculator is commonly paired with a calorie calculator, TDEE calculator, or protein calculator. Calories set the size of the diet, while the macro split changes how those calories are distributed across foods and meals.