Domain and Range

Domain lists all valid inputs for a function; range lists all possible outputs—use this to understand what a function can do.

f:DRf : D \to 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.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What Domain and Range takes
ff
DD
RR
Domain and Range
SymbolMeaning
ffThe function itself—a rule that takes an input from DD and produces an output in RR. The letter ff is just a label for the function, like how f(x)=2x+1f(x) = 2x + 1 names a rule that doubles the input and adds one.
DDThe domain: the set of all input values that can be used in the function. If a value is not in DD, you cannot substitute it into ff; either it breaks the function or the problem forbids it.
RRThe range: the set of all output values that the function actually produces. It contains every result you get by evaluating ff at all inputs in DD, 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+1f(x) = 2x + 1 where xx can be 0,1,0, 1, or 22.
  1. Domain={0,1,2}\text{Domain} = \{0, 1, 2\}

    The domain is the set of input values given in the problem: 0,1,0, 1, and 22.

  2. f(0)=20+1=0+1=1f(0) = 2 \cdot 0 + 1 = 0 + 1 = 1

    Substitute x=0x = 0 into the function and simplify step by step.

  3. f(1)=21+1=2+1=3f(1) = 2 \cdot 1 + 1 = 2 + 1 = 3

    Substitute x=1x = 1 into the function and simplify.

  4. f(2)=22+1=4+1=5f(2) = 2 \cdot 2 + 1 = 4 + 1 = 5

    Substitute x=2x = 2 into the function and simplify.

  5. Range={1,3,5}\text{Range} = \{1, 3, 5\}

    The range is the set of output values we computed: 1,3,1, 3, and 55.

Answer: Domain={0,1,2},Range={1,3,5}\text{Domain} = \{0, 1, 2\}, \quad \text{Range} = \{1, 3, 5\}

We found the domain by reading the problem statement directly. We found the range by plugging each domain element into ff 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)=2x6f(x) = \sqrt{2x - 6}.
  1. 2x602x - 6 \geq 0

    The expression under a square root must be non-negative for the output to be real.

  2. 2x62x \geq 6

    Add 66 to both sides.

  3. x3x \geq 3

    Divide both sides by 22 to isolate xx.

  4. Domain=[3,)\text{Domain} = [3, \infty)

    All real numbers from 33 onward work; in interval notation, this is [3,)[3, \infty).

  5. f(3)=2(3)6=66=0=0f(3) = \sqrt{2(3) - 6} = \sqrt{6 - 6} = \sqrt{0} = 0

    At the smallest input, x=3x = 3, the output is 00.

  6. f(4)=2(4)6=86=21.41f(4) = \sqrt{2(4) - 6} = \sqrt{8 - 6} = \sqrt{2} \approx 1.41

    As xx increases, the radicand increases, so the output increases.

  7. Range=[0,)\text{Range} = [0, \infty)

    Square roots are always non-negative, and as xx increases without bound, so does f(x)f(x).

Answer: Domain=[3,),Range=[0,)\text{Domain} = [3, \infty), \quad \text{Range} = [0, \infty)

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 33 and goes to infinity, so the range starts at 00 and goes to infinity.

3. Domain and range in a real-world context

Problem

During a basketball game, a player makes between 00 and 1515 successful free throws. Each free throw is worth 11 point. Let f(x)f(x) represent the player's points from free throws, where xx is the number of successful free throws. Find the domain and range of ff.
  1. x=number of successful free throwsx = \text{number of successful free throws}

    Define the input variable based on the problem context.

  2. x{0,1,2,,15}x \in \{0, 1, 2, \ldots, 15\}

    The input must be a whole number from 00 to 1515 because you cannot make a fraction of a free throw and the problem sets the limit at 1515.

  3. Domain={0,1,2,,15}\text{Domain} = \{0, 1, 2, \ldots, 15\}

    The domain is all valid inputs: the integers from 00 to 1515 inclusive.

  4. f(x)=xf(x) = x

    Each free throw equals 11 point, so the function that converts free throws to points is f(x)=xf(x) = x.

  5. f(0)=0,f(15)=15f(0) = 0, \quad f(15) = 15

    The minimum output is 00 points (no free throws made) and the maximum is 1515 points (all made).

  6. Range={0,1,2,,15}\text{Range} = \{0, 1, 2, \ldots, 15\}

    Since each value from 00 to 1515 free throws produces a unique point total, the range is {0,1,2,,15}\{0, 1, 2, \ldots, 15\}.

Answer: Domain={0,1,2,,15},Range={0,1,2,,15}\text{Domain} = \{0, 1, 2, \ldots, 15\}, \quad \text{Range} = \{0, 1, 2, \ldots, 15\}

Real-world problems restrict domain and range through context and physical constraints. Here, the domain is limited by basketball rules (maximum 1515 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
Answer came out wrong
For f(x)=1xf(x) = \frac{1}{x}, stating that the domain is all real numbers.
The domain is all real numbers except x=0x = 0. Write this as (,0)(0,)(-\infty, 0) \cup (0, \infty) or as {xx0}\{x \mid x \neq 0\}.
For f(x)=x2f(x) = x^2, claiming the range is all real numbers.
The range of f(x)=x2f(x) = x^2 is [0,)[0, \infty) or {yy0}\{y \mid y \geq 0\}, because no negative number can be the output of a squaring function.
Reading the notation f:DRf: D \to R backwards and saying the domain is RR and the range is DD.
Always read f:DRf: D \to R as 'the function ff maps from set DD to set RR.' This means DD is the domain (inputs) and RR is the range (outputs). The arrow always points from inputs to outputs.
The mistakeWhy it is wrongThe fix
For f(x)=1xf(x) = \frac{1}{x}, 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=0x = 0. Write this as (,0)(0,)(-\infty, 0) \cup (0, \infty) or as {xx0}\{x \mid x \neq 0\}.
For f(x)=x2f(x) = x^2, 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)=x2f(x) = x^2 is [0,)[0, \infty) or {yy0}\{y \mid y \geq 0\}, because no negative number can be the output of a squaring function.
Reading the notation f:DRf: D \to R backwards and saying the domain is RR and the range is DD.The arrow \to 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:DRf: D \to R as 'the function ff maps from set DD to set RR.' This means DD is the domain (inputs) and RR 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,)[3, \infty) instead of 'all numbers from 33 onward' for clarity and precision.
  • Draw a graph or build a table of (x,f(x))(x, f(x)) pairs when domain and range are hard to visualize. The domain is the set of xx-values used; the range is the set of yy-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.

Frequently asked questions

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=0x = 0 in f(x)=1xf(x) = \frac{1}{x}). 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)=2x+1x5f(x) = \frac{2x + 1}{x - 5}?
Set the denominator equal to zero and solve: x5=0x - 5 = 0 gives x=5x = 5. The domain is all real numbers except x=5x = 5, which you write as (,5)(5,)(-\infty, 5) \cup (5, \infty) in interval notation. The rule is simple: any xx 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)=x2f(x) = x^2 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)=1xf(x) = \frac{1}{x} at x=0x = 0?
Because 00 is not in the domain of f(x)=1xf(x) = \frac{1}{x}—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.

Open the math solver

Reviewed 2026-09-18