Home › Calculators › Right Triangle Calculator

Right Triangle Calculator

Know two things about a right triangle? Pick them, enter the numbers and get the missing sides, both acute angles, the area, perimeter, altitude to the hypotenuse, inradius and circumradius, plus a labeled diagram drawn to scale and the SOH-CAH-TOA working.

Last updated:

In square units of the side lengths.

Angle unit
Enter your values to see the result.
Advertisement
Advertisement

How to use the Right Triangle Calculator

  1. Choose what you know from the list, e.g. two legs, or the hypotenuse and an angle.
  2. Enter the values. Angle α is opposite leg a; angle β is opposite leg b.
  3. Pick degrees or radians if you entered an angle.
  4. Press Solve triangle to see every side, angle and measurement.
  5. Check the diagram and steps, then copy the results or download the trig table.

Right triangle formulas

Label the legs a and b, the hypotenuse c, and the acute angles α (opposite a) and β (opposite b). The right angle sits between the legs.

FindFormulaExample (a = 3, b = 4)
Hypotenusec = √(a² + b²)√25 = 5
Missing lega = √(c² − b²)√(25 − 16) = 3
Angle αα = arctan(a ÷ b) = arcsin(a ÷ c)arctan(0.75) ≈ 36.87°
Angle ββ = 90° − α≈ 53.13°
Leg from anglea = c · sin α, b = c · cos α, a = b · tan α5 × sin 36.87° = 3
AreaA = a · b ÷ 26
PerimeterP = a + b + c12
Altitude to ch = a · b ÷ c2.4
Inradiusr = (a + b − c) ÷ 21
CircumradiusR = c ÷ 22.5

Special right triangles and Pythagorean triples

TriangleAnglesSide ratioWhere you meet it
45-45-9045°, 45°, 90°1 : 1 : √2Half of a square cut along the diagonal
30-60-9030°, 60°, 90°1 : √3 : 2Half of an equilateral triangle
3-4-536.87°, 53.13°, 90°3 : 4 : 5Squaring corners in carpentry (also 6-8-10, 9-12-15)
5-12-1322.62°, 67.38°, 90°5 : 12 : 13Whole-number test problems
8-15-1728.07°, 61.93°, 90°8 : 15 : 17Whole-number test problems
7-24-2516.26°, 73.74°, 90°7 : 24 : 25Whole-number test problems

Practical tips

  • Ladders and ramps: the ladder is the hypotenuse, the wall height is the leg opposite the ground angle. A 12 ft ladder at 75° reaches 12 × sin 75° ≈ 11.59 ft up the wall, with its foot 12 × cos 75° ≈ 3.11 ft out.
  • Check a square corner: measure 3 units along one side and 4 along the other; if the diagonal is exactly 5, the corner is 90°.
  • Calculator mode matters: sin 30 is 0.5 in degrees but −0.988 in radians. Choose the angle unit that matches your problem.
  • Keep precision: round only the final answers; rounding a side early changes the angles you compute from it.

Frequently asked questions

How do you solve a right triangle?

You need two values besides the 90° angle, and at least one must be a side. With two sides, use the Pythagorean theorem a² + b² = c² for the third side and an inverse trig function for the angles. With a side and an angle, use sine, cosine or tangent (SOH-CAH-TOA) for the other sides and β = 90° − α for the other angle.

What does SOH-CAH-TOA mean?

It is a memory aid for the trig ratios of an acute angle in a right triangle: Sine = Opposite ÷ Hypotenuse, Cosine = Adjacent ÷ Hypotenuse, Tangent = Opposite ÷ Adjacent.

Why can't I solve a right triangle from two angles?

Angles alone fix the shape but not the size: a 3-4-5 triangle and a 6-8-10 triangle have the same angles. You need at least one length to get the sides, area and perimeter.

What are the side ratios of 30-60-90 and 45-45-90 triangles?

A 30-60-90 triangle has sides in the ratio 1 : √3 : 2 (short leg, long leg, hypotenuse). A 45-45-90 triangle has two equal legs and a hypotenuse of leg × √2, about 1.4142 × the leg.

How do I find the area of a right triangle?

Multiply the two legs and divide by 2: Area = a × b ÷ 2, because the legs are the base and the height. A 3-4-5 triangle has an area of 3 × 4 ÷ 2 = 6.

What is the altitude to the hypotenuse?

It is the perpendicular height from the right angle to the hypotenuse: h = a × b ÷ c. It splits the hypotenuse into two segments, a² ÷ c and b² ÷ c, and creates two smaller triangles similar to the original.

Which side is the hypotenuse?

The hypotenuse is the side opposite the right angle and is always the longest side. If a value you enter as a leg is longer than the hypotenuse, the triangle is impossible and the calculator will tell you.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Pythagorean Theorem CalculatorSolve for the hypotenuse or a missing leg of a right triangle, with a diagram and steps.Triangle CalculatorSolve any triangle from SSS, SAS, ASA, AAS or right-triangle values: sides, angles, area, type.Trigonometry CalculatorSin, cos, tan, csc, sec, cot and inverses in degrees or radians, with exact values.Law of Sines and Cosines CalculatorSolve SSS, SAS, ASA, AAS and SSA triangles with the laws of sines and cosines, steps shown.Roofing Calculator (Roof Squares)Estimate roof area, squares, shingle bundles and cost from pitch.Square Root CalculatorFind square, cube and nth roots with simplified radical form and steps.Body Surface Area CalculatorCalculate body surface area in m² with the Du Bois, Mosteller, Haycock and other formulas.Area CalculatorFind the area of squares, rectangles, triangles, circles, trapezoids, ellipses and sectors.Volume CalculatorVolume of a cube, box, cylinder, sphere, cone, pyramid or capsule, in liters and gallons too.Surface Area CalculatorSurface area of a cube, box, cylinder, sphere, cone or pyramid, with lateral and base areas.Circle CalculatorEnter a circle's radius, diameter, circumference or area and get all the others.Slope CalculatorSlope, angle, line equation y = mx + b and distance from two points, with a graph.Midpoint CalculatorFind the midpoint of two points in 2D or 3D, or the missing endpoint from a midpoint.Distance Formula CalculatorDistance between two points in 2D or 3D with step-by-step work and an exact radical answer.Vector Calculator2D and 3D vectors: add, subtract, dot and cross product, magnitude, angle, unit vector, projection.Pascal's Triangle GeneratorGenerate Pascal's triangle up to row 30, highlight a row and expand (ax + by)ⁿ.Arc Length CalculatorArc length, sector area and chord from radius and angle, or solve for the radius or angle.Cylinder Volume CalculatorCylinder volume in liters, gallons and cubic units from radius or diameter, plus surface area.Regular Polygon CalculatorArea, perimeter, apothem, radius and angles of a regular polygon from any one measurement.Aquarium Volume CalculatorFish tank gallons, liters and water weight: rectangle, cylinder, bow-front and hexagon tanks.Tank Volume CalculatorTotal and filled volume of cylinder, rectangular and capsule tanks in gallons and liters.Circle Skirt CalculatorWaist radius, fabric yardage and cutting layout for full, half or quarter circle skirts.Ellipse CalculatorArea, perimeter (Ramanujan), eccentricity, foci and equation of an ellipse from its axes.Camera Field of View CalculatorAngle of view and frame size from focal length, sensor size and subject distance.Miter Angle CalculatorMiter saw angle for any polygon or corner, plus crown molding miter and bevel settings.Simplify Square Root CalculatorSimplify square, cube and nth roots to simplest radical form a√b, with steps.Interactive Unit CircleDrag an angle on the unit circle to see degrees, radians and exact sin, cos and tan. Printable chart.Cone Volume CalculatorVolume, slant height and surface area of a right cone from its radius and height.Perimeter CalculatorPerimeter of a square, rectangle, triangle, circle, trapezoid, polygon or sector, with a diagram.Point Slope Form CalculatorLine equation in point-slope form from a point and slope or two points, plus y = mx + b.Polar to Cartesian ConverterConvert polar coordinates (r, θ) to rectangular (x, y) with steps, a plot and bulk lists.Slope Intercept Form CalculatorGet y = mx + b from two points, a point and slope, or standard form, with steps and a graph.Sphere Volume CalculatorVolume and surface area of a sphere from radius, diameter or circumference, or the reverse.Trapezoid Area CalculatorArea, perimeter, median and missing base or height of a trapezoid, with a diagram.30-60-90 Triangle CalculatorEnter one side of a 30-60-90 triangle to get the other sides, area and perimeter in exact radical form.45-45-90 Triangle CalculatorSolve an isosceles right triangle from a leg or hypotenuse, with sides in exact √2 form.Complementary and Supplementary Angle CalculatorComplement, supplement and explement of any angle in degrees or radians, with diagrams.Coordinate Plane PlotterPlot points, segments and polygons on an interactive coordinate grid, or print blank planes.Inverse Trig Calculatorarcsin, arccos, arctan, arcsec, arccsc and arccot in degrees and radians, with exact values.Polygon Area from CoordinatesArea, perimeter and centroid of any polygon from its vertex coordinates (shoelace formula).Reference Angle CalculatorFind the reference angle and quadrant of any angle in degrees or radians, with a unit circle sketch.Tangent Line CalculatorFind the tangent and normal line to f(x) at a point, with the derivative, slope and a graph.Coterminal Angle CalculatorList positive and negative coterminal angles and the principal angle, in degrees and radians.Heron's Formula CalculatorFind a triangle's area from its three sides with Heron's formula, semi-perimeter and steps.Implicit Differentiation CalculatorFind dy/dx for any equation in x and y with steps, plus the slope and tangent at a point.
See all 46 Geometry & Trigonometry Calculators →