Right Triangle Solver
Solve any right triangle from any 2 known values. Calculate missing sides, hypotenuse, angles, area, and perimeter step-by-step.
---
Visual Graph & Diagram
Interactive mathematical coordinate representation
Calculation Reference Table
Benchmark values and quick reference intervals
How to Calculate Right Triangle Solver (Sides & Angles)
Step-by-Step Mathematical Solution & Verification
How to Use & Educational Guide
In-depth guide for Right Triangle Solver (Sides & Angles)
Solving Right Triangles: Core Principles, Degrees of Freedom, and Trigonometry
In Euclidean geometry, solving a right triangle means computing every unknown linear dimension (leg $a$, leg $b$, hypotenuse $c$) and interior angle ($\alpha$, $\beta$) from a minimal set of known initial values. A planar triangle inherently possesses six fundamental components: three boundary edge lengths and three interior angles. In a right triangle, one interior angle is fixed at exactly $90^\circ$ ($\frac{\pi}{2}$ radians).
Because the right angle is an invariant constant, a right triangle has exactly two degrees of freedom. As long as at least one of those knowns is a linear side length, knowing any two values—whether two sides (Side-Side), or one side and one acute angle (Side-Angle)—uniquely constrains the remaining geometry. Trigonometric functions (sine, cosine, tangent) bridge the angles with side ratios, while the Pythagorean theorem preserves planar conservation across the three edges.
Right Triangle Variables & Relations
Side relations: a² + b² = c² | Complementary angles: α + β = 90°
Trigonometric Projections
SOH CAH TOA establishes exact side-to-angle ratios
How to Use the Right Triangle Solver Step-by-Step
This tool handles all input pairings. To calculate the complete geometric configuration, provide any valid two-variable combination:
- Select Your Known Pair: Enter any two valid metrics into their corresponding fields:
- Two Sides: Both legs ($a, b$), or one leg and the hypotenuse ($a, c$ or $b, c$).
- One Side & One Acute Angle: Any leg or hypotenuse alongside either angle $\alpha$ or angle $\beta$ (in degrees).
- Area & One Side: Known surface area alongside any linear edge length.
- Constraint Validation: The solver confirms that inputs conform to physical Euclidean constraints (e.g., hypotenuse $c > a$, hypotenuse $c > b$, and acute angles $\alpha, \beta < 90^\circ$).
- Instant Live Calculation: In 0ms, the engine computes every missing side length, both acute angles in degrees and radians, the triangle area, the total perimeter, and updates a proportionally accurate SVG drawing.
Calculation Formulas Across Different Input Scenarios
Depending on which two variables you start with, the solver uses the appropriate algebraic or trigonometric pathway:
Scenario A: Two Legs (a, b)
$$c = \sqrt{a^2 + b^2}$$
$$\alpha = \arctan(a / b)$$
Find $c$ via Pythagoras; compute angles via inverse tangent.
Scenario B: Leg & Hypotenuse (a, c)
$$b = \sqrt{c^2 - a^2}$$
$$\alpha = \arcsin(a / c)$$
Isolate missing leg by subtraction; determine angles via inverse sine.
Scenario C: Leg (a) & Angle (α)
$$c = \frac{a}{\sin(\alpha)}, \quad b = \frac{a}{\tan(\alpha)}$$
$$\beta = 90^\circ - \alpha$$
Resolve sides through trigonometric definitions and complementary angles.
Universal Boundary & Surface Area Equations:
• Surface Area ($A$): Always equals half the product of the two perpendicular legs: $\text{Area} = \frac{a \times b}{2}$.
• Total Perimeter ($P$): The sum of all three boundaries: $P = a + b + c$.
• Altitude to Hypotenuse ($h_c$): The perpendicular drop from the right angle to the hypotenuse: $h_c = \frac{a \times b}{c}$.
Reference Configurations: Standard Right Triangle Solutions
This reference table displays complete solved metrics across distinct configurations, including classical Pythagorean triples and standard trigonometric angles:
| Given Inputs | Leg (a) | Leg (b) | Hypotenuse (c) | Angle (α) | Angle (β) | Area |
|---|---|---|---|---|---|---|
| a = 9, b = 12 | 9.00 | 12.00 | 15.00 | 36.87° | 53.13° | 54.00 |
| a = 7, c = 25 | 7.00 | 24.00 | 25.00 | 16.26° | 73.74° | 84.00 |
| c = 14, α = 30° | 7.00 | 12.12 | 14.00 | 30.00° | 60.00° | 42.44 |
| b = 16, α = 45° | 16.00 | 16.00 | 22.63 | 45.00° | 45.00° | 128.00 |
| a = 18, b = 24 | 18.00 | 24.00 | 30.00 | 36.87° | 53.13° | 216.00 |
| b = 15, c = 17 | 8.00 | 15.00 | 17.00 | 28.07° | 61.93° | 60.00 |
Worked Practical Examples with Diverse Scenarios
Example 1: Solving from Two Perpendicular Legs (Leg a = 15 m, Leg b = 20 m)
• Hypotenuse ($c$): $c = \sqrt{15^2 + 20^2} = \sqrt{225 + 400} = \sqrt{625} = \mathbf{25\text{ m}}$.
• Acute Angle $\alpha$: $\alpha = \arctan\left(\frac{15}{20}\right) = \arctan(0.75) \approx \mathbf{36.87^\circ}$.
• Acute Angle $\beta$: $\beta = 90^\circ - 36.87^\circ = \mathbf{53.13^\circ}$.
• Area: $A = \frac{1}{2} \times 15 \times 20 = \mathbf{150\text{ m}^2}$.
👉 Results: c = 25 m, α = 36.87°, β = 53.13°, Area = 150 m²
Example 2: Solving from Base Leg & Elevation Angle (Leg b = 32 ft, Angle α = 28°)
• Opposite Leg ($a$): $\tan(28^\circ) = \frac{a}{32} \implies a = 32 \times \tan(28^\circ) \approx 32 \times 0.5317 = \mathbf{17.01\text{ ft}}$.
• Hypotenuse ($c$): $c = \frac{32}{\cos(28^\circ)} \approx \frac{32}{0.8829} = \mathbf{36.24\text{ ft}}$.
• Complementary Angle $\beta$: $\beta = 90^\circ - 28^\circ = \mathbf{62^\circ}$.
• Perimeter: $P = 17.01 + 32 + 36.24 = \mathbf{85.25\text{ ft}}$.
👉 Results: a ≈ 17.01 ft, c ≈ 36.24 ft, β = 62°, P ≈ 85.25 ft
Example 3: Roof Rafter Sizing from Rise & Span (Rise a = 11 ft, Rafter c = 24 ft)
• Find Run ($b$): $b = \sqrt{c^2 - a^2} = \sqrt{24^2 - 11^2} = \sqrt{576 - 121} = \sqrt{455} \approx \mathbf{21.33\text{ ft}}$.
• Pitch Angle ($\alpha$): $\sin(\alpha) = \frac{11}{24} \approx 0.4583 \implies \alpha = \arcsin(0.4583) \approx \mathbf{27.28^\circ}$.
• Ridge Angle ($\beta$): $\beta = 90^\circ - 27.28^\circ = \mathbf{62.72^\circ}$.
👉 Results: Horizontal Run b ≈ 21.33 ft, Roof Slope Angle α ≈ 27.28°
Practical Applications Across Industries
📐 Structural Framing & Roofs
Carpenters determine rafter lengths and birdsmouth cuts by resolving roof rise and span run into angular plumb cuts and pitch slopes.
🛰️ Land Surveying & Elevation
Total station theodolites emit laser distance beams to calculate the true vertical elevation difference and horizontal distance to target prisms.
✈️ Aviation Glide Paths
Flight software computes standard 3° instrument landing system (ILS) descent slopes, determining distance to runway threshold versus altitude.
⚡ Alternating Current Circuits
Electrical engineers solve AC impedance triangles where resistance ($R$) and reactance ($X$) form the legs, and apparent impedance ($Z$) is the hypotenuse.
🎮 3D Camera Frustums & AI
Video game developers compute horizontal and vertical field-of-view (FOV) angles to clip geometric primitives outside the player display viewport.
🔭 Celestial Navigation
Mariners use marine sextants to measure the angle between the horizon and celestial bodies, determining precise geographic lines of position.
Historical Foundations: From Shadow Sticks to Modern Trigonometry
The mathematical ability to solve right triangles from incomplete dimensions formed the historical basis of early scientific measurement:
- Thales and the Pyramids of Giza (c. 600 BC): The Greek philosopher Thales of Miletus famously measured the height of the Great Pyramid by utilizing the shadow of a vertical staff (a gnomon). By waiting until his shadow equaled his height, he solved an isosceles right triangle ($45^\circ$), demonstrating that geometric proportions solve otherwise inaccessible heights.
- Hipparchus and the Chord Function (c. 150 BC): Known as the father of trigonometry, Hipparchus constructed early trigonometric chord tables to map planetary motion, allowing ancient astronomers to solve right triangles by inscribing them within circles of constant radius.
- The Sine Function in India (c. 500 AD): In the astronomical treatise Surya Siddhanta, mathematicians introduced the concept of jya (the half-chord), which modern trigonometry adopted as the sine function. This revolutionized triangle solving by linking acute angles to linear projections without cumbersome chord conversions.
Common Pitfalls & Mistakes to Avoid
- Degree vs. Radian Calculator Mode: Entering an angle in degrees while a software engine operates in radians yields completely erroneous trigonometric ratios (e.g., $\sin(30^\circ) = 0.5$, whereas $\sin(30\text{ rad}) \approx -0.988$). Always verify angular units.
- Inputting Two Angles Alone (AAA Condition): Entering two angles specifies the triangle's shape, but provides zero scale. Infinite right triangles share the angles $30^\circ$ and $60^\circ$; at least one linear side length is mandatory to solve dimensions.
- Entering a Leg Greater than the Hypotenuse: In Euclidean geometry, the hypotenuse is strictly the longest edge ($c > a$ and $c > b$). Entering a leg length greater than or equal to $c$ violates the Pythagorean condition, producing an impossible square root of a negative number.
- Confusing Opposite and Adjacent Sides: The trigonometric ratios depend on which angle you evaluate: leg $a$ is opposite to angle $\alpha$, but adjacent to angle $\beta$. Inverting this relationship produces reciprocal errors.
Mathematical accuracy verified by AptCalc Engine
Frequently Asked Questions (FAQs)
Answers to common questions about this calculator
Can you solve a right triangle if you only know its angles?
How many values are required to solve a right triangle?
What is the easiest way to find the missing acute angle in a right triangle?
How do you find the sides of a right triangle with one side and one angle?
How is the area of any right triangle calculated?
Discover Other Calculation Suites
Browse our full ecosystem of precision calculation and conversion tools
Mathematics Suite
Percentages, Algebra, Fractions, Geometry, and step-by-step math solvers.
Date & Time Tools
Days ago, days from today, business days, and calendar date calculators.
Unit Converter
Convert length, weight, volume, temperature, and international units.
Countdown Tracker
Live real-time event countdowns, holidays, and deadline trackers.
Explore Related Calculators
More tools in Triangle Calculators
Pythagorean Theorem Calculator
Step-By-Step Solver
Hypotenuse Calculator (c = √(a² + b²))
Step-By-Step Solver
45-45-90 Triangle Calculator
Step-By-Step Solver
30-60-90 Triangle Calculator
Step-By-Step Solver
Triangle Area Calculator (All-in-One)
Step-By-Step Solver
Heron's Formula Calculator (3 Sides Area)
Step-By-Step Solver