ToolSphere
All Desmos art

Desmos Heart Equation (Copy and Paste)

The classic heart curve is a single parametric equation: one line in Desmos draws the whole shape.

Heart drawn from its Desmos equations
1 equation, 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 x-coordinate is a sine cubed, which pinches the shape in at the top and bottom; the y-coordinate is a sum of cosines that pulls the top into two lobes and the bottom into a point:

x = 8 sin³(2πt)
y = 6.5 cos(2πt) − 2.5 cos(4πt) − cos(6πt) − 0.5 cos(8π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. To fill it, click the curve's colour circle and turn on Fill, then pick red.

Make your own

Frequently asked questions

What is the equation for a heart in Desmos?

One parametric equation: x = 8 sin³(2πt), y = 6.5 cos(2πt) − 2.5 cos(4πt) − cos(6πt) − 0.5 cos(8πt), for t from 0 to 1. Copy it from this page and paste it into Desmos.

How do I fill the heart in?

Click the coloured circle next to the equation in Desmos, turn on Fill and pick a colour.

Is there a heart that is just an equation in x and y?

Yes: (x² + y² − 1)³ − x²y³ = 0 draws a heart too, and changing = to ≤ fills it.