Right triangle missing leg from area
Recover the side you are missing from the area alone: a right triangle with an area of 6 and one leg of 3 has a second leg of 4 and a hypotenuse of 5. Both acute angles come too. Free in your browser.
- Free
- Runs in your browser
- No sign-up
- Your data stays on your device
Run — free
Worked example
- Area
- 6
- Known leg
- 3
- Missing leg
- 4
- Hypotenuse
- 5
- Angle opp known
- 36.8698976458
- Angle opp missing
- 53.1301023542
A right triangle’s area is half the product of its two legs, so when you already know the area and only one leg, the unknown leg is a single division away—yet that inverse step is exactly where homework, surveys, and CAD take-offs go wrong. This right triangle missing leg from area calculator accepts a positive area and one known leg, recovers the missing cathetus as two times area divided by the known leg, then finishes the figure with the Pythagorean hypotenuse and both acute angles in degrees.
From area and one leg to the full right triangle
In Euclidean plane geometry a right triangle has one right angle and two acute angles that always sum to ninety degrees. The legs are the two sides that form the right angle; the hypotenuse is the side opposite the right angle and is always the longest side. The area formula every student meets first is A equals one half times leg a times leg b.
Rearranging for the unknown leg when A and a are known yields b equals two A over a. That identity is exact for any non-degenerate right triangle: no approximation, no trigonometric series, just a quotient. Once both legs are known, the hypotenuse follows from Pythagoras as the positive square root of a squared plus b squared.
The acute angle opposite the known leg is the arctangent of known leg over missing leg; the acute angle opposite the missing leg is the arctangent of missing leg over known leg. Together those two angles plus the right angle close the triangle. This capability packages that entire chain into one deterministic call so you never hand-copy intermediate radicals into a second tool.
It does not accept two legs without area (use a general right-triangle side solver for that), and it does not accept a leg of length zero: with a zero leg the area formula cannot define the other side, and the figure collapses off the plane of a proper triangle.
Where finding a leg from the area helps
Classrooms and tutoring platforms use a right triangle missing leg from area calculator so learners can check the rearranged area formula without flipping algebra signs or forgetting to double the area before dividing. Construction and landscape estimators often know the usable triangular area of a lot corner or a gable face and one measured base leg; they need the other leg, the diagonal hypotenuse for bracing, and the pitch angles for material take-offs without opening a full CAD kernel.
Exam generators and LMS auto-graders need a deterministic oracle that marks zero leg length as invalid instead of silently returning non-finite numbers a buggy grader might accept. Failed validation does not consume balance.
What you can do with it
Survey and construction take-offs
Recover the unknown cathetus, diagonal brace length, and pitch angles of a right-triangular plot or gable when total area and one base are measured.
LMS and content generators
Auto-grade inverse right-triangle items with a deterministic oracle that rejects zero leg length instead of non-finite junk values.
FAQ
What happens if the known leg is zero?
Dividing 2×area by a zero leg is undefined, so zero leg length is rejected rather than returning Infinity.
Can area be zero or negative?
No. Area must be a positive finite number. Zero or negative area does not define a proper right triangle for this inverse problem.
How do I find the missing leg of a right triangle from its area?
Double the area and divide by the leg you know. With an area of 6 and a leg of 3, twice the area is 12, and 12 divided by 3 gives a missing leg of 4.
What else does the calculator give besides the missing leg?
It finishes the triangle: the hypotenuse from Pythagoras, which is 5 in the 3-4-5 example, and both acute angles in degrees, which always add up to 90° with the right angle closing the shape.
Which units should I use for the area and the leg?
Use matching units: if the leg is in meters, the area must be in square meters. The missing leg and the hypotenuse then come back in meters, the same unit as the known leg.
Related tools
For developers — API access
Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.
API endpoint
Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.
Call it from your stack
curl -X POST https://api.kit.forhosting.com/trig/right-triangle-area-leg \
-H "Authorization: Bearer $KIT_KEY" \
-H "Content-Type: application/json" \
-d '{"area":6,"known_leg":3}'const res = await fetch("https://api.kit.forhosting.com/trig/right-triangle-area-leg", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.KIT_KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
"area": 6,
"known_leg": 3
})
});
const { task_id } = await res.json();import os, requests
res = requests.post(
"https://api.kit.forhosting.com/trig/right-triangle-area-leg",
headers={"Authorization": f"Bearer {os.environ['KIT_KEY']}"},
json={
"area": 6,
"known_leg": 3
},
)
task_id = res.json()["task_id"]<?php
$res = file_get_contents("https://api.kit.forhosting.com/trig/right-triangle-area-leg", false, stream_context_create([
"http" => [
"method" => "POST",
"header" => "Authorization: Bearer " . getenv("KIT_KEY") . "\r\nContent-Type: application/json",
"content" => '{"area":6,"known_leg":3}',
],
]));
$task = json_decode($res, true);body := bytes.NewBufferString(`{"area":6,"known_leg":3}`)
req, _ := http.NewRequest("POST", "https://api.kit.forhosting.com/trig/right-triangle-area-leg", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("KIT_KEY"))
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)Example request
{
"area": 6,
"known_leg": 3
}Example response
{
"task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
"type": "trig.right_triangle_area_leg",
"status": "queued",
"_links": {
"result": "/tasks/tsk_…/result"
}
}The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.
Pricing
Published price — no tokens, no invented credits. A failed task is never charged.
Errors
| HTTP | Code | Meaning |
|---|---|---|
401 | unauthorized | Missing or invalid API key. |
402 | insufficient_balance | Your balance doesn't cover the task price. |
404 | unknown_type | That task type doesn't exist. |
429 | rate_limited | Too many requests. Use the webhook instead of polling. |
Technical notes
Zero leg length is rejected with invalid_input because dividing by zero is undefined, not a triangle.
Input contract, outputs, and zero-leg error handling
A non-positive area is rejected because a right triangle used for this inverse problem must enclose positive area. POST a JSON body with two required finite numbers: area, a strictly positive measure of the triangular region in square units, and known_leg, a strictly positive length of one cathetus in the matching linear unit. Each field may arrive as a JSON number or as a numeric string; aliases such as A or surface for area, and leg, a, leg_a, or known_side for known_leg, are accepted so notebook code that already speaks textbook names does not need a rename step. Missing fields, empty strings, NaN, and Infinity fail with invalid_input naming the field. Negative known_leg is likewise rejected as a non-physical length. On success the body echoes rounded area and known_leg, reports missing_leg, hypotenuse, angle_opp_known and angle_opp_missing in degrees, angle_right fixed at ninety, angle_unit set to deg, and a short formula string restating b equals two A over a with Pythagoras and the two arctangents. Example: area six and known_leg three yields missing_leg four, hypotenuse five, and acute angles arctangent of three over four and arctangent of four over three—the classic three-four-five triangle.
Where a missing-leg-from-area API earns its keep
Keep requests small, pin the rounded missing_leg and hypotenuse in tests, and you get reproducible right-triangle completions for homework, survey scripts, and edge workers without inventing trigonometry infrastructure of your own. Use this endpoint when area and one leg are known; use a hypotenuse-only or two-sides solver when area is not part of the given data.
Integration use cases
Homework and exam checks
Students submit area and one leg to verify missing_leg = 2A/a, the Pythagorean hypotenuse, and both acute angles against textbook methods.
Technical questions
How do I find the missing leg of a right triangle from area?
Send positive finite numbers area and known_leg. The API returns missing_leg = 2×area/known_leg, hypotenuse = √(known_leg²+missing_leg²), and both acute angles in degrees.
Are the angles in degrees or radians?
Degrees. angle_opp_known and angle_opp_missing are in degrees, angle_right is 90, and angle_unit is the string deg.
What does the right triangle missing leg from area calculator cost?
The browser tool is free. API requests use prepaid KIT balance at $0.002 per successful call; invalid input is not billed.