Your TDEE is the energy you use in a day: resting, moving and training. Eat about that much and your weight stays steady. Enter a few details to estimate yours.
It starts with your basal metabolic rate (BMR), the energy your body uses at complete rest, from the Mifflin-St Jeor equation (Mifflin et al., 1990). In studies comparing the common formulas, it has been the most accurate for most adults.
That number is multiplied by an activity factor, from 1.2 for mostly sitting to 1.9 for a physical job plus training. The result is your total daily energy expenditure, or TDEE: the calories that keep your weight where it is.
If your goal is muscle, eating slightly above maintenance, roughly 250 kcal a day, supports a slow gain that is mostly muscle when paired with strength training. Bigger surpluses mainly add fat. Enough protein matters too: the macro calculator shows how to split your calories.
Formulas describe averages. Muscle mass, genetics, sleep and how much you move outside the gym all shift the real number. Use the estimate as a starting point, then adjust based on how your weight and training actually respond over a few weeks.