Pythagorean Theorem Calculator
Yi gyaran wani triangle: ka gano hypotenuse ko kuma wani ɓangaren da ke faruwa.
Results update as you type.
Game da wannan Kalkulator
The Pythagorean theorem states that in a right triangle a² + b² = c², where c is the hypotenuse — the longest side, opposite the right angle. This calculator solves for the hypotenuse from two legs, or for a missing leg from the hypotenuse and one leg, and also reports the triangle's area, perimeter and two acute angles.
To find the hypotenuse, add the squares of the legs and take the square root: a 3-4 right triangle has hypotenuse √(3² + 4²) = √(9 + 16) = √25 = 5. To find a missing leg, rearrange to a = √(c² − b²); because a leg is always shorter than the hypotenuse, the hypotenuse you enter must be the largest side, or the tool flags it. The acute angles come from the arctangent of the legs and always add up to 90°.
This is the workhorse of right-triangle geometry: finding diagonals, checking that a corner is square in construction, computing distances, and deriving the coordinate distance formula. Whole-number side sets like 3-4-5 and 5-12-13 are called Pythagorean triples.
Tambayoyi da ake yi da yawa
What is the Pythagorean theorem?
Domin wani triangle mai dama, a² + b² = c², inda c shine hypotenuse. A 3-4 triangle mai dama yana da hypotenuse √(9 + 16) = 5.
Yãya za ka sãmi wani ƙafafu mai ɓacẽwa?
Yi gyara zuwa a = √(c² − b²). Sai ya zama ƙafafin ya fi ƙarancin tsawo daga hypotenuse, don haka kimar hypotenuse dole ne ta zama gefe mafi girma.
Menene kimar karawa wannan kayan aiki ke nunawa?
A gefen da ke faruwa, yana nuna yankin triangle (½ × leg × leg), perimeter, da kuma biyu sharp angles.
Ta yaya ake samun bangarorin da suka fi tsayi?
Daga arctangent na ƙafafun biyu. A cikin wani tafarkin uku mai daidaita, ƙugu biyu masu tsanani suna da yawan 90°.
Mẽne ne Pythagorean uku?
Wata ƙungiya na sassan inteja-lima da ke da a² + b² = c², kamar 3-4-5 ko 5-12-13. Suna samar da triangles na daidaitacce da ba a yi musu kwance ba.
Shin, me ya sa hipothēsis ya kamata ya zama gefe mafi tsawo?
Yana zaune a gefen gefen dama kuma yana da tsawo mafi tsawo. A lokacin da kake warwarewa ga wani ɓangaren, hypotenuse ɗin da kake shigar ya kamata ya wuce ɓangaren da aka sani ko kuma kayan aiki zai nuna shi.
API — amfani da wannan calculator daga code
Ka kira wannan kwalban kamar wata maɓallin ƙarshe JSON mai kyauta - babu maɓalli da ake buƙata. Ka aika kimar fannin ƙasa kamar paramita na tambaya ko JSON. Anything you omit uses the same default this page is pre-filled with; an unknown parameter is a 400, never a silent zero. Read the full API docs →
Endpoint
GET https://calculator.free/api/v1/pythagorean-theorem/
curl
curl "https://calculator.free/api/v1/pythagorean-theorem/?solve=hypotenuse&a=3&b=4"
JavaScript fetch()
const r = await fetch(
"https://calculator.free/api/v1/pythagorean-theorem/?" + new URLSearchParams({
"solve": "hypotenuse",
"a": "3",
"b": "4"
}));
const data = await r.json();
console.log(data.results);
Results are estimates for general guidance only, not financial, medical or tax advice.