Right Triangle Calculator
Enter any two values (sides or angles) and click “Calculate” to find the rest.
Right Triangle Calculator: Solve Sides, Angles & Area Instantly
Quick Results & Utility
This tool solves the geometry of any right-angled triangle. Enter just two known variables (two sides, or one side and one angle) to instantly reveal every other dimension.
| Target Calculation | Formula Basis | Primary Application |
| Unknown Side | Pythagorean Theorem | Finding distance, height, or diagonal span. |
| Unknown Angle | Inverse Trigonometry (arcsin, arccos) | Determining slopes, roof pitches, and ramps. |
| Area & Perimeter | Geometric Sums | Material estimation (flooring, paint, fencing). |
Understanding the Right Triangle
A right triangle is the fundamental unit of trigonometry, distinguished by having exactly one interior angle equal to 90° ($\frac{\pi}{2}$ radians). Because the angles in any triangle sum to 180°, the remaining two angles ($\alpha$ and $\beta$) are always acute and complementary (they add up to 90°).
This shape is the mathematical skeleton of the physical world, used to calculate everything from the height of a skyscraper (without climbing it) to the vectors in video game physics.
Who is this for?
- Architects & Builders: For calculating roof pitches, stair stringers, and ADA-compliant ramps.
- Machinists (CNC): For computing tool paths and determining precise cutting angles.
- Students: For verifying trigonometry homework and understanding SOH-CAH-TOA relationships.
The Logic Vault
To solve a right triangle, we combine the Pythagorean Theorem with Trigonometric Ratios.
Core Formulas
1. The Pythagorean Theorem (Sides only):
$$a^2 + b^2 = c^2$$
2. Trigonometric Ratios (Sides & Angles):
$$\sin(\alpha) = \frac{a}{c}, \quad \cos(\alpha) = \frac{b}{c}, \quad \tan(\alpha) = \frac{a}{b}$$
3. Area Formula:
$$Area = \frac{a \cdot b}{2}$$
Variable Breakdown
| Symbol | Name | Unit Type | Description |
| $a$ | Leg (Altitude) | Length | The side opposite angle $\alpha$. |
| $b$ | Leg (Base) | Length | The side adjacent to angle $\alpha$. |
| $c$ | Hypotenuse | Length | The longest side, always opposite the 90° angle. |
| $\alpha$ | Alpha | Degrees/Rad | The angle opposite side $a$. |
| $\beta$ | Beta | Degrees/Rad | The angle opposite side $b$. |
| $h$ | Altitude (to $c$) | Length | Perpendicular height from the right angle to the hypotenuse. |
Step-by-Step Interactive Example
Let’s solve a practical construction problem: Designing a Wheelchair Ramp.
Scenario: You need to build a ramp to reach a doorway that is 2 feet off the ground ($a$). Local code requires the ramp to make an angle of 4.8° with the ground ($\beta$) for easy accessibility. How long must the ramp surface ($c$) be?
- Identify Knowns:
- Height ($a$) = 2 ft
- Angle of Elevation ($\beta$) = 4.8° (Note: Since $\beta$ is the angle with the ground, it is opposite side $b$ and adjacent to side $a$, assuming the standard setup where $a$ is vertical). Correction for standard labeling: Usually, $\alpha$ is opposite $a$. If the angle with the ground is 4.8°, and $a$ is the height (opposite the ground angle), we are looking at $\sin(\theta) = \frac{opp}{hyp}$. Let’s define the angle with the ground as $\theta = 4.8^\circ$.
- Select the Correct Formula:We have the Opposite side ($a$) and we want the Hypotenuse ($c$). We use the Sine ratio:$$\sin(\theta) = \frac{a}{c}$$
- Rearrange for Unknown ($c$):$$c = \frac{a}{\sin(\theta)}$$
- Substitute Values:$$c = \frac{2}{\sin(4.8^\circ)}$$
- Calculate:$$\sin(4.8^\circ) \approx 0.08367$$$$c \approx \frac{2}{0.08367}$$$$c \approx 23.9$$
Result: The ramp needs to be approximately 23.9 feet long.
Information Gain: The “Altitude to Hypotenuse”
Most basic calculators stop at side lengths. However, advanced structural problems often require the Altitude to the Hypotenuse ($h$).
This is the perpendicular distance from the right angle corner directly to the hypotenuse. It is critical for determining the structural stress point on a truss.
The Hidden Formula:
$$h = \frac{a \cdot b}{c}$$
If you know the two legs ($a=3, b=4$), the hypotenuse is $5$. The altitude is not just an average; it is:
$$h = \frac{3 \cdot 4}{5} = \frac{12}{5} = 2.4$$
Strategic Insight by Shahzad Raja
“In 14 years of analyzing technical hierarchies, I’ve noticed users often confuse ‘precision’ with ‘accuracy.’ When working with triangles in real-world construction, Compound Error is your enemy.
Never calculate a third value based on a rounded second value. Always return to your initial ‘Source of Truth’ numbers. If you measured side $a$ and angle $\alpha$, use those to find $b$ and $c$ independently. Do not calculate $b$, round it, and then use that rounded number to find $c$. This simple discipline keeps your architectural data pure.”
Frequently Asked Questions
What are the 3 special right triangles?
The most common special right triangles are the 3-4-5 (Pythagorean Triple), the 30°-60°-90° (sides ratio $1:\sqrt{3}:2$), and the 45°-45°-90° (isosceles, sides ratio $1:1:\sqrt{2}$).
How do I find the angle if I only have sides?
You must use inverse trigonometric functions.
- If you have legs $a$ and $b$: $\alpha = \arctan(\frac{a}{b})$
- If you have leg $a$ and hypotenuse $c$: $\alpha = \arcsin(\frac{a}{c})$
Can a right triangle have an obtuse angle?
No. By definition, a right triangle contains one 90° angle. Since the sum of all angles is 180°, the other two must be acute (less than 90°). An obtuse angle (>90°) would make the sum exceed 180°.
Related Tools
- Pythagorean Theorem Calculator – Focused strictly on side lengths without angle inputs.
- Oblique Triangle Calculator – Solve non-right triangles using Law of Sines/Cosines.
- Trigonometry Calculator – Deep dive into Sin, Cos, Tan, Csc, Sec, and Cot values.