What does this calculator do?
A right triangle is fully determined by two independent values. Pick which pair you know — two legs, a leg and the hypotenuse, or one side and an acute angle — and this calculator solves the rest: the remaining sides, both acute angles, the area and the perimeter. Use any length unit — as long as every input uses the same one, the results come out in that unit (areas in that unit squared).
Formula
Sides follow the Pythagorean theorem; angles come from the trigonometric ratios of the known sides. Angle A is opposite leg a.
a² + b² = c² tan(A) = a ÷ b A + B = 90° Area = a × b ÷ 2
How to use it
Choose the known pair in the first selector — the form only shows the fields that pair needs. The hypotenuse must be longer than a leg, and an entered angle must be strictly between 0° and 90°.
Worked example
Legs a = 3 and b = 4: c = √(3² + 4²) = 5, angle A = 36.87°, angle B = 53.13°, area = 6, perimeter = 12.
Frequently asked questions
Why must the angle be under 90°?
In a right triangle one angle is exactly 90°, so the other two are acute and add up to 90°. An entered angle of 90° or more cannot belong to either acute corner.
What if my hypotenuse is shorter than the leg?
That is geometrically impossible — the hypotenuse faces the right angle and is always the longest side — so the calculator rejects the input instead of computing √ of a negative number.
Can I enter angle B instead of angle A?
Enter its complement: A = 90° − B. Because the two acute angles always sum to 90°, knowing either one is equivalent.
Sources
- Standard Euclidean triangle geometry (Heron’s formula, the Pythagorean theorem, the law of cosines). Results are mathematically calculated from the supplied values, subject to input and display precision; the exact formula is shown on this page.
- OpenStax — Algebra and Trigonometry 2e (non-right triangles: law of cosines and Heron’s formula chapter)
- Khan Academy — Right triangles and trigonometry (kept as an accessible explainer, not the primary source)
- Reviewed: 2026-07-31
Related calculators
Last updated: 2026-07-31 · v1.0.0 · Report an error