ToolSphere
All Desmos art

Desmos Witch Hat Equations (Halloween)

A wide flat ellipse for the brim, two bent lines for the cone with its droopy tip, and a band with a buckle.

Witch hat drawn from its Desmos equations
14 equations, t from 0 to 1

The picture above is drawn from exactly these equations. Paste them into the first empty line of the Desmos graphing calculator; each line becomes its own curve.

How it is built

The band has to touch the sides of the cone exactly. The left side runs from (−2, 0.3) to (−0.8, 3.5), so at height y its x-coordinate is

x = −2 + (y − 0.3) × 1.2 ÷ 3.2

At y = 0.9 that gives −1.775 and at y = 1.5 it gives −1.55; the right side works the same way. Those four corners make the band.

The brim is an ellipse much wider than it is tall: (4cos(2πt), 0.8sin(2πt)).

Press Copy all equations, open the Desmos graphing calculator, click into the first empty expression line and paste: each line becomes its own curve. Every curve uses t from 0 to 1, which is Desmos's default, so there is nothing to set up. Fill the band orange and the buckle a contrasting colour.

Make your own

Frequently asked questions

How do I draw a witch hat in Desmos?

A flat ellipse for the brim, two lines meeting near the top for the cone (bend the tip with an extra segment), and a band across the cone. The equations on this page paste straight in.

How do I make a line end exactly on another line?

Work out where they meet: write the side as x in terms of y (or y in terms of x) and put in the height you want. That point is the end of your new segment.