Key Points
- The answer to what is a function in 8th grade is a rule that assigns each input exactly one output, the wording used in the Common Core standards.
- A relation stops being a function only when one input has two different outputs, so two inputs sharing an output never break the rule.
- The US Postal Service letter price list effective October 4, 2026 makes price a function of weight, but weight is not a function of price.
- Function notation such as is not required in 8th grade, so 8th grade rules are written like .
One button, one snack, every time
Press B4 on a vending machine and exactly one snack should drop. If B4 gave pretzels on Monday and a granola bar on Tuesday, nobody could trust that button. That promise (one button in, one result out) already answers what is a function.
The word is old. Gottfried Leibniz wrote in August 1673 about lines that "perform some function" in a figure. Leonhard Euler made functions the center of his 1748 book on analysis, as the MacTutor history of the function concept records.
Today the same promise runs spreadsheet formulas, weather forecasts and the physics that makes objects fall in video games.

What is a function?
The short answer to what is a function fits in one breath. A function is a rule that assigns to each input exactly one output. The input is the number you put in, usually called , and the output is the number the rule sends back, usually called .
Common Core standard 8.F.A.1 adds that the graph of a function is the set of ordered pairs , each an input with its output. The rule "multiply by 3, then add 2" turns 4 into 14, which makes the pair .
In 8th grade, your child is expected to see this rule in equations, tables, graphs and words. A footnote to the standard says function notation like is not required yet.
The US Postal Service price list effective October 4, 2026 is a real function. A stamped letter costs $0.82 up to 1 ounce, $1.11 up to 2 ounces, $1.40 up to 3 ounces and $1.69 up to 3.5 ounces, so each weight gets one price.
How does a function machine turn inputs into outputs?
A function machine takes one input, applies its rule and sends out one output.
- Choose an input, such as .
- Apply the rule "multiply by 3, then add 2", which gives .
- Read the output, , and write the pair .
As an equation, the rule is . Here is the input (the independent variable, because you choose it) and is the output (the dependent variable, because it depends on ). Several inputs through one rule build a function input output table.
| Input | Output |
|---|---|
| 0 | 2 |
| 1 | 5 |
| 4 | 14 |
| 5 | 17 |
Kids fresh from solving equations often expect one answer in total. A function has one answer per input, and each new input may bring a new answer.
Word problems usually give the rule in words.
| Words in the problem | Math it means |
|---|---|
| "multiply by 3, then add 2" | |
| "up by 4 each time the input goes up by 1" | the rule includes |
| "over 1 but not over 2 ounces" | , with the weight |
| "an input with two outputs" | not a function |
How can you tell if something is a function?
Look for an input that shows up with two different outputs. Find one and the relation is not a function. Find none and it is.
A relation is any set of input-output pairs, and a function is a relation that keeps the one-output promise.
- List the inputs (the values) and nothing else.
- Mark any input that appears more than once.
- Compare its outputs. Different outputs mean not a function.
Here is the part that confuses almost everyone. Outputs may repeat. In the output 2 appears twice, yet it is a function, because 6 and 8 each have one output. This is called many-to-one. Running a finger down the input column, and only that column, keeps the eyes in the right place.
A mapping diagram shows the check with arrows from an oval of inputs to an oval of outputs. One arrow leaving each input means a function.

On a graph, this becomes the vertical line check. If any vertical line crosses the graph more than once, one input has two outputs. Tables, mappings, equations and graphs each get a full walkthrough in recognizing functions.
Try It Yourself
Pick a machine, then send in inputs one at a time and watch each ordered pair land in the table. Keep going until some input comes back with two outputs, or until you are sure none will, and decide whether that machine is a function.
Examples of what is a function
Example 1
Use the rule "multiply by 4, then subtract 7" to find the outputs for the inputs 3, 0 and .
Write the rule as .
The pairs are , and .
Example 2
Is the set a function?
The tempting move is to spot the four 5s and say no, because the outputs repeat.
That checks the wrong column. A function breaks only when one input has two different outputs, and the inputs 1, 2, 3 and 4 each appear once.
So the set is a function. Its rule is , called a constant function.
Example 3
Is a function? If not, which pair could you remove to make it one?
The input 2 appears twice, with the outputs 3 and 9.
One input has two outputs, so it is not a function. Removing or fixes it.
Example 4
A table pairs the inputs 1, 2, 3 and 4 with the outputs 7, 11, 15 and 19. Find the rule and the output for the input 10.
Each time the input goes up by 1, the output goes up by 4, so the rule starts with .
For , is 4 and the output is 7, which is 3 more. The rule is .
Check: , and .
The input 10 gives 43. Turning tables into rules is the heart of writing linear equations.
Example 5
The rule takes the inputs , , , and . Is it a function? Is it still one if you swap inputs and outputs?
Each input has one output, so is a function, even though 9 and 1 each appear twice.
Swapping gives and . The input 9 now has two outputs, so the swap is not a function.
Example 6
Using the 2026 postage prices above, find the cost of mailing a 1.5-ounce letter and a 2.5-ounce letter. Is weight a function of price?
A 1.5-ounce letter is over 1 ounce but not over 2, so it costs $1.11. A 2.5-ounce letter is over 2 but not over 3, so it costs $1.40.
$$$1.11 + $1.40 = $2.51$$
Mailing both costs $2.51.
Now start from the price $1.11. Letters of 1.2, 1.5 and 2 ounces all cost $1.11, so one price points to many weights. Weight is not a function of price.

Why do mathematicians insist on one output?
A rule that can give two answers cannot predict anything. The one-output promise matters anywhere a number has to be trusted.
- Predictions you can plan around. A post office scale has to name one price for a 2.5-ounce letter, or nobody could budget for postage.
- Graphs you can read. Each value matches at most one point on the graph, so a graph works like a lookup chart.
- Spreadsheets and code. A cell that multiplies the number beside it by 3 and adds 2 returns one value for each number, every time.
- A language for change. Euler's 1748 book put functions at the center of analysis, the mathematics of change, where a rule can say how a distance grows as time passes.
High school algebra adds the notation and words like domain and range. The promise underneath stays the same.
Where do kids trip up on functions?
Mistake 1: Checking the output column for repeats
Where it slips in: Tables and lists of ordered pairs, as in Examples 2 and 3.
Don't do this: Look at inputs 2, 3, 5, 3 with outputs 4, 6, 10, 8, see no repeated output and call it a function.
The correct way: Check the input column. The input 3 has the outputs 6 and 8, so the table is not a function.
The first instinct is to scan the right-hand column, because that is where answers usually live.

Mistake 2: Thinking a function must be a straight line or a formula
Where it slips in: Curved graphs and price charts.
Don't do this: Say is not a function because , and do not line up. Or call a postage chart a non-function because it has no equation.
The correct way: Check inputs and outputs only. The Common Core grade 8 standards use the area of a square, with those same points, as a function that is not linear. The linear and nonlinear functions lesson compares the two families.
Most 8th grade graphs are lines, so "function" and "line" start to feel like one word.
Mistake 3: Using relation and function as the same word
Where it slips in: Vocabulary questions such as "Is this relation a function?"
Don't do this: Call from Example 3 a function because it is a set of pairs.
The correct way: Every set of input-output pairs is a relation, and only relations with one output per input are functions. The page on relations and functions sets them side by side.
The two words appear together so often that they blur.
What most guides miss about functions
Direction matters. Most guides ask whether a relation is a function and stop, yet the same pairs can keep the promise one way and break it the other. Example 5 works from input to output, and its swap does not. Price is a function of weight, and weight is not a function of price.
The second gap is wrong answers. The IES practice guide on algebra (2015, revised 2019) recommends using solved problems so students analyze the reasoning. A tempting wrong solution, like reading the four 5s in Example 2 as a broken rule, shows exactly where the idea gets misread.
Key Takeaways
- Every input leads to exactly one output, however the rule is written.
- Repeated outputs are fine, and only an input with two different outputs breaks the rule.
- Swapping inputs and outputs can turn a function into a relation that is not one, as shows.
- Tables, sentences, ordered pairs and price charts can all be functions, so what is a function depends on the pairing, never on a straight line.
- For more practice spotting the input that splits into two outputs, explore Bhanzu's 8th grade math curriculum or work with an algebra tutor.
Read More
- Comparing Linear Functions
- Interpreting and Sketching Graphs of Functions
- Equations With Variables on Both Sides
- Types of Functions
- One to One Function
Research Behind This Article
- J J O'Connor and E F Robertson, MacTutor History of Mathematics, The function concept (2005). mathshistory.st-andrews.ac.uk
- Common Core State Standards Initiative, Grade 8: Functions (2010). thecorestandards.org
- United States Postal Service, Notice 123: Price List, effective October 4, 2026 (2026). pe.usps.com
- OpenStax, College Algebra 2e, 3.1 Functions and Function Notation (2021). openstax.org
- Institute of Education Sciences, What Works Clearinghouse, Teaching Strategies for Improving Algebra Knowledge in Middle and High School Students (2019). ies.ed.gov
Quick Quiz: Check Yourself
Three levels, new numbers every time: find outputs from a rule, spot the input that breaks a function, then price two letters from a postage chart.
Was this article helpful?
Your feedback helps us write better content
Frequently Asked Questions
Does my 8th grader need to use notation?
What are the types of functions?
Is a function in programming the same as a function in math?
What does domain and range of a function mean?
How do you tell if something is a linear function?
How can I help my child if functions feel confusing at home?




