Right Triangle Calculator

Right Triangle Calculator

Calculate all properties of a right triangle from any two known values

Input Values
Triangle Diagram
Pythagorean Theorem: a² + b² = c²
Trigonometric Ratios: sinα = a/c, cos&alpha! = b/c, tanα = a/b
Area: = ½ × a × b  |  Perimeter: = a + b + c
Calculation Results
Step-by-Step Solution

Right Triangle Calculator – Complete Guide with Formulas, Examples & Real-World Applications

Introduction

A right triangle is one of the most fundamental shapes in geometry, engineering, and everyday problem-solving. Whether you’re a student working through trigonometry homework, a carpenter framing a roof, or a surveyor measuring land, you constantly deal with right triangles — often without even realizing it.

 

The Right Triangle Calculator on Calculators4All lets you find every property of a right triangle from just two known values. Enter two sides, or a side and an angle, and the calculator instantly computes all missing sides, angles, area, perimeter, altitude, inradius, and circumradius. No more flipping through textbooks or guessing formulas.

 

Who should use this calculator?

 
  • Students learning geometry, trigonometry, or physics
  • Teachers preparing lessons and verifying answers
  • Engineers and architects checking structural dimensions
  • Carpenters, builders, and DIYers laying out angled cuts
  • Surveyors and navigators calculating distances
  • Anyone who needs fast, accurate right triangle calculations
 

The biggest benefit? Speed and accuracy. Manual calculations using the Pythagorean theorem and trigonometric functions are error-prone. This tool eliminates mistakes and gives you results in seconds — with step-by-step explanations so you actually understand the math behind the answer.

 

What Is a Right Triangle?

A right triangle is any triangle that contains exactly one 90-degree angle (a right angle). The side opposite the right angle is always the longest side, called the hypotenuse. The other two sides are called legs (or catheti).

 

Right triangles are special because they follow rules that other triangles don’t. The most famous is the Pythagorean Theorem, which gives a fixed relationship between the three sides. Trigonometric ratios — sine, cosine, and tangent — are also defined specifically from right triangles.

 

Why Right Triangles Matter

Right triangles appear everywhere in the real world because perpendicular (90-degree) relationships are built into our physical world. Walls stand perpendicular to floors. Streets meet at right angles. Gravity pulls straight down, creating right-angle relationships with horizontal surfaces.

 

Every time you measure a diagonal distance, calculate a slope, or figure out an angle of elevation, you’re working with a right triangle — even if no triangle is explicitly drawn.

 

How This Calculator Works

The Right Triangle Calculator uses the Pythagorean Theorem and trigonometric functions to solve for all unknown values from any two known measurements.

 

Inputs

You can enter any two of the following:

 
Input Mode
Known Values
What Gets Calculated
Two LegsSide a, Side bc, α, β, and all derived values
Leg + HypotenuseSide a + c, or Side b + cMissing leg, angles, and all derived values
Leg + AngleAny leg + any acute angleMissing leg, hypotenuse, other angle, all derived values
Hypotenuse + Anglec + α, or c + βBoth legs, other angle, all derived values

Outputs

The calculator returns all 10 properties:

 
  1. Side a — leg opposite angle α
  2. Side b — leg opposite angle β
  3. Hypotenuse c — side opposite the right angle
  4. Angle α — acute angle opposite side a (in degrees)
  5. Angle β — acute angle opposite side b (in degrees)
  6. Area — ½ × a × b
  7. Perimeter — a + b + c
  8. Altitude to hypotenuse (h) — height from the right angle to the hypotenuse
  9. Inradius (r) — radius of the inscribed circle
  10. Circumradius (R) — radius of the circumscribed circle
 

Key Formulas Used

  • Pythagorean Theorem: a² + b² = c²
  • Trigonometric ratios: sin α = a/c, cos α = b/c, tan α = a/b
  • Angle complement: α + β = 90°
  • Area: A = ½ × a × b
  • Inradius: r = (a + b − c) / 2
  • Circumradius: R = c / 2
  • Altitude to hypotenuse: h = (a × b) / c
 

Formula Explained

The Pythagorean Theorem

The Pythagorean Theorem is the backbone of every right triangle calculation:

 
 

a² + b² = c²

Where:

  • a = length of the first leg
  • b = length of the second leg
  • c = length of the hypotenuse
 

This formula only works for right triangles. If the triangle doesn’t have a 90° angle, this relationship does not hold.

 

Rearranged forms:

  • To find c: c = √(a² + b²)
  • To find a: a = √(c² − b²)
  • To find b: b = √(c² − a²)
 

Example Calculation

Given a = 3 and b = 4:

 
  1. c² = 3² + 4² = 9 + 16 = 25
  2. c = √25 = 5
 

This is the classic 3-4-5 right triangle, one of the most well-known Pythagorean triples.

 

Trigonometric Formulas

When you know one angle and one side:

 
To Find
Formula
a (from c and α)a = c × sin α
b (from c and α)b = c × cos α
a (from b and α)a = b × tan α
c (from a and α)c = a / sin α
c (from b and α)c = b / cos α
b (from a and α)b = a / tan α

Common Mistakes with Formulas

  • Forgetting that angles must be in degrees — if your calculator is in radian mode, you’ll get wrong results. Our tool handles this automatically.
  • Applying the Pythagorean theorem to non-right triangles — this only works when one angle is exactly 90°.
  • Mixing up opposite and adjacent sides — “opposite” means across from the angle; “adjacent” means next to it (not the hypotenuse).
  • Swapping hypotenuse and leg — the hypotenuse is always the longest side, opposite the right angle.
 

How to Use the Calculator

Using the Right Triangle Calculator on Calculators4All is straightforward:

 
  1. Select your input mode — Click one of the 9 mode buttons at the top that matches what you know (for example, “Two Legs: a & b” if you know both legs).

  2. Enter your known values — Type the numbers into the input fields. For sides, enter positive lengths. For angles, enter a value between 0° and 90° (not including 0 or 90).

  3. Choose decimal precision — Select 2, 4, 6, or 8 decimal places depending on how precise you need the results.

  4. Click “Calculate” — All 10 triangle properties appear instantly in the results section.

  5. Review the diagram — The SVG triangle diagram updates with your values, showing labeled sides, angles, and the altitude line.

  6. Read the step-by-step solution — Below the results, every calculation step is shown with the exact formula used, values substituted in, and the final answer.

 

Tips

  • You can press Enter in any input field to calculate immediately.
  • Use the Reset button to clear all inputs and start over.
  • The diagram automatically scales to fit any triangle proportions, so even very long and thin triangles display correctly.
  • If you get an error, check that leg values are less than the hypotenuse and angles are between 0° and 90°.
 

Example Calculations

Example 1: Finding the Hypotenuse (Classic 3-4-5 Triangle)

Given
Value
Side a3
Side b4

Results:

 
Property
Value
Hypotenuse c5
Angle α36.8699°
Angle β53.1301°
Area6
Perimeter12
Inradius1
Circumradius2.5
Altitude to c2.4

Example 2: Finding a Leg from Hypotenuse and Angle

Given
Value
Hypotenuse c10
Angle α30°

Results:

 
Property
Value
Side a5
Side b8.6603
Angle β60°
Area21.6506
Perimeter23.6603

Example 3: Leg and Angle (Roof Pitch Problem)

A carpenter needs to calculate rafter length. The roof rise (side a) is 6 feet and the angle at the peak (β) is 35°.

 
Given
Value
Side a6
Angle β35°

Results:

 
Property
Value
Side b8.5698
Hypotenuse c10.4339
Angle α55°

The rafter (hypotenuse c) needs to be approximately 10.43 feet long.

 

Example 4: Ladder Against a Wall

A 20-foot ladder leans against a wall making a 72° angle with the ground.

 
Given
Value
Hypotenuse c20
Angle α72°

Results:

 
Property
Value
Side a (height on wall)19.0211
Side b (distance from wall)6.1803

The ladder reaches approximately 19 feet up the wall and sits about 6.2 feet from the base.

 

Benefits

  1. Instant results — No manual arithmetic or looking up trig tables
  2. Accuracy — Eliminates human calculation errors
  3. All properties at once — Get sides, angles, area, perimeter, inradius, circumradius, and altitude simultaneously
  4. Visual diagram — See the triangle with labeled values, not just numbers
  5. Step-by-step solutions — Learn the math, don’t just get answers
  6. Multiple input modes — Enter whatever you know, not just specific combinations
  7. Adjustable precision — Choose decimal places to match your needs
  8. Works on any device — Fully responsive for phones, tablets, and desktops
  9. No signup required — Use it immediately, no account needed
  10. Completely free — No hidden costs or premium tiers
  11. Input validation — Clear error messages if you enter impossible values
  12. Educational value — The formula reference and steps teach you the underlying math
 

Features

  • 9 input mode combinations covering every possible pair of known values
  • 10 calculated outputs including all sides, angles, area, perimeter, altitude, inradius, and circumradius
  • Interactive SVG diagram that scales dynamically to your triangle’s proportions
  • Angle arc visualizations showing α and β directly on the triangle
  • Altitude line drawn from the right angle to the hypotenuse
  • Right angle marker (square symbol) at the 90° vertex
  • Step-by-step derivation with formula names, substituted values, and final results
  • Precision selector (2, 4, 6, or 8 decimal places)
  • Keyboard support — Press Enter to calculate
  • Error handling — Validates that legs are shorter than hypotenuse, angles are in valid range, and all values are positive
 

Applications

Education

Students encounter right triangles from middle school through college. The calculator helps with:

  • Verifying homework answers in geometry and trigonometry
  • Understanding how changing one value affects all others
  • Visualizing abstract problems with the dynamic diagram
  • Preparing for standardized tests like SAT, ACT, and GRE
 

Engineering and Construction

Right triangles are essential in:

  • Structural engineering — calculating load angles and support dimensions
  • Roof framing — determining rafter lengths, ridge heights, and pitch angles
  • Road design — computing slopes, grades, and curve radii
  • Electrical wiring — finding conduit bend angles and cable run lengths
 

Navigation and Surveying

  • GPS calculations — distance and bearing between coordinates use right triangle trigonometry
  • Map reading — converting between latitude/longitude differences and actual distances
  • Surveying — measuring land boundaries and elevations using angle-and-distance methods
 

Science and Physics

  • Projectile motion — breaking velocity into horizontal and vertical components
  • Optics — calculating angles of incidence and refraction (Snell’s law)
  • Force resolution — splitting vectors into perpendicular components
 

Daily Life

  • Home DIY projects — figuring out diagonal measurements for shelves, decks, and tile layouts
  • Television and monitor sizes — screen diagonal is the hypotenuse of the width/height triangle
  • Fitness — calculating elevation gain on hiking trails from distance and slope angle
 

Advantages

  • Faster than manual calculation — what takes 5 minutes by hand takes 2 seconds
  • More reliable than mental math — especially for non-standard angles like 23.7°
  • Better than a basic calculator — you’d need to chain multiple operations; this tool does it all at once
  • Superior to spreadsheet formulas — no setup required, just enter and go
  • Educational advantage over answer-only tools — the step-by-step breakdown teaches the process
  • Practical over textbook tables — works with any values, not just standard angles
 

Limitations

While this calculator is highly accurate and versatile, be aware of these limitations:

 
  • Only works for right triangles — If your triangle has no 90° angle, use a general triangle calculator instead.
  • Angles must be between 0° and 90° (exclusive) — A right triangle cannot have an acute angle of 0° or 90° because those would collapse the triangle.
  • The leg must be shorter than the hypotenuse — If you enter a leg value equal to or greater than the hypotenuse, the calculator will show an error.
  • No unit conversion built in — The calculator works in whatever unit you enter. If you need to convert between units, use our unit conversion calculator first.
  • Floating point precision — At extremely large or extremely small values (many orders of magnitude), standard floating point limitations apply.
  • Does not solve oblique triangles — For triangles with no right angle, you need the Law of Sines or Law of Cosines.
 

Tips for Accurate Results

  1. Double-check your input mode — Make sure the selected mode matches the values you’re entering. Entering a hypotenuse value into a leg field is the most common mistake.

  2. Verify your angle is in degrees — The calculator expects degrees, not radians or gradians.

  3. Use enough decimal places — For engineering work, 4+ decimal places is recommended. For rough estimates, 2 is usually fine.

  4. Cross-check with the Pythagorean theorem — After getting results, verify that a² + b² equals c² (allowing for rounding).

  5. Make sure angles sum to 90° — α + β should always equal exactly 90° for a right triangle.

  6. Consider significant figures — If your inputs have 3 significant figures, the outputs shouldn’t be treated as more precise than that.

  7. Draw a sketch first — Label what you know and what you need. This helps you choose the right input mode and catch mistakes.

 

Common Mistakes

1. Confusing the Hypotenuse with a Leg

The hypotenuse is always the longest side and is always opposite the right angle. If you’re unsure which side is the hypotenuse, it’s the one that doesn’t touch the right angle.

 

2. Using the Wrong Angle

In a right triangle, the two acute angles are complementary (they add to 90°). Using α when you should use β — or vice versa — will give you the wrong leg lengths.

 

3. Applying the Pythagorean Theorem to Non-Right Triangles

The formula a² + b² = c² only works for right triangles. For other triangles, use the Law of Cosines: c² = a² + b² − 2ab·cos(C).

 

4. Wrong Calculator Angle Mode

If you’re doing manual calculations with a handheld calculator, make sure it’s set to degree mode, not radians. Our online calculator handles this automatically.

 

5. Entering an Angle of 0° or 90°

A right triangle’s acute angles must be strictly between 0° and 90°. An angle of 0° would mean the triangle collapses into a line. An angle of 90° would mean two right angles, which is impossible in a triangle.

 

6. Leg Longer Than Hypotenuse

This is geometrically impossible. If you find yourself entering a leg value larger than the hypotenuse, re-examine your problem setup.

 

Frequently Asked Questions

What is a right triangle calculator?

A right triangle calculator is an online tool that computes all properties of a right triangle — including missing sides, angles, area, perimeter, altitude, inradius, and circumradius — from any two known values. It uses the Pythagorean theorem and trigonometric functions to solve for the unknowns.

 

How do I find the hypotenuse of a right triangle?

Use the Pythagorean theorem: c = √(a² + b²), where a and b are the two legs. Enter both leg values into the “Two Legs (a & b)” mode of the calculator, and it will compute the hypotenuse automatically.

 

Can I use this calculator if I only know one side and one angle?

Yes. The calculator has four modes for “Leg + Angle” and two modes for “Hypotenuse + Angle.” Select the mode matching your known values, enter them, and click Calculate.

 

What is the Pythagorean theorem?

The Pythagorean theorem states that in a right triangle, the square of the hypotenuse equals the sum of the squares of the two legs: a² + b² = c². It’s one of the oldest and most important theorems in mathematics, dating back to ancient Babylon and Greece.

 

Does this calculator work for any triangle?

No. This calculator is specifically designed for right triangles (triangles with one 90° angle). For general triangles, use a general triangle calculator that uses the Law of Sines and Law of Cosines.

 

What units does the calculator use?

The calculator is unit-agnostic. Enter values in any unit (inches, feet, meters, centimeters) and the results will be in the same unit. Area results will be in the corresponding square unit.

 

What is the inradius of a right triangle?

The inradius is the radius of the largest circle that fits inside the triangle, touching all three sides. For a right triangle, the formula is r = (a + b − c) / 2.

 

What is the circumradius of a right triangle?

The circumradius is the radius of the circle that passes through all three vertices of the triangle. For a right triangle, it always equals half the hypotenuse: R = c / 2.

 

What is the altitude to the hypotenuse?

It’s the perpendicular distance from the right-angle vertex to the hypotenuse. The formula is h = (a × b) / c. This altitude is useful in many geometric proofs and real-world applications.

 

Why can’t I enter an angle of 90 degrees?

Because the two acute angles in a right triangle must each be strictly less than 90°. If one acute angle were 90°, the sum of all three angles would exceed 180°, which violates the rules of a triangle.

 

What are Pythagorean triples?

Pythagorean triples are sets of three positive integers (a, b, c) that satisfy a² + b² = c². The most common are 3-4-5, 5-12-13, 7-24-25, and 8-15-17. They’re useful in construction because they create perfect right angles with whole-number measurements.

 

How accurate is this calculator?

The calculator uses JavaScript’s floating-point arithmetic, which provides approximately 15 significant digits of precision. For practical purposes in construction, engineering, and education, this is more than sufficient. You can control display precision with the decimal places selector.

 

Can I use this for roof pitch calculations?

Absolutely. Enter the rise as one leg and the run as the other leg, and the calculator gives you the rafter length (hypotenuse), roof angle, and area. This is one of the most common practical uses. You may also find our roof pitch calculator helpful.

 

What’s the difference between a leg and the hypotenuse?

The legs (a and b) are the two shorter sides that form the right angle. The hypotenuse (c) is the longest side, opposite the right angle. The hypotenuse never touches the right angle vertex.

 

How do I find a missing leg of a right triangle?

Rearrange the Pythagorean theorem: a = √(c² − b²) or b = √(c² − a²). Enter the one leg and the hypotenuse you know into the appropriate “Leg & Hypotenuse” mode.

 

Can this calculator handle decimal inputs?

Yes. You can enter any positive real number, including decimals like 7.25 or 0.003. The calculator works with any valid numeric input.

 

What if my leg is longer than my hypotenuse?

That’s geometrically impossible in a right triangle. The hypotenuse is always the longest side. If you encounter this situation, re-examine which side is actually the hypotenuse in your problem.

 

Is this calculator free to use?

Yes, the Right Triangle Calculator on Calculators4All is completely free with no signup, no subscription, and no limitations on usage.

 

How do I calculate the area of a right triangle?

The area formula is A = ½ × a × b — half the product of the two legs. The calculator computes this automatically, but it’s simple enough to do by hand as well.

 

What are the 45-45-90 and 30-60-90 special triangles?

A 45-45-90 triangle has legs of equal length, and the hypotenuse equals a leg times √2. A 30-60-90 triangle has sides in the ratio 1 : √3 : 2. These special triangles appear frequently in mathematics and are worth memorizing.

 

Can I use radians instead of degrees?

This calculator accepts angles in degrees only. To convert radians to degrees, multiply by 180/π. For a dedicated tool, try our radians to degrees converter.

 

How does the step-by-step solution help me?

Each step shows the formula name, the specific formula used, your values substituted in, and the final computed result. This helps you understand the math, verify the process, and learn for future problems — making it a study tool, not just an answer machine.

 

What if I know the area and one side?

This calculator doesn’t have a direct “area + side” input mode. However, you can easily find the other leg first: if area = ½ × a × b, then b = (2 × area) / a. Enter the two legs once you’ve calculated the missing one.

 

Can I use this calculator on my phone?

Yes. The calculator is fully responsive and works on smartphones, tablets, and desktop computers. The layout adjusts automatically for smaller screens.

 

Related Calculators

For more geometry and math tools, explore these related calculators on Calculators4All:

 
  1. Triangle Calculator — Solve any triangle (not just right triangles) using the Law of Sines and Cosines
  2. Pythagorean Theorem Calculator — Dedicated tool for a² + b² = c² calculations
  3. Trigonometry Calculator — Evaluate sin, cos, tan, and inverse functions
  4. Distance Calculator — Find distance between two points (which uses the Pythagorean theorem)
  5. Slope Calculator — Calculate slope, angle, and equation of a line
  6. Area Calculator — Compute area for various shapes
  7. Circle Calculator — Find circumference, area, diameter, and radius
  8. Angle Calculator — Convert between degrees and radians, find complementary/supplementary angles
  9. Unit Converter — Convert between different measurement units
  10. Square Root Calculator — Calculate square roots for any number
  11. Perimeter Calculator — Find perimeters for common shapes
  12. Volume Calculator — Calculate volumes of 3D shapes
  13. Isosceles Triangle Calculator — Solve isosceles triangles
  14. Equilateral Triangle Calculator — Solve equilateral triangles
  15. Rectangle Calculator — Calculate diagonal, area, and perimeter of rectangles
  16. Degrees to Radians Converter — Convert angle units
 

Final Thoughts

The right triangle is one of the most practical shapes you’ll ever work with. From building a deck to solving a physics problem, from reading a map to designing a circuit board — right triangles show up constantly in the real world. Having a reliable, fast, and educational tool to solve them makes a real difference.

 

The Right Triangle Calculator on Calculators4All goes beyond just giving you answers. The dynamic diagram helps you visualize the problem. The step-by-step solution teaches you the math. The multiple input modes handle whatever information you have. And the comprehensive output gives you every property you might need — all in one place.

 

Bookmark this calculator and use it whenever you need right triangle solutions. Whether you’re a student, professional, or DIY enthusiast, it’s a tool that saves time, reduces errors, and helps you understand the geometry behind the numbers.

 

Ready to solve your right triangle? Scroll up, enter your known values, and hit Calculate.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top