Skip to main content

Right Triangle & Triangle Calculator

Calculate unknown sides, interior angles, area, perimeter, and altitudes for right and general triangles with interactive geometric schematics.

?
in
0.1 in Max: 50 in
?
in
0.1 in Max: 50 in
+ More Options
Calculated Hypotenuse (c)
c = 10.00 in
Exact: 10 (Integer)
Area
24.00 in²
Perimeter
24.00 in
Angles (α, β, γ)
α=36.9°, β=53.1°, γ=90.0°
Geometric Metrics & Trigonometric Breakdown
Property Calculated Value Formula / Notes
Side a (Height) 6.00 in Vertical leg (Opposite angle α)
Side b (Base) 8.00 in Horizontal leg (Opposite angle β)
Side c (Hypotenuse) 10.00 in √(a² + b²) = √(36 + 64) = 10.00
Angle α 36.87° (0.6435 rad) arcsin(a / c) = arctan(6 / 8)
Angle β 53.13° (0.9273 rad) 90° − α = 53.13°
Angle γ (Right Angle) 90.00° (1.5708 rad) Orthogonal corner (π / 2 rad)
Triangle Area 24.00 in² ½ × a × b = ½ × 6 × 8
Perimeter 24.00 in a + b + c = 6 + 8 + 10
Altitude to Hypotenuse (hc) 4.80 in (a × b) / c = (6 × 8) / 10
Inradius (r) 2.00 in (a + b − c) / 2 = (6 + 8 − 10) / 2
Circumradius (R) 5.00 in c / 2 = 10 / 2
Classification Scalene Right Triangle Sides: 3-4-5 scaled (factor 2)
Geometric Technical Schematic Scalene Right Triangle
β=53.1° α=36.9° a = 6.00 in b = 8.00 in c = 10.00 in hc=4.8
Hypotenuse: c = √(a² + b²)
Step 1: c = √(a² + b²)
Step 2: c = √(6.00² + 8.00²)
Step 3: c = √(36.00 + 64.00)
Step 4: c = √100.00 = 10.00 in

* Results are estimates for educational and planning purposes only and do not constitute formal financial, medical, or engineering advice.

Triangle Classification & Angle Comparison Matrix

Triangles are classified by both their internal angle measures and relative side lengths. The table below compares the primary geometric classifications:

Classification Defining Criteria Angle Characteristics Primary Formula
Right Triangle One internal angle equals exactly 90° (γ = 90°) α + β = 90°; hypotenuse is longest side a² + b² = c², Area = ½ab
Acute Triangle All three internal angles are strictly < 90° α < 90°, β < 90°, γ < 90° c² < a² + b² (for longest side c)
Obtuse Triangle One internal angle is strictly > 90° One angle exceeds 90°; remaining two are acute c² > a² + b² (for longest side c)
Equilateral Triangle All three sides are equal (a = b = c) All angles equal exactly 60° Area = (√3 / 4) × a²
Isosceles Triangle At least two sides are equal in length Angles opposite equal sides are congruent Area = ½ × base × height
Scalene Triangle All three sides and angles have different lengths No congruent internal angles Heron's Formula: √[s(s−a)(s−b)(s−c)]

About This Calculator

The Right Triangle & Triangle Calculator provides an authoritative, client-side computational environment for solving both orthogonal right-angled triangles and general oblique triangles. By combining fundamental principles of Euclidean geometry—including the Pythagorean theorem, the Law of Sines, and the Law of Cosines—this tool eliminates manual algebraic friction while ensuring full floating-point precision.

Whether calculating rafter lengths in roof framing, laying out square concrete forms, or analyzing trigonometric vectors in physics, this calculator computes all secondary metrics: area, perimeter, semiperimeter, altitudes from each vertex, inradius, and circumradius.

Formulas & Illustrative Worked Example

1. Primary Governing Equations

  • Pythagorean Theorem (Right Triangles): c = √(a² + b²), a = √(c² − b²)
  • Trigonometric Definitions: sin(α) = a / c, cos(α) = b / c, tan(α) = a / b
  • Law of Cosines (Any Triangle): c² = a² + b² − 2ab·cos(γ)
  • Law of Sines (Any Triangle): a / sin(α) = b / sin(β) = c / sin(γ)
  • Heron's Formula (Area): Area = √[s(s − a)(s − b)(s − c)] where s = (a + b + c) / 2
  • Altitude to Hypotenuse: hc = (a × b) / c

2. Practical Illustrative Example

Scenario: A carpenter needs to frame a staircase landing stringer with a vertical rise of 6 inches (Side a) and a horizontal tread run of 8 inches (Side b).

  1. Calculate Hypotenuse Stringer Length:
    c = √(6² + 8²) = √(36 + 64) = √100 = 10.00 inches.
  2. Calculate Incline Pitch Angle (α):
    α = arctan(6 / 8) = arctan(0.75) ≈ 36.87°.
  3. Calculate Plumb Cut Angle (β):
    β = 90° − 36.87° = 53.13°.
  4. Calculate Enclosed Triangular Area:
    Area = ½ × 6 × 8 = 24.00 square inches.

The resulting dimensions match the calculator's baseline output with 100% precision.

How to Use This Calculator

  1. Select Triangle Type: Choose Right Triangle (90°) if one corner is square, or Any Triangle (Oblique) for general three-sided shapes.
  2. Choose Given Parameters: Pick your known values from the dropdown (e.g., Two Legs, Leg & Hypotenuse, SSS, SAS, or ASA).
  3. Input Values & Select Units: Enter numbers using either the numeric input box or the responsive range slider. Select inches, feet, yards, meters, centimeters, or millimeters.
  4. Inspect Results & Schematic: Review the primary solution in the Blue Result Bar, read secondary metrics in the Breakdown Table, and verify proportions on the interactive SVG schematic diagram.

Standard Reference Table: Special Triangles & Triples

Below is an authoritative reference catalog of notable right triangles and common integer triples frequently used in architecture, surveying, and engineering:

Triangle Name / Triple Side Ratio (a : b : c) Angles (α, β, γ) Typical Engineering Application
3 - 4 - 5 Triple 3 : 4 : 5 36.87°, 53.13°, 90.00° Squaring foundations, walls, and timber framing
5 - 12 - 13 Triple 5 : 12 : 13 22.62°, 67.38°, 90.00° Steep roof pitches and bridge truss trusses
8 - 15 - 17 Triple 8 : 15 : 17 28.07°, 61.93°, 90.00° Ramp design, surveying, and diagonal bracing
45° - 45° - 90° Special 1 : 1 : √2 (≈1.414) 45.00°, 45.00°, 90.00° Square diagonals, miter cuts, hip roof rafters
30° - 60° - 90° Special 1 : √3 : 2 (≈1 : 1.732 : 2) 30.00°, 60.00°, 90.00° Equilateral triangle halves, isometric drafting

Key Benefits of This Calculator

  • Complete Geometric Resolution: Solves not only side lengths and angles, but also area, perimeter, all three altitudes, incircle radius, and circumcircle radius.
  • Dual Right & Oblique Engine: Seamlessly switch between 90-degree right triangles and general triangles (SSS, SAS, ASA) without visiting separate web pages.
  • Interactive Visual Feedback: Visualizes the exact proportions of your triangle dynamically in resolution-independent SVG, preventing spatial orientation mistakes.
  • Unit Flexibility: Lossless conversion between imperial (inches, feet, yards) and metric (millimeters, centimeters, meters).
  • Zero External Overhead: 100% client-side computation with zero CDN script tracking, zero cookies, and zero server round-trips.

Important Geometric Terms

  • Hypotenuse: The longest side of a right-angled triangle, always situated directly opposite the 90-degree angle.
  • Legs (Catheti): The two shorter sides that intersect perpendicularly to form the 90-degree right angle.
  • Altitude (hc): The perpendicular distance from a vertex to the opposite side (or base).
  • Inradius (r): The radius of the largest circle that can be inscribed inside the triangle, tangent to all three sides.
  • Circumradius (R): The radius of the circumscribed circle passing through all three vertices. For right triangles, R equals half the hypotenuse.
  • Triangle Inequality Theorem: Fundamental geometric law stating that the sum of the lengths of any two sides of a valid triangle must be strictly greater than the length of the third side.

Frequently Asked Questions

How do you find the third side of a triangle when only two sides are known?
If it is a right triangle, use the Pythagorean theorem: c = √(a² + b²) for the hypotenuse, or a = √(c² − b²) for a missing leg. If it is an oblique (non-right) triangle, you must also know the included angle between the two known sides to apply the Law of Cosines: c² = a² + b² − 2ab·cos(γ).
Why does the calculator say "Triangle Inequality Violation"?
In Euclidean geometry, it is physically impossible to construct a triangle if the two shorter sides together are equal to or shorter than the longest side (a + b ≤ c). For example, sides of 2, 3, and 6 cannot meet in 2D space because 2 + 3 = 5 < 6.
How is the altitude to the hypotenuse calculated in a right triangle?
Since the area of a right triangle can be calculated either as ½ × a × b or ½ × c × hc, equating the two formulas yields: hc = (a × b) / c. For a 6-8-10 triangle, hc = (6 × 8) / 10 = 4.80.
What is the difference between an acute, right, and obtuse triangle?
A right triangle has one angle measuring exactly 90°. An acute triangle has all three angles measuring strictly less than 90°. An obtuse triangle has one angle measuring strictly greater than 90° (and less than 180°).
✓ Copied to Clipboard!