Math Figures Rectangle Generator
ABCD12 cm5 cm

Rectangle and square figures drawn to scale

The Rectangle Generator draws a rectangle from its length and width, or a square from its side, to scale, with its corners named A, B, C and D and a right-angle square in each. Each side and angle can be labeled with its measure, with text you type such as x or 2x + 3, or with nothing.

Teachers use it for area and perimeter questions, for writing and solving expressions from a rectangle’s sides, and for the Pythagorean theorem with a diagonal drawn. Add a unit such as cm or ft to every length, draw one or both diagonals and name where they cross, and mark equal sides with congruence ticks.

What you can set

  • Kind: a rectangle from sides AB and BC, or a square from side AB, typed as numbers, fractions or square roots
  • A label on each side and angle: its measure, text you type such as x, or nothing
  • Congruence ticks and parallel arrows on sides, and congruence arcs on angles
  • Diagonals AC and BD, solid, dashed or dotted, each labeled with its length, text or nothing, and a name for where they cross
  • A unit for every length (cm, m, mm, in, ft, yd, units or your own), rounded to whole numbers, tenths or hundredths
  • Corner names, right-angle squares on or off, which side sits at the bottom, flip and turn

Copying, printing and sharing

Copy the figure straight into a test, worksheet or slide, or download it as a PNG or SVG. Printing the page prints just the figure. Share link copies the page’s address with your settings in it, so anyone who opens it sees this exact figure, and presets save settings you use often in your browser. It’s free, with no sign-up.

Frequently asked questions

Is the rectangle drawn to scale?

Yes. It is drawn in proportion to the lengths you type, so a 12 by 5 rectangle is more than twice as long as it is wide. It is sized to fit the figure, not drawn at its true size on paper.

Can I label a side with x or an expression?

Yes. Click the button after the side’s measure, choose Text and type x, 2x + 3 or anything else. The side is still drawn to the length you typed, so the rectangle keeps its shape.

How do I draw a diagonal for a Pythagorean theorem question?

Open Diagonals and tick Diagonal AC or Diagonal BD. Label it with its length, with text such as x, or with nothing, and draw it solid, dashed or dotted.

Can it draw a square?

Yes. Choose Square under Kind and type one side; the other three are the same length. Congruence marks are never added for you, so tick each side with the button after it to show they are equal.

Can I move a label that’s in the way?

Yes. Drag any label on the figure to move it. Reset label positions, under Labels, puts them all back.

← All math figures