{"success":true,"version":"v1","request":{"tool":"get_calculator_schema","calculator_id":"triangle-area"},"result":{"entity_type":"calculator","id":"triangle-area","calculator_id":"triangle-area","canonical_url":"https://tttkmbb.com/geometry/triangle-area","name":"Triangle Area Calculator","title":"Triangle Area Calculator – Base and Height, Heron's Formula or Two Sides and Included Angle","category":"geometry","category_name":"Geometry","tool_name":"calculate_triangle_area","featured_mcp_tool":false,"description":"Computes the area of any triangle from base and height, from three sides (Heron's formula) or from two sides and their included angle in degrees, and reports which method was used.","use_when":"You need the area of a triangle and know either its base and height, all three sides, or two sides and the angle between them.","do_not_use_when":"You need the missing sides or angles as well (use triangle-solver), or the triangle is right-angled and you want all its parts (use right-triangle).","inputs":[{"name":"base","label":"Base","type":"number","unit":"units","required":false,"exclusive_min":0,"description":"Length of one side chosen as the base (method 1, with height).","example":4},{"name":"height","label":"Height","type":"number","unit":"units","required":false,"exclusive_min":0,"description":"Perpendicular distance from the base to the opposite vertex (method 1).","example":3},{"name":"side_a","label":"Side a","type":"number","unit":"units","required":false,"exclusive_min":0,"description":"First side (methods 2 and 3).","example":3},{"name":"side_b","label":"Side b","type":"number","unit":"units","required":false,"exclusive_min":0,"description":"Second side (methods 2 and 3).","example":4},{"name":"side_c","label":"Side c","type":"number","unit":"units","required":false,"exclusive_min":0,"description":"Third side (method 2, Heron's formula).","example":5},{"name":"included_angle_deg","label":"Included angle","type":"number","unit":"degrees","required":false,"exclusive_min":0,"exclusive_max":180,"description":"Angle between side_a and side_b in degrees (method 3).","example":90}],"outputs":[{"name":"area","label":"Area","type":"number","unit":"units²","decimals":4,"description":"Triangle area in the square of the input unit."},{"name":"perimeter","label":"Perimeter","type":"number","unit":"units","decimals":4,"description":"Sum of the three sides (only for the three-side and two-sides-plus-angle methods)."},{"name":"method","label":"Method used","type":"string","decimals":4,"description":"Which of the three formulas was applied."}],"input_schema":{"type":"object","properties":{"base":{"description":"Length of one side chosen as the base (method 1, with height). Unit: units.","type":"number","exclusiveMinimum":0,"examples":[4],"x-unit":"units"},"height":{"description":"Perpendicular distance from the base to the opposite vertex (method 1). Unit: units.","type":"number","exclusiveMinimum":0,"examples":[3],"x-unit":"units"},"side_a":{"description":"First side (methods 2 and 3). Unit: units.","type":"number","exclusiveMinimum":0,"examples":[3],"x-unit":"units"},"side_b":{"description":"Second side (methods 2 and 3). Unit: units.","type":"number","exclusiveMinimum":0,"examples":[4],"x-unit":"units"},"side_c":{"description":"Third side (method 2, Heron's formula). Unit: units.","type":"number","exclusiveMinimum":0,"examples":[5],"x-unit":"units"},"included_angle_deg":{"description":"Angle between side_a and side_b in degrees (method 3). Unit: degrees.","type":"number","exclusiveMinimum":0,"exclusiveMaximum":180,"examples":[90],"x-unit":"degrees"}},"additionalProperties":false},"output_schema":{"type":"object","properties":{"area":{"description":"Triangle area in the square of the input unit. Unit: units².","type":"number","x-unit":"units²"},"perimeter":{"description":"Sum of the three sides (only for the three-side and two-sides-plus-angle methods). Unit: units.","type":"number","x-unit":"units"},"method":{"description":"Which of the three formulas was applied.","type":"string"}}},"formula":"Method 1: area = base × height / 2. Method 2 (Heron): s = (side_a + side_b + side_c) / 2, area = √(s·(s − side_a)·(s − side_b)·(s − side_c)). Method 3: area = ½ · side_a · side_b · sin(included_angle_deg).","method":"Inputs are checked in that order: base and height first, then three sides, then two sides with the included angle. Three sides must satisfy the triangle inequality.","sources":[{"name":"Wikipedia – Heron's formula","url":"https://en.wikipedia.org/wiki/Heron%27s_formula","type":"reference","retrieved_at":"2026-09-23"},{"name":"Wolfram MathWorld – Triangle Area","url":"https://mathworld.wolfram.com/TriangleArea.html","type":"reference","retrieved_at":"2026-09-23"}],"freshness":{"type":"static","max_age_seconds":null,"note":"Deterministic formula with fixed constants; results never go stale. Inputs supplied by the caller determine the output."},"examples":[{"name":"Base 10, height 4","inputs":{"base":10,"height":4},"expected":{"area":20,"method":"Base × height / 2"},"url":"https://tttkmbb.com/api/v1/calculate/triangle-area?base=10&height=4"},{"name":"Sides 7, 8, 9 (Heron)","inputs":{"side_a":7,"side_b":8,"side_c":9},"expected":{"area":26.8328,"perimeter":24,"method":"Heron's formula (three sides)"},"url":"https://tttkmbb.com/api/v1/calculate/triangle-area?side_a=7&side_b=8&side_c=9"},{"name":"Sides 5 and 7 with 60° between them","inputs":{"side_a":5,"side_b":7,"included_angle_deg":60},"expected":{"area":15.1554,"perimeter":18.245,"method":"Two sides and included angle (½·a·b·sin C)"},"url":"https://tttkmbb.com/api/v1/calculate/triangle-area?side_a=5&side_b=7&included_angle_deg=60"}],"faq":[{"q":"Which height do I use?","a":"The perpendicular distance from the chosen base to the opposite vertex, not the length of another side. For an obtuse triangle the foot of the height can lie outside the base."},{"q":"Is the angle in degrees or radians?","a":"Degrees. Convert radians with degrees = radians × 180 / π before entering them."},{"q":"Why does Heron's formula return an error?","a":"The three sides must satisfy the triangle inequality (each side shorter than the sum of the other two); otherwise no triangle exists."}],"tags":["triangle area","heron's formula","area of a triangle","base and height","sas area"],"related":[{"calculator_id":"triangle-solver","reason":"Get all sides and angles, not just the area."},{"calculator_id":"right-triangle","reason":"Right triangles from any two sides."},{"calculator_id":"regular-polygon","reason":"Area of an equilateral triangle as a 3-sided regular polygon."}],"links":{"html":"https://tttkmbb.com/geometry/triangle-area","markdown":"https://tttkmbb.com/geometry/triangle-area.md","json":"https://tttkmbb.com/geometry/triangle-area.json","api":"https://tttkmbb.com/api/v1/calculate/triangle-area","schema":"https://tttkmbb.com/api/v1/calculators/triangle-area","openapi":"https://tttkmbb.com/openapi.json","mcp":"https://tttkmbb.com/mcp"},"version":"v1","updated_at":"2026-09-23"},"timestamp":"2026-09-23T23:23:50Z"}