Home » Math Theory » Graphs and Charts » Mapping Diagrams

Mapping Diagrams

Quick answer

A mapping diagram shows a relation as two ovals: the inputs (domain) on the left, the outputs (range) on the right, and an arrow from each input to its output. It is a function when every input has exactly one arrow leaving it. Two inputs may share an output (many-to-one), but one input may not point to two outputs.

Reviewed by the Helping with Math Team · Updated 10 October 2026

What is a mapping diagram?

The pairing of the elements is shown in the mapping diagram. It represents the input and output values of a function like a flowchart. To depict the relationship between any two elements, lines or arrows are drawn from the domain to the range.

We will learn more about mapping diagrams in this article and use them to show relationships and functions.

Mapping diagram definition

A mapping diagram has two columns, one of which designates a function’s domain and the other its range. Arrows or lines are drawn between the domain and the range to show the relationship between two items.

How to make a mapping diagram

Two columns that are parallel make up a mapping diagram. A function’s domain is shown in the first column, and its range is shown in the second column. The relationship between any two items is shown by lines or arrows traced from domain to range.

The following are the easy steps to creating a mapping diagram.

Step 1: Create two circles or ovals next to one another.
Step 2: List every input value in the circle or oval.
Step 3: List every output value in the right circle or oval.
Step 4: Connect each input value to its corresponding output value with an arrow, and repeat the process until all pairs have been matched.

Furthermore, only one listing is required for each value that appears more than once in either circle or oval, and multiple arrows can be used to signify that duplication.

Examples

Example 1

Create a mapping diagram for the information in the table below.

InputOutput
1A
2B
3C
4D
5E

Solution

Let us follow the steps in creating a mapping diagram.

Step 1: Create two circles or ovals next to one another.

Ensure that the oval displaying the input or output values is labeled.

Step 1: two empty ovals labeled Input and OutputInputOutput
Step 1: two ovals side by side, labeled Input and Output.

Step 2: List every input value in the circle or oval.

There are five elements in the input oval.

Step 2: inputs 1 to 5 listedInputOutput12345
Step 2: the five inputs 1, 2, 3, 4, 5 go in the left oval.

Step 3: List every output value in the right circle or oval.

There are five elements in the output oval.

Step 3: outputs A to E listedInputOutput12345ABCDE
Step 3: the five outputs A, B, C, D, E go in the right oval.

Step 4: Connect each input value to its corresponding output value with an arrow and repeat the process until all pairs have been matched.

The two circles or ovals with the labels input and output and their elements are displayed in the illustration below.

Mapping diagram: 1 to A, 2 to B, 3 to C, 4 to D, 5 to EInputOutput12345ABCDE
Step 4: one arrow for each row of the table: 1 → A, 2 → B, 3 → C, 4 → D, 5 → E.

Example 2

Use a mapping diagram to represent the relation.

Graph of eight points for Example 2xy−5−4−4−3−3−2−2−1−1001122334455(−3, 2)(−2, 1)(−1, −1)(1, 1)(2, 3)(3, 2)(4, −2)(5, −1)
The eight points: (−3, 2), (−2, 1), (−1, −1), (1, 1), (2, 3), (3, 2), (4, −2), (5, −1).

Solution

Let us first list the points shown in the graph as ordered pairs. So, we have,

( -3, 2 ) , ( -2, 1 ) , ( -1, -1 ) , ( 1, 1 ) , ( 2, 3 ) , ( 3, 2 ) , ( 4, -2 ) , ( 5, -1 )

All x-values are the input values, while the y -values are the output values.

Step 1: Create two circles or ovals next to one another.

Let us label the input values X and the output values Y.

Step 1: ovals X and YXY
Step 1: label the ovals X (inputs) and Y (outputs).

Step 2: List every input value in the circle or oval.

There are eight elements in the input or x-values.

Step 2: the eight x-valuesXY−3−2−112345
Step 2: the eight x-values −3, −2, −1, 1, 2, 3, 4, 5.

Step 3: List every output value in the right circle or oval.

There are only five elements in the output or y-values. Notice that only one listing is required for each value that appears more than once. The numbers -1, 1 and 2 each appear twice in the output values.

Step 3: the five different y-valuesXY−3−2−112345−2−1123
Step 3: the y-values written once each: −2, −1, 1, 2, 3.

Step 4: Connect each input value to its corresponding output value with an arrow and repeat the process until all pairs have been matched.

The mapping diagram below shows the relation of the given graph above.

Mapping diagram of the eight ordered pairsXY−3−2−112345−2−1123
Step 4: eight arrows, one per point. Each input has one arrow, so this relation is a function.

Example 3

Create a mapping diagram for the information in the table below.

InputOutput
A10
B10
C30
D20
E30

Solution

Let us follow the steps in creating a mapping diagram.

Step 1: Create two circles or ovals next to one another.

Ensure that the oval displaying the input or output values is labeled.

Step 1: two empty ovalsInputOutput
Step 1: two labeled ovals.

Step 2: List every input value in the circle or oval.

There are five elements in the input oval.

Step 2: inputs A to EInputOutputABCDE
Step 2: the five inputs A, B, C, D, E.

Step 3: List every output value in the right circle or oval.

There are three elements in the output oval: 10, 20 and 30. 10 and 30 each receive two arrows, but each is listed once.

Step 3: outputs 10, 20, 30InputOutputABCDE102030
Step 3: only three outputs, 10, 20 and 30, each written once.

Step 4: Connect each input value to its corresponding output value with an arrow, and repeat the process until all pairs have been matched.

The two circles or ovals with the labels input and output and their elements are displayed in the illustration below.

Mapping diagram: A and B to 10, C and E to 30, D to 20InputOutputABCDE102030
Step 4: A → 10, B → 10, C → 30, D → 20, E → 30. Two arrows meet at 10 and two at 30.

One-to-one mapping

One-to-one mapping is a function represented by the mapping below, where each output member is associated with exactly one input member.

The image below shows that each element in the input values corresponds to exactly one element in the output values.

One-to-one mappingInputOutput1234ABCD
One-to-one: every input has one output and no output is shared. This is a function.

One-to-many mapping

A one-to-many relation exists when one element in the input values is mapped to multiple elements in the output values. Functions are not one-to-many relations.

The image below shows that an element in the input values corresponds to two different elements in the output values.

One-to-many mappingInputOutput123ABCD
One-to-many: input 1 has two outputs, A and B. This is not a function.

Many-to-one mapping

A many-to-one relation exists when two or more inputs are mapped to the same output, while each input still has only one output. Many-to-one relations are functions.

The image below shows that three elements in the input values correspond to the same element in the output values.

Many-to-one mappingInputOutput1234AC
Many-to-one: inputs 2, 3 and 4 share the output C. Each input still has one output, so this is a function.

Many-to-many mapping

A many-to-many relation exists when multiple elements in the input values are mapped to multiple elements in the output values. Functions are not many-to-many relations.

Mapping diagram you can edit: inputs 1 to 4, outputs A to DInputOutput1A2B3C4D

Type: one-to-one. Domain used {1, 2, 3, 4}, range {A, B, C, D}. A function: every input has exactly one output.

Try it: press a pair to add or remove that arrow. The diagram names the mapping type, lists the domain and range, and says whether the relation is a function and why.

The image below shows that multiple elements in the input values correspond to multiple elements in the output values.

Many-to-many mappingInputOutput1234ABCD
Many-to-many: 1 and 4 each have two outputs, and B and C each receive two arrows. This is not a function.

Relations and functions

Functions are relations that link one set of inputs to another set of outputs. In contrast, relations are a group of ordered pairings connecting one set of objects to another set of objects. As a result, not all relations are functions, but all functions are relations.

What is a Relation?

An ordered pair collection is called a relation. The relationship between two separate sets of information is generally defined by the term “relation.” A point with both x and y coordinates is known as an ordered pair. Relations can be presented in three different ways: as a table, a graph, or a mapping diagram.

Let us have a look at two sets, x and y, where x and y are related. Domain and range are terms used to describe the values of sets x and y, respectively. Let us have the ordered pairs below as an example and illustrate these pairs using a mapping diagram.

Ordered pairs: ( 2, 3 ) , ( 5, 4 ) , ( 3, 1 ) , ( 1, 3 ) and ( 4 , 2 )

Mapping diagram of (2, 3), (5, 4), (3, 1), (1, 3), (4, 2)XY123451234
The pairs (2, 3), (5, 4), (3, 1), (1, 3) and (4, 2): 1 → 3, 2 → 3, 3 → 1, 4 → 2, 5 → 4.

What is a function?

All functions are relations, but not all relations are functions. In a function each input links to exactly one output, never to more than one. One-to-one and Many-to-one relations are examples of functions.

  • One-to-one mappingInputOutput1234ABCDOne-to-one
  • Many-to-one mappingInputOutput1234ACMany-to-one
Both are functions: every input has exactly one arrow leaving it.

In both diagrams every input has exactly one arrow leaving it. That is what makes them functions.

Mapping diagram examples with solutions

Example 1

Analyze the mapping diagram to see if the relationship is a function.

  • Mapping diagram (a)InputOutput1234ABCD(a)
  • Mapping diagram (b)InputOutput1234xyr(b)
  • Mapping diagram (c)InputOutput1234abcd(c)
  • Mapping diagram (d)InputOutput4abcd(d)
(a) 1 → A, 2 → C, 3 → D, 4 → B. (b) 1 → x, 2 → r, 3 → r, 4 → y. (c) 1 → a, 1 → b, 2 → d, 4 → c. (d) 4 → a, b, c and d.

Solution

  1. A function: each input has exactly one output.
  2. A function. 2 and 3 share the output r, but no input has more than one output.
  3. Not a function: 1 is paired with two outputs, a and b (and 3 has no output at all).
  4. Not a function: 4 is paired with four outputs, a, b, c and d.

Example 2

Draw a mapping diagram for the function y = 3x2 + 4 in the set of real numbers.

Solution

Pick a few elements from the domain first. Then, determine the range of y values by substituting the elements in the domain. Let us say, for example, let us use the following x-values: -2, -1, 0, 1, 2 and 3.

Each x-value is entered into the function to determine its range.

when x = -2
y = 3 ( -2 )2 + 4
y = 3 ( 4 ) + 4
y = 12 + 4
y = 16
when x = -1
y = 3 ( -1 )2 + 4
y = 3 ( 1 ) + 4
y = 3 + 4
y = 7
when x = 0
y = 3 ( 0 )2 + 4
y = 3 ( 0 ) + 4
y = 0 + 4
y = 4
when x = 1
y = 3 ( 1 )2 + 4
y = 3 ( 1 ) + 4
y = 3 + 4
y = 7
when x = 2
y = 3 ( 2 )2 + 4
y = 3 ( 4 ) + 4
y = 12 + 4
y = 16
when x = 3
y = 3 ( 3 )2 + 4
y = 3 ( 9 ) + 4
y = 27 + 4
y = 31

If we look at the solution as ordered pairs, we have,

{ ( -2, 16 ), ( -1, 7 ), ( 0 , 4 ), ( 1, 7 ), ( 2, 16 ), ( 3, 31 ) }

To create the mapping diagram, we must list every input value (domain) in one circle or oval, followed by every output value in the other (range), to create a mapping diagram. Then, an arrow connects each input value to its corresponding output value.

The image below shows a mapping diagram for the given.

Mapping diagram of y = 3x² + 4xy−2−10123471631
y = 3x² + 4: −2 → 16, −1 → 7, 0 → 4, 1 → 7, 2 → 16, 3 → 31. Opposite inputs share an output, so it is many-to-one: still a function.

Example 3

Create a mapping diagram for the function y = 2x2 – x – 2 using the input values -3, -2, -1, 0, 1, and 2.

Solution

Let us plug in the given values in the given function.

Each x-value is entered into the function to determine its range.

when x = -3
y = 2 ( -3 )2 – ( -3 ) – 2
y = 2 ( 9 ) + 3 – 2
y = 18 + 3 – 2
y = 19
when x = -2
y = 2 ( -2 )2 – ( -2 ) – 2
y = 2 ( 4 ) + 2 – 2
y = 8 + 2 – 2
y = 8
when x = -1
y = 2 ( -1 )2 – ( -1 ) – 2
y = 2 ( 1 ) + 1 – 2
y = 2 + 1 – 2
y = 1
when x = 0
y = 2 ( 0 )2 – ( 0 ) – 2
y = 2 ( 0 ) – 0 – 2
y = 0 – 0 – 2
y = -2
when x = 1
y = 2 ( 1 )2 – ( 1 ) – 2
y = 2 ( 1 ) – 1 – 2
y = 2 – 1 – 2
y = -1
when x = 2
y = 2 ( 2 )2 – ( 2 ) – 2
y = 2 ( 4 ) – 2 – 2
y = 8 – 2 – 2
y = 4

If we look at the solution as ordered pairs, we have,

{ ( -3, 19 ), ( -2, 8 ), ( -1 , 1 ), ( 0, -2 ), ( 1, -1 ), ( 2, 4 ) }

To create the mapping diagram, we must list every input value (domain) in one circle or oval, followed by every output value in the other (range), to create a mapping diagram. Then, an arrow connects each input value to its corresponding output value.

The image below shows a mapping diagram for the given.

Mapping diagram of y = 2x² − x − 2xy−3−2−1012−2−114819
y = 2x² − x − 2: −3 → 19, −2 → 8, −1 → 1, 0 → −2, 1 → −1, 2 → 4. One-to-one, so a function.

Example 4

Draw a mapping diagram for the ordered pairs below and identify the domain and range.

{ ( -4, 2 ) , ( -3, 5 ), ( -2, 0 ), ( 0, 6 ), ( 4, 11 ) , ( 5, 0 ) }

Solution

Using the ordered pairs above, we can find the domain by listing all the x-values. To find the range is to list all the y-values. When listing the numbers, make sure they are written from least to greatest.

Domain : { -4, -3, -2, 0, 4, 5 }

Range : { 0, 2, 5, 6, 11 }

Let us follow the steps below to draw the mapping diagram.

Step 1: Create two circles or ovals next to one another.
Step 2: List every input value in the circle or oval.
Step 3: List every output value in the right circle or oval.

The image below shows the mapping diagram of the given set of ordered pairs.

Mapping diagram for Example 4XY−4−3−2045025611
Domain {−4, −3, −2, 0, 4, 5}, range {0, 2, 5, 6, 11}. −2 and 5 both map to 0.

Example 5

Use a table of values and a mapping diagram to represent the points below.

Five points for Example 5xy−5−4−4−3−3−2−2−1−1001122334455(−2, −1)(−1, 1)(2, −2)(3, −1)(4, 1)
The five points: (−2, −1), (−1, 1), (2, −2), (3, −1), (4, 1).

Solution

The coordinates of the points in the given figure above are listed below:

{ ( -2 , -1 ), ( -1, 1) , ( 2, -2 ), ( 3, -1 ), ( 4, 1 ) }

If we write these ordered pairs in table values, we have,

XY
-2-1
-11
2-2
3-1
41

The figure below shows the mapping diagram for the given above. Take note that only one listing is required for each value that appears more than once in either column, and multiple arrows can be used to signify that duplication.

Mapping diagram for Example 5XY−2−1234−2−11
−2 → −1, −1 → 1, 2 → −2, 3 → −1, 4 → 1. The outputs −1 and 1 are each listed once and receive two arrows.

More practice: tape diagrams worksheets, mapping diagram worksheets and pictogram worksheets.

Mapping diagram FAQs

What is a mapping diagram?

A picture of a relation: inputs (the domain) in one oval, outputs (the range) in another, and an arrow from each input to its output.

How do you tell if a mapping diagram is a function?

Check every input. If each input has exactly one arrow leaving it, the relation is a function. If any input has two or more arrows, or none, it is not a function on that domain.

Can two inputs go to the same output in a function?

Yes. That is a many-to-one mapping, and it is still a function. Only one input going to two outputs breaks the rule.

How do you find the domain and range from a mapping diagram?

The domain is the list of values in the input oval and the range is the list of values in the output oval. Write each value once, from least to greatest.

Which mappings are functions?

One-to-one and many-to-one mappings are functions. One-to-many and many-to-many mappings are not.

Practise with worksheets

Link/Reference Us

We spend a lot of time researching and compiling the information on this site. If you find this useful in your research, please use the tool below to properly link to or reference Helping with Math as the source. We appreciate your support!

  • "Mapping Diagrams". Helping with Math. Accessed on November 12, 2026. https://helpingwithmath.com/mapping-diagrams/.

  • "Mapping Diagrams". Helping with Math, https://helpingwithmath.com/mapping-diagrams/. Accessed 12 November, 2026.

  • Mapping Diagrams. Helping with Math. Retrieved from https://helpingwithmath.com/mapping-diagrams/.