Skip to content
ihateDesmos

How to add a slider in Desmos

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

To add a slider in Desmos, use a letter you haven’t defined in an equation, like y = ax + b. Desmos offers to “add slider” for a and b. Click it, then drag to see the graph change.

Step by step

  1. 1
    Type an equation with a new letter: y = a x + b.
  2. 2
    Click “add slider”, or “all” to create all of them at once.
  3. 3
    Drag the slider, and watch the graph respond.
  4. 4
    Or make one directly by typing a = 1 on a line, then clicking “add slider”.

Changing the range and step

Click the number at either end of the slider to type a new minimum or maximum. The step is set in the same place. A step of 1 keeps the slider on whole numbers, which is useful for the number of terms in a series, or the petals of a rose curve.

Animating a slider

Press the play button at the left of the slider. It sweeps through the range, redrawing the graph as it goes. You can also change its speed, and whether it loops or runs once, in the slider’s settings. This is a good way to see what each number in an equation does.

Things to try with a slider

  • y = a(x - h)^2 + k: see how vertex form moves a parabola.
  • y = a sin(b x + c) + d: see amplitude, period and shifts, as in the guide to trig graphs.
  • r = cos(k θ): count the petals on a rose curve.

Frequently asked questions

How do I make a slider in Desmos?
Type an undefined letter in an equation, like y = ax, then click “add slider”. Or type a = 1 on its own line.
Why does the “add slider” button not appear?
The letter may already be defined, or be a reserved name such as x, y, e or a function name. Try another letter.
How do I make a slider move on its own?
Click the play button to the left of the slider.

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