Skip to content
The site is in test mode. All features are free for now.
MathAgora

Triangle solver

Enter any three elements of a triangle and get the other sides and angles, the area, heights, medians, angle bisectors, incircle and circumcircle, with a step-by-step solution and a drawing.

Enter exactly three elements, including at least one side. Side aa is opposite angle Ξ±\alpha, bb opposite Ξ²\beta, cc opposite Ξ³\gamma.

Sides

Angles (degrees)

Filled in: 3 / 3

Examples

You can type decimals (2.5), fractions (3/4) or roots (√3, sqrt(2)).

ABCa = 3b = 4c = 536.9Β°53.1Β°90Β°

Dots: centroid, orthocentre, incentre and circumcentre.

AnswerSSS Β· scalene, right
aa33
bb44
cc55
α\alpha36.8699∘36.8699^\circ
β\beta53.1301∘53.1301^\circ
γ\gamma90∘90^\circ
PP1212
SS66
hah_a44
hbh_b33
hch_c125\frac{12}{5}β‰ˆ 2.4
mam_a732\frac{\sqrt{73}}{2}β‰ˆ 4.272
mbm_b13\sqrt{13}β‰ˆ 3.6056
mcm_c52\frac{5}{2}β‰ˆ 2.5
lal_a4103\frac{4\sqrt{10}}{3}β‰ˆ 4.2164
lbl_b352\frac{3\sqrt{5}}{2}β‰ˆ 3.3541
lcl_c1227\frac{12\sqrt{2}}{7}β‰ˆ 2.4244
rr11
RR52\frac{5}{2}β‰ˆ 2.5

Answer verified

  • The angles add up to 180Β°
  • The law of cosines holds for all three angles
  • Both area formulas agree (Β½bcΒ·sin Ξ± and Heron)

Step-by-step solution

  1. Three sides are given (SSS). First check the triangle inequality: each side must be shorter than the sum of the other two.
    3<4+5,4<3+5,5<3+43 < 4 + 5,\quad 4 < 3 + 5,\quad 5 < 3 + 4
  2. Find the angles with the law of cosines: cos⁑α=b2+c2βˆ’a22bc\cos\alpha = \dfrac{b^2 + c^2 - a^2}{2bc}, and so on.
  3. cos⁑α=42+52βˆ’322β‹…4β‹…5=45β‰ˆ0.8,Ξ±β‰ˆ36.8699∘\cos\alpha = \frac{4^2 + 5^2 - 3^2}{2\cdot 4\cdot 5} = \frac{4}{5} \approx 0.8,\quad \alpha \approx 36.8699^\circ
  4. cos⁑β=52+32βˆ’422β‹…5β‹…3=35β‰ˆ0.6,Ξ²β‰ˆ53.1301∘\cos\beta = \frac{5^2 + 3^2 - 4^2}{2\cdot 5\cdot 3} = \frac{3}{5} \approx 0.6,\quad \beta \approx 53.1301^\circ
  5. cos⁑γ=32+42βˆ’522β‹…3β‹…4=0,Ξ³=90∘\cos\gamma = \frac{3^2 + 4^2 - 5^2}{2\cdot 3\cdot 4} = 0,\quad \gamma = 90^\circ
  6. Area: S=12 bcsin⁑αS = \tfrac12\,bc\sin\alpha; checked with Heron's formula S=p(pβˆ’a)(pβˆ’b)(pβˆ’c)S = \sqrt{p(p-a)(p-b)(p-c)}, where pp is the semi-perimeter.
    S=12β‹…4β‹…5β‹…sin⁑36.8699∘=6,p=3+4+52=6S = \tfrac12\cdot 4\cdot 5\cdot\sin 36.8699^\circ = 6,\qquad p = \frac{3 + 4 + 5}{2} = 6
  7. Heights: ha=2Sah_a = \dfrac{2S}{a}, and so on.
    ha=4,hb=3,hc=125β‰ˆ2.4h_a = 4,\quad h_b = 3,\quad h_c = \frac{12}{5} \approx 2.4
  8. Medians: ma=122b2+2c2βˆ’a2m_a = \tfrac12\sqrt{2b^2 + 2c^2 - a^2}, and so on.
    ma=732β‰ˆ4.272,mb=13β‰ˆ3.6056,mc=52β‰ˆ2.5m_a = \frac{\sqrt{73}}{2} \approx 4.272,\quad m_b = \sqrt{13} \approx 3.6056,\quad m_c = \frac{5}{2} \approx 2.5
  9. Angle bisectors: la=2bccos⁑α2b+cl_a = \dfrac{2bc\cos\frac{\alpha}{2}}{b + c}, and so on.
    la=4103β‰ˆ4.2164,lb=352β‰ˆ3.3541,lc=1227β‰ˆ2.4244l_a = \frac{4\sqrt{10}}{3} \approx 4.2164,\quad l_b = \frac{3\sqrt{5}}{2} \approx 3.3541,\quad l_c = \frac{12\sqrt{2}}{7} \approx 2.4244
  10. Inradius r=Spr = \dfrac{S}{p}, circumradius R=a2sin⁑αR = \dfrac{a}{2\sin\alpha}.
    r=66=1,R=32sin⁑36.8699∘=52β‰ˆ2.5r = \frac{6}{6} = 1,\qquad R = \frac{3}{2\sin 36.8699^\circ} = \frac{5}{2} \approx 2.5
  11. Check: the angles add up to 180∘180^\circ, the law of cosines holds for all three angles, and both area formulas agree.