CalcPlatformPro
HomeFinanceHealthMathConstructionConvertersDateOtherFeedback
Feedback
CalcPlatform

Free, fast, and precise financial, mathematical, health, and engineering calculators.

Financial Suite

  • Mortgage Calculator
  • Auto Loan Calculator
  • Personal Loan Calculator
  • EMI Installment
  • SIP Wealth Growth
  • Compound Interest

Categories & Tools

  • Finance Hub
  • BMI Health Calculator
  • Percentage Calculator
  • Age Calculator
  • Math Category

Company & Legal

  • About Us
  • Privacy Policy
  • Terms & Conditions
  • Feedback & Contact
© 2026 CalcPlatform. All calculations run client-side for total privacy.
HomeMathRight Triangle Calculator & Trigonometric Solver

Right Triangle Calculator & Trigonometric Solver

Solve a right triangle from two known values. Find missing sides, hypotenuse, angles, area, perimeter, altitude, inradius, circumradius, and trig ratios with steps.

Universal 2-Parameter Right Triangle Solver
Quick Presets:

Enter any 2 parameters below:

Leg a5
Leg b12
Hypotenuse c13
Angle α22.6199°
Angle β67.3801°
Area K30
Perimeter P30
a=5b=12c=13α=22.6199°β=67.3801°
Trigonometric Functions & Ratios Matrix (SOH CAH TOA)
Trig FunctionAngle α (22.6199°)Angle β (67.3801°)
Sine (sin = opp/hyp)0.3846 (5 / 13)0.9231
Cosine (cos = adj/hyp)0.9231 (12 / 13)0.3846
Tangent (tan = opp/adj)0.4167 (5 / 12)2.4
Cosecant (csc = hyp/opp)2.61.0833
Secant (sec = hyp/adj)1.08332.6
Cotangent (cot = adj/opp)2.40.4167
Geometric Invariants & Lines Module
Altitude h_c4.6154
Inradius r2
Circumradius R6.5
Median m_c6.5
Slope, Grade, and Roof Pitch Converter
Grade / Incline %41.6667%
Roof Pitch (Rise:Run)5:12
Angle of Elevation22.6199°
Master Right Triangle Unit Converter Matrix
UnitConverted Length
Meters (m)10
Centimeters (cm)1000
Millimeters (mm)10000
Feet (ft)32.8084
Inches (in)393.7008
Yards (yd)10.9361
RELATED CALCULATORS:
Pythagorean Theorem Calculator & Right Triangle Solver|Triangle Calculator|Distance Calculator

Right Triangle Calculator: Complete Guide to Sides, Angles, Area, Perimeter & Trigonometry

A right triangle is one of the most useful shapes in mathematics, engineering, construction, surveying, physics, navigation, and everyday measurement. It is defined by one angle of exactly 90°, and once enough information is known, every other important measurement can be determined from the relationships between its sides and angles.

This Right Triangle Calculator is designed to solve a complete right triangle rather than returning only a single missing value. Enter two suitable known measurements and the calculator can determine the remaining side lengths, both acute angles, area, perimeter, altitude to the hypotenuse, inradius, circumradius, median, trigonometric ratios, and related slope or grade values.

The calculator also provides a visual triangle, step-by-step mathematical results, unit conversion, and validation for contradictory or physically impossible inputs. To explore foundational relationships between right-triangle sides, compare with our dedicated Pythagorean Theorem Calculator.

How to Use the Right Triangle Calculator

For a standard right triangle, the two legs meet at the 90° angle and the hypotenuse is opposite the 90° angle.

Use the calculator by entering the measurements you already know. Common starting combinations include:

  • two legs
  • a leg and the hypotenuse
  • a leg and an acute angle
  • the hypotenuse and an acute angle

For example, entering a = 5 and b = 12 produces the classic 5-12-13 right triangle:

c = 13
α ≈ 22.6199°
β ≈ 67.3801°
Area = 30
Perimeter = 30
Altitude to the hypotenuse ≈ 4.6154
Inradius = 2
Circumradius = 6.5

The calculator keeps these quantities synchronized so that the displayed triangle, trigonometric values, geometric invariants, and derived measurements describe the same geometry. For non-right triangles or arbitrary polygons, visit our comprehensive Triangle Calculator.

What Is a Right Triangle?

A right triangle is a triangle containing exactly one right angle, measuring 90°. The other two angles are acute, so each is greater than 0° and less than 90°.

The three sides are conventionally described as:

  • Leg a: the side opposite angle α
  • Leg b: the side opposite angle β
  • Hypotenuse c: the side opposite the 90° angle

The hypotenuse is always the longest side of a right triangle.

The three interior angles satisfy:

α + β + 90° = 180° ⇒ α + β = 90°

This complementary-angle relationship is one of the quickest checks for a right-triangle calculation.

Pythagorean Theorem

The fundamental relationship between the three sides is the Pythagorean theorem:

a² + b² = c²

where a and b are the legs and c is the hypotenuse.

When both legs are known, the hypotenuse is:

c = √(a² + b²)

Example: Finding the Hypotenuse

Suppose a = 3 and b = 4:

c = √(3² + 4²)
c = √(9 + 16)
c = √25
c = 5

So a triangle with legs 3 and 4 has a hypotenuse of 5. This is the well-known 3-4-5 Pythagorean triple. Coordinate distance on a Cartesian plane uses the exact same formulation; test this with our Distance Calculator.

Finding a Missing Leg

If the hypotenuse and one leg are known, rearrange the Pythagorean theorem:

For missing leg a: a = √(c² − b²)
For missing leg b: b = √(c² − a²)

Example: 5-12-13 Triangle

Given b = 12 and c = 13:

a = √(13² − 12²)
a = √(169 − 144)
a = √25
a = 5

The hypotenuse must be greater than either leg. For example, c = 10 cannot be used with a = 15 because a side of length 15 cannot be longer than the hypotenuse of the same right triangle. The calculator explicitly validates contradictory side combinations instead of silently replacing them with another triangle.

Right Triangle Angles

Because one angle is always 90°, only the two acute angles need to be determined:

α + β = 90°

When the three sides are known, inverse trigonometric functions can be used to find the acute angles:

α = arctan(a / b)
or: α = arcsin(a / c)
or: α = arccos(b / c)
Once α is known: β = 90° − α

Example: 5-12-13 Triangle

For a = 5, b = 12, c = 13:

α = arctan(5 / 12) ≈ 22.6199°
β = 90° − 22.6199° ≈ 67.3801°

The two acute angles therefore add to exactly 90°.

SOH-CAH-TOA for Right Triangles

The three primary right-triangle trigonometric ratios are sine, cosine, and tangent. A common mnemonic is SOH-CAH-TOA.

Sine (SOH)sin(α) = opposite / hypotenuse = a / c
Cosine (CAH)cos(α) = adjacent / hypotenuse = b / c
Tangent (TOA)tan(α) = opposite / adjacent = a / b

The calculator also evaluates the reciprocal trigonometric functions:

cosecant: csc(α) = c / a
secant: sec(α) = c / b
cotangent: cot(α) = b / a

For the other acute angle β, the opposite and adjacent legs switch roles. These relationships follow directly from the side positions relative to the selected acute angle.

Area of a Right Triangle

The area of a right triangle is especially simple because the two perpendicular legs can be used as base and height:

A = 1/2 ab

where a and b are the two legs.

For a = 5, b = 12: A = 1/2 × 5 × 12 = 30 square units.

If the side lengths are measured in meters, the area is in square meters. If they are measured in feet, the area is in square feet.

Perimeter of a Right Triangle

The perimeter is the sum of all three side lengths:

P = a + b + c

For a 5-12-13 triangle: P = 5 + 12 + 13 = 30 units.

Perimeter and area measure different properties. Perimeter measures total boundary length, while area measures the two-dimensional region enclosed by the triangle.

Altitude to the Hypotenuse

The altitude from the right-angle vertex to the hypotenuse is another important right-triangle quantity. If the legs are a and b and the hypotenuse is c, then:

h_c = ab / c

For a 5-12-13 triangle: h_c = (5 × 12) / 13 = 60 / 13 ≈ 4.6154.

The altitude can also be understood by equating two expressions for the same triangle area: 1/2 ab = 1/2 c h_c, which gives h_c = ab / c. This is useful when a problem asks for the perpendicular height to the hypotenuse rather than the height represented by either leg.

Inradius of a Right Triangle

The inradius is the radius of the circle that fits inside the triangle and touches all three sides. For a right triangle:

r = (a + b − c) / 2

For a 5-12-13 triangle: r = (5 + 12 − 13) / 2 = 4 / 2 = 2.

There is also a useful area relationship: A = r s, where s is the semiperimeter s = (a + b + c) / 2. For the 5-12-13 triangle, s = 30 / 2 = 15, and A = 2 × 15 = 30. This provides an independent check on the area.

Circumradius of a Right Triangle

The circumradius is the radius of the circle passing through all three vertices. For every right triangle, a particularly simple relationship applies:

R = c / 2

because the hypotenuse is the diameter of the circumcircle (Thales's Theorem). For c = 13: R = 13 / 2 = 6.5. This is one of the special geometric properties that makes right triangles especially convenient to analyze.

Median to the Hypotenuse

The median drawn from the right-angle vertex to the midpoint of the hypotenuse also has a simple result:

m_c = c / 2

Therefore, in a right triangle, the median to the hypotenuse has the same length as the circumradius: m_c = R = 6.5 for c = 13.

Right Triangle Slope, Grade and Roof Pitch

Right triangles are closely related to slope and grade calculations. If rise is the vertical change and run is the horizontal change:

slope = rise / run
grade = (rise / run) × 100%
θ = arctan(rise / run)

Example: 1:12 Slope (ADA Ramp)

For a rise of 1 and a run of 12: slope = 1 / 12, grade ≈ 8.3333%, and angle = arctan(1 / 12) ≈ 4.7636°. The corresponding rise-to-run ratio is written as 1:12. The same geometry appears in roof pitch, ramps, accessibility calculations, surveying, and construction layout.

Special Right Triangles

45°-45°-90° Triangle

A 45°-45°-90° triangle has two equal legs. If each leg has length x, the hypotenuse is c = x√2. For x = 1: a = 1, b = 1, c = √2 ≈ 1.4142. Both acute angles are 45°.

30°-60°-90° Triangle

The side ratios are 1 : √3 : 2, where the shortest leg is opposite 30°, the longer leg is opposite 60°, and the hypotenuse is opposite 90°. For a shortest leg of 1: a = 1, b = √3 ≈ 1.7321, c = 2.

Pythagorean Triples

A Pythagorean triple consists of three positive integers satisfying a² + b² = c². Common examples include 3-4-5, 5-12-13, 8-15-17, and 7-24-25.

For example: 5² + 12² = 13² (25 + 144 = 169). These integer triangles are useful in construction and geometric layout because they can create exact right angles without requiring decimal measurements.

Why Input Validation Matters

Not every combination of numbers represents a valid right triangle. For three side lengths, the defining condition is a² + b² = c².

For example: a = 5, b = 12, c = 10 would imply 5² + 12² = 169, but 10² = 100. Since 169 ≠ 100, these values cannot describe one right triangle. Likewise, the hypotenuse cannot be equal to or smaller than a leg. Instead of silently changing the numbers, the calculator reports a validation error.

Units and Measurement Consistency

A right triangle can be calculated in any consistent length unit. For example, if a = 3 m and b = 4 m, then c = 5 m, and Area = 6 m². The unit of area is squared because area is two-dimensional.

The calculator's conversion tools support common units including meters, centimeters, millimeters, feet, inches, and yards (e.g. 10 yd = 9.144 m and 10 m ≈ 10.9361 yd). When comparing or combining dimensions, make sure the input lengths use compatible units.

Worked Example: Complete 5-12-13 Right Triangle

Suppose the known legs are a = 5 and b = 12:

Step 1 (Hypotenuse): c = √(5² + 12²) = √169 = 13
Step 2 (Angle α): α = arctan(5 / 12) ≈ 22.6199°
Step 3 (Angle β): β = 90° − 22.6199° ≈ 67.3801°
Step 4 (Area): A = 1/2 × 5 × 12 = 30
Step 5 (Perimeter): P = 5 + 12 + 13 = 30
Step 6 (Altitude): h_c = (5 × 12) / 13 ≈ 4.6154
Step 7 (Inradius): r = (5 + 12 − 13) / 2 = 2
Step 8 (Circumradius): R = 13 / 2 = 6.5
Step 9 (Median): m_c = 13 / 2 = 6.5

All independent relationships agree: 5² + 12² = 13², 22.6199° + 67.3801° = 90°, and A = r · s = 2 × 15 = 30.

Common Right Triangle Calculation Mistakes

Mistake 1: Choosing the wrong hypotenuse. The hypotenuse is always opposite the 90° angle, not simply the vertical or horizontal side.
Mistake 2: Applying the Pythagorean theorem to a non-right triangle. The equation a² + b² = c² is specifically valid for right triangles.
Mistake 3: Using the wrong sides in SOH-CAH-TOA. Opposite and adjacent depend on which acute angle is being considered.
Mistake 4: Forgetting complementary angles. The two acute angles of a right triangle must always add to 90°.
Mistake 5: Mixing units. Using 5 meters and 12 feet directly produces an erroneous result; convert to uniform units first.

Applications of Right Triangles

Construction & Framing

Checking corners for 90° squareness using 3-4-5 rules, stair stringer rise/run, and rafters.

Roofing & Ramps

Expressing roof pitch (e.g. 5:12) and ADA wheelchair ramp compliance (1:12 ratio, 8.33% grade).

Surveying & Physics

Triangulating elevation differences, vector decomposition, and navigation bearings.

Frequently Asked Questions

The primary side relationship is the Pythagorean theorem: a² + b² = c² where c is the hypotenuse.
If the two legs are known: c = √(a² + b²). For example, legs 3 and 4 produce a hypotenuse of 5.
If the hypotenuse c and the other leg are known: a = √(c² − b²) or b = √(c² − a²). The hypotenuse must be greater than the known leg.
Use an inverse trigonometric function such as: α = arctan(a / b), α = arcsin(a / c), or α = arccos(b / c). The other acute angle is 90° − α.
The area is: A = ab / 2 because the two legs are perpendicular and can be used as the base and height.
Add the three side lengths: P = a + b + c.
For legs a and b and hypotenuse c: h_c = ab / c. For a 5-12-13 triangle, the altitude is approximately 4.6154.
For an acute angle in a right triangle they are: sin, cos, tan, csc, sec, and cot. The calculator evaluates all six for the acute angles.
A 3-4-5 triangle is a right triangle because: 3² + 4² = 5². It is the simplest and most widely recognized integer Pythagorean triple.
It is another Pythagorean triple: 5² + 12² = 13². Its area is 30 square units and its perimeter is 30 units.
No. The hypotenuse is always the longest side because it is opposite the 90° angle.
Yes. Decimal side lengths and angles can be used as long as the values satisfy the geometric constraints of a valid right triangle.