Right Triangle Calculator

Right Triangle Calculator

Solve any right triangle — enter 2 known values (at least 1 side)

A right triangle has one 90° angle. The side opposite the right angle is the hypotenuse (c); the other two sides are legs (a, b). This calculator uses the Pythagorean theorem (a² + b² = c²) and trigonometric ratios to determine all unknown sides, angles, area, and perimeter.
Live Triangle Diagram
Sides Vertex angles Right angle (90°)
Input Values
Units: Sig figs:
📐 Formulas & Reference
a² + b² = c²Pythagorean theorem
A + B = 90°Acute angle sum
sin A = a/cOpposite / hypotenuse
cos A = b/cAdjacent / hypotenuse
tan A = a/bOpposite / adjacent
Area = ½·a·bTriangle area
P = a + b + cPerimeter
h = ab/cAltitude to hypotenuse

Enter any 2 values including at least one side length (a, b, or c). The calculator solves all unknowns and shows the work.

Right Triangle Calculator: Solve Any Right Triangle Instantly

Have you ever stared at a geometry problem, a woodworking plan, or a construction blueprint and wondered how to find the missing side of a triangle? Maybe you know the height of a ramp and the distance it covers, but you need to find the length of the ramp’s surface. Or perhaps you know the angle of a roof pitch and one side, but need to calculate the rest.

 

This is where our Right Triangle Calculator comes to the rescue. Whether you are a student learning the Pythagorean theorem, a carpenter building a staircase, an engineer designing a mechanical part, or a DIYer framing a garden bed, this tool is designed to give you instant, accurate answers.

 

People use this calculator to save time, eliminate the frustration of manual math, and double-check their work. By simply entering two known values—like one side and an angle, or two sides—you can solve for every other measurement of the triangle. The best part? Our calculator doesn’t just give you the final number. It shows you a live, color-coded diagram of your triangle and provides a step-by-step breakdown of exactly how the math was done.

 

In this comprehensive guide, we will explain everything you need to know about right triangles, how the calculator works, the formulas behind it, and how to apply it to real-world situations.

 

What is a Right Triangle Calculator?

A Right Triangle Calculator is a specialized digital math tool designed to solve for the unknown sides, angles, area, and perimeter of a right-angled triangle. A right triangle is a three-sided shape where one of the interior angles is exactly 90 degrees (a right angle). The side directly opposite this 90-degree angle is called the hypotenuse, which is always the longest side of the triangle. The other two sides are called legs (or catheti).

 

The Purpose and Background

For centuries, mathematicians, builders, and astronomers have relied on right-triangle geometry. The famous Pythagorean theorem—discovered by the ancient Greek mathematician Pythagoras around 2,500 years ago—is the foundation of this calculator. It states that the square of the hypotenuse is equal to the sum of the squares of the other two sides (

).

 

While the math is ancient, applying it manually can be tedious and prone to simple arithmetic errors. The purpose of this calculator is to automate those calculations. You provide the data, and the tool applies the Pythagorean theorem and trigonometric ratios (sine, cosine, and tangent) to instantly fill in the missing blanks.

 

Why is it Important?

Right triangles are the building blocks of modern geometry, trigonometry, physics, and engineering. Without the ability to solve right triangles, we couldn’t calculate distances, design staircases, determine roof slopes, or even program video game graphics. This calculator makes advanced spatial math accessible to everyone, regardless of their math background.

 

How This Calculator Works

This calculator uses a logical deduction system. A right triangle has six main properties: three sides (

,

, and

), two acute angles (

and

), and the area. (The third angle is always fixed at 90 degrees).

 

Because the rules of a right triangle are strictly defined by mathematical laws, you only need two known values (at least one of which must be a side length) to calculate all the rest.

 

Inputs

You can enter any two of the following values into the calculator:

  • Side a: One of the legs (adjacent to angle B, opposite to angle A).
  • Side b: The other leg (adjacent to angle A, opposite to angle B).
  • Side c: The hypotenuse (the longest side, opposite the 90-degree angle).
  • Angle A: One of the acute angles (in degrees).
  • Angle B: The other acute angle (in degrees).
  • Area: The total space inside the triangle.
  • Perimeter: The total distance around the triangle.
 

Outputs

Once you enter your two inputs and click “Calculate,” the tool will output:

  • The missing side lengths.
  • The missing angles (in degrees).
  • The total area.
  • The total perimeter.
  • A visual SVG diagram of your specific triangle.
  • A step-by-step mathematical proof showing how the answers were reached.
 

Units and Variables

The calculator is unit-agnostic, meaning it works with any unit of measurement—inches, feet, meters, centimeters, or even miles. You can select your preferred unit from the dropdown menu, and the tool will append the correct unit suffix to your results. The variables used are standard mathematical notations:

,

,

for sides, and

,

,

for angles.

 

The Formulas Explained

If you want to understand the magic happening behind the scenes, here are the core mathematical formulas our calculator uses to solve your problems.

 

1. The Pythagorean Theorem (For finding sides)

If you know two sides and need to find the third, the calculator uses:

 
  • and
    : The two shorter sides (legs).
  • : The hypotenuse.
 

Example Calculation: If side

inches and side

inches, the calculator does this:

inches.

 

2. Trigonometric Ratios (For finding angles and sides)

If you know one side and one angle, the calculator uses Sine, Cosine, and Tangent (often remembered by the acronym SOH CAH TOA).

 
  • Sine (sin):
    * Cosine (cos):
    * Tangent (tan):
    Example Calculation: If you know angle
    and side
    meters, the calculator finds the hypotenuse (
    ) using:
    meters.
 

3. Area and Perimeter

  • Area:
    (half the base times the height).
  • Perimeter:
    (the sum of all three sides).
 

Common Mistakes in Manual Calculation

When people do this by hand, they often mix up the “opposite” and “adjacent” sides relative to the angle they are looking at. Another frequent error is forgetting to take the square root at the end of the Pythagorean theorem, leaving the answer as

instead of

. Our calculator eliminates these human errors.

 

How to Use the Calculator

Using the Right Triangle Calculator is incredibly straightforward. Follow these simple steps:

 
  1. Identify your knowns: Look at your problem and figure out which two values you know. Remember, at least one must be a side length.
  2. Enter the values: Type the numbers into the corresponding input fields (Side a, Side b, Angle A, etc.).
  3. Select your units: Use the “Units” dropdown to select meters, feet, inches, or leave it unitless.
  4. Choose significant figures: If you need highly precise engineering numbers, increase the “Sig figs” dropdown from 4 to 8.
  5. Click Calculate: Press the green “Calculate” button.
  6. Review the results: Scroll down to view the results grid, the step-by-step solution, and the live diagram.
 

Expected Results: You will instantly see all missing values populated in a grid. Given values are marked with a “Given” badge, while calculated values have a “Calc” badge. Below the grid, the step-by-step breakdown shows you exactly which formula was used and how the numbers were plugged in.

 

Example Calculations

To help you understand how versatile this tool is, here are three practical examples covering different input combinations.

 

Example 1: The Classic 3-4-5 Triangle (Two Sides)

Imagine you are laying out a foundation for a shed and you want to ensure the corners are perfectly square. You measure one leg at 3 feet and the other at 4 feet.

 
  • Input: Side
    , Side
    * Outputs:
    • Side
      (Hypotenuse) = 5 ft
    • Angle
      = 36.87°
    • Angle
      = 53.13°
    • Area = 6 ft²
    • Perimeter = 12 ft
 

Example 2: Finding a Missing Side with an Angle (Side + Angle)

A roofer knows the angle of a roof pitch is 30 degrees, and the length of the roof slope (the hypotenuse) is 15 feet. They need to find the height of the roof.

 
  • Input: Side
    , Angle
    * Outputs:
    • Side
      (Opposite) = 7.5 ft (This is the roof height!)
    • Side
      (Adjacent) = 12.99 ft
    • Angle
      = 60°
    • Area = 48.71 ft²
 

Example 3: Advanced Calculation using Area and One Side

A student is given a math problem where the area of a right triangle is 24 square centimeters, and one leg is 6 cm. They need to find the rest of the triangle’s dimensions.

 
  • Input: Area = 24, Side
    * Outputs:
    • Side
      = 8 cm (Calculated via
      )
    • Side
      = 10 cm
    • Angle
      = 36.87°
    • Angle
      = 53.13°
    • Perimeter = 24 cm
 

Quick Reference Table for Right Triangle Rules

If you know…
The calculator uses…
To find…
Two sides (
)
Pythagorean TheoremHypotenuse (
)
Hypotenuse + 1 leg (
)
Pythagorean TheoremMissing leg (
)
One side + one angle (
)
Trigonometry (SOH CAH TOA)All other sides & angles
Two angles (
)
Not solvable (needs a side)N/A
Area + one sideArea formula:
Missing leg, then uses Pythagorean

Benefits of Using a Right Triangle Calculator

Why should you bookmark this tool instead of reaching for a pencil and paper? Here are 12 key benefits:

 
  1. Instant Results: Get accurate calculations in milliseconds, saving you precious time on homework or job sites.
  2. Eliminates Math Errors: Say goodbye to simple arithmetic mistakes or forgetting to hit the square root button.
  3. Educational Step-by-Step Solutions: It doesn’t just give you the answer; it teaches you the math process, making it perfect for students studying for exams.
  4. Live Visual Diagram: See your triangle drawn to scale, which helps visually verify that your inputs make sense.
  5. Versatile Input Options: You aren’t restricted to just sides and angles. You can enter Area or Perimeter, and the calculator works backward to find the dimensions.
  6. Unit Flexibility: Seamlessly switch between metric and imperial units without having to do manual conversions.
  7. Precision Control: Adjust significant figures for high-precision engineering tasks or basic school math.
  8. Accessibility: Completely free to use, mobile-friendly, and works on any device with an internet connection.
  9. Boosts Confidence: Double-check your manual calculations to ensure your project or homework is flawless before submission.
  10. Simplifies Trigonometry: Makes SOH CAH TOA approachable for people who struggle with advanced math concepts.
  11. Time-Saving for Professionals: Contractors and drafters can run quick calculations on their phones while in the field.
  12. No Downloads Required: It runs entirely in your web browser. No apps to install, no software to buy.
 

Features of Our Calculator

Our Right Triangle Calculator is packed with user-focused features designed for the best experience:

 
  • Smart Validation: If you enter impossible values (like a hypotenuse that is shorter than a leg, or two angles that don’t sum to 90 degrees), the calculator politely alerts you rather than giving you “NaN” errors.
  • Given vs. Calculated Badges: The results grid clearly labels which numbers you typed in versus which numbers the tool generated, preventing confusion.
  • Color-Coded SVG Graphic: The triangle diagram is drawn dynamically using your specific numbers. The right angle is marked, and vertex labels (A, B, C) are clearly displayed.
  • Responsive Design: The layout automatically adjusts to fit your screen, whether you are on a desktop monitor, a tablet, or a smartphone.
  • Glass-Morphism UI: A modern, light-green transparent aesthetic that looks professional and is easy on the eyes.
 

Real-World Applications

Right triangles aren’t just abstract concepts in a textbook. They are used constantly in the real world. Here is how different industries use them:

 

Education

High school and college students use this tool to verify homework in geometry, trigonometry, pre-calculus, and physics classes. Teachers use it to quickly generate answer keys for quizzes. If you are exploring other geometric shapes, our Triangle Area Calculator or the general Pythagorean Theorem Calculator are great companion tools.

 

Construction and Carpentry

Carpenters use the “3-4-5” rule (a classic right triangle) to square up walls and foundations. Roofers use right triangles to calculate the length of rafters based on the pitch (angle) and the span of the house. Stair builders use them to calculate the rise (vertical height) and run (horizontal depth) of stairs. For determining vertical heights over distances, check out our Slope Calculator.

 

Engineering and Architecture

Civil engineers use right triangle trigonometry to design road gradients, ramps, and drainage systems. Mechanical engineers use them to calculate vector forces and the angles of mechanical levers.

 

Navigation and Surveying

Surveyors use triangulation to map out land boundaries. If a surveyor knows the distance to a landmark and the angle to it from two different points, they use right triangle math to pinpoint its exact location. Navigators use similar concepts for celestial navigation. For circular measurements, a Circle Calculator might also be useful.

 

DIY and Home Improvement

If you are building a wheelchair ramp, you must meet ADA compliance, which dictates a specific angle of incline (usually 4.8 degrees). By knowing the height of your step (one leg) and the required angle, you can use this calculator to find out exactly how long the ramp needs to be.

 

Advantages Over Manual Calculation

While a scientific calculator and a pad of paper can get the job done, our digital tool offers distinct advantages:

 
  • Contextual Logic: A standard calculator requires you to know which buttons to press (e.g., pressing “shift” and “sin” for arcsin). Our tool handles the logic; you just provide the data, and it decides whether to use sine, cosine, or the Pythagorean theorem.
  • Visual Feedback: A standard calculator doesn’t draw a picture. Seeing the triangle update in real-time helps you catch data entry errors instantly (e.g., if you type 500 instead of 5, the triangle will look wildly distorted).
  • All-in-One Output: Instead of writing down intermediate numbers and re-entering them to find the area or perimeter, our tool calculates everything simultaneously.
 

Limitations of the Calculator

To maintain trust and transparency, it is important to know what this tool cannot do:

 
  1. Only Solves Right Triangles: As the name implies, this tool only works for triangles with one 90-degree angle. If your triangle has angles of 60°, 60°, and 60° (equilateral), it will not work. For those, you would need an Oblique Triangle Calculator or the Law of Sines Calculator.
  2. Requires at Least One Side: You cannot solve a triangle by entering two angles alone. If you enter Angle A = 30 and Angle B = 60, there are infinitely many triangles that fit that description (they are mathematically “similar” but not “congruent”). The calculator will ask you for a side length.
  3. No 3D Geometry: This calculator handles 2D flat triangles. It does not calculate volumes, surface areas of pyramids, or 3D spatial coordinates. For 3D points, a Distance Formula Calculator is better suited.
  4. Degrees, Not Radians: The angle inputs are strictly in degrees. If you are working in calculus and have radians, you will need to convert them to degrees first.
 

Tips for Accurate Results

To get the most out of the calculator, follow these best practices:

 
  • Double-Check Your Labels: Ensure you know which side is your hypotenuse. It must always be labeled as Side
    . Side
    is opposite Angle
    , and Side
    is opposite Angle
    .
  • Use Decimals, Not Fractions: The calculator requires decimal numbers. If your measurement is
    inches, enter 4.5. If you need help converting fractions, you can use a Fraction Calculator.
  • Ensure Your Angle Sum Makes Sense: If you enter two angles, ensure they add up to less than 90 degrees. (In a right triangle, the two acute angles must sum exactly to 90 degrees).
  • Verify Real-World Feasibility: The hypotenuse must always be the longest side. If your calculated hypotenuse is shorter than one of your legs, you have made an input error.
 

Common Mistakes Users Make

Even with an automated tool, users can make mistakes in how they input data. Here are the most frequent blunders:

 
  1. Entering the Hypotenuse as a Leg: Users sometimes measure the longest side and type it into the “Side a” or “Side b” field. This will cause the calculator to throw an error because the math will violate the Pythagorean theorem.
  2. Mixing Up Units: Entering one side in inches and another in feet. Ensure all your linear measurements use the same unit before hitting calculate. If you need to convert, use our Length Conversion Calculator.
  3. Entering Radians: Forgetting that the calculator expects degrees. An angle of 1.5 is interpreted as 1.5 degrees, not 1.5 radians (which is about 85 degrees).
  4. Trying to Solve with Zero: Entering a zero for a side length. A triangle cannot have a side length of zero; it ceases to be a triangle.
 

Frequently Asked Questions (FAQs)

1. What is a right triangle? A right triangle is a specific type of triangle that contains exactly one 90-degree (right) angle. The side opposite the 90-degree angle is called the hypotenuse, and it is always the longest side. The other two sides are called legs.

 

2. How do I use the right triangle calculator? To use the calculator, simply enter any two known values into the input fields (for example, side a and side b, or side c and angle A). Ensure at least one of the values is a side length. Then, click “Calculate” to instantly see the missing sides, angles, area, and perimeter.

 

3. Can the calculator find the hypotenuse? Yes. If you enter the two shorter sides (legs) into the “Side a” and “Side b” fields, the calculator will automatically use the Pythagorean theorem (

) to calculate the length of the hypotenuse (Side c).

 

4. What is the Pythagorean theorem? The Pythagorean theorem is a mathematical rule stating that in a right triangle, the square of the hypotenuse is equal to the sum of the squares of the other two sides. The formula is written as

.

 

5. Does this calculator work for any type of triangle? No, this specific tool is programmed only for right triangles (triangles with a 90-degree angle). If you need to solve a triangle without a 90-degree angle, you would need a tool that uses the Law of Sines or Law of Cosines.

 

6. What units does the calculator use? The calculator is unit-agnostic. You can select from meters, centimeters, millimeters, kilometers, inches, feet, or yards using the dropdown menu. As long as you enter all your inputs in the same unit, the outputs will be in that same unit.

 

7. Can I find the area of a right triangle with this tool? Yes. The calculator automatically calculates the area for you. If you only know the area and one side, you can even enter those two values, and the calculator will work backward to find the missing sides and angles.

 

8. Why do I need to enter at least one side length? If you only enter two angles, there is no way to determine the size of the triangle. Two triangles can have the exact same angles but be entirely different sizes (similar triangles). A side length is required to “lock in” the scale of the shape.

 

9. How accurate is the right triangle calculator? The calculator uses standard JavaScript math functions and is highly accurate. You can control the precision of your results by changing the “Sig figs” (significant figures) dropdown, allowing up to 8 decimal places for engineering-level precision.

 

10. Can I use this calculator for roofing or carpentry? Absolutely. Carpenters, roofers, and DIYers frequently use this tool to calculate rafter lengths, stair stringers, and ramp inclines. Just ensure you measure accurately and use the correct units (like feet or inches).

 

11. What is the difference between a leg and a hypotenuse? In a right triangle, the two sides that form the 90-degree angle are called the legs (often labeled side a and side b). The side directly across from the 90-degree angle is the hypotenuse (labeled side c), and it is always the longest side.

 

12. How do I calculate angles in a right triangle? If you know two sides, you can find the angles using trigonometry. For example, if you know the opposite side and the adjacent side, you use the tangent function:

. Our calculator does this automatically.

 

13. What does “SOH CAH TOA” mean? It is a memory aid for trigonometry in right triangles. SOH: Sine = Opposite / Hypotenuse. CAH: Cosine = Adjacent / Hypotenuse. TOA: Tangent = Opposite / Adjacent. These formulas are how the calculator finds angles when sides are known.

 

14. Can the calculator solve for a side if I only know the perimeter and one side? Yes. The calculator features advanced logic. If you enter the perimeter and one side, it sets up an algebraic equation using the Pythagorean theorem to solve for the missing sides, and then calculates the angles and area.

 

15. Why did the calculator give me an error message? The calculator will show an error if your inputs violate geometric laws. For example, if the hypotenuse you entered is shorter than one of the legs, or if the two angles you entered do not add up to 90 degrees, the triangle is mathematically impossible.

 

16. Is this right triangle calculator free to use? Yes, this tool is 100% free to use. There are no hidden fees, subscriptions, or limits on how many calculations you can perform. No registration is required.

 

17. Can I use the calculator on my mobile phone? Yes, the calculator is fully responsive. It will automatically adjust its layout to fit your smartphone or tablet screen, making it perfect for doing quick math out in the field or on a job site.

 

18. Does the calculator show the steps? Yes. One of the best features is the “Step-by-Step Solution” section. It shows you exactly which formula was used, how your numbers were plugged into the formula, and the intermediate math steps.

 

19. How do I find the perimeter of a right triangle? The perimeter is simply the sum of all three sides (

). Once the calculator determines all three side lengths, it automatically adds them together and displays the perimeter in the results grid.

 

20. What if my triangle has no 90-degree angle? If your triangle does not have a 90-degree angle, you cannot use the Pythagorean theorem or SOH CAH TOA. You will need to use the Law of Sines or Law of Cosines to solve it, which require different calculators designed for oblique triangles.

 

Related Calculators

To further assist you with your math, engineering, or construction needs, we recommend checking out these other helpful tools on Calculators4All.com:

 
  1. Pythagorean Theorem Calculator: Specifically focuses on finding the hypotenuse or a missing leg using
    .
  2. Triangle Area Calculator: A general tool for finding the area of any triangle (right, equilateral, isosceles, or scalene).
  3. Slope Calculator: Calculates the slope, angle, and distance between two points—perfect for roof pitches and ramps.
  4. Circle Calculator: Find the area, circumference, or diameter of a circle.
  5. Distance Formula Calculator: Calculates the straight-line distance between two points in 2D or 3D space.
  6. Angle Conversion Calculator: Convert between degrees and radians quickly.
  7. Law of Sines Calculator: For solving non-right triangles when you know two angles and a side.
  8. Law of Cosines Calculator: For solving non-right triangles when you know all three sides or two sides and an angle.
  9. Fraction Calculator: Great for converting carpentry fractions (like
    inches) into decimals for use in this triangle calculator.
  10. Scientific Calculator: For performing complex manual math, including sine, cosine, and tangent functions.
 

Final Thoughts

The right triangle is one of the most important shapes in mathematics and the physical world. From the foundations of ancient pyramids to the angles of modern solar panels, understanding and calculating its properties is essential.

 

Our Right Triangle Calculator is designed to make this process as effortless, accurate, and educational as possible. Whether you are checking math homework, framing a house, or designing a mechanical component, you can trust this tool to deliver precise, step-by-step results every single time.

 

Don’t let trigonometry slow you down. Bookmark this page, enter your values, and let our calculator do the heavy lifting for your next project!

Leave a Comment

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

Scroll to Top