Triangle solving: formulas, diagrams and ambiguous cases
Enter exactly three values, including at least one side, and leave the other three blank. Side a is opposite angle A, b opposite B and c opposite C. Use one length unit throughout. Choose degrees or radians before entering angles; radians accept pi/2, pi/4 and 2*pi/3 as well as numbers.
Choose three measurements and match the labels
A plane triangle has three sides a, b, c and three opposite interior angles A, B, C. Enter exactly three known values with at least one side. Three sides give SSS; two sides and their included angle give SAS. Two angles and a side give ASA or AAS. Two sides and a non-included angle give SSA, which can have zero, one or two solutions. Three angles alone determine shape but not absolute size, so they are insufficient for this tool. Side lengths must be positive and use the same unit.
Use the laws of sines and cosines
The law of sines states a/sin(A)=b/sin(B)=c/sin(C). It is useful when a side and its opposite angle are known, and for ASA or AAS after finding the third angle. The law of cosines states a²=b²+c²−2bc cos(A), with cyclic versions for the other sides. It solves SSS or SAS. Interior angles add to 180° or π radians. Choose the angle unit before typing; 60 degrees and π/3 radians describe the same angle, while the number 60 in radian mode is outside the supported interior-angle range.
Understand zero, one and two SSA solutions
With sides a and b and angle A known, sin(B)=b sin(A)/a. A ratio above one gives no real triangle. A valid inverse sine can have a second candidate B=180°−arcsin(b sin(A)/a), but each candidate must leave a positive third angle. With a=7, b=10 and A=30°, two triangles are possible. With a=5, b=10 and A=30°, B=90° gives one. With a=2, b=10 and A=30°, none exists. The tool reports every admissible branch instead of silently choosing the acute one. Rounded input measurements can change a boundary case.
Find area and perpendicular altitudes
For semiperimeter s=(a+b+c)/2, Heron’s formula is Δ=√[s(s−a)(s−b)(s−c)]. If two sides and their included angle are known, Δ=bc sin(A)/2. The altitude to side a is h_a=2Δ/a, with analogous expressions for b and c. An altitude is perpendicular to the base or its extension; it is not generally the same as a median. A 3–4–5 triangle has perimeter 12 and area 6. If lengths are metres, area is in square metres and altitudes remain in metres.
Compare medians, inradius and circumradius
A median joins a vertex to the midpoint of the opposite side. Its length is m_a=√(2b²+2c²−a²)/2, with cyclic versions, and all three medians meet at the centroid. The inradius is r=Δ/s; its circle touches all three sides. The circumradius is R=abc/(4Δ)=a/(2sin(A)); its circle passes through the vertices. The incenter and circumcenter are different concepts and generally occupy different points. In an obtuse triangle, the circumcenter lies outside the triangle. These measurements describe a nondegenerate Euclidean triangle.
Check validity, precision and save both solutions
The sum of any two sides must exceed the third; equality is a degenerate line, not a triangle. Interior angles must be positive and smaller than 180° or π. Numeric inputs support up to 50 coefficient digits or digits per fraction component and exponents from −40 to +40. Radians accept controlled pi notation such as 2*pi/3, not arbitrary expressions. The solver uses stable numerical forms for thin triangles, but results remain approximations. Review the solution count, then expand the full numeric details or copy, download CSV or print the report, especially when two rounded solutions look similar.
Use Scientific Calculator for related trigonometric checks with matching angle units. Root Calculator explains the square roots in geometric formulas, and Exponent Calculator helps with squared lengths and area units. Ratio Calculator supports similarity and scale comparisons; Percentage Calculator helps describe relative changes between measurements. For common solids such as cones and rectangular tanks, use Volume Calculator for cubic measurements and capacity.
ISO 80000-2:2019 provides mathematical notation context, not certification. BIPM SI Brochure defines SI unit conventions, including radians and coherent length and area units. OpenStax — Law of Sines explains the law of sines and ambiguous cases; OpenStax — Law of Cosines and Heron covers the law of cosines and Heron’s area formula. These are Euclidean plane-triangle formulas, not spherical or ellipsoidal geodesic calculations.
Common questions
Which measurements do I need?
Enter exactly three of a, b, c, A, B, C, including at least one side. SSS, SAS, ASA, AAS and SSA are supported. Three angles alone do not determine an absolute scale.
Why does the result say no triangle?
Positive inputs can still contradict triangle inequalities or leave no positive third angle. Degenerate triangles are excluded. Check the opposite side–angle labels and whether rounded inputs changed a boundary.
Why are there two solutions?
SSA can admit an acute and an obtuse candidate for an unknown angle. Both must satisfy the other measurements and leave a positive third angle. The tool shows both valid branches.
Can I enter radians involving pi?
Yes. Select radians and use pi/2, pi/4 or 2*pi/3, as well as decimal or fractional numeric values. Arbitrary expressions such as pi minus another number are not supported.
What units are the outputs in?
Use one length unit for every side. Perimeter, radii, medians and altitudes use that length unit; area uses its square. The calculator does not convert mixed input units automatically.
Are results exact, and are inputs uploaded?
Computed measurements are numerical approximations with rounded displays and fuller numeric details. Both SSA solutions remain available in the report. Calculations run in your browser without uploading inputs for computation.
Explore related tools
- Right Triangle Calculator
- Pythagorean Theorem Calculator
- Surface Area Calculator
- Circle Calculator
- Distance Calculator
- Area Calculator
- Slope Calculator
- Volume Calculator
- Confidence Interval Calculator
- Z-score Calculator
- Permutation and Combination Calculator
- Mean, Median, Mode & Range Calculator
- Statistics Calculator
- Probability Calculator
- Sample Size Calculator
- Number Sequence Calculator
- Standard Deviation Calculator
- Random Number Generator
- Scientific Notation Calculator
- Big Number Calculator
- Root Calculator
- Log Calculator
- Matrix Calculator
- Rounding Calculator
- Exponent Calculator
- Fraction Calculator
- Scientific Calculator
- Percentage Calculator
- Percent Error Calculator
- Quadratic Formula Calculator
- Least Common Multiple Calculator
- Greatest Common Factor Calculator
- Factor Calculator
- Ratio Calculator