Right Triangle Calculator (Sides, Angles, Area)

Solve a right triangle completely! Calculate all missing sides (a, b, c), angles (α, β), area, and perimeter using the Pythagorean theorem and trigonometry (SOHCAHTOA).

Full original guide (expanded)

Right Triangle Calculator (Sides, Angles, Area)

This tool solves for all unknown values of a right-angled triangle. Enter the minimum two known values (either two sides, or one side and one acute angle) in the fields below. The angle $\gamma$ is assumed to be $90^\circ$ (opposite side $c$).

Input Known Dimensions ($\gamma = 90^\circ$)

Fundamental Formulas for Right Triangles

Solving a right triangle relies on the Pythagorean theorem and the basic trigonometric identities (SOHCAHTOA).

1. The Pythagorean Theorem (Sides)

This is the relationship between the lengths of the three sides ($a, b$, legs; $c$, hypotenuse):

$$a^2 + b^2 = c^2$$

2. Trigonometric Ratios (Angles)

Used to find the angles when side lengths are known (using inverse functions, $\sin^{-1}$, $\cos^{-1}$, $\tan^{-1}$):

$$\sin(\alpha) = \frac{\text{Opposite } a}{\text{Hypotenuse } c} \quad \cos(\alpha) = \frac{\text{Adjacent } b}{\text{Hypotenuse } c} \quad \tan(\alpha) = \frac{\text{Opposite } a}{\text{Adjacent } b}$$

3. Area and Perimeter

  • **Area ($A$):** Since the legs $a$ and $b$ are perpendicular, they serve as the base and height: $$A = \frac{1}{2} a b$$
  • **Perimeter ($P$):** The sum of all three sides: $$P = a + b + c$$

Frequently Asked Questions (FAQ)

What is the Pythagorean Theorem?

What is SOHCAHTOA?

What is a Pythagorean Triple?

What is the area of a right triangle?


Audit: Complete
Formula (LaTeX) + variables + units
This section shows the formulas used by the calculator engine, plus variable definitions and units.
Formula (extracted LaTeX)
\[','\]
','
Formula (extracted LaTeX)
\[a^2 + b^2 = c^2\]
a^2 + b^2 = c^2
Formula (extracted LaTeX)
\[\sin(\alpha) = \frac{\text{Opposite } a}{\text{Hypotenuse } c} \quad \cos(\alpha) = \frac{\text{Adjacent } b}{\text{Hypotenuse } c} \quad \tan(\alpha) = \frac{\text{Opposite } a}{\text{Adjacent } b}\]
\sin(\alpha) = \frac{\text{Opposite } a}{\text{Hypotenuse } c} \quad \cos(\alpha) = \frac{\text{Adjacent } b}{\text{Hypotenuse } c} \quad \tan(\alpha) = \frac{\text{Opposite } a}{\text{Adjacent } b}
Formula (extracted LaTeX)
\[A = \frac{1}{2} a b\]
A = \frac{1}{2} a b
Formula (extracted LaTeX)
\[P = a + b + c\]
P = a + b + c
Formula (extracted LaTeX)
\[\alpha + \beta = 90^\circ\]
\alpha + \beta = 90^\circ
Formula (extracted text)
$\sin(\alpha) = \frac{\text{Opposite } a}{\text{Hypotenuse } c} \quad \cos(\alpha) = \frac{\text{Adjacent } b}{\text{Hypotenuse } c} \quad \tan(\alpha) = \frac{\text{Opposite } a}{\text{Adjacent } b}$
Variables and units
  • No variables provided in audit spec.
Sources (authoritative):
Changelog
Version: 0.1.0-draft
Last code update: 2026-01-19
0.1.0-draft · 2026-01-19
  • Initial audit spec draft generated from HTML extraction (review required).
  • Verify formulas match the calculator engine and convert any text-only formulas to LaTeX.
  • Confirm sources are authoritative and relevant to the calculator methodology.
Verified by Ugo Candido on 2026-01-19
Profile · LinkedIn
Formulas

(Formulas preserved from original page content, if present.)

Version 0.1.0-draft
Citations

Add authoritative sources relevant to this calculator (standards bodies, manuals, official docs).

Changelog
  • 0.1.0-draft — 2026-01-19: Initial draft (review required).