BMI Calculator

Get a comprehensive health snapshot with this BMI calculator. Enter your height and weight in imperial or metric units to calculate your Body Mass Index and see which category you fall into. The calculator also shows your healthy weight range for your height, estimates daily calorie needs based on activity level, and provides personalized recommendations. Perfect for fitness websites, health clinics, gyms, and wellness apps.

Health & FitnessPopular

Try the Calculator

BMI Calculator
📐 Measurement System
 
⚖️ Your Measurements
 
 
 
👤 Additional Information

📊 Your Results
$ 23.60
Category: Normal Weight
BMI Categories: Underweight (<18.5) | Normal (18.5-24.9) | Overweight (25-29.9) | Obese (30+)
🎯 Healthy Weight Range
$ 125.00
lbs
$ 169.00
lbs
Your weight is within the healthy range for your height.
🔥 Daily Calorie Needs
$ 1,676.00
cal
$ 2,598.00
cal
📋 Summary
Great! Maintain your healthy weight with balanced nutrition and regular exercise.
BMI is a general indicator and may not apply to athletes, elderly, or pregnant women. Consult a healthcare professional for personalized advice.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
export function bmiCalculator(form: FormTs) {
form.addRow(row => {
row.addTextPanel('header', {
computedValue: () => 'BMI Calculator',
customStyles: { 'font-size': '1.5rem', 'font-weight': '600', 'color': '#1e293b' }
});
});
 
form.addSpacer({ height: 20 });
 
// Measurement System Section
const systemSection = form.addSubform('system', { title: '📐 Measurement System' });
 
systemSection.addRow(row => {
row.addRadioButton('units', {
label: 'Select Units',
options: [
{ id: 'imperial', name: 'Imperial (lbs, ft/in)' },
{ id: 'metric', name: 'Metric (kg, cm)' }
],
defaultValue: 'imperial',
isRequired: true
});
});
 
// Body Measurements Section
const measurementsSection = form.addSubform('measurements', { title: '⚖️ Your Measurements' });
 
// Imperial inputs
measurementsSection.addRow(row => {
row.addInteger('heightFeet', {
label: 'Height (feet)',
min: 3,
max: 8,
defaultValue: 5,
suffix: 'ft',
isRequired: true,
isVisible: () => systemSection.radioButton('units')?.value() === 'imperial'
}, '1fr');
row.addInteger('heightInches', {
label: 'Height (inches)',
min: 0,
max: 11,
defaultValue: 9,
suffix: 'in',
isRequired: true,
isVisible: () => systemSection.radioButton('units')?.value() === 'imperial'
}, '1fr');
});
 
measurementsSection.addRow(row => {
row.addDecimal('weightLbs', {
label: 'Weight',
min: 50,
max: 700,
defaultValue: 160,
suffix: 'lbs',
isRequired: true,
isVisible: () => systemSection.radioButton('units')?.value() === 'imperial'
});
});
 
// Metric inputs
measurementsSection.addRow(row => {
row.addInteger('heightCm', {
label: 'Height',
min: 100,
max: 250,
defaultValue: 175,
suffix: 'cm',
isRequired: true,
isVisible: () => systemSection.radioButton('units')?.value() === 'metric'
});
});
 
measurementsSection.addRow(row => {
row.addDecimal('weightKg', {
label: 'Weight',
min: 25,
max: 320,
defaultValue: 72,
suffix: 'kg',
isRequired: true,
isVisible: () => systemSection.radioButton('units')?.value() === 'metric'
});
});
 
// Additional Info Section
const infoSection = form.addSubform('info', { title: '👤 Additional Information' });
 
infoSection.addRow(row => {
row.addDropdown('ageGroup', {
label: 'Age Group',
options: [
{ id: 'child', name: 'Child (2-17 years)' },
{ id: 'adult', name: 'Adult (18-64 years)' },
{ id: 'senior', name: 'Senior (65+ years)' }
],
defaultValue: 'adult'
}, '1fr');
row.addDropdown('sex', {
label: 'Sex',
options: [
{ id: 'male', name: 'Male' },
{ id: 'female', name: 'Female' }
],
defaultValue: 'male',
tooltip: 'Used for healthy weight range recommendations'
}, '1fr');
});
 
infoSection.addRow(row => {
row.addDropdown('activityLevel', {
label: 'Activity Level',
options: [
{ id: 'sedentary', name: 'Sedentary (little/no exercise)' },
{ id: 'light', name: 'Light (exercise 1-3 days/week)' },
{ id: 'moderate', name: 'Moderate (exercise 3-5 days/week)' },
{ id: 'active', name: 'Active (exercise 6-7 days/week)' },
{ id: 'very-active', name: 'Very Active (intense daily exercise)' }
],
defaultValue: 'moderate',
tooltip: 'Used for calorie recommendations'
});
});
 
form.addSpacer({ height: 20, showLine: true, lineStyle: 'dashed' });
 
// Results Section
const resultsSection = form.addSubform('results', { title: '📊 Your Results', isCollapsible: false });
 
resultsSection.addRow(row => {
row.addPriceDisplay('bmiValue', {
label: 'Your BMI',
computedValue: () => {
const units = systemSection.radioButton('units')?.value() || 'imperial';
let heightM: number;
let weightKg: number;
 
if (units === 'imperial') {
const feet = measurementsSection.integer('heightFeet')?.value() || 5;
const inches = measurementsSection.integer('heightInches')?.value() || 9;
const weightLbs = measurementsSection.decimal('weightLbs')?.value() || 160;
const totalInches = (feet * 12) + inches;
heightM = totalInches * 0.0254;
weightKg = weightLbs * 0.453592;
} else {
heightM = (measurementsSection.integer('heightCm')?.value() || 175) / 100;
weightKg = measurementsSection.decimal('weightKg')?.value() || 72;
}
 
const bmi = weightKg / (heightM * heightM);
return Math.round(bmi * 10) / 10;
},
variant: 'large',
prefix: '',
suffix: ''
});
});
 
resultsSection.addRow(row => {
row.addTextPanel('bmiCategory', {
computedValue: () => {
const units = systemSection.radioButton('units')?.value() || 'imperial';
let heightM: number;
let weightKg: number;
 
if (units === 'imperial') {
const feet = measurementsSection.integer('heightFeet')?.value() || 5;
const inches = measurementsSection.integer('heightInches')?.value() || 9;
const weightLbs = measurementsSection.decimal('weightLbs')?.value() || 160;
const totalInches = (feet * 12) + inches;
heightM = totalInches * 0.0254;
weightKg = weightLbs * 0.453592;
} else {
heightM = (measurementsSection.integer('heightCm')?.value() || 175) / 100;
weightKg = measurementsSection.decimal('weightKg')?.value() || 72;
}
 
const bmi = weightKg / (heightM * heightM);
 
if (bmi < 18.5) return 'Category: Underweight';
if (bmi < 25) return 'Category: Normal Weight';
if (bmi < 30) return 'Category: Overweight';
if (bmi < 35) return 'Category: Obese (Class I)';
if (bmi < 40) return 'Category: Obese (Class II)';
return 'Category: Obese (Class III)';
},
customStyles: { 'font-size': '1.1rem', 'font-weight': '600', 'text-align': 'center', 'color': '#1e293b' }
});
});
 
resultsSection.addSpacer({ height: 15 });
 
resultsSection.addRow(row => {
row.addTextPanel('bmiScale', {
computedValue: () => {
return 'BMI Categories: Underweight (<18.5) | Normal (18.5-24.9) | Overweight (25-29.9) | Obese (30+)';
},
customStyles: { 'font-size': '0.85rem', 'color': '#64748b', 'text-align': 'center' }
});
});
 
// Healthy Weight Range Section
const rangeSection = form.addSubform('range', { title: '🎯 Healthy Weight Range', isCollapsible: false });
 
rangeSection.addRow(row => {
row.addPriceDisplay('minHealthyWeight', {
label: 'Minimum Healthy Weight',
computedValue: () => {
const units = systemSection.radioButton('units')?.value() || 'imperial';
let heightM: number;
 
if (units === 'imperial') {
const feet = measurementsSection.integer('heightFeet')?.value() || 5;
const inches = measurementsSection.integer('heightInches')?.value() || 9;
const totalInches = (feet * 12) + inches;
heightM = totalInches * 0.0254;
} else {
heightM = (measurementsSection.integer('heightCm')?.value() || 175) / 100;
}
 
const minWeightKg = 18.5 * heightM * heightM;
 
if (units === 'imperial') {
return Math.round(minWeightKg / 0.453592);
}
return Math.round(minWeightKg);
},
variant: 'default',
prefix: '',
suffix: () => systemSection.radioButton('units')?.value() === 'imperial' ? ' lbs' : ' kg'
}, '1fr');
row.addPriceDisplay('maxHealthyWeight', {
label: 'Maximum Healthy Weight',
computedValue: () => {
const units = systemSection.radioButton('units')?.value() || 'imperial';
let heightM: number;
 
if (units === 'imperial') {
const feet = measurementsSection.integer('heightFeet')?.value() || 5;
const inches = measurementsSection.integer('heightInches')?.value() || 9;
const totalInches = (feet * 12) + inches;
heightM = totalInches * 0.0254;
} else {
heightM = (measurementsSection.integer('heightCm')?.value() || 175) / 100;
}
 
const maxWeightKg = 24.9 * heightM * heightM;
 
if (units === 'imperial') {
return Math.round(maxWeightKg / 0.453592);
}
return Math.round(maxWeightKg);
},
variant: 'default',
prefix: '',
suffix: () => systemSection.radioButton('units')?.value() === 'imperial' ? ' lbs' : ' kg'
}, '1fr');
});
 
rangeSection.addRow(row => {
row.addTextPanel('weightDifference', {
computedValue: () => {
const units = systemSection.radioButton('units')?.value() || 'imperial';
let heightM: number;
let currentWeightKg: number;
 
if (units === 'imperial') {
const feet = measurementsSection.integer('heightFeet')?.value() || 5;
const inches = measurementsSection.integer('heightInches')?.value() || 9;
const weightLbs = measurementsSection.decimal('weightLbs')?.value() || 160;
const totalInches = (feet * 12) + inches;
heightM = totalInches * 0.0254;
currentWeightKg = weightLbs * 0.453592;
} else {
heightM = (measurementsSection.integer('heightCm')?.value() || 175) / 100;
currentWeightKg = measurementsSection.decimal('weightKg')?.value() || 72;
}
 
const bmi = currentWeightKg / (heightM * heightM);
const minWeightKg = 18.5 * heightM * heightM;
const maxWeightKg = 24.9 * heightM * heightM;
 
if (bmi >= 18.5 && bmi <= 24.9) {
return 'Your weight is within the healthy range for your height.';
} else if (bmi < 18.5) {
const diff = minWeightKg - currentWeightKg;
const diffDisplay = units === 'imperial' ? Math.round(diff / 0.453592) + ' lbs' : Math.round(diff) + ' kg';
return `You are ${diffDisplay} below the healthy range.`;
} else {
const diff = currentWeightKg - maxWeightKg;
const diffDisplay = units === 'imperial' ? Math.round(diff / 0.453592) + ' lbs' : Math.round(diff) + ' kg';
return `You are ${diffDisplay} above the healthy range.`;
}
},
customStyles: { 'font-size': '0.95rem', 'color': '#475569', 'text-align': 'center', 'font-weight': '500' }
});
});
 
// Daily Calories Section
const caloriesSection = form.addSubform('calories', { title: '🔥 Daily Calorie Needs', isCollapsible: false });
 
caloriesSection.addRow(row => {
row.addPriceDisplay('bmr', {
label: 'Basal Metabolic Rate (BMR)',
computedValue: () => {
const units = systemSection.radioButton('units')?.value() || 'imperial';
const sex = infoSection.dropdown('sex')?.value() || 'male';
let heightCm: number;
let weightKg: number;
 
if (units === 'imperial') {
const feet = measurementsSection.integer('heightFeet')?.value() || 5;
const inches = measurementsSection.integer('heightInches')?.value() || 9;
const weightLbs = measurementsSection.decimal('weightLbs')?.value() || 160;
heightCm = ((feet * 12) + inches) * 2.54;
weightKg = weightLbs * 0.453592;
} else {
heightCm = measurementsSection.integer('heightCm')?.value() || 175;
weightKg = measurementsSection.decimal('weightKg')?.value() || 72;
}
 
// Using Mifflin-St Jeor equation with estimated age of 30
const age = 30;
let bmr: number;
if (sex === 'male') {
bmr = (10 * weightKg) + (6.25 * heightCm) - (5 * age) + 5;
} else {
bmr = (10 * weightKg) + (6.25 * heightCm) - (5 * age) - 161;
}
 
return Math.round(bmr);
},
variant: 'default',
prefix: '',
suffix: ' cal',
tooltip: 'Calories burned at rest'
}, '1fr');
row.addPriceDisplay('tdee', {
label: 'Daily Calorie Needs (TDEE)',
computedValue: () => {
const units = systemSection.radioButton('units')?.value() || 'imperial';
const sex = infoSection.dropdown('sex')?.value() || 'male';
const activity = infoSection.dropdown('activityLevel')?.value() || 'moderate';
let heightCm: number;
let weightKg: number;
 
if (units === 'imperial') {
const feet = measurementsSection.integer('heightFeet')?.value() || 5;
const inches = measurementsSection.integer('heightInches')?.value() || 9;
const weightLbs = measurementsSection.decimal('weightLbs')?.value() || 160;
heightCm = ((feet * 12) + inches) * 2.54;
weightKg = weightLbs * 0.453592;
} else {
heightCm = measurementsSection.integer('heightCm')?.value() || 175;
weightKg = measurementsSection.decimal('weightKg')?.value() || 72;
}
 
const age = 30;
let bmr: number;
if (sex === 'male') {
bmr = (10 * weightKg) + (6.25 * heightCm) - (5 * age) + 5;
} else {
bmr = (10 * weightKg) + (6.25 * heightCm) - (5 * age) - 161;
}
 
const activityMultipliers: Record<string, number> = {
'sedentary': 1.2,
'light': 1.375,
'moderate': 1.55,
'active': 1.725,
'very-active': 1.9
};
 
return Math.round(bmr * (activityMultipliers[activity] || 1.55));
},
variant: 'success',
prefix: '',
suffix: ' cal',
tooltip: 'Total Daily Energy Expenditure'
}, '1fr');
});
 
// Summary Section
const summarySection = form.addSubform('summary', {
title: '📋 Summary',
isCollapsible: false,
sticky: 'bottom'
});
 
summarySection.addRow(row => {
row.addTextPanel('recommendation', {
computedValue: () => {
const units = systemSection.radioButton('units')?.value() || 'imperial';
let heightM: number;
let weightKg: number;
 
if (units === 'imperial') {
const feet = measurementsSection.integer('heightFeet')?.value() || 5;
const inches = measurementsSection.integer('heightInches')?.value() || 9;
const weightLbs = measurementsSection.decimal('weightLbs')?.value() || 160;
const totalInches = (feet * 12) + inches;
heightM = totalInches * 0.0254;
weightKg = weightLbs * 0.453592;
} else {
heightM = (measurementsSection.integer('heightCm')?.value() || 175) / 100;
weightKg = measurementsSection.decimal('weightKg')?.value() || 72;
}
 
const bmi = weightKg / (heightM * heightM);
 
if (bmi < 18.5) {
return 'Consider consulting a healthcare provider about healthy weight gain strategies.';
} else if (bmi < 25) {
return 'Great! Maintain your healthy weight with balanced nutrition and regular exercise.';
} else if (bmi < 30) {
return 'Consider lifestyle changes including diet and exercise to reach a healthier weight.';
} else {
return 'We recommend consulting a healthcare provider for personalized weight management advice.';
}
},
customStyles: { 'font-size': '0.95rem', 'color': '#475569', 'text-align': 'center', 'font-weight': '500' }
});
});
 
summarySection.addRow(row => {
row.addTextPanel('disclaimer', {
computedValue: () => 'BMI is a general indicator and may not apply to athletes, elderly, or pregnant women. Consult a healthcare professional for personalized advice.',
customStyles: { 'font-size': '0.8rem', 'color': '#64748b', 'text-align': 'center' }
});
});
 
form.configureSubmitButton({
label: 'Save Results'
});
}
 

Frequently Asked Questions

What is a healthy BMI range?

A healthy BMI is between 18.5 and 24.9. Below 18.5 is considered underweight, 25-29.9 is overweight, and 30 or above is classified as obese. However, BMI doesn't account for muscle mass or body composition.

Is BMI accurate for everyone?

BMI is a useful screening tool but has limitations. It may overestimate body fat in athletes and muscular individuals, and underestimate it in older persons. Waist circumference and body fat percentage provide additional insights.

What is TDEE?

TDEE (Total Daily Energy Expenditure) is the total number of calories you burn daily, including your basal metabolic rate plus physical activity. This is the number of calories needed to maintain your current weight.

How can I lose weight safely?

A safe rate of weight loss is 1-2 pounds per week, achieved by creating a 500-1000 calorie daily deficit through diet and exercise. Consult a healthcare provider before starting any weight loss program.

Can I customize this calculator for my fitness website?

Yes, the calculator is fully customizable. Adjust the styling, add your branding, modify recommendations, and embed it on your health or fitness website to engage visitors.