Body Fat Percentage Calculator
The Body Fat Percentage Calculator is a simple tool that helps you estimate how much of your body is made up of fat. Using basic measurements like weight, height, and waist size, it gives you a better understanding of your fitness and overall health. Whether you’re setting fitness goals or just staying on top of your wellness, this non-invasive calculator makes it easy to track changes in your body composition and adjust your routine accordingly.
Body Fat Percentage Calculator
Male FemaleEstimated Body Fat Percentage:
%
function calculateBodyFat() { const age = parseInt(document.getElementById('age').value); const gender = document.getElementById('gender').value; const weight = parseFloat(document.getElementById('weight').value); const height = parseFloat(document.getElementById('height').value); const skinfoldTriceps = parseFloat(document.getElementById('skinfoldTriceps').value); const skinfoldSuprailiac = parseFloat(document.getElementById('skinfoldSuprailiac').value); const skinfoldAbdomen = parseFloat(document.getElementById('skinfoldAbdomen').value); if ( isNaN(age) || isNaN(weight) || isNaN(height) || isNaN(skinfoldTriceps) || isNaN(skinfoldSuprailiac) || isNaN(skinfoldAbdomen) || age <= 0 || weight <= 0 || height <= 0 || skinfoldTriceps <= 0 || skinfoldSuprailiac <= 0 || skinfoldAbdomen <= 0 ) { document.getElementById('bodyFatResult').textContent = "Invalid input"; return; } // Calculate body fat percentage using Jackson-Pollock 3-Site formula let sum = 0; if (gender === 'male') { sum = skinfoldTriceps + skinfoldSuprailiac + skinfoldAbdomen; } else if (gender === 'female') { sum = skinfoldTriceps + skinfoldSuprailiac + skinfoldAbdomen; } const bodyDensity = 1.097 - (0.0005 * sum) + (0.00000165 * sum * sum) - (0.00000262 * age); const bodyFatPercentage = (495 / bodyDensity) - 450; document.getElementById('bodyFatResult').textContent = bodyFatPercentage.toFixed(2); }