Skip to content
ihateDesmos

How to make a heart in Desmos

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

To make a heart in Desmos, type (x^2 + y^2 - 1)^3 = x^2 y^3. For a filled heart, change the equals sign to ≤ (type <=).

What to type
(x^2 + y^2 - 1)^3 = x^2 y^3(16 sin(t)^3, 13 cos(t) - 5 cos(2t) - 2 cos(3t) - cos(4t))
−11−110
Open in calculator
The implicit heart curve.

Step by step

  1. 1
    On a new line, type (x^2 + y^2 - 1)^3 = x^2 y^3.
  2. 2
    Zoom in, because the heart is small. It fits between about −1.2 and 1.2.
  3. 3
    To fill it in, use (x^2 + y^2 - 1)^3 <= x^2 y^3.

A smoother parametric heart

This classic version has a nicer shape, with a pointier base. Type it, and set t from 0 to 2π, as Desmos starts t at 0 to 1:

(16 sin(t)^3, 13 cos(t) - 5 cos(2t) - 2 cos(3t) - cos(4t))

It is about 32 units wide, so zoom out to see all of it.

Moving and resizing it

Replace x with (x − h)/a and y with (y − k)/a to move the centre to (h, k) and scale it by a. With sliders for h, k and a, you can drag your heart around, or animate it to beat.

Why it works, and more hearts

Our heart curve page has four equations, with an explanation of how each produces the shape.

Frequently asked questions

What is the equation for a heart in Desmos?
(x^2 + y^2 - 1)^3 = x^2 y^3. For a filled heart, use <= in place of =.
Why can’t I see my heart?
It is small. Zoom in around the origin, to about −2 to 2 on each axis.
How do I make a heart red?
Click and hold the coloured icon next to the expression, and choose a colour.

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