Statistics How To

How to Find the Domain and Range of a Function

Calculus > How to Find the Domain and Range of a Function

What is a “Domain” and a “Range”?

find the domain and range of a function

  • The domain is the set of x- values that can be put into a function. In other words, it’s the set of all possible values of the independent variable.
  • The range is the set of y- values that are output for the domain.

Four Ways to Find the Domain and Range of a Function

  1. Check for known domains/ranges,
  2. Guess and check,
  3. Graphing,
  4. Table of values.

1. Check for Known Domains/Ranges

See if you can figure out what type of function you have first (this isn’t always clear).

Many functions have an infinite set for the domain. An “infinite set” is just the set of all possible numbers. For example, you could input any number you like into the function y = x2, and it will still give you an output. But what about the range? A negative number will never show for this function; a negative times a negative will always be positive. If you put, for example, -10 in, you get:
y = -102 = -10 * -10 = 100.
It makes sense that the range for x2 is 0 > ∞.

Certain functions have defined domains and range.

  • Linear functions have the domain and range of all real numbers
  • Polynomial functions have the domain of all reals, and the range of all positive reals.
  • Square (quadratic) functions and absolute value functions have a domain of all real numbers and a range of y ≥ 0
  • Square root functions have a domain of x &#8805 ;0 and a range of y ≥ 0
  • Rational functions have a domain of x ≠ 0 and a range of x ≠ 0.
  • Sine functions and cosine functions have a domain of all real numbers and a range of -1 ≤y≥ 1.

Tip: Become familiar with the shapes of basic functions like sin/cosine and polynomials. That way, you’ll be able to reasonably find the domain and range of a function just by looking at the equation.

2. Guess and Check

If you don’t have strong algebra skills, you may want to skip this method and try the graph or table methods instead.

Basically, use your algebra skills to find the domain and range for a function by guessing and checking! Some general tips:

  1. Division by zero is not allowed). As an example, let’s say you have the function:
    f(x) = 1/(x2 – 9).
    You can exclude any values of x (the domain) that make the denominator equal to zero.
  2. For a domain, the number under a square root sign can’t be negative. For example, you can’t find the domain for √-10, because the solution is an imaginary number.
  3. Try putting different x-values into the function for y to see what happens. Look for trends like: always positive, always negative, or sets of numbers that don’t work. Try putting in very large (e.g. a million), or very small (e.g. negative million) and see if those work.

Example: Find the domain and range of a function with algebra

Find the domain and range for:
find the domain and range by hand


  • The numerator has a square root; numbers under this can’t be negative (see #2 above). So you can only have numbers for x greater than or equal to -2.
  • The denominator: You can’t have division by zero, you can’t have -3 + 3 as this would result in zero. For example, 32 – 9 = 0.

The domain for this particular function is x > -2, x ≠ 3.

The range for this function is the set all values of f(x) excluding F(x) = 0. Here’s where your algebra skills get a workout!

  • Numerator: By looking at the function, you should immediately see that the numerator becomes 0 when x = -2:
    √(2 + 2) = √0 = 0.
  • Denominator:
    1. Working with -2 still, the denominator becomes: (-2)2 – 9 = 5.So f(-2) = 0/-5 = 0.
    2. If you insert a few x-values between 2 and 3 into (x2 – 9), you’ll see that the function approaches negative infinity.
    3. Insert some more x-values greater than x = 3, note that the function tends toward positive infinity.
    4. The larger the x-values get, the smaller the function values get (but they never actually get to zero).

3. Graphing

Graph your function and see where your x-values and y-values lie. Most graphing calculators will help you see a function’s domain (or indicate which values might not be allowed). For example, if you graphed x2, it would be clear that the domain cannot include negative numbers. If you don’t have a graphing calculator, try this free online one. Always zoom in and zoom out of the graph to check for continuity or missing areas.

Graph of x2 and 4x2+25 (using the online HRW calculator.

From the above graph, you can see that the range for x2 (green) and 4x2+25 (red graph) is positive; You can take a good guess at this point that it is the set of all positive real numbers, based on looking at the graph.

4. find the domain and range of a function with a Table of Values

Make a table of values on your graphing calculator (See: How to make a table of values on the TI89).

Include inputs of x from -10 to 10, then some larger numbers (like one million). Use the calculator to find values of y for values of x. If the calculator tells you the values or undefined, or that the values might be reaching a limit (a number that a function approaches, but never reaches), that should help you determine the range.


Need help with a homework or test question? With Chegg Study, you can get step-by-step solutions to your questions from an expert in the field. If you rather get 1:1 study help, Chegg Tutors offers 30 minutes of free tutoring to new users, so you can try them out before committing to a subscription.

If you prefer an online interactive environment to learn R and statistics, this free R Tutorial by Datacamp is a great way to get started. If you're are somewhat comfortable with R and are interested in going deeper into Statistics, try this Statistics with R track.

Comments? Need to post a correction? Please post a comment on our Facebook page.

Check out our updated Privacy policy and Cookie Policy

How to Find the Domain and Range of a Function was last modified: June 13th, 2018 by Stephanie