Skip to content
ihateDesmos

How to restrict the domain on Desmos

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

To restrict the domain on Desmos, add a condition in curly braces after the equation. y = x^2 {0 < x < 3} draws the parabola only between x = 0 and x = 3.

What to type
y = x^2 {0 < x < 3}y = sin(x) {x > 0} {y > 0}
−6−4−22424680
Open in calculator
A parabola restricted to 0 < x < 3, and a sine wave restricted to −6 < x < 0.

Step by step

  1. 1
    Type your equation: y = x^2.
  2. 2
    Straight after it, type {, and Desmos adds the closing brace.
  3. 3
    Type the condition: 0 < x < 3.

Other kinds of restriction

  • Restrict y: y = x^2 {y < 4}.
  • Combine conditions: stack them, as in y = x {x > 0} {y < 5}.
  • Use a slider: y = x^2 {0 < x < a}, and drag a to draw the curve as you go.
  • Parametric curves: instead of braces, set the range of t below the line.

Why this matters for graph art

Restrictions are the main tool in Desmos graph art: every line and curve is cut to exactly the piece you need.

What domain means

A function’s domain is the x-values it accepts. Restricting it means drawing only part of it. The guide to domain and range explains how to find the natural domain of a function.

Frequently asked questions

How do I restrict a domain on Desmos?
Add curly braces after the equation: y = x^2 {0 < x < 3}.
How do I restrict the range?
Use a condition on y: y = x^2 {y < 4}.
Can I use more than one restriction?
Yes. Put them in separate braces, one after the other: y = x {x > 0} {y < 5}.
Why does my restriction not work?
Check that it comes straight after the equation, and that the values overlap with your curve. Also, restrictions need inequalities, not equals signs.

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