Where the health numbers come from
Last updated October 13, 2026.
Want to add your own foods or recipes? Skip to that part.
wr1t3r's planner can work out daily targets for calories, water, protein, fat, carbs, fiber and steps, and add up the calories and nutrients in what you eat. This page lists every source behind those numbers. Each one is a government nutrition reference, a professional society's position statement, or a peer-reviewed study or review.
These numbers are estimates, not medical advice. The formulas describe the average healthy adult. Your own needs can be different, especially if you're pregnant or breastfeeding, have a health condition (kidney, heart or liver disease, diabetes, an eating disorder), take medication that affects appetite or fluids, or are under a doctor's care. If a doctor or dietitian has given you different numbers, use theirs.
What it asks you
Sex, age, height, weight, how active you are, whether you want to lose, keep or gain weight, and whether you're pregnant or breastfeeding. All of it stays in your own notes. wr1t3r only works out targets for adults (18 and over), because the formulas weren't made for children and teenagers.
If you skip this step, the planner uses the standard values from the Nutrition Facts label instead: 2,000 calories, 50 g protein, 78 g fat, 275 g carbs and 28 g fiber, plus 88 oz of water. Those are reference numbers for reading food labels. They aren't meant as anyone's personal target.
Calories
- Calories your body burns at rest: the Mifflin-St Jeor equation. Mifflin MD, St Jeor ST, et al. A new predictive equation for resting energy expenditure in healthy individuals. American Journal of Clinical Nutrition, 1990;51:241–247.
- Why that equation: a systematic review found it the most accurate of the common equations for both normal-weight and obese adults. Frankenfield D, Roth-Yousey L, Compher C. Comparison of predictive equations for resting metabolic rate in healthy nonobese and obese adults: a systematic review. Journal of the American Dietetic Association, 2005;105:775–789.
- Activity: the resting figure is multiplied by 1.2 (mostly sitting), 1.375 (about 30 minutes of activity a day), 1.55 (about an hour) or 1.725 (two hours, or hard training). These are the standard multipliers for this equation, and the descriptions follow the activity levels in the National Academies' energy guidelines (below).
- Losing or gaining: 250 or 500 calories a day less, or 250 more. The national obesity guidelines recommend a 500 to 1,000 calorie daily cut for steady loss. Weight loss slows as you go (Hall KD, et al. Quantification of the effect of energy imbalance on bodyweight. The Lancet, 2011;378:826–837), so when your weight moves 5 lb, wr1t3r offers to work your targets out again.
- Floor: never under 1,200 calories a day for women or 1,500 for men (1,350 for anyone who'd rather not say). National Heart, Lung, and Blood Institute. Clinical Guidelines on the Identification, Evaluation, and Treatment of Overweight and Obesity in Adults, 1998.
- Pregnant or breastfeeding: no calorie cut. Your needs go up, so ask your doctor or midwife how much.
Water
About 101 oz a day from drinks for men and 74 oz for women (88 oz for anyone who'd rather not say). These are the National Academies' adequate intakes from drinks: 3.0 and 2.2 liters, about 80% of the total water a body needs. The rest comes from food. National Academies of Sciences. Dietary Reference Intakes for Water, Potassium, Sodium, Chloride, and Sulfate, 2005.
You need more in hot weather and when you exercise. If a doctor has told you to limit fluids, follow that number.
Protein, fat, carbs and fiber
These show when you turn on Protein, fat and carbs targets too.
- Protein: grams per kilogram of body weight. Above a BMI of 25, wr1t3r counts only the weight that would be a BMI of 25 for your height, so extra body fat doesn't raise the target. It uses the highest of these that applies, but never more than 35% of your calories:
- 0.8 g/kg, the recommended daily allowance for adults (National Academies, energy and macronutrients guidelines, below).
- 1.0 g/kg from age 65. Bauer J, et al. Evidence-based recommendations for optimal dietary protein intake in older people: a position paper from the PROT-AGE Study Group. JAMDA, 2013;14:542–559.
- 1.1 g/kg when pregnant or breastfeeding (National Academies).
- 1.2 g/kg while losing weight, to keep muscle. Leidy HJ, et al. The role of protein in weight loss and maintenance. American Journal of Clinical Nutrition, 2015;101(6):1320S–1329S.
- 1.4 g/kg for two hours a day or hard training. Jäger R, et al. International Society of Sports Nutrition position stand: protein and exercise. Journal of the International Society of Sports Nutrition, 2017;14:20.
- Fat: 30% of calories, inside the recommended range of 20–35%.
- Carbs: the calories left over. wr1t3r warns you if that comes to less than 130 g, the daily minimum the guidelines give.
- Fiber: 14 g for every 1,000 calories.
The ranges, the protein allowance, the carb minimum and the fiber figure all come from the National Academies of Sciences. Dietary Reference Intakes for Energy, Carbohydrate, Fiber, Fat, Fatty Acids, Cholesterol, Protein, and Amino Acids, 2005.
Steps and sleep
- Steps: 8,000 a day under age 60, 7,000 from 60. A meta-analysis of 15 studies found the drop in risk of death levels off around 8,000–10,000 steps for younger adults and 6,000–8,000 for older ones. Paluch AE, et al. Daily steps and all-cause mortality: a meta-analysis of 15 international cohorts. The Lancet Public Health, 2022;7:e219–e228.
- Sleep: 8 hours. Adults need at least 7. Watson NF, et al. Recommended amount of sleep for a healthy adult: a joint consensus statement of the American Academy of Sleep Medicine and Sleep Research Society. Sleep, 2015;38(6):843–844.
Calories in food
- Built in, foods as people eat them: USDA's Food and Nutrient Database for Dietary Studies (FNDDS), about 5,000 foods and drinks the way Americans actually eat them, from "Pizza, cheese, from restaurant" to "Latte, whole milk". It's the database behind the national food survey (What We Eat in America), and USDA updates it every two years. U.S. Department of Agriculture, Agricultural Research Service, FoodData Central. Public domain.
- Built in, ingredients: USDA's SR Legacy table, about 7,800 basic foods like "Onions, raw" and "Wheat flour, white, all-purpose", which recipes need. U.S. Department of Agriculture, Agricultural Research Service, FoodData Central, 2018. Public domain.
- Both are shipped with the app and searched on your device. FNDDS matches are listed first.
- Search USDA: where it's set up, the Food button also searches all of USDA FoodData Central, which includes branded foods with their label serving sizes.
Calorie counts on food labels and in databases are averages. Real food varies, and US labels are allowed to be off by up to 20%.
Adding foods to your Nutrition Database
Every food you log comes from a table in a note called Nutrition Database, in your own Dropbox or Google Drive. Each row is one food: its name, a serving, then calories, fat, carbs, protein and fiber for that serving, a food group and any other names you call it by. If you don't have the note yet, the Food button's Make one makes it.
There are five ways to fill it.
From a USDA search
On the Food button, type a food and press Search USDA. Picking a result adds it to the table and logs it.
From a photo of the barcode or the label
On the Food button, the 📷 at the end of the search box (or Commands > Add a food from a nutrition label photo) takes a photo of a package, or opens the camera on a phone. The photo is read on your device and never leaves it.
If the photo shows a barcode, wr1t3r first checks your Nutrition Database for it. If it isn't there, it looks the number up in Open Food Facts, a free, open database of packaged foods. Only the barcode's digits are sent. The food is added with its barcode as an alias, so the next scan finds it in your own database.
If there's no barcode, or Open Food Facts doesn't have it, wr1t3r reads the Nutrition Facts label instead. It fills in the serving size, calories, fat, carbs, protein and fiber, and shows them beside the photo. Either way, check the numbers and the name before you save. If the calories are far from what the fat, carbs and protein add up to, it says so, because that usually means a number was misread. Small differences are normal: makers may use each food's own calorie factors. Labels read best when they're flat, well lit and US-style.
By hand
Open the Nutrition Database note and add a row to the table, one cell per column. Put other names in the Aliases cell, separated by commas, and the Food button finds the food by those too.
From a spreadsheet
Commands > Import foods into the Nutrition Database takes a CSV file: Excel, Numbers and Google Sheets all save one, and many food trackers can export one. The first row has to name the columns. Their order doesn't matter, and columns it doesn't know are skipped.
| Column | Also matches | |
|---|---|---|
| Food | Name, Food Name, Description, Item | needed |
| Calories | Energy (kcal), kcal, Energy | needed |
| Serving Size | Serving, Amount, Portion | "1 serving" if it's missing |
| Fat | Total Fat | grams; 0 if it's missing |
| Carbs | Carbohydrates, Total Carbs | grams |
| Protein | grams | |
| Fiber | Fibre, Dietary Fiber | grams |
| Food Group | Group, Category | "Other" if it's missing |
| Aliases | other names, separated by commas |
Units in brackets, like Fat (g), are fine. A food already in your table (same name) stays as it is, so importing the same file twice doesn't add anything twice. If a file lists a food more than once, the first one wins.
From your recipes
A recipe note gives you one row for a whole dish, per serving. Give the note a yield property with the number of servings it makes, then list what goes in under an Ingredients heading:
## Ingredients
- Ground beef, 2
- Kidney beans, 1.5
- Onion, 1 (diced)
- Chili powder, 0.5
## Instructions
...
- yield is how many servings the recipe makes. Leave it out and the whole dish counts as one serving.
- Each ingredient is a food from your Nutrition Database, a comma, and how many of its servings go in. If the database says Kidney beans is 1 cup, then Kidney beans, 1.5 means one and a half cups. Anything after the number, like (diced), is ignored.
- Missing ingredients get looked up for you. When an ingredient isn't in your database, wr1t3r finds the closest USDA foods and lets you pick one (or skip it) before it works out the numbers. Each pick is added to your database with the ingredient's name as another name for it, so next time it matches straight away. Check the serving size it shows, because your amount counts in that serving.
With the note open, Commands > Add this recipe to the Nutrition Database adds it as a row named after the note (or its title property), in the Recipe food group. Change the recipe and run it again to update the row. Recipe notes made from the Obsidian Recipe template also have a Sync to Nutrition Database button that does the same thing, with a Find them in USDA foods link when ingredients are missing.