Home › Calculators › Triangle Calculator

Triangle Calculator

Enter the three values you know, whether three sides, two sides and the angle between them, two angles and a side, or two values of a right triangle, and the calculator solves the rest: every side and angle, the area, perimeter, heights, medians and the triangle type, with a to-scale drawing.

Last updated:

What do you know?

Side a is opposite angle A, side b opposite angle B, side c opposite angle C.

°
°
°
Enter your values to see the result.
Advertisement
Advertisement

How to use the Triangle Calculator

  1. Choose what you know: SSS, SAS, ASA, AAS or right triangle.
  2. Enter the values. Side a is opposite angle A, b opposite B and c opposite C. Angles are in degrees.
  3. Read the solution: area, perimeter, all sides and angles and the type appear instantly.
  4. Check the drawing and steps to see how each value was found.
  5. Download the table of heights and medians or copy the results.

Triangle formulas used

RuleFormulaUsed for
Angle sumA + B + C = 180°Third angle (ASA, AAS, right)
Law of cosinesc² = a² + b² − 2ab·cos CSSS angles, SAS third side
Law of sinesa / sin A = b / sin B = c / sin CASA and AAS sides
Pythagorean theorema² + b² = c² (C = 90°)Right triangles
Area½ab·sin C = √(s(s−a)(s−b)(s−c))Every case
Height to side ahₐ = 2 · Area ÷ aAltitudes
Median to side amₐ = ½√(2b² + 2c² − a²)Medians
Inradius / circumradiusr = Area ÷ s, R = a ÷ (2 sin A)Inscribed and circumscribed circles

Special right triangles

TriangleAnglesSide ratioArea (shortest leg = 1)
45-45-9045°, 45°, 90°1 : 1 : √2 (≈ 1.4142)0.5
30-60-9030°, 60°, 90°1 : √3 : 2 (≈ 1.7321)≈ 0.8660
3-4-5≈ 36.87°, 53.13°, 90°3 : 4 : 56 (for legs 3 and 4)
5-12-13≈ 22.62°, 67.38°, 90°5 : 12 : 1330 (for legs 5 and 12)

Naming convention: vertices are capital letters and each side uses the lower-case letter of the vertex opposite it, so side a never touches vertex A. In right-triangle mode the right angle is C, so c is the hypotenuse.

Frequently asked questions

What do SSS, SAS, ASA and AAS mean?

They describe which three values you know. SSS: three sides. SAS: two sides and the angle between them. ASA: two angles and the side between them. AAS: two angles and a side that is not between them. Each of these fixes exactly one triangle.

Why is SSA (two sides and a non-included angle) not here?

Two sides and an angle that is not between them can match zero, one or two different triangles (the ambiguous case), so it does not determine a unique answer. Use SAS if you know the angle between the two sides.

What is the law of cosines?

c² = a² + b² − 2ab·cos C. It generalizes the Pythagorean theorem to any triangle and is used to find a side from two sides and the included angle (SAS) or an angle from three sides (SSS).

What is the law of sines?

a ÷ sin A = b ÷ sin B = c ÷ sin C = 2R, where R is the circumradius. Once you know two angles and one side (ASA or AAS), it gives the other two sides.

How is the area calculated?

The calculator uses Area = ½ · a · b · sin C, which works for any triangle once two sides and the angle between them are known. For three sides it gives the same result as Heron's formula.

Why do my three sides not make a triangle?

Every side must be shorter than the other two added together (the triangle inequality). Sides 2, 3 and 6 fail because 2 + 3 is less than 6, so they cannot close into a triangle.

How are triangles classified?

By sides: equilateral (all equal), isosceles (two equal) or scalene (none equal). By angles: acute (all under 90°), right (one exactly 90°) or obtuse (one over 90°). The angles of any triangle always add up to 180°.

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.Area CalculatorFind the area of squares, rectangles, triangles, circles, trapezoids, ellipses and sectors.Slope CalculatorSlope, angle, line equation y = mx + b and distance from two points, with a graph.Scientific CalculatorTrig, logs, powers and more in your browser.Angle ConverterConvert degrees, radians, gradians, arcminutes, mils, turns and DMS, with a unit circle.Arc Length CalculatorArc length, sector area and chord from radius and angle, or solve for the radius or angle.Degrees Minutes Seconds ConverterConvert decimal degrees to DMS and back for angles and GPS coordinates, with N/S/E/W.Low Poly GeneratorTurn a photo or a random gradient into low-poly triangle art. Download PNG, JPG or SVG.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.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.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)ⁿ.Trigonometry CalculatorSin, cos, tan, csc, sec, cot and inverses in degrees or radians, with exact values.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.Law of Sines and Cosines CalculatorSolve SSS, SAS, ASA, AAS and SSA triangles with the laws of sines and cosines, steps shown.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.Right Triangle CalculatorSolve a right triangle from any two values: sides, angles, area, perimeter and altitude.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.Tangent Line CalculatorFind the tangent and normal line to f(x) at a point, with the derivative, slope and a graph.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.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.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.
See all 46 Geometry & Trigonometry Calculators →