Trigonometry Calculator: Solve Right Triangles


demonstrate how to calculate using trigonometry

Solve for missing sides and angles of a right-angled triangle using our powerful online trigonometry calculator. Enter two known values to get instant results, a visual diagram, and a detailed explanation of the formulas.







Units for side lengths a, b, and c.
Invalid input combination. Please provide one angle and one side, or two sides.

Triangle Visualization

A visual representation of the calculated triangle.

What is Calculating with Trigonometry?

To calculate using trigonometry means to use the mathematical relationships between the angles and side lengths of triangles. Specifically for right-angled triangles, trigonometry allows us to find unknown side lengths or angles when we know just a few pieces of information. The core of this is a set of functions—Sine, Cosine, and Tangent—often remembered by the mnemonic SOH CAH TOA.

This powerful branch of mathematics is not just for geometry class; it’s essential in fields like physics, engineering, video game design, and navigation. If you need to determine a height, distance, or angle that’s difficult to measure directly, a right triangle calculator is the perfect tool.

Trigonometry Formula and Explanation (SOH CAH TOA)

The foundation for how to calculate using trigonometry in right triangles rests on three primary formulas. For a given angle (let’s call it α), the relationships are:

sin(α) = Opposite / Hypotenuse

cos(α) = Adjacent / Hypotenuse

tan(α) = Opposite / Adjacent

In addition to these, the Pythagorean Theorem is crucial for finding a missing side when two sides are known.

a² + b² = c²

Variables Table

The variables used in our right triangle calculator.
Variable Meaning Unit Typical Range
α (Angle A) One of the two non-right angles. Degrees (°) 0° – 90°
β (Angle B) The other non-right angle. Degrees (°) 0° – 90°
a (Opposite) The side length opposite Angle A. m, ft, cm, etc. Any positive number
b (Adjacent) The side length adjacent to Angle A. m, ft, cm, etc. Any positive number
c (Hypotenuse) The longest side, opposite the right angle. m, ft, cm, etc. Greater than a or b

Practical Examples

Example 1: Finding the Height of a Tree

You are standing 20 meters away from the base of a tree. You look up to the top of the tree, and the angle of elevation is 40°. How tall is the tree?

  • Inputs: Angle A (α) = 40°, Side b (adjacent) = 20 m
  • Formula: We want to find the Opposite side (a), and we know the Adjacent side (b). The tangent function connects these: tan(α) = a / b.
  • Calculation: a = b * tan(40°) = 20 * 0.839 = 16.78 m.
  • Result: The tree is approximately 16.78 meters tall. This shows how a trigonometry formula can solve real-world problems.

Example 2: Building a Ramp

You need to build a wheelchair ramp that reaches a height of 2 feet. The ramp can have a maximum angle of 5° with the ground. How long must the ramp’s surface (the hypotenuse) be?

  • Inputs: Angle A (α) = 5°, Side a (opposite) = 2 ft
  • Formula: We need to find the Hypotenuse (c), and we know the Opposite side (a). The sine function is what we need: sin(α) = a / c.
  • Calculation: c = a / sin(5°) = 2 / 0.087 = 22.99 ft.
  • Result: The ramp must be about 23 feet long. You can verify this with our Pythagorean theorem calculator once you find the adjacent side.

How to Use This Trigonometry Calculator

  1. Enter Known Values: Input any two known values from the triangle. You can provide two side lengths, or one side length and one angle.
  2. Select Value Types: Use the dropdown menus to specify what your entered values represent (e.g., ‘Angle A’, ‘Side a (opposite)’, ‘Side c (hypotenuse)’).
  3. Choose Units: Select the unit of measurement for your side lengths (e.g., meters, feet).
  4. Review Results: The calculator will instantly show you all missing sides and angles. The results include the two calculated angles and all three side lengths.
  5. Visualize: Refer to the dynamic chart to see a scaled drawing of your calculated triangle. This helps confirm that your inputs make sense.

Key Factors That Affect Trigonometry Calculations

  • Right Angle Assumption: All SOH CAH TOA calculations assume you are working with a right-angled (90°) triangle. For other triangles, you need the Law of Sines or Cosines.
  • Angle Units: Ensure you are consistent with angle units. Most scientific calculators, including this one, work in degrees. Be careful not to mix degrees and radians. Our radians to degrees converter can help.
  • Side Relationships: The terms ‘opposite’ and ‘adjacent’ are relative to the angle you are using. The side opposite Angle A is adjacent to Angle B.
  • Hypotenuse: The hypotenuse is always the longest side and is always opposite the right angle.
  • Rounding: Small rounding differences during intermediate steps can lead to slightly different final answers. Our calculator uses high-precision numbers internally.
  • Input Accuracy: The accuracy of your result is directly dependent on the accuracy of your initial measurements. A small error in the angle can lead to a large error in a calculated side length.

Frequently Asked Questions (FAQ)

1. What does SOH CAH TOA stand for?

SOH CAH TOA is a mnemonic to remember the main trigonometric ratios: Sine = Opposite / Hypotenuse, Cosine = Adjacent / Hypotenuse, and Tangent = Opposite / Adjacent.

2. Can I calculate using trigonometry for a non-right triangle?

No, the basic SOH CAH TOA rules only apply to right triangles. For other triangles, you must use more advanced rules like the Law of Sines or the Law of Cosines. The explanation of the SOH CAH TOA rules is fundamental to right-triangle problems.

3. How do I find a missing angle?

To find an angle, you use the inverse trigonometric functions: arcsin, arccos, or arctan (often written as sin⁻¹, cos⁻¹, tan⁻¹). For example, if you know sin(A) = 0.5, then A = arcsin(0.5) = 30°.

4. Why do my results show “Invalid”?

This typically happens if the input values are geometrically impossible. For example, providing a side length that is longer than the hypotenuse, or entering two angles that add up to more than 90°.

5. What’s the difference between ‘adjacent’ and ‘opposite’?

The ‘opposite’ side is across from the angle you’re considering. The ‘adjacent’ side is next to the angle, but is not the hypotenuse. These terms are relative to which angle (α or β) you are using for your calculation.

6. How many values do I need to solve a right triangle?

You need at least two values, and at least one of them must be a side length. Knowing only the three angles is not enough to determine the side lengths, as the triangle could be any size. An online trigonometry solver like this one makes the process easy.

7. Does the unit of measurement affect the angles?

No, the angles are independent of the units used for the sides. Whether you measure in meters or inches, the angles of the triangle will remain the same. The units only affect the calculated side lengths.

8. Can I find the area using this calculator?

While this calculator focuses on sides and angles, the area of a right triangle is simple to calculate once the sides are known: Area = 0.5 * a * b. You can use the calculated Side ‘a’ and Side ‘b’ for this. Or, check out our specific area of a triangle calculator.

Disclaimer: This calculator is for educational purposes. Please verify all calculations before use in critical applications.



Leave a Reply

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