In a square all 4 sides are equal, so when you cut it along the diagonal to make a triangle, both the base and the height of the triangle would be the same.
The area of a triangle is found by the formula 1/2 x base x height
Since the base and height are the same the formula becomes Area = 1/2 x S^2 ( where S is the length of a side).