Skip to content
ihateDesmos

How to make shapes in Desmos

Updated 6 November 2026 · An independent guide, not from Desmos

The easiest way to make a shape in Desmos is the polygon function. List the corners in order, and Desmos joins them and fills the shape in: polygon((0,0),(2,0),(2,2),(0,2)) makes a square.

What to type
polygon((0,0),(2,0),(2,2),(0,2))polygon((0,0),(4,0),(2,3))x^2/9 + y^2/4 = 1
−4−2246−220
Open in calculator
An oval, from the ellipse equation, and a square from an equation using max.

Step by step

  1. 1
    Type polygon( on a new line.
  2. 2
    List the corners as points, separated by commas, going around the shape in order.
  3. 3
    Close the bracket. Desmos joins the last point back to the first, and shades the inside.

Shapes to copy

ShapeType this
Squarepolygon((0,0),(2,0),(2,2),(0,2))
Rectanglepolygon((0,0),(4,0),(4,2),(0,2))
Trianglepolygon((0,0),(4,0),(2,3))
Oval (ellipse)x^2/9 + y^2/4 = 1
Circlex^2 + y^2 = 4
Square, as an equationmax(abs(x), abs(y)) = 1
Diamondabs(x) + abs(y) = 1

Regular polygons

For a regular polygon with n sides, build its corners using a list: polygon([(cos(2pi k/n), sin(2pi k/n)) for k = [1...n]]). Define n with a slider, and the shape changes as you drag it.

Removing the fill

Click and hold the coloured icon next to the polygon, and set the fill opacity to 0. That leaves only the outline.

Frequently asked questions

How do I make a square in Desmos?
Use polygon((0,0),(2,0),(2,2),(0,2)). Or use an equation, max(abs(x), abs(y)) = 1.
How do I make a triangle in Desmos?
Use polygon with three points, such as polygon((0,0),(4,0),(2,3)).
How do I make an oval in Desmos?
Use the ellipse equation: x^2/9 + y^2/4 = 1. The numbers under x² and y² set its width and height.
Why does my polygon look twisted?
The points are out of order. List them going around the shape in one direction.

Keep going

Or try it in ihateDesmos

The same equations work here, with algebra, steps and exports built in. It is free, with no account.

Open the calculator