Domain Range Calculator
Calculate the domain and range of a function. Enter a function of x (e.g., sqrt(x-1), 1/(x^2-4)) and get the domain and range in interval notation.
Was this calculator helpful?
How to use this tool?
How to Use the Domain & Range Calculator
This tool finds the domain (all possible x-values) and range (all possible y-values) for any function you enter.
- Enter your function in the input field labeled "Enter function f(x)". Use standard math notation:
sqrt(x-1)for square root1/(x^2-4)for rational functionslog(x+2)orln(x)for logarithmssin(x),cos(x),tan(x)for trigonometryabs(x)for absolute value- Use
^for exponents, e.g.,x^2+3
- Click "Calculate Domain & Range" to run the analysis.
- Read the results displayed in the green box:
- Domain shows intervals where the function is defined (e.g.,
[-∞, 2] ∪ [4, ∞]). - Range shows the approximate minimum and maximum output values (e.g.,
[0.5, 10.2]).
- Domain shows intervals where the function is defined (e.g.,
Note: The calculator samples x from -100 to 100. For functions with infinite domains/ranges, it uses -∞ or ∞ symbols. If you see "No real domain", check your function syntax.
Previous Results
| Result | Inputs | Date |
|---|
Frequently Asked Questions
It supports standard mathematical functions like sqrt, log, ln, abs, sin, cos, tan, and basic arithmetic operations. Use x as the variable.
The domain is determined by sampling the function over a wide range of x values and identifying where the function is defined (no division by zero, no negative square root, etc.).
The range is approximated by evaluating the function over the domain and tracking the minimum and maximum output values.