Adding a slider takes three steps: type a variable name, press Enter, then adjust the range

To add a slider in Desmos, type a variable name (like a, m, or speed) into an empty line in the expression list, then press Enter. Desmos automatically creates a slider and sets a default range from −10 to 10. You can then drag the slider handle left and right, or click the range numbers to change them to whatever values you need.

Sliders let you see how a graph changes when you adjust a number. For example, if you type y = mx + 3 and create a slider for m, you can drag the slider to watch the line rotate around the y-intercept in real time. This is useful for exploring how parameters affect equations, animations, and interactive demonstrations.

Key Takeaways

  • Type any variable name on a blank line and press Enter to create a slider with a default range of −10 to 10.
  • Click the minimum or maximum value next to the slider to change the range to whatever numbers you need.
  • Use sliders in equations by typing the variable name where you want it to change — for example, y = a·sin(x) + b creates sliders for both amplitude and vertical shift.
  • You can create multiple sliders in one graph and adjust them independently to see how different parameters interact.
  • Sliders work with any variable name, but single letters like a, b, m, and k are easiest to type and remember.

Creating a slider from scratch

Open Desmos in your browser or app and look at the expression list on the left side. Click on an empty line or scroll to the bottom and click the plus sign. Type a single letter or short variable name — a works well for your first slider. Press Enter.

Desmos creates a horizontal slider below the variable name. The slider shows a range from −10 to 10 by default, with a handle you can drag. The current value appears in a small box. You now have a working slider, and any equation using that variable will update as you move it.

Changing the slider range

The default range of −10 to 10 often does not match what you need. Click on the −10 (the minimum value) to change it. Type a new number and press Enter. Then click on the 10 (the maximum value) and change that too.

For example, if you are exploring percentages, set the range from 0 to 100. If you are working with angles in degrees, you might use 0 to 360. If you need very small adjustments, try a range like 0 to 1 or −0.5 to 0.5. The range you choose depends on what makes sense for your equation.

Using sliders in equations

Once you have created a slider, use its variable name anywhere in an equation. Type y = a·x to create a line whose slope changes with the slider. Type y = sin(a·x) to change the frequency of a sine wave. Type y = (x − a)² to shift a parabola left and right.

You can use the same slider in multiple equations. If you create a slider called a, you can write y = a·x + 2 on one line and y = a·x² − 1 on another, and both will respond to the same slider. This is useful for comparing how a parameter affects different functions.

Creating multiple sliders

Add a second slider by typing a different variable name on a new line. For example, create a on one line and b on another. Both sliders appear in the expression list, and you can adjust them independently.

A common setup is y = a·sin(b·x), which creates two sliders: one for amplitude and one for frequency. As you drag each slider, you see the sine wave stretch and compress in different directions. You can create as many sliders as you need, though too many at once can become hard to manage.

Animating a slider

Click the play button (triangle icon) next to a slider to animate it. The slider automatically moves from its minimum to maximum value and loops. This is useful for creating animations or showing how a graph changes over time without having to drag manually.

While a slider is animating, you can still interact with the graph — zoom, pan, or adjust other sliders. Click the play button again to stop the animation. You can also adjust the animation speed by clicking the gear icon next to the slider, though this option is not available on all versions of Desmos.

Common slider setups for different equations

For linear equations like y = mx + b, create sliders for both m (slope) and b (y-intercept). Set m to range from −5 to 5 and b from −10 to 10. This lets you explore how both parameters shape the line.

For quadratic equations like y = a(x − h)² + k, create sliders for a (stretch), h (horizontal shift), and k (vertical shift). For trigonometric functions like y = a·sin(b·x + c) + d, create sliders for amplitude, frequency, phase shift, and vertical shift. The range you choose for each depends on what behavior you want to explore.

Frequently Asked Questions

Can I set a slider to only whole numbers?

Desmos does not have a built-in option to restrict sliders to integers. However, you can work around this by using a slider with a small range (like 1 to 10) and multiplying it in your equation, or by manually typing values into the slider box instead of dragging.

What happens if I use the same variable name twice?

Desmos treats all instances of the same variable as linked to the same slider. If you type a twice, you only get one slider, and both equations update together. This is usually what you want, but if you need independent variables, use different names like a and b.

Can I hide a slider without deleting it?

Click the circle icon next to the slider to hide or show it. The slider still exists and still controls your equations, but it does not appear on screen. This is useful when you have many sliders and want to focus on a few at a time.

How do I make a slider move in smaller steps?

Narrow the range. If you set a slider from 0 to 1 instead of 0 to 10, each drag movement changes the value by a smaller amount, giving you finer control. You can also click directly in the value box and type a precise number instead of dragging.