Domain and Range Calculator
Find the domain and range of any function with step-by-step solutions and graph visualization. Fast, accurate, and easy-to-use domain and range calculator.
Share Your Feedback
How was your experience with this calculator?
Domain and Range Calculator – Instantly Find Input & Output Values of Any Function
Struggling to find the domain and range of complex functions? Our free Domain and Range Calculator gives you accurate results, step-by-step reasoning, and a visual graph — in seconds. Whether you're tackling logarithms, square roots, or polynomials, this tool does the heavy lifting so you can focus on understanding.
What Is a Domain and Range Calculator?
A domain and range calculator is an online math tool that automatically determines the set of all valid input values (domain) and possible output values (range) for any mathematical function you enter.
Instead of manually solving inequalities or sketching graphs from scratch, the calculator processes your function and returns:
- Domain — in inequality, interval, and set notation
- Range — with clear classification (bounded, all reals, restricted, etc.)
- Step-by-step reasoning so you can learn, not just copy answers
- A graph that visually confirms the results
This makes it an essential tool for high school students, college learners, tutors, and anyone working with functions in algebra, precalculus, or calculus.
How the Calculator Works — A Real Example
Let's walk through exactly what the calculator does when you enter a real function. This isn't a simplified demo — this is the actual output the tool generates.
Function Entered:
f(x) = ln(x) + x²
This function combines a natural logarithm and a quadratic term — two very different behaviors that the calculator handles together intelligently.
✅ Step 1 — Identify Restrictions (Finding the Domain)
The calculator scans the function for operations that create restrictions:
| OperationRuleResult for ln(x) | ||
| Natural Logarithm | Argument must be > 0 | x > 0 |
| Quadratic (x²) | No restriction | All reals |
| Combined | Most restrictive wins | x > 0 |
Since ln(x) requires x to be strictly greater than zero, and x² places no restriction, the combined domain is controlled by the logarithm.
has_restrictions: true — the calculator correctly flags this function as restricted.
✅ Step 2 — Express the Domain in Three Notations
The calculator outputs the domain in every standard mathematical format:
| FormatOutput | |
| Inequality Notation | x > 0 |
| Interval Notation | (0, ∞) |
| Set-Builder Notation | {x | x > 0} |
What does left_open: true mean? The parenthesis ( in (0, ∞) means 0 is not included. This is critical — ln(0) is undefined (it approaches negative infinity), so the boundary is open, not closed.
This kind of precision is what separates a reliable calculator from a guessing tool.
✅ Step 3 — Determine the Range
Now the calculator analyzes what output values the function can actually produce across its valid domain (0, ∞).
Behavior analysis:
- As x → 0⁺, ln(x) → −∞ and x² → 0, so f(x) → −∞
- As x → ∞, both ln(x) → ∞ and x² → ∞, so f(x) → +∞
- The function is continuous on (0, ∞) with no gaps or jumps
Since f(x) smoothly covers every value from −∞ to +∞, the range is all real numbers.
| FormatOutput | |
| Inequality Notation | y ∈ ℝ |
| Interval Notation | (−∞, ∞) |
| Set-Builder Notation | {y | y ∈ ℝ} |
| Type | all_real |
Key insight: Even though the domain is restricted to positive x-values only, the range is completely unrestricted. This is a great example of why domain and range must always be evaluated independently.
✅ Step 4 — Simplified and LaTeX Output
The calculator also returns the function in cleaned-up formats for further work:
- Simplified: x**2 + log(x)
- LaTeX: \(x^{2} + \log{\left(x \right)}\)
This is useful if you're writing up solutions, pasting into LaTeX documents, or using the result in a downstream computation.
How to Use the Domain and Range Calculator
- Enter your function using standard notation (e.g., ln(x)+x**2, sqrt(x-4), 1/(x-3))
- Click "Go" — results appear instantly
- Read the domain and range in inequality, interval, and set-builder notation
- Check the graph to visually confirm the behavior
- Follow the step-by-step breakdown to understand the reasoning
No sign-up. No downloads. Works on mobile and desktop.
Domain and Range of Common Function Types
Understanding the pattern for each function type helps you predict answers — and verify the calculator's output.
1. Linear Functions
Example: f(x) = 3x − 7
- Domain: (−∞, ∞) — all real numbers
- Range: (−∞, ∞) — all real numbers
- Why: A straight line extends infinitely in both directions with no breaks.
2. Quadratic Functions
Example: f(x) = x² + 2
- Domain: (−∞, ∞)
- Range: [2, ∞)
- Why: The parabola opens upward with a minimum at y = 2.
3. Rational Functions
Example: f(x) = 1/(x − 5)
- Domain: (−∞, 5) ∪ (5, ∞) — x ≠ 5
- Range: (−∞, 0) ∪ (0, ∞) — y ≠ 0
- Why: Division by zero at x = 5; output never reaches zero due to the asymptote.
4. Square Root Functions
Example: f(x) = √(x − 3)
- Domain: [3, ∞)
- Range: [0, ∞)
- Why: The radicand must be non-negative; outputs start at 0.
5. Logarithmic Functions
Example: f(x) = ln(x)
- Domain: (0, ∞)
- Range: (−∞, ∞)
- Why: Logarithm is only defined for positive inputs, but produces all real outputs.
6. Combined Functions (like our calculator example)
Example: f(x) = ln(x) + x²
- Domain: (0, ∞) ← controlled by ln(x)
- Range: (−∞, ∞) ← function covers all real outputs
- Why: The most restrictive component (ln) sets the domain; the combined behavior sets an unrestricted range.
How to Find Domain and Range Manually (Step-by-Step)
Finding the Domain
Step 1 — Check for fractions Set the denominator ≠ 0 and exclude those x-values.
Step 2 — Check for even roots Set the radicand ≥ 0 and solve the inequality.
Step 3 — Check for logarithms Set the argument > 0 and solve.
Step 4 — Combine all restrictions The domain is the intersection of all allowed x-values.
If no restrictions exist → Domain is (−∞, ∞).
Finding the Range
Step 1 — Understand the function type Quadratics have a minimum/maximum. Rationals have asymptotes. Linear functions are unbounded.
Step 2 — Analyze end behavior What happens as x approaches the boundaries of the domain?
Step 3 — Identify any horizontal asymptotes or minimum/maximum values These define the boundaries of the range.
Step 4 — Confirm with the graph Use the vertical extent of the graph to confirm your range.
Why Domain and Range Matter in Real Mathematics
Understanding domain and range isn't just an exam skill. It has direct applications:
- Engineering: Ensuring input signals stay within valid operating ranges for systems and circuits
- Economics: Modeling revenue functions where negative output quantities make no sense
- Physics: Restricting time-domain functions to t ≥ 0
- Data science: Defining valid feature ranges for machine learning models
- Medicine: Setting safe dosage intervals for drug concentration functions
Every time a function is used to model a real-world scenario, the domain defines what inputs make physical sense, and the range defines what outcomes are actually achievable.
Common Mistakes to Avoid
❌ Assuming the domain is always all real numbers
Functions with logarithms, square roots, or denominators all carry restrictions. Always check every operation in the function.
❌ Confusing domain and range
Domain = input (x-values). Range = output (y-values). When in doubt: domain goes in, range comes out.
❌ Forgetting that a restricted domain doesn't mean a restricted range
Our ln(x) + x² example proves this perfectly — domain is (0, ∞) but range is (−∞, ∞).
❌ Only testing integer values
Functions are continuous. A function that looks well-behaved at x = 1 and x = 2 may have an asymptote at x = 1.5. Always think in intervals.
❌ Ignoring the graph
A graph instantly reveals asymptotes, gaps, minima, maxima, and overall behavior that algebra alone can miss.
Frequently Asked Questions
What is the domain of f(x) = ln(x) + x²? The domain is (0, ∞), or equivalently x > 0. This restriction comes from the natural logarithm, which is only defined for positive real numbers.
What is the range of f(x) = ln(x) + x²? The range is (−∞, ∞) — all real numbers. Even though the domain is restricted, the function continuously covers every real output value as x moves from 0⁺ to ∞.
Can the domain be a single point? Technically yes, but such functions have very limited use. In most cases you encounter, the domain is an interval or a union of intervals.
Does restricting the domain always restrict the range? No. As shown above, a restricted domain can still produce an unrestricted range, depending on the function's behavior.
What notation should I use for domain and range? Interval notation is the most widely accepted standard in higher mathematics. Set-builder notation is also common in formal proofs. Inequality notation is most intuitive for beginners.
Is the calculator accurate for complex functions? Yes. The calculator uses symbolic computation to evaluate restrictions precisely — not numerical approximation — making it reliable even for functions with multiple combined operations.
About This Tool
This calculator is built for accuracy, clarity, and learning. Every result includes:
- ✅ Exact symbolic domain analysis
- ✅ Three notation formats for every answer
- ✅ Open/closed boundary classification
- ✅ Range type identification (bounded, all-real, restricted)
- ✅ Simplified and LaTeX function output
- ✅ Visual graph for confirmation
Whether you're checking your homework, preparing for an exam, or building mathematical intuition — this tool gives you results you can trust and explanations you can actually learn from.
✅ Verified by theMathex Engineering Team
Accuracy Statement: All mathematical examples, domain and range outputs, notation formats, and calculator results presented in this article — including the worked example for f(x) = ln(x) + x² — have been independently reviewed and verified by theMathex Engineering Team.