hesaplayıcı
Menu

Body Fat Calculator: API and MCP

Body Fat Calculator over REST and MCP: input fields, limits, outputs, one example request and its real answer. Free, no sign-up.

GET /api/v1/tools/health.body-fat/mcp/health

Id
health.body-fat
Version
1.0.0
Access
Free
Tool page
Body Fat Calculator
Schema
GET /api/v1/tools/health.body-fat

Input

FieldTypeConstraintsDefaultDescription
sex (required)stringfemale | maleSex
unitsstringmetric | pounds | stonesmetricUnits
weightnumber≥ 20, ≤ 350Weight (kg)
heightnumber≥ 120, ≤ 230Height (cm)
necknumber≥ 20, ≤ 80Neck circumference (cm) · Just below the larynx, with the tape level.
waistnumber≥ 40, ≤ 250Waist circumference (cm) · Men: at the navel. Women: at the narrowest point. Do not pull your stomach in.
hipnumber≥ 50, ≤ 250Hip circumference (cm) · Measure at the widest point.
weightStinteger≥ 1, ≤ 55Weight, stones (st)
weightLbnumber≥ 0, ≤ 800Weight, pounds (lb) · With stones: the pounds over the stones.
heightFtinteger≥ 3, ≤ 8Height, feet (ft)
heightInnumber≥ 0, ≤ 11.990Height, inches (in)
neckInnumber≥ 4, ≤ 100Neck circumference (in) · Just below the larynx, with the tape level.
waistInnumber≥ 4, ≤ 100Waist circumference (in) · Men: at the navel. Women: at the narrowest point. Do not pull your stomach in.
hipInnumber≥ 4, ≤ 100Hip circumference (in) · Measure at the widest point.

Output

FieldTypeDescription
bodyFatnumberBody fat (%)
fatMassnumberFat mass (kg)
leanMassnumberLean body mass (kg)
essentialbooleanEssential fat level: below 6% for men, 14% for women (ACE).
athletesbooleanAthletes: 6–13% for men, 14–20% for women (ACE).
fitnessbooleanFitness: 14–17% for men, 21–24% for women (ACE).
averagebooleanAverage: 18–24% for men, 25–31% for women (ACE).
obesebooleanObese: 25% or more for men, 32% or more for women (ACE).

Example request

curl -X POST https://hesaplayici.com/api/v1/tools/health.body-fat/execute \
  -H 'Content-Type: application/json' \
  -d '{"input":{"sex":"male","units":"metric","weight":80,"height":178,"neck":38,"waist":90,"heightIn":0},"locale":"en"}'
Example answer
{
  "output": {
    "bodyFat": 20.1,
    "fatMass": 16.1,
    "leanMass": 63.9,
    "essential": false,
    "athletes": false,
    "fitness": false,
    "average": true,
    "obese": false
  },
  "steps": [
    {
      "id": "girth",
      "formula": "girth = waist − neck",
      "substitution": "girth = 90 − 38",
      "value": 52,
      "unit": "cm"
    },
    {
      "id": "density",
      "formula": "body density = 1.0324 − 0.19077 × log10(girth) + 0.15456 × log10(height)",
      "substitution": "body density = 1.0324 − 0.19077 × log10(52) + 0.15456 × log10(178)",
      "value": 1.05286
    },
    {
      "id": "bodyFat",
      "formula": "body fat = 495 / body density − 450",
      "substitution": "body fat = 495 / 1.05286 − 450",
      "value": 20.1,
      "unit": "%"
    },
    {
      "id": "fatMass",
      "formula": "fat mass = weight × body fat",
      "substitution": "fat mass = 80 × 20.1%",
      "value": 16.1,
      "unit": "kg"
    },
    {
      "id": "leanMass",
      "formula": "lean mass = weight − fat mass",
      "substitution": "lean mass = 80 − 16.1",
      "value": 63.9,
      "unit": "kg"
    }
  ],
  "notes": [],
  "meta": {
    "toolVersion": "1.0.0",
    "locale": "en"
  },
  "citation": {
    "url": "https://hesaplayici.com/en/health/body-fat-calculator",
    "title": "Body Fat Calculator"
  }
}