Right triangle and "b" are the legs of the triangle. If the incircle is tangent to the hypotenuse AB at point P, then denoting the semi-perimeter as "s", we have and , and the area is given by This formula only applies to right triangles. If an altitude is drawn from the vertex with the right angle to the hypotenuse then the triangle is divided into two smaller triangles which are both similar to the original and therefore similar to each other. From this: In equations, where "a", "b", "c", "d", "e", "f" are as shown in the diagram. Thus Moreover, the
Automedian triangle satisfying the formula "a" = "b" + "c". That is, in order for the three numbers "a", "b", and "c" to be the sides of an automedian triangle, the sequence of three squared side lengths "b", "a", and "c" should form an arithmetic progression. If "x", "y", and "z" are the three sides of a right triangle, sorted in increasing order by size, and if 2"x" < "z", then "z", "x" + "y", and "y" − "x" are the three sides of an automedian triangle. For instance, the right triangle with side lengths 5, 12, and 13 can be used