Domain lists all valid inputs for a function; range lists all possible outputs—use this to understand what a function can do.
f:D→R
Solve a problem with Domain and Range
Type the problem. The solver will use Domain and Range where Domain and Range is the right tool, and tell you when it is not.
What each symbol means
What Domain and Range takes
Symbol
Meaning
f
The function itself—a rule that takes an input from D and produces an output in R. The letter f is just a label for the function, like how f(x)=2x+1 names a rule that doubles the input and adds one.
D
The domain: the set of all input values that can be used in the function. If a value is not in D, you cannot substitute it into f; either it breaks the function or the problem forbids it.
R
The range: the set of all output values that the function actually produces. It contains every result you get by evaluating f at all inputs in D, and it contains only those results—no impossible outputs.
When to use it
When you need to identify which inputs a function accepts and which outputs it can actually produce.
Level
Usually taught in: Algebra I · Appears on: SAT
Worked examples
1. Finding domain and range of a simple linear function
Problem
Find the domain and range of f(x)=2x+1 where x can be 0,1, or 2.
Domain={0,1,2}
The domain is the set of input values given in the problem: 0,1, and 2.
f(0)=2⋅0+1=0+1=1
Substitute x=0 into the function and simplify step by step.
f(1)=2⋅1+1=2+1=3
Substitute x=1 into the function and simplify.
f(2)=2⋅2+1=4+1=5
Substitute x=2 into the function and simplify.
Range={1,3,5}
The range is the set of output values we computed: 1,3, and 5.
Answer:Domain={0,1,2},Range={1,3,5}
We found the domain by reading the problem statement directly. We found the range by plugging each domain element into f and recording the outputs. This example shows that domain and range are connected: every output must come from exactly one or more inputs in the domain.
2. Finding domain and range when the function has a restriction
Problem
Find the domain and range of f(x)=2x−6.
2x−6≥0
The expression under a square root must be non-negative for the output to be real.
2x≥6
Add 6 to both sides.
x≥3
Divide both sides by 2 to isolate x.
Domain=[3,∞)
All real numbers from 3 onward work; in interval notation, this is [3,∞).
f(3)=2(3)−6=6−6=0=0
At the smallest input, x=3, the output is 0.
f(4)=2(4)−6=8−6=2≈1.41
As x increases, the radicand increases, so the output increases.
Range=[0,∞)
Square roots are always non-negative, and as x increases without bound, so does f(x).
Answer:Domain=[3,∞),Range=[0,∞)
This example shows that domain restrictions come from the function's structure—square roots demand non-negative radicands. Once we find the domain, the range follows by understanding what outputs the function can produce. The domain starts at 3 and goes to infinity, so the range starts at 0 and goes to infinity.
3. Domain and range in a real-world context
Problem
During a basketball game, a player makes between 0 and 15 successful free throws. Each free throw is worth 1 point. Let f(x) represent the player's points from free throws, where x is the number of successful free throws. Find the domain and range of f.
x=number of successful free throws
Define the input variable based on the problem context.
x∈{0,1,2,…,15}
The input must be a whole number from 0 to 15 because you cannot make a fraction of a free throw and the problem sets the limit at 15.
Domain={0,1,2,…,15}
The domain is all valid inputs: the integers from 0 to 15 inclusive.
f(x)=x
Each free throw equals 1 point, so the function that converts free throws to points is f(x)=x.
f(0)=0,f(15)=15
The minimum output is 0 points (no free throws made) and the maximum is 15 points (all made).
Range={0,1,2,…,15}
Since each value from 0 to 15 free throws produces a unique point total, the range is {0,1,2,…,15}.
Answer:Domain={0,1,2,…,15},Range={0,1,2,…,15}
Real-world problems restrict domain and range through context and physical constraints. Here, the domain is limited by basketball rules (maximum 15 free throw attempts), and the range is determined by the scoring rule (1 point each). In this case, domain and range are the same set, but that is not always true—domain and range are independent concepts that depend on the function.
Common mistakes
Where Domain and Range usually goes wrong
The mistake
Why it is wrong
The fix
For f(x)=x1, stating that the domain is all real numbers.
Students forget to check which input values cause the function to be undefined. Division by zero is undefined, so any input that causes it must be excluded from the domain.
The domain is all real numbers except x=0. Write this as (−∞,0)∪(0,∞) or as {x∣x=0}.
For f(x)=x2, claiming the range is all real numbers.
Students confuse the codomain (the target set for outputs) with the range (the outputs that actually occur). Squaring any real number—positive, negative, or zero—always gives a non-negative result.
The range of f(x)=x2 is [0,∞) or {y∣y≥0}, because no negative number can be the output of a squaring function.
Reading the notation f:D→R backwards and saying the domain is R and the range is D.
The arrow → points from domain to range, showing the direction of the mapping. Students sometimes confuse which set is which or read the notation in the wrong order.
Always read f:D→R as 'the function f maps from set D to set R.' This means D is the domain (inputs) and R is the range (outputs). The arrow always points from inputs to outputs.
Tips and when to use something else
Always ask 'What values break this function?' to find domain restrictions. Look for division by zero, square roots of negative numbers, and logarithms of zero or negative values.
Use interval notation when domain or range span a continuous range of values. For example, write [3,∞) instead of 'all numbers from 3 onward' for clarity and precision.
Draw a graph or build a table of (x,f(x)) pairs when domain and range are hard to visualize. The domain is the set of x-values used; the range is the set of y-values produced.
When domain and range are tricky, identify key features: Does the function have an asymptote (a value it approaches but never reaches)? Does it have a minimum or maximum output? Use Inverse Function to think about which outputs map back to inputs in the domain.
Why does a function need both a domain and a range when I only care about getting an answer?
You need the domain to know which inputs are safe to use. Without checking the domain, you might plug in a value that breaks the function (like x=0 in f(x)=x1). You need the range to know what outputs are possible, so you can tell if the function can answer your question. In real applications like medicine or engineering, using an invalid input or misunderstanding possible outputs can have serious consequences.
How do I find the domain of a function with a fraction, like f(x)=x−52x+1?
Set the denominator equal to zero and solve: x−5=0 gives x=5. The domain is all real numbers except x=5, which you write as (−∞,5)∪(5,∞) in interval notation. The rule is simple: any x value that makes the denominator zero must be excluded from the domain.
Can the domain and range include negative numbers or fractions?
Yes. Domains and ranges can include negative numbers, fractions, decimals, irrational numbers, or any real numbers, depending on the function. For example, the domain of f(x)=x2 includes all real numbers (positive, negative, fractions), but the range includes only non-negative real numbers. The specific values depend entirely on the function itself and any restrictions given in the problem.
Why does my calculator show an error when I try to compute f(x)=x1 at x=0?
Because 0 is not in the domain of f(x)=x1—division by zero is undefined. Your calculator is protecting you from an impossible computation. This is why identifying the domain of a function is so important: it tells you exactly which inputs make sense and which ones do not.
Need a different method?
The full solver is not scoped to one formula — type any problem and it will pick the method.