How prepIt calculates nutrition, targets and plans

Last reviewed

prepIt calculates the nutrition of every dish from the gram weight of each ingredient and official reference data, USDA FoodData Central and the Turkish food composition database TÜRKOMP. Nothing is estimated from a photo, and values are copied from those tables, never generated by a model. Foods not yet matched to a table use clearly marked placeholder values. Daily targets come from the Mifflin-St Jeor equation. The planner then aims to put each day within 5% of your calorie target.

How a dish's nutrition is calculated

Every recipe lists its raw ingredients in grams. Each ingredient is matched to one row of a reference table that gives calories, protein, carbohydrate, fat and more per 100 g. The ingredient's nutrition is its grams divided by 100, times that row. The dish is the sum of its ingredients.

A serving is the dish total divided by the number of servings the recipe makes. A portion of another size scales the total by the portion's grams divided by the recipe's cooked weight.

Each recipe also records its cooked weight, because water is lost or absorbed while cooking. The energy and nutrient totals come from the raw ingredients and carry over to the cooked dish unchanged; the cooked weight only sets the figures per 100 g of cooked food. Nutrient losses during cooking, such as some vitamins, are not modelled.

When an ingredient's reference row does not report a nutrient (fibre, sugar, saturated fat, sodium or a micronutrient), it contributes nothing to that nutrient, so the dish's total for it is a lower bound, not a full count.

Where the reference data comes from

Every food row stores its source, the record id in that source and whether it is verified. A script may propose which reference food matches an ingredient, but only a person's approval copies the values and marks the row verified. Values are copied from the source tables and are never generated by a model.

Recipe pages tag each matched ingredient with its table and say how many ingredients are not matched yet. Food pages name the source of their values.

Sources of nutrition values
SourceWhat it isLicenceHow we record it
USDA FoodData CentralThe U.S. Department of Agriculture's reference datasets (Foundation Foods and SR Legacy).Public domain (CC0)Record id (FDC id) on the food row.
TÜRKOMPThe Turkish national food composition database (TÜBİTAK MAM and the Ministry of Agriculture and Forestry), foods measured as eaten in Türkiye. It covers foods such as tarhana, simit, white cheese and ayran.Used under a licence granted to prepItTÜRKOMP food code on the food row.
PlaceholderA coarse, rounded approximation used until a reference match is approved.NoneMarked as not verified.

Placeholder rows are the exception. They are coarse approximations (rounded to 5 kcal and whole grams) used while a food waits for a reference match. They are marked as not verified on the recipe and food pages, and a food page that only has placeholder values is not indexed by search engines and is left out of the sitemap.

How daily targets are computed

Your resting energy (BMR) comes from the Mifflin-St Jeor equation: 10 × weight in kg + 6.25 × height in cm − 5 × age, then + 5 for men or − 161 for women.

That is multiplied by an activity factor to get the energy you use in a day: 1.2 for sedentary, 1.375 for light, 1.55 for moderate, 1.725 for active and 1.9 for very active.

Your goal then adjusts it: −500 kcal to lose weight, no change to maintain, +300 kcal to gain. The target is never set below 1,200 kcal for women or 1,500 kcal for men, and is rounded to the nearest 10 kcal. If the floor applies, prepIt tells you.

Protein is 1.6 g per kg of body weight when losing or gaining and 1.2 g per kg when maintaining, capped at 35% of the day's energy. Fat is 30% of energy. Carbohydrate is what remains, at 4 kcal per gram for protein and carbohydrate and 9 kcal per gram for fat. A plan must reach at least 85% of the protein target.

These are population estimates for healthy adults. The form accepts ages 18 to 100, heights 120 to 230 cm and weights 35 to 300 kg.

How the planner builds a week

For each meal of each day the planner picks a main dish and its usual sides from the recipe catalogue, after removing dishes that break your restrictions or need equipment, skill or time you do not have. It then adjusts portions (a main is 0.75 to 1.5 servings) and sides until the day is within 5% of your calorie target and reaches the protein minimum. It tries several seeded attempts and keeps the best.

The 5% is the planner's tolerance against your target. It is not the accuracy of the nutrition figures, which depend on the reference data above. The plan records whether each day landed inside the tolerance, because a day can miss it.

Dishes cooked in a pot, such as soups and stews, are planned as pots. When a pot is served, every other person in your household takes a serving too (a child counts as 0.6 of an adult serving), and the planner reuses the pot while it keeps in the fridge and within how many days in a row you accept the same dish. It can send extra servings to the freezer and can cap the number of cooking sessions in a week.

Every planned dish carries a reason, for example that it comes from a pot cooked earlier.

Example weeks at six calorie levels

How prices are obtained and dated

Each food has one current retail price per kilogram of the part the recipes weigh, stored with its source and the date it was observed. The cost of a serving is the sum of each ingredient's grams times its price per gram, divided by the servings. If an ingredient has no price, no cost is shown instead of a lower figure.

Turkish prices are discount-chain and pazar reference prices observed on 2–3 November 2026; a few are estimates or wholesale prices with a markup. American prices come from the U.S. Bureau of Labor Statistics average price series (September 2026), the USDA Economic Research Service's 2023 retail scanner data and Walmart.com listings read on 8 November 2026; a few are estimates.

Prices are refreshed monthly. They are estimates, and your store will differ.

Limits, and who prepIt is not for

prepIt is not medical advice. The plans, nutrition figures and prices are estimates for general information. Talk to a doctor or dietitian before changing your diet.

It is built for healthy adults, and you must be 18 or older. It is not for children, for pregnancy or breastfeeding, or for anyone with a medical condition that affects how they should eat. It is not for people who have or have had an eating disorder, or for whom counting calories is harmful.

Reference values are averages and real food varies. Some ingredients may be matched to the closest reference food while a better one is not yet available. Recipes use the amounts they list; your cooking will differ.

Corrections and who is responsible

If you find a wrong number, a wrong source or a statement here that does not match the product, write to hello@prepit.live. We check it against the data and fix it.

prepIt is operated by Bluefluxly.