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.

Plane geometry

Compare two triangles by their sides

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.

Triangle A
Triangle 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

Measured triangle size overlayTriangle A and triangle B share one measurement scale. Both triangles have their longest sides on the base line and their shortest sides on the left.Longest sides aligned
  • 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

  1. Enter three positive sides of triangle A and three of triangle B in one length unit, in any order.
  2. Enter the absolute tolerance applying to each B-side measurement. Use zero to compare the entered values exactly.
  3. Review the range of common multipliers and the minimum tolerances for unrestricted and unit scale.
  4. 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