Domain and Range of a Function: How to Find Them

Quick answer: The domain is every x-value you're allowed to put into a function. The range is every y-value that comes out. For most algebra functions the domain is all real numbers, unless something breaks: you can't divide by zero, and you can't take the square root of a negative number (in real numbers).
From a list of points
f = {(1, 4), (2, 7), (3, 4), (5, 0)}
Domain: {1, 2, 3, 5}
Range: {0, 4, 7}
List each value once, even though 4 appears twice.
From an equation
f(x) = 2x + 3. Nothing breaks, so the domain is all real numbers. A non-flat line goes on forever up and down, so the range is all real numbers too.
f(x) = x². Any x works, so the domain is all real numbers. But squaring never gives a negative, so the range is y ≥ 0, written [0, ∞).
f(x) = 1 ÷ (x − 4). x = 4 would make the bottom zero. Domain: all real numbers except 4, written (−∞, 4) ∪ (4, ∞).
f(x) = √(x − 2). The inside can't be negative, so x − 2 ≥ 0, which gives x ≥ 2. Domain: [2, ∞). The square root is never negative, so the range is [0, ∞).
From a graph
Read the domain left to right along the x-axis and the range bottom to top along the y-axis. A solid dot means the endpoint is included; an open dot means it isn't.
Interval notation in one line
Use a square bracket [ ] when the endpoint is included and a round bracket ( ) when it isn't. Infinity always gets a round bracket.
Common mistakes
Swapping domain and range. Domain is x (inputs), range is y (outputs).
Bracketing infinity with [ ]. It's always (∞).
Forgetting the restriction from a fraction or a square root.
When extra support might help
Support is worth considering when functions start to feel abstract, especially in Algebra 2 and Precalculus.
A tutor can't promise a grade, but can make each step clear. Math Make Smart offers online math tutoring in the US, and you can book a free trial lesson. Related: our slope-intercept form guide and solving linear inequalities guide.
Frequently asked questions
What is the difference between domain and range?
The domain is the set of inputs (x); the range is the set of outputs (y).
What is the domain of a square root function?
All x that keep the expression under the root at zero or above.
How do you write domain in interval notation?
Square brackets for included endpoints, round brackets for excluded ones and for infinity.