Triangle Congruence & Similarity Calculator
Enter the three sides of two triangles in any order. See their exact relation, overlay the shapes, and check which scale factors fit all three measured sides within one tolerance.
Compare two triangles by their sides
Check exact congruence and similarity, then see what the measured side tolerance allows.
Measured lengths
Enter three sides per triangle in any order and use one length unit. Triangle A is the reference. The tolerance applies to each measured side of B.
A common scale fits within the entered tolerance.
Measurement fit
- Shared scale range
- [1.97, 2.0125]
- Minimum tolerance for any scale
- 0.155555555556
- Minimum tolerance at unit scale
- 5.1
Unit scale exceeds the entered tolerance.
Triangle overlay and scale bands
- Triangle A
- Triangle B
Matched sides and signed residuals
Shortest sides
A side 1 3 · B side 1 6.1
- Nominal ratio B/A
- 2.033333333333
- Allowed scale
- [1.95, 2.116666666667]
- B minus best-fit A
- 0.133333333333
Middle sides
A side 2 4 · B side 2 7.8
- Nominal ratio B/A
- 1.95
- Allowed scale
- [1.8875, 2.0125]
- B minus best-fit A
- -0.155555555556
Longest sides
A side 3 5 · B side 3 10.1
- Nominal ratio B/A
- 2.02
- Allowed scale
- [1.97, 2.07]
- B minus best-fit A
- 0.155555555556
Export the triangle comparison
Save each correspondence, scale interval and best-fit residual as exact fractions.
View CSV text
How to use this calculator
- Enter three positive sides of triangle A and three of triangle B in one length unit, in any order.
- Enter the absolute tolerance applying to each B-side measurement. Use zero to compare the entered values exactly.
- Review the range of common multipliers and the minimum tolerances for unrestricted and unit scale.
- Compare the measured and best-fit overlays. Use Scale ranges to inspect each side band, then download exact side ratios and residuals.
The Formula
The mathematical logic powering this calculation is:
Sort each triangle’s sides from shortest to longest. All three lengths must be positive and the two shortest must add to more than the longest. Match the sides in sorted order. Equal corresponding lengths give SSS congruence. Equal ratios Bᵢ/Aᵢ give SSS similarity. The common ratio is the multiplier that maps A to B.
Take A as fixed and let each side of B vary within the same absolute tolerance t. For side pair i, a positive multiplier s is allowed when |Bᵢ − sAᵢ| ≤ t. This gives a band from max(0, Bᵢ−t)/Aᵢ through (Bᵢ+t)/Aᵢ, with zero excluded. Intersect the three bands. If any positive scale is possible, sorting gives a valid assignment: swapping two crossed matches between ordered measurements and ordered target lengths does not increase the larger error.
The smallest tolerance for some scale occurs when the bands first intersect. Comparing each lower endpoint against each upper endpoint gives t* = maxᵢⱼ |BᵢAⱼ − BⱼAᵢ|/(Aᵢ+Aⱼ) across matched side pairs. The best-fit scale minimizes the largest absolute side difference. At unit scale the minimum tolerance is maxᵢ |Bᵢ−Aᵢ|. The ledger shows each signed residual Bᵢ − s₀Aᵢ at the best-fit scale s₀.
The overlays align longest sides on a common axis and put each shortest side on the left. The best-fit view scales A by s₀. Input lengths and tolerance use a common unit and up to six decimals through 1 billion. Use zero tolerance for exact arithmetic classification. Nominal side sets must already make valid triangles. Exact fractions determine all relationships, while the drawing and displayed decimals use approximate coordinates.Worked Example
If you input:
- Triangle A: 3, 4, 5
- Triangle B: 6.1, 7.8, 10.1
- B tolerance: ±0.25
Result:
The nominal sides are unequal and their ratios differ. With ±0.25 tolerance, scales from 1.97 through 2.0125 fit all three side pairs. The least tolerance for any scale is 7/45, reached at scale 179/90. Unit scale needs a tolerance of 5.1.
Frequently Asked Questions
Can I enter the sides in different orders?
Yes. The calculator pairs the shortest, middle and longest sides by length and lists their original order.
Are similar triangles always congruent?
A common side ratio makes the shapes similar. They are also congruent when that ratio is exactly 1, so every matched length agrees.
What does the minimum tolerance mean?
It is the smallest common absolute change permitted per side of B that makes its lengths consistent with some scaled copy of A.
Why does the worksheet calculate a best-fit scale when no scale qualifies?
The best-fit scale minimizes the largest absolute discrepancy. If its required tolerance still exceeds the one entered, none qualifies.
Which triangle receives the tolerance?
A is the fixed reference and each measured B side is allowed the same entered absolute tolerance. Reverse the inputs to change which set is treated as fixed.
Similar Calculators
Special Right Triangle Calculator & Side Windows
Calculate exact 30-60-90 and 45-45-90 triangle sides. Compare measured side tolerances and see which triangle sizes fit.
Triangle Calculator
Solve right or oblique triangles from sides and angles. Compare both SSA solutions, inspect scaled geometry, and export sides, angles, area and heights.
Ratio Calculator
Simplify ratios, find equivalent ratios, and solve for a missing value in a proportion.
