Shape Rotation Calculator – Rotate Points 90°, 180°, 270° or Any Angle

A shape rotation calculator rotates the points of a shape by any angle about the origin or any centre point, clockwise or anticlockwise, and lists the new coordinates and draws the image on a graph.

Shape Calculators

Shape Rotation Calculator

Rotate a shape’s points by any angle about the origin or any centre point, clockwise or anticlockwise, and see the image on a graph.

One point per line, e.g. 2, 3
Rules about the origin: 90° anticlockwise (x, y) → (−y, x); 180° (x, y) → (−x, −y); 270° anticlockwise (x, y) → (y, −x).

The starting values are a triangle with points (1, 1), (5, 1) and (2, 4), a rotation of 90 degrees, anticlockwise, about the centre (0, 0). Enter one point per line as x, y, set the angle and the direction, and change the centre if you want to turn the shape about another point.

What the calculator returns

It returns the rotated points in the same order as the points you entered, and draws both the original shape and its image on a graph so you can check the turn. The angle is entered in degrees, and the direction can be anticlockwise, which is the default, or clockwise.

The rotation formulas

x′ = cx + (x − cx) × cos θ − (y − cy) × sin θ

y′ = cy + (x − cx) × sin θ + (y − cy) × cos θ

Where:

  • x, y = the original point and x′, y′ = the rotated point
  • cx, cy = the centre of rotation, which is (0, 0) by default
  • θ = the angle, positive for anticlockwise and negative for clockwise

The formula first shifts the point so the centre is at the origin, turns it, and shifts it back. When the centre is the origin, cx and cy are 0 and the formula becomes x′ = x cos θ − y sin θ and y′ = x sin θ + y cos θ.

The rules for 90, 180 and 270 degrees

For the common angles about the origin, the formula reduces to a simple swap of the coordinates. A school geometry text gives these rules for anticlockwise turns.

  • 90° anticlockwise: (x, y) → (−y, x)
  • 180°: (x, y) → (−x, −y)
  • 270° anticlockwise: (x, y) → (y, −x)

A clockwise turn is the same as the opposite anticlockwise angle, so 90° clockwise equals 270° anticlockwise.

Worked example: the starting triangle turned 90 degrees

Using (x, y) → (−y, x) on each point:

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

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

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

Worked example: 180 degrees and 90 degrees clockwise

A 180° turn changes both signs, so the triangle becomes (−1, −1), (−5, −1) and (−2, −4).

A 90° clockwise turn uses (x, y) → (y, −x), which gives (1, −1), (1, −5) and (4, −2). These are the same points as a 270° anticlockwise turn.

Worked example: rotating about another centre

Rotate the same triangle 90° anticlockwise about the centre (1, 1). First subtract the centre from each point: (0, 0), (4, 0) and (1, 3). Apply (x, y) → (−y, x) to get (0, 0), (0, 4) and (−3, 1). Add the centre back to get (1, 1), (1, 5) and (−2, 2).

The first point stays where it is, because it is the centre of rotation.

Worked example: an angle that is not a multiple of 90

Rotate the point (4, 0) by 45° anticlockwise about the origin. Here x′ = 4 × cos 45° = 2.828 and y′ = 4 × sin 45° = 2.828, so the image is (2.828, 2.828). The distance from the origin is still 4, which is how you can check a rotation: every point stays the same distance from the centre.

What stays the same

A rotation is a rigid movement. Side lengths, angles and area do not change, only the position and direction of the shape. The starting triangle has a base of 4 and a height of 3, so its area is 6 before and after every rotation above. The order of the points around the shape is also kept, which means a rotation does not flip the shape.

Rotation and the order of the points

Enter the points in order around the shape, because the image keeps the same order. If you rotate a triangle, the first image point is the turned first point, so you can match each original point to its image by position in the list. This makes it easy to label a figure A, B, C and read off A′, B′, C′ directly from the result.

Checking your answer

Plot the original and the image. Each point should have moved along a circle around the centre, and the angle between a point, the centre and its image should equal the rotation angle. If a clockwise turn comes out as an anticlockwise one, the direction setting is the first thing to check.

Common mistakes

  • Forgetting the centre and rotating about the origin when the question names another point
  • Mixing up clockwise and anticlockwise, which gives the opposite turn
  • Entering the angle in radians when the calculator expects degrees

Frequently asked questions

How do I rotate a point 90 degrees about the origin?

For an anticlockwise turn, swap the coordinates and change the sign of the new x: (x, y) becomes (−y, x). The point (2, 4) becomes (−4, 2). For a clockwise turn, use (y, −x).

What is the rule for a 180 degree rotation?

Change the sign of both coordinates: (x, y) becomes (−x, −y). The triangle with a corner at (5, 1) has that corner at (−5, −1) after a half turn about the origin.

How do I rotate a shape about a point other than the origin?

Subtract the centre from each point, rotate about the origin, then add the centre back. The calculator does this with the centre x and centre y inputs, so (5, 1) turned 90° anticlockwise about (1, 1) becomes (1, 5).

Does rotating a shape change its area?

No. A rotation keeps every length and angle, so the area and perimeter are the same before and after. Only the position and the direction of the shape change.

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