# Health calculator

29 calculators for body, nutrition, fitness and health: BMI, body fat, calories and macros, heart-rate zones, blood pressure, children's BMI by WHO, pregnancy, a food log and a weight diary, with a printable health card.

- Open the app: https://openlibs.dev/en/app/health-calculator/
- library for developers: https://openlibs.dev/en/lib/health-calculator/

## Health calculator: instructions

### Getting started

The result is on the right (on a phone, at the top) and is recalculated as you type; the settings are on the left. Choose a calculator in the "Calculators" card, fill in your profile once — sex, age, height and weight — and then the fields of the chosen calculator. The profile is shared by all calculators, so switching between them keeps your data.

### Finding a calculator

The calculators are grouped: Body, Nutrition, Fitness, Health, Children, Women's health and Diaries. Type in the search box to filter the list by name or description; Enter opens the first match. The profile card is dimmed when the chosen calculator does not use it (for example, blood pressure or the running pace).

### Units

Switch between metric (cm, kg) and imperial (inches, pounds) under the profile. All fields and results follow the choice, including the diary and the health card; the data itself is always kept in metric, so switching back and forth loses nothing.

### Reading the result

The big number is the main result, colored by its category; the badge names the category, and the colored scale shows where you are between the thresholds. Tiles give the related values, tables compare formulas, and the chart shows macros, caffeine over time or your weight. Warnings appear in yellow or red — for example when the calorie target is below your basal metabolic rate. The copy button in the result header copies it as text.

### Meal builder, food log and custom foods

In the meal builder, pick a food, enter grams and press Add; the total calories, protein, fat and carbs and a chart appear on the right. The food log does the same by date and meal, compares the day with your daily target from "Calories and macros" and shows the last seven days. Add your own foods (values per 100 g) in the "Custom foods" card; they appear in the food lists.

### Weight diary

Choose "Weight diary", enter the date, weight and optionally the waist and a note, and press Add entry (one entry per date — a new one replaces the old). The chart shows the trend; tiles show the change, the weekly pace, the minimum and maximum and your BMI now. A diary in CSV (date, weight in kg, waist in cm, note) can be loaded with Import and downloaded with Export.

### Water reminders and the health card

In the Water calculator, choose how often to be reminded: a message appears on the page while it is open, and a system notification too if you allow it. The "Health card" card sets a title (for example, your name) in any font of the site and an accent color; "Print health card" prints your main figures and the last diary entries on one page.

### Children, pregnancy and the formulas

Children's BMI uses the official WHO 2007 monthly tables for ages 5–19 and shows the z-score, the percentile and the WHO thresholds for the exact age; enter the child's own sex, age, height and weight there. Pregnancy and ovulation count from the first day of the last period (Naegele's rule). Each result names its formula in the footer: Mifflin–St Jeor for energy, the US Navy method for body fat, Tanaka and Karvonen for heart rate, ACC/AHA 2017 for blood pressure, Widmark for blood alcohol (in per mille).

### Export, import, undo and the journal

Export prints the health card, downloads the diary and the food log as CSV, the chart as PNG, or saves everything as a project (.json). Import loads a project or a diary CSV; "Restore unsaved work" there brings back what was saved automatically in this browser. Undo and Redo (Ctrl+Z, Ctrl+Y) step through changes; Ctrl+S saves the project and Ctrl+P prints the card. The journal lists every action. All results are estimates and do not replace a doctor.

