Similar Triangles Calculator
Find the missing sides of a similar triangle, test whether two triangles are similar (AA, SAS or SSS), solve a line drawn parallel to one side of a triangle, split a right triangle with its altitude, measure tall things with shadows or a mirror, and see how scale factor changes perimeter and area. Every result comes with a labeled diagram and every step shown, in metric or Imperial units.
Background
Two triangles are similar when they have the same shape but not necessarily the same size: one is an enlargement, reduction or copy of the other. Matching angles are equal, and matching sides are all in the same ratio, called the scale factor k. That single idea turns many hard problems into one proportion: d / a = e / b = f / c = k.
How to use this calculator
- Choose Find Missing Sides when you know all three sides of one triangle and one side of a similar triangle. You get the other two sides, the scale factor, the perimeters, the areas and the angles.
- Choose Are They Similar? to test two triangles with AA, SAS or SSS. You get a yes or no, the reason, and a shape overlay that shows whether they really match.
- Choose Parallel Line for a line DE drawn parallel to the base BC. Fill in the lengths you know, leave the others blank, and the rest are found. It also tells you when DE cannot be parallel.
- Choose Shadows & Mirrors to find the height of a tree, tower or pole from a shadow, or from a mirror on the ground.
- Choose Right Triangle Altitude for a right triangle with the altitude dropped to the hypotenuse. Give any two or more of the six lengths and the rest are found, with the three similar triangles pulled apart so you can see why it works.
- Choose Scale & Area to see how a scale factor changes sides, perimeter and area. Give a scale factor, matching sides, both perimeters or both areas, and get everything else.
- Set the unit, how close counts as equal and the rounding, then click Calculate. You get the result, a plain-language callout, labeled diagrams and every step with your numbers substituted.
How similar triangles work
Similar triangles have the same shape: all three pairs of matching angles are equal, and all three pairs of matching sides are in the same ratio, the scale factor k.
Matching sides sit opposite equal angles. Pair shortest with shortest, middle with middle, longest with longest, and write the proportion d/a = e/b = f/c = k.
To find a missing side, find k from the one pair you know (k = new side ÷ matching old side), then multiply every other side of the first triangle by k.
You can prove similarity with AA (two equal angles), SAS (two sides in proportion with the included angle equal) or SSS (all three sides in proportion). SSA is not a valid test.
A line parallel to one side of a triangle cuts off a smaller, similar triangle. It splits the other two sides in the same proportion: AD/AB = AE/AC = DE/BC. If D and E are midpoints, DE is half the base.
Anything that casts a shadow at the same moment makes a right triangle with the same sun angle, so height ÷ shadow is the same for everything. A mirror on the ground gives the same equal-angle triangles.
In a right triangle, the altitude from the right angle to the hypotenuse makes two smaller right triangles that are similar to each other and to the whole. This gives h² = p·q and a² = q·c, b² = p·c, and the two small triangles' areas add up to the big one (Pythagoras again).
Lengths scale by k and areas scale by k². Perimeters scale by k, and for similar solids volumes scale by k³. A scale factor below 1 shrinks the triangle.
If the ratios of matching measurements do not agree (or the angles differ), the triangles are not similar, even if they look close.
Formulas & Equations Used
Scale factor: k = d / a = e / b = f / c
Missing side: d = k · a, e = k · b, f = k · c
Perimeter and area ratios: P₂ / P₁ = k, Area₂ / Area₁ = k², k = √(Area₂ / Area₁)
Angles from sides (law of cosines): A = arccos[(b² + c² − a²) / (2bc)]
Area from three sides (Heron): s = (a + b + c)/2, Area = √[s(s − a)(s − b)(s − c)]
Third side from SAS: c = √(a² + b² − 2ab·cos C)
Third angle: C = 180° − A − B
Parallel line (DE ∥ BC): AD/AB = AE/AC = DE/BC = r, AD/DB = AE/EC
Altitude to the hypotenuse (right angle at C): h² = p·q, a² = q·c, b² = p·c, ab = ch, c = p + q
Indirect measurement: h₂ / h₁ = l₂ / l₁, θ = arctan(h₁ / l₁)
Example Problems & Step-by-Step Solutions
Example 1 — Missing sides
Triangle 1 has sides a = 6, b = 8, c = 10. Triangle 2 is similar, and its side e = 12 matches b.
Step: k = e ÷ b = 12 ÷ 8 = 1.5. Then d = 1.5 × 6 and f = 1.5 × 10.
Result: d = 9 and f = 15. The perimeter grows from 24 to 36 (×1.5) and the area from 24 to 54 (×1.5² = 2.25).
Example 2 — SSS: a near miss
Are triangles with sides 4, 6, 9 and 6, 9, 13 similar?
Step: Match shortest with shortest: 6 ÷ 4 = 1.5, 9 ÷ 6 = 1.5, 13 ÷ 9 = 1.444.
Result: The ratios are not all equal (the last is 3.7% lower), so the triangles are not similar.
Example 3 — AA, angles in any order
Triangle 1 has angles 35° and 80°. Triangle 2 has angles 80° and 65°.
Step: Third angles: 180° − 35° − 80° = 65° and 180° − 80° − 65° = 35°. Sorted, both are 35°, 65°, 80°.
Result: Same three angles, so the triangles are similar by AA, even though they were listed in a different order.
Example 4 — SAS
One triangle has sides 5 and 8 with a 60° angle between them. Another has sides 7.5 and 12 with a 60° angle between them.
Step: 7.5 ÷ 5 = 1.5 and 12 ÷ 8 = 1.5, and the included angles are equal. The law of cosines gives third sides 7 and 10.5.
Result: Similar by SAS with k = 1.5, and the third sides agree: 10.5 ÷ 7 = 1.5.
Example 5 — A parallel line
In triangle ABC, DE ∥ BC with AD = 6, DB = 4, AE = 9 and BC = 20.
Step: AB = 6 + 4 = 10, so r = AD ÷ AB = 0.6. Then AC = AE ÷ r = 9 ÷ 0.6 = 15, and DE = r × BC = 0.6 × 20.
Result: AC = 15, so EC = 15 − 9 = 6, and DE = 12. Check: AD/DB = 6/4 = 1.5 and AE/EC = 9/6 = 1.5.
Example 6 — Shadows
A 1.5 m child casts a 2 m shadow at the moment a building casts a 40 m shadow (same sunlight).
Step: h₂ ÷ h₁ = l₂ ÷ l₁, so h₂ = 1.5 × 40 ÷ 2.
Result: The building is 30 m tall. The sun is at arctan(1.5 ÷ 2) = 36.87° above the horizon.
Example 7 — The mirror trick
Your eyes are 1.5 m high and you stand 2.5 m from a mirror on the ground. You see the top of a flagpole in it, and the mirror is 20 m from the pole.
Step: The two right triangles share an angle, so height ÷ distance matches: H = 1.5 × 20 ÷ 2.5.
Result: The flagpole is 12 m tall.
Example 8 — Areas give the scale factor
Two similar triangles have areas 12 and 75. A side of the first is 4, and its perimeter is 14.
Step: Area scales by k², so k = √(75 ÷ 12) = √6.25 = 2.5.
Result: The matching side is 4 × 2.5 = 10 and the perimeter is 14 × 2.5 = 35.
Example 9 — The altitude of a right triangle
A right triangle has legs a = 6 and b = 8. An altitude is dropped from the right angle to the hypotenuse.
Step: c = √(6² + 8²) = 10. Since a² = q × c, q = 36 ÷ 10 = 3.6, and b² = p × c gives p = 64 ÷ 10 = 6.4. Then h = √(p × q) = √(6.4 × 3.6) = √23.04.
Result: h = 4.8, p = 6.4, q = 3.6. Check: ½ab = 24 and ½ch = ½ × 10 × 4.8 = 24.
Frequently Asked Questions
What is the difference between similar and congruent triangles?
Congruent triangles are identical in shape and size (scale factor 1). Similar triangles only need the same shape, so every congruent pair is similar, but most similar pairs are not congruent.
Which sides match which?
Matching sides sit opposite equal angles. In practice, pair the shortest side with the shortest, the middle with the middle and the longest with the longest. Getting this pairing wrong is the most common reason a proportion gives a wrong answer.
What is the least information I need to prove similarity?
Two equal angles (AA), or two pairs of sides in proportion with the included angle equal (SAS), or all three pairs of sides in proportion (SSS). AAA adds nothing beyond AA because the third angle is forced.
Why is SSA not a valid test?
Two sides and an angle that is not between them can fit two different triangles (the ambiguous case), so equal SSA data does not guarantee the same shape. Use SAS, which has the angle between the two sides.
Why does area grow by k² but the perimeter only by k?
Perimeter is a length, so it scales like every side. Area stretches in two directions at once, so it scales twice. Triple the sides and nine copies of the small triangle tile the big one.
Why does a parallel line create similar triangles?
Parallel lines make corresponding angles equal (the angles at D and B, and at E and C), and both triangles share the angle at A. That is AA, so △ADE ∼ △ABC and all three ratios AD/AB, AE/AC and DE/BC are equal.
How accurate is the shadow method?
It is exact when the measurements are exact and the ground is level. Measure both shadows from the base of each object at the same moment, keep the objects vertical, and measure to the tip of the shadow.
Why does the mirror method work?
A mirror reflects light at the same angle it arrives. The ray from your eye and the ray to the top of the object leave the ground at equal angles, so the two right triangles are similar.
Why does the altitude of a right triangle make similar triangles?
The altitude creates two right angles at its foot, and each small triangle shares one acute angle with the big triangle. Two equal angles (AA) make all three similar, so ratios such as c/b = b/p hold, which gives b² = p·c and h² = p·q.
What does the tolerance setting do?
Real measurements are rounded. Tolerance sets how close two ratios or angles must be to count as equal: exact (0.01%, 0.01°), rounded numbers (0.5%, 0.1°) or loose (2%, 0.5°).
Do I have to use the same unit for every length?
Yes, within one calculation. Scale factors are unit-free ratios, but a pair of matching sides must be in the same unit. The unit setting only labels your results; it never converts numbers you have already typed.