Quick answer: A domain and range finder takes a function and returns the set of x values it accepts (the domain) and the set of y values it produces (the range), in interval notation. This domain and range calculator solves both exactly for the standard families — polynomials, rational functions, square roots, logarithms, absolute values, exponentials, and sine or cosine — and labels everything else as a numeric estimate, because an estimate dressed up as an exact answer is worse than no answer.

How to use this domain and range finder

Step 1 — Type the function. Enter an expression in x in the box above, using ^ for powers and the function names sqrt, abs, sin, cos, tan, log, ln and exp. The constants pi and e are available and implicit multiplication such as 2x works. The typing conventions match the FreeSoftis Derivative Calculator, because both tools read expressions with their own small parser instead of trusting raw input — your text is never executed as code.

Step 2 — Read the two answers. The domain appears first, in interval notation, with a plain-words reading underneath it: "all real numbers except x = 2" says the same thing as (−∞, 2) ∪ (2, ∞), in the form most people actually think in. The range follows the same pattern. If you are new to the notation, the section below on what domain and range mean decodes every symbol used on this page.

Step 3 — Check the method label. Every result carries one of three labels: Exact, Domain exact with the range estimated, or Estimate only. That label is part of the answer, not fine print. An exact answer was derived from the structure of the function — a solved inequality, a vertex, an asymptote — and a numeric scan was used only to cross-check it. An estimate comes from the scan itself and is labelled as one.

Step 4 — Read the working. Under the answers, the tool lists the steps it took: which restriction it solved for the domain, where the vertex or asymptote sits, and how the range follows. Compare those steps with the by-hand method in this guide and you can reproduce any answer on the page yourself — which is the real test of a domain and range calculator.

Step 5 — Try the presets, then save. The preset buttons load the classic textbook cases, each checkable by hand in under a minute. The last preset, x^x, is there to demonstrate the estimate path on purpose. When you have your answer, Copy puts the summary on your clipboard and Download saves it as a text file. Nothing is uploaded at any step.

What are domain and range?

The domain of a function is the set of inputs it accepts; the range is the set of outputs it actually produces. The phrase "domain and range of a function" sounds abstract, but both halves answer practical questions. The domain answers: which x values am I allowed to hand this function without breaking arithmetic? The range answers: which y values can ever come out, and — just as important for exams — which y values look plausible but never occur?

Three arithmetic facts generate almost every domain restriction you will ever meet. Division by zero is undefined, so any x that makes a denominator zero is excluded. The square root of a negative number is not a real number, so any x that makes a radicand negative is excluded. The logarithm of zero or of a negative number is undefined, so any x that makes a logarithm's argument zero or negative is excluded. Everything else — polynomials, exponentials, sine, cosine, absolute value — accepts every real input. Finding a domain is mostly the discipline of hunting those three restrictions and solving each one as an equation or inequality.

The range has no such short checklist, which is why it is the harder half of "how to find domain and range". Three ideas cover most cases. First, turning points: a parabola's vertex is its extreme value, and the range is everything on one side of it. Second, asymptotes: a value the function approaches but never reaches is missing from the range even though nearby values occur. Third, known bounds: sine and cosine never leave [−1, 1], a square root never goes negative, an exponential never reaches zero. This finder is built from exactly those ideas, family by family.

Interval notation is the standard shorthand for the answers. A square bracket includes its endpoint: [3, ∞) means every x from 3 upward, including 3. A round bracket excludes it: (−1, ∞) means every x greater than −1, but not −1 itself. Separate pieces are joined with ∪, read "union": (−∞, 2) ∪ (2, ∞) is everything except the single point 2. When a set is a single value, such as the range of a constant function, it is written as a point interval like [5, 5], or described in words as "the single value 5".

The rules that decide a domain, family by family

Each function family has its own domain rule and its own range rule, and the table below is the whole method of this tool in one place. If you learn nothing else from this guide, learn this table: it is how to find domain and range for the functions that make up the overwhelming majority of coursework, and it is exactly the rule set the finder applies, in this order, when it classifies your function.

FamilyDomain ruleRange rule
PolynomialAll real numbers — nothing can breakConstant: one value. Linear: all real. Quadratic: from the vertex value, one direction. Odd degree: all real. Even degree 4+: from the global turning value
Rational P(x) / Q(x)Exclude every real root of QConstant over linear: exclude 0. Linear over linear: exclude the ratio of leading coefficients (the horizontal asymptote). Other cases: estimated, and labelled
sqrt(U)Solve U ≥ 0From 0 upward (or the shifted, scaled version); bounded above when U is a downward quadratic on a bounded domain
log(U) or ln(U), U linearSolve U > 0 — strict, because log of 0 is undefinedAll real numbers
abs(U)All real numbersFrom the smallest absolute value of U (usually 0) upward, scaled and shifted
A·sin(U) + B or A·cos(U) + B, U linearAll real numbers[B − |A|, B + |A|]
A·exp(U) + B, U linearAll real numbersEverything on one side of the asymptote value B, never including B

Two rows deserve emphasis. The logarithm row uses a strict inequality where the square root row uses an inclusive one, and confusing them is the single most common domain error: sqrt(0) is 0, a perfectly good real number, so a radicand may equal zero; log(0) does not exist, so a logarithm's argument may not. The rational row is deliberately split: this tool claims an exact range only for the two cases that can be proved with school algebra, and says so in the limits section below rather than quietly generalising.

Composition follows the same rules from the inside out. In sqrt(x^2 − 4), the radicand is a quadratic, so the domain comes from solving x^2 − 4 ≥ 0, giving (−∞, −2] ∪ [2, ∞) — two separate pieces, because an upward parabola is negative between its roots. In 2·sqrt(x − 3) + 5, the domain is still [3, ∞), but the range picks up the scale and shift: the root itself runs over [0, ∞), doubling gives [0, ∞), and shifting gives [5, ∞). The finder handles an outer scale and shift around any of its core families in exactly this way. For a single straight piece of a function, the Slope Calculator covers gradient and intercepts, and the Piecewise Function Grapher covers functions whose rule changes from interval to interval.

Worked examples, checked by hand

Every example in this section is a preset in the tool above, and each one was chosen because you can verify it with a minute of arithmetic. A domain and range calculator you cannot check is a calculator you should not trust, so check these.

Example 1: f(x) = 1/(x − 2). Domain: the denominator is zero when x = 2, and nowhere else, so the domain is (−∞, 2) ∪ (2, ∞) — all real numbers except 2. Range: a fraction whose top is the non-zero constant 1 can never equal 0, and for any other target value y you can solve 1/(x − 2) = y to get x = 2 + 1/y, which is a valid input. So the range is (−∞, 0) ∪ (0, ∞) — all real numbers except 0. The missing 0 is the horizontal asymptote, covered in the next section.

Example 2: f(x) = sqrt(x − 3). Domain: the radicand must satisfy x − 3 ≥ 0, so x ≥ 3 and the domain is [3, ∞), with the bracket on 3 because sqrt(0) = 0 is allowed. Range: the smallest radicand is 0, giving output 0, and the radicand grows without bound, so the range is [0, ∞). The Square Root Calculator works the root arithmetic itself if you want the values at specific points.

Example 3: f(x) = x^2 − 4x + 3. Domain: a polynomial, so all real numbers. Range: the vertex sits at x = −b/(2a) = 4/2 = 2, and f(2) = 4 − 8 + 3 = −1. The parabola opens upward, so −1 is the minimum and the range is [−1, ∞). The Vertex Calculator shows this vertex computation — axis, focus and roots included — in full.

Example 4: f(x) = log(x + 1). Domain: the argument must be positive, x + 1 > 0, so x > −1 and the domain is (−1, ∞) — round bracket, because at x = −1 the argument is 0 and log(0) is undefined. Range: as the argument runs over all positive numbers, the logarithm takes every real value, so the range is all real numbers. The same answer holds for ln(x + 1); changing the base rescales the outputs but never changes which values occur.

Example 5: f(x) = 2·sin(x) + 1. Domain: sine accepts everything, so all real numbers. Range: sin(x) itself stays inside [−1, 1]; doubling stretches that to [−2, 2]; shifting up by 1 gives [−1, 3]. Every intermediate value is genuinely taken, because sine is continuous — there are no hidden gaps in this range.

Example 6: f(x) = (x + 1)/(x − 2). Domain: exclude x = 2. Range: try to reach the horizontal-asymptote value, the ratio of leading coefficients, which is 1. Setting (x + 1)/(x − 2) = 1 forces x + 1 = x − 2, that is, 1 = −2 — impossible. Every other y can be solved for x, so the range is (−∞, 1) ∪ (1, ∞). This "solve y = f(x) for x and see where it fails" test is the general method for rational ranges, and it is exactly the proof the tool uses for the linear-over-linear family.

Rational functions: excluded points, asymptotes and holes

A rational function — one polynomial divided by another — is where domain and range questions get interesting, because the same denominator zero can produce two very different features. If the numerator is not zero at the same point, the graph has a vertical asymptote there: the values blow up toward positive or negative infinity as x approaches the excluded point, and the point is simply missing from the domain. That is the whole story for 1/(x − 2) and for 1/x.

If the numerator is zero at the same point as the denominator, the feature is a hole instead: the factor cancels, the function behaves like the reduced fraction everywhere except at that one x, where it is still undefined. The domain excludes the point either way — a hole is not a value — but the range can differ, because the reduced function may take values near the hole that an asymptote case never settles near. This finder checks for shared roots explicitly and tells you in its steps when it finds one, rather than silently treating every denominator zero as an asymptote.

The range of a rational function turns on the horizontal asymptote and on the solving test from Example 6. When the numerator's degree is smaller than the denominator's, the horizontal asymptote is y = 0; when the degrees are equal, it is the ratio of the leading coefficients; when the numerator's degree is larger, there is no horizontal asymptote at all and the ends run off to infinity along a slant direction. But an asymptote value is only automatically missing from the range in the simplest cases. A function like x^2/(x − 1) crosses its slant direction and has a genuine gap in its range — the values between its local maximum and local minimum on the two branches are never taken — and proving that gap needs calculus or a discriminant argument per problem. This tool therefore claims the exact range only for constant-over-linear and linear-over-linear functions, where the solve-for-x test settles everything, and labels the range of other rational functions as a numeric estimate while still giving their domain exactly. That split is deliberate, and it is the honest version of "find the domain calculator" tools that print a confident interval for every rational function you paste in.

Factorable quadratic denominators sit comfortably inside the exact domain treatment: x^2 − 5x + 6 factors as (x − 2)(x − 3), so a function with that denominator excludes exactly 2 and 3, and its domain is three intervals. A denominator like x^2 + 1 has no real roots at all, so it excludes nothing — a useful reminder that "rational" does not automatically mean "restricted". If your rational function is really two equations at once, the System of Equations Solver handles that side of the work.

Square roots, logarithms, absolute value and trig

Four families cover most non-polynomial coursework, and each has one idea to remember. For square roots, the idea is the radicand inequality, and its flavour changes with the radicand: a linear radicand gives one ray, like [3, ∞); an upward quadratic radicand gives either all real numbers, two rays, or — when the quadratic only touches zero — everything; a downward quadratic radicand gives one bounded interval, like the [−2, 2] domain of sqrt(−x^2 + 4), and then the range is bounded too, [0, 2] there, because the radicand peaks at its vertex value of 4. The finder solves each of these cases from the quadratic's roots and vertex rather than sampling, which is why the endpoints come out exact.

For logarithms, the idea is strictness plus a free range. The argument must be positive — never zero — so log domains wear round brackets: (−1, ∞), not [−1, ∞). In exchange, the range costs nothing: a logarithm of a linear expression always has range equal to all real numbers, whatever the base and whatever scale and shift wrap it, as long as the scale is not zero. For absolute value, the idea is that the inside can be anything but the outside cannot be negative: the domain is always all real numbers, and the range starts at the inside expression's closest approach to zero. For |x − 2| + 1 that closest approach is 0 itself, reached at x = 2, so the range is [1, ∞). For a quadratic inside that never crosses zero — say |x^2 + 1| — the closest approach is the vertex value, 1, and the range starts there instead.

For sine and cosine, the idea is the fixed band [−1, 1] and what scaling does to it. An amplitude of A stretches the band to [−|A|, |A|] and a vertical shift of B moves it to [B − |A|, B + |A|], and because these functions are continuous and periodic, every value in the band is genuinely attained — there are no asymptote-style gaps. Tangent is the cautionary tale of this section: it is periodic like its cousins but has vertical asymptotes at every odd multiple of pi/2 and a range of all real numbers, and its domain exclusions are infinitely many points that a finite sample can step between without noticing. That is precisely why this finder does not claim tangent exactly: it reports a labelled estimate and says why, instead of printing "all real numbers" for a domain that is not.

Domain and range from a graph, and the numeric cross-check

Reading domain and range from a graph is the same two questions asked geometrically: the domain is the graph's shadow on the x-axis, and the range is its shadow on the y-axis. Sweep your eye from left to right and note where the graph starts, where it stops, and any vertical line it never touches — that is the domain, with open and closed dots at the ends deciding the brackets exactly as inequalities do in the algebraic method. Then sweep from bottom to top for the range, watching for horizontal lines the graph approaches but never reaches, and for gaps between branches. Open and closed endpoint circles carry the same meaning here as in the Piecewise Function Grapher: closed means the point is in the set, open means it is not.

The graph method and the algebraic method check each other, and this tool adds a third check: after deriving an exact answer symbolically, it samples the function at 5,003 points across a wide window and confirms the sampled values are consistent with the claimed domain and range. The order matters. The scan never generates the exact answer — sampling cannot prove that a value is never taken, only that it was not taken at the points sampled — but it is good at catching blunders, such as a sign error that flips an interval. When the function is outside the provable families, the scan is all there is, and the tool says so: the result is headed as an estimate, the wording describes what the scan saw ("values from about this to about that in the scanned windows"), and the true range is explicitly allowed to extend beyond it. If you need an exact answer for such a function, the by-hand route is the solving test — set y = f(x), solve for x, and find which y values admit a real solution — possibly with calculus for the turning points.

Common mistakes when finding domain and range

Mistake one: giving the logarithm a square bracket. Writing the domain of log(x + 1) as [−1, ∞) claims the function is defined at x = −1, where its argument is 0. Logarithm arguments must be strictly positive; the bracket is round. The mirror-image mistake — giving sqrt(x − 3) a round bracket at 3 — throws away a point where the function is perfectly well defined.

Mistake two: excluding only the domain point and forgetting the range has exclusions too. Students find x ≠ 2 for 1/(x − 2) and then write the range as all real numbers. The horizontal asymptote removes 0 from the range. Whenever a domain point is excluded by a denominator, ask the range question separately: which y would need that forbidden x, or no x at all?

Mistake three: reporting the vertex x instead of the vertex y in a quadratic range. The range of x^2 − 4x + 3 is [−1, ∞): −1 is the value at the vertex, f(2), not the 2 where it occurs. The vertex's x-coordinate belongs to the domain side of the story; its y-coordinate bounds the range.

Mistake four: assuming every rational function misses its asymptote value. It is true for the families proved on this page, but a rational function can cross its horizontal asymptote at some finite x while still approaching it at the ends — crossing and approaching are different claims. That is one reason this tool restricts its exact rational ranges to the cases the solve-for-x test fully settles.

Mistake five: reading a sampled graph as proof. A plotting window that shows no values between two heights does not prove a gap — the function might dip there between samples — and a window that seems to touch an asymptote value may just be drawing resolution. Use graphs to suspect, and algebra to conclude; the cross-check section above explains how this page keeps the two in that order.

Honest limits: what is exact here and what is an estimate

This domain and range finder solves exactly the following, and only the following. Polynomials of any degree — with one flagged exception: for even-degree polynomials of degree four or higher, the domain is exact but the single global turning value that bounds the range is found numerically (a dense scan plus refinement) and is labelled "numerically determined" in the result, because a general quartic-or-higher extremum has no tidy closed form worth printing. Rational functions whose denominators are linear or factorable quadratics — the domain always exact; the range exact for constant-over-linear and linear-over-linear, estimated otherwise. Square roots of linear or quadratic radicands, including an outer scale and shift. Logarithms (log or ln) of a linear argument. Absolute values of linear or quadratic arguments. Exponentials of a linear argument. Sine or cosine of a linear argument, scaled and shifted.

Outside that list — tangent, sine of a quadratic, nested combinations such as sqrt(log(x)), powers like x^x, denominators of degree three or more — the tool returns the numeric scan labelled as an estimate, or a clean error if the expression cannot be parsed at all. It will not round an estimate into interval notation and present it as proved. The expression language itself is bounded in the same spirit: numbers, x, pi, e, the operators + − * / ^ with parentheses and implicit multiplication, and the functions sqrt, abs, sin, cos, tan, log, ln and exp, read by a small recursive-descent parser written for this site. User input is never passed to eval or any equivalent, angles are in radians, and log means base 10 while ln is the natural logarithm. If your function needs more than this — a fully symbolic engine with per-problem discriminant arguments — a computer algebra system is the right next step, and the labelled estimate here will at least tell you what answer to expect it to prove.

Sources and References

The definitions, the radicand and logarithm-argument rules, the vertex method for quadratic ranges and the asymptote conventions in this guide follow the standard textbook treatment of domain and range in the sources below. Every worked number on this page — the exclusions for 1/(x − 2) and 1/x, the [3, ∞) and [0, ∞) of sqrt(x − 3), the vertex value −1 of x^2 − 4x + 3, the (−1, ∞) domain of log(x + 1), and the [−1, 3] range of 2·sin(x) + 1 — was produced by this page's own engine and checked by hand, so you can reproduce each one in the tool above. Source note: all seven links below were verified live (HTTP 200) on 24 November 2026. Two candidate sources checked the same day (a Paul's Online Math Notes page and a Cuemath page) returned 404 and were dropped rather than linked unverified; no other substitutions were needed.