In mathematics, the T-square is a two-dimensional fractal. It has a boundary of infinite length bounding a finite area. Its name comes from the drawing instrument known as a T-square.

T-square, evolution in six steps.

Algorithmic description

thumb|256px|T-square of order 8

It can be generated from using this algorithm:

  1. Draw a black square.
  2. For each convex corner in the image, draw another square, centered at that corner, with half the side length of the squares drawn in the previous step.
  3. Repeat step 2.

thumb|[[Golden ratio|Golden squares with T-branching]]

The method of creation is rather similar to the ones used to create a Koch snowflake or a Sierpinski triangle, "both based on recursively drawing equilateral triangles and the Sierpinski carpet."