Domain and Range Calculator

Reviewed by CalcMulti Editorial Team·Last updated: ·Algebra Hub

The domain of a function is the complete set of x-values for which the function produces a valid output. The range is the complete set of output values f(x) that the function can produce. Together, domain and range describe the "legal" inputs and the full set of possible outputs — fundamental information for understanding any function's behavior.

Different function types have different restriction rules. Rational functions exclude x-values that make the denominator zero. Square-root (radical) functions require the radicand to be non-negative. Logarithmic functions require a strictly positive argument. Polynomial and exponential functions are typically defined for all real numbers. Enter your function and this calculator identifies the domain and range with a step-by-step explanation in interval notation.

Formula

Domain: all x where f(x) is defined | Range: all f(x) values for x in domain

domain
set of all valid input values x for which f(x) is defined
range
set of all output values f(x) produced as x varies over the domain
restrictions
x-values excluded due to division by zero, negative square roots, or non-positive logarithm arguments

Find Domain and Range

Select a function type and enter parameters.

Quick examples:

Domain Restrictions by Function Type

Function TypeExampleDomain RestrictionDomainRange
Polynomialf(x) = x² + 3None(−∞, ∞)Depends on degree
Linearf(x) = 2x + 1None(−∞, ∞)(−∞, ∞)
Rational 1/(x−a)f(x) = 1/(x−3)x ≠ 3(−∞,3)∪(3,∞)(−∞,0)∪(0,∞)
Square root √(x−a)f(x) = √(x−2)x ≥ 2[2, ∞)[0, ∞)
Logarithm log(x−a)f(x) = log(x−1)x > 1(1, ∞)(−∞, ∞)
Quadratic ax²+bx+cf(x) = x²−4x+3None(−∞, ∞)[−1, ∞)
Absolute value |ax+b|f(x) = |x−2|None(−∞, ∞)[0, ∞)
Even root ⁴√(f(x))f(x) = ⁴√(x)x ≥ 0[0, ∞)[0, ∞)
Natural log ln(x)f(x) = ln(x)x > 0(0, ∞)(−∞, ∞)
Sine / Cosinef(x) = sin(x)None(−∞, ∞)[−1, 1]

Disclaimer

This calculator is for educational purposes only and does not constitute professional advice. Results are based on standard mathematical formulas. Always verify critical calculations with a qualified professional before making important decisions.

Frequently Asked Questions