Right Triangle Calculator

Right Triangle Calculator

Find all measurements of a right triangle from two known sides. Calculate area, perimeter, angles, and more.

Last updated: April 2026 | By Patchworkr Team

Results will appear here...

What is a Right Triangle?

A right triangle is a triangle with one angle measuring exactly 90 degrees (a right angle). The side opposite the right angle is called the hypotenuse (the longest side), and the other two sides are called legs. Right triangles are fundamental in geometry, trigonometry, and physics because they have unique mathematical properties.

The most important property is the Pythagorean theorem: a² + b² = c², where a and b are the legs and c is the hypotenuse. This relationship allows you to find any missing side if you know the other two. Right triangles appear everywhere in construction, surveying, navigation, and engineering. The 3-4-5 triangle is the most famous example and is commonly used in construction to create square corners.

Right triangles also relate directly to trigonometric functions (sine, cosine, tangent), making them essential for calculating angles and distances. Whether you're building a roof, measuring heights, or solving physics problems, understanding right triangles is crucial for practical problem-solving.

How to Calculate Right Triangle Measurements

Step 1: Identify Your Known Inputs

You must have at least two of the three sides. You can provide either: (a) both legs (two perpendicular sides), or (b) one leg and the hypotenuse (longest side).

Why: The Pythagorean theorem requires two known values to solve for the third. Having at least two measurements ensures a unique solution. This determines which calculation mode to use.

Step 2: Apply the Pythagorean Theorem

a² + b² = c²

If you have both legs, calculate: c = √(a² + b²). If you have one leg and hypotenuse, calculate the missing leg: missing = √(c² - known²).

Why: The Pythagorean theorem is the fundamental relationship in right triangles. It only applies to right triangles and provides exact results without approximation.

Step 3: Calculate Area and Perimeter

Area = (leg₁ × leg₂) ÷ 2
Perimeter = leg₁ + leg₂ + hypotenuse

Once all three sides are known, these calculations are straightforward. Area represents internal space; perimeter represents the distance around the triangle's edges.

Why: Area and perimeter are practical measurements used in real-world applications: area for material coverage, perimeter for edging or framing materials.

Step 4: Find Angles Using Trigonometry

sin(θ) = opposite ÷ hypotenuse
cos(θ) = adjacent ÷ hypotenuse
tan(θ) = opposite ÷ adjacent; then use arctan to get the angle

Use inverse trigonometric functions (arcsin, arccos, arctan) to convert ratios into actual angle measurements in degrees or radians.

Why: Angles determine the triangle's shape and are essential for many engineering, construction, and physics applications. Knowing all angles provides complete geometric information.

Step 5: Verify Consistency and Interpret Results

Check that: the hypotenuse is longer than both legs, angles sum to 180°, and the Pythagorean theorem holds. Verify numerical values are reasonable for the real-world context.

Why: Verification catches computational errors and ensures the triangle's properties are mathematically consistent. Interpretation confirms results make practical sense for their intended application.

Real-World Example

Roof Rafter Calculation

Scenario:
A carpenter is building a roof. The building has a horizontal span of 24 feet and the roof peak rises 8 feet above the wall plate. The carpenter must calculate the rafter length (hypotenuse) to cut and order correct materials.
Step 1—Identify Inputs:
Known: Full span = 24 feet, Rise (height) = 8 feet. Half span (one leg) = 24 ÷ 2 = 12 feet. This creates a right triangle.
Step 2—Apply Pythagorean Theorem:
c² = a² + b²
c² = 12² + 8² = 144 + 64 = 208
c = √208 ≈ 14.42 feet
Step 3—Calculate Area:
Area = (12 × 8) ÷ 2 = 96 ÷ 2 = 48 square feet
Perimeter = 12 + 8 + 14.42 = 34.42 linear feet
Step 4—Find Roof Pitch Angle:
tan(θ) = opposite ÷ adjacent = 8 ÷ 12 = 0.6667
θ = arctan(0.6667) ≈ 33.69 degrees
Complementary angle = 90° - 33.69° = 56.31 degrees
Step 5—Verify Results:
Verification: Hypotenuse 14.42 feet > both legs (12, 8 feet) ✓. Pythagorean check: 12² + 8² = 208 and 14.42² ≈ 208 ✓. Angles sum: 90 + 33.69 + 56.31 = 180° ✓.
Result:
Rafter length: 14.42 feet. Roof pitch: 33.69°. Triangle area: 48 sq ft.
Interpretation:
Each rafter (from wall plate to peak) must measure 14.42 feet long. The carpenter orders this length accounting for overhang (usually 1-2 feet) and connections (typically 1-2 feet). A 33.69-degree pitch is considered a moderate roof pitch, suitable for most climates. The carpenter can use this angle to set sawblades for proper end-cuts and bird-mouth notches for rafter connection to the wall plate.

Frequently Asked Questions

What is the Pythagorean theorem?

For any right triangle: a² + b² = c², where a and b are legs and c is the hypotenuse. It's one of the most fundamental theorems in geometry.

What's the most famous right triangle?

The 3-4-5 triangle. It's the simplest Pythagorean triple and is used in construction to verify right angles.

Can I have a right triangle with sides 5-10-15?

No. Check: 5² + 10² = 25 + 100 = 125 ≠ 15² = 225. These sides don't form a valid right triangle.

What is the circumradius of a right triangle?

The circumradius (radius of circle through all vertices) equals half the hypotenuse. For a 3-4-5 triangle, it's 2.5.

How do I find an angle in a right triangle?

Use inverse trigonometric functions: angle = arctan(opposite/adjacent) or arcsin(opposite/hypotenuse).

What is the inradius?

The inradius is the radius of the circle inscribed inside the triangle. For right triangles: r = (a + b - c) / 2.

Can a right triangle be isosceles?

Yes! If the two legs are equal, it's an isosceles right triangle with 45-45-90 angles. Example: 1-1-√2.

What's the altitude to the hypotenuse?

The perpendicular line from the right angle to the hypotenuse. Its length = (leg₁ × leg₂) ÷ hypotenuse.

Related Tools