Domain and Range Calculator

Type a function of x, or a set of ordered pairs, and this domain and range calculator finds the domain and the range right away, explains every step and shows both on a graph.

On this page, you will be able to

  • Find the domain and range of any function you type, like (x + 2)/(x² − 9) or √4 − x²
  • Build a function from a type (linear, quadratic, square root, rational…) and see how its numbers change the range
  • Find the domain and range of a set of ordered pairs, and see if it is a function
  • See the answer in interval notation and in words, with the steps and a graph
  • Find the domain and range with a table of values that shows what happens to y near the excluded x-values and far out

Find the Domain and Range

Find it with:

The answer appears while you type. Use ^ for powers (x^2), sqrt(x) for square roots and / for fractions.

What You Can Type

To getType
x², x³x^2, x^3
x + 2x − 3(x+2)/(x-3)
√x − 1sqrt(x-1)
3√xcbrt(x) or x^(1/3)
|x − 2||x-2| or abs(x-2)
ln x, log xln(x), log(x)
ex, 2xe^x, 2^x
sin x, cos x, πsin(x), cos(x), pi

You can leave out the times sign: 2x, 3(x − 1) and 2sqrt(x) all work. For ordered pairs, choose Ordered pairs and type them like (1, 2), (3, 4), (5, 6).

Remember

The calculator works with real numbers only. A number marked ≈ is an estimate read from the graph, rounded to 4 decimal places. All other answers are exact.

Domain and Range Examples

Example 1: Find the domain and range of f(x) = 1x − 2 + 3.
  1. The denominator x − 2 cannot be 0, so x ≠ 2. Domain: (−∞, 2) ∪ (2, +∞).
  2. The fraction 1x − 2 can be any number except 0, so f(x) can be any number except 0 + 3 = 3.
  3. On the graph, y = 3 is a horizontal asymptote: the graph gets close to it but never touches it.

Domain: (−∞, 2) ∪ (2, +∞). Range: (−∞, 3) ∪ (3, +∞).

Example 2: Find the domain and range of f(x) = √4 − x2.
  1. The number under the square root must be 0 or more: 4 − x2 ≥ 0, so x2 ≤ 4 and −2 ≤ x ≤ 2.
  2. The smallest output is f(2) = √0 = 0. The largest is f(0) = √4 = 2.
  3. The graph is the top half of a circle with radius 2.

Domain: [−2, 2]. Range: [0, 2].

Example 3: Find the domain and range of f(x) = x2 − 4x + 1.
  1. A polynomial has no denominator and no square root, so the domain is all real numbers.
  2. The parabola opens up (a = 1 > 0), so the range starts at the vertex. The vertex is at x = −b2a = 42 = 2.
  3. f(2) = 4 − 8 + 1 = −3, so every output is −3 or more.

Domain: (−∞, +∞). Range: [−3, +∞).

How to Find the Domain and Range by Hand

The domain is the set of x-values you can put into the function. The range is the set of y-values that come out. The lessons on the domain of a function and the range of a function explain both with more examples.

Rule: finding the domain
  1. A denominator cannot be 0: leave out the x-values that make it 0.
  2. The number under a square root must be 0 or more.
  3. The number inside a logarithm must be more than 0.
  4. If none of these appear, the domain is all real numbers.
Rule: finding the range
  1. Find the lowest and highest points of the graph, such as the vertex of a parabola or the corner of an absolute value graph.
  2. Look at the ends of the domain: does the graph stop at a point, or keep going up or down?
  3. Look for horizontal asymptotes: values the graph gets close to but never reaches are left out.
Common mistake

Thinking the range of every rational function is all real numbers. For f(x) = 1x, y = 0 never comes out, so the range is (−∞, 0) ∪ (0, +∞).

What are the domain and range of f(x) = |x| + 5?

Show answer

Domain (−∞, +∞), range [5, +∞). Every x works, and |x| is 0 or more, so f(x) is 5 or more.