Domain and range

Topic guide · Updated 2026-11-26

Quick answer

The domain of a function is the set of all allowed inputs (x-values); the range is the set of outputs (y-values) it actually produces. To find the domain, exclude inputs that divide by zero, take an even root of a negative number, or take a log of a non-positive number. To find the range, look at the lowest and highest y-values the graph reaches.

−2−1123456789101112−11234567
  • y=sqrt(x-2)+1
Open in graphing calculator

Domain restrictions to look for

FractionsDenominator ≠ 0
Even roots (√)Inside ≥ 0
LogarithmsInside > 0
tan xx ≠ π/2 + kπ
ContextTime, length and counts are usually ≥ 0

Example

For y = √(x − 2) + 1, the inside must satisfy x − 2 ≥ 0, so the domain is x ≥ 2, or [2, ∞). The square root outputs values ≥ 0, so adding 1 gives the range y ≥ 1, or [1, ∞).

Restricting the domain on a graph

Add a restriction in braces after an expression: y = x^2 {0 < x < 3} draws only the piece between 0 and 3. This is how piecewise and bounded graphs are built.

Frequently asked questions

How do I write domain in interval notation?

Use brackets for included endpoints and parentheses for excluded ones: x ≥ 2 is [2, ∞). Infinity always takes a parenthesis.