Shape Reflection Calculator – Reflect Over x-Axis, y-Axis, y = x & More

A shape reflection calculator reflects the points of a shape over the x-axis, the y-axis, the lines y = x or y = −x, the origin, or any vertical or horizontal line, and graphs the image next to the original.

Shape Calculators

Shape Reflection Calculator

Reflect a shape over the x-axis, y-axis, y = x, y = −x, the origin, or any vertical or horizontal line, with a graph of the image.

One point per line, e.g. 2, 3

The starting values are a triangle with points (1, 1), (5, 1) and (2, 4), reflected over the x-axis. Enter one point per line as x, y, choose the line of reflection from the list and, for a line such as x = k or y = k, type the value of k.

The lines you can reflect over

The calculator offers seven choices: the x-axis, the y-axis, y = x, y = −x, the origin as a point reflection, a vertical line x = k and a horizontal line y = k. It returns the reflected points in the same order as the points you entered and draws both shapes on a graph.

The reflection rules

x-axis: (x, y) → (x, −y)

y-axis: (x, y) → (−x, y)

Line y = x: (x, y) → (y, x)

Line y = −x: (x, y) → (−y, −x)

Origin: (x, y) → (−x, −y)

Vertical line x = k: (x, y) → (2k − x, y)

Horizontal line y = k: (x, y) → (x, 2k − y)

These match the rules in a school geometry text. For the x-axis the y-coordinate changes sign, for the y-axis the x-coordinate changes sign, for y = x the coordinates swap, and for y = −x they swap and both change sign. The rules for x = k and y = k come from the fact that a reflected point is the same distance from the line on the other side, so the new coordinate is 2k minus the old one.

Worked example: the starting triangle over the x-axis

Using (x, y) → (x, −y):

(1, 1) → (1, −1)

(5, 1) → (5, −1)

(2, 4) → (2, −4)

The shape is flipped below the x-axis and each point is the same distance from the axis as before.

Worked example: the same triangle over four other lines

Over the y-axis, the points become (−1, 1), (−5, 1) and (−2, 4).

Over y = x, the coordinates swap, giving (1, 1), (1, 5) and (4, 2). The point (1, 1) is on the line, so it does not move.

Over y = −x, the points become (−1, −1), (−1, −5) and (−4, −2).

Over the origin, both signs change, giving (−1, −1), (−5, −1) and (−2, −4). This is the same as a 180° rotation about the origin.

Worked example: reflecting over a line x = k or y = k

Reflect the triangle over the vertical line x = 3. Each x-value becomes 6 − x, so the points are (5, 1), (1, 1) and (4, 4). The point (5, 1) and the point (1, 1) swap places, because they are each two units from the line.

Reflect the triangle over the horizontal line y = 2. Each y-value becomes 4 − y, giving (1, 3), (5, 3) and (2, 0).

What stays the same

A reflection is a rigid transformation, so side lengths, angles and area do not change. The starting triangle has an area of 6 before and after every reflection above. What does change is the direction of travel around the shape. If you list the points clockwise, the image is listed anticlockwise, which is what makes a reflection a mirror image and not a turn.

Combining reflections

Two reflections can produce a different transformation. Reflecting over the x-axis and then the y-axis gives (x, y) → (−x, −y), the same as the origin reflection and a half turn. Reflecting over two parallel lines gives a slide. For example, reflecting first over x = 0 and then over x = 3 sends x to −x and then to 6 − (−x) = x + 6, a shift of 6 to the right.

Reflection and symmetry

A shape has a line of symmetry when its reflection over that line lands exactly on the shape itself. You can use the calculator to test this. Reflect the points over the line you suspect and compare the image with the original. If the set of points is the same, even in a different order, the line is a line of symmetry. A square has four such lines, and a scalene triangle has none.

Checking your answer

Each point and its image should be the same distance from the line of reflection, on opposite sides. A point that lies on the line should not move at all. If every point has moved, check that you chose the right line from the list and, for x = k or y = k, that k has the value you meant.

Common mistakes

  • Swapping the coordinates for the y-axis or x-axis, which is the rule for y = x
  • Forgetting to change both signs for y = −x
  • Using k as the distance from the axis instead of the position of the line

Frequently asked questions

What is the rule for reflecting over the x-axis?

Keep the x-coordinate and change the sign of the y-coordinate: (x, y) becomes (x, −y). The point (2, 4) becomes (2, −4).

How do I reflect a point over y = x?

Swap the coordinates: (x, y) becomes (y, x). The point (5, 1) becomes (1, 5). For y = −x, swap them and change both signs, so (5, 1) becomes (−1, −5).

How do I reflect a shape over a line such as x = 3?

Replace each x-value with 2k minus x, where k is the position of the line, and keep the y-value. For x = 3, the point (5, 1) becomes (1, 1) and (2, 4) becomes (4, 4).

Does a reflection change the size of a shape?

No. A reflection keeps every length, angle and area, so a triangle with an area of 6 still has an area of 6. It only reverses the direction of travel around the shape.

Mark Danny

Mark Danny

Mark Danny builds and maintains the free calculators and guides on Area of Irregular Shapes Calculator. Every calculator page explains its formula and shows a worked example, so you can check the working yourself. Spotted a mistake or have a suggestion? Email gulsher.hingoro101@gmail.com.

Articles: 559