🧮
🧮 Math & statistics

Rotation Calculator (rotate a point by an angle about the origin or any centre)

Results update as you type.

Your numbers

Understanding the point rotation calculator — concept and principle

This calculator rotates a point (x, y) by any angle, clockwise or counterclockwise, about the origin or about any centre you choose. It gives the new coordinates, the unchanged distance from the centre, the equivalent counterclockwise angle and the cosine and sine used. Use it for coordinate geometry, transformations homework, computer graphics, CAD and robotics.

Rotating a point about a centreTurn (5, 2) by 90° about (1, 1)(1, 1)(5, 2)(0, 5)distance √17 = 4.123
Shift the centre to the origin, turn (4, 1) into (−1, 4), shift back: (0, 5). The distance stays √17.

How it is calculated

Rotation counterclockwise by θ about the centre (a, b):

x′ = a + (x − a)·cos θ − (y − b)·sin θ

y′ = b + (x − a)·sin θ + (y − b)·cos θ

The principle

The rotation matrix [cos θ −sin θ; sin θ cos θ] sends the x-axis direction (1, 0) to (cos θ, sin θ) and the y-axis direction (0, 1) to (−sin θ, cos θ). Every other point is a combination of those two directions, so it rotates the same way. To rotate about a different centre, you move the centre to the origin, rotate, and move back. Rotation is a rigid motion: it keeps distances and angles, so the point stays on the same circle around the centre.

Worked example

Default inputs: point (5, 2), θ = 90°, counterclockwise, centre (1, 1).

  1. Shift so the centre is at the origin: (5 − 1, 2 − 1) = (4, 1).
  2. cos 90° = 0 and sin 90° = 1.
  3. Rotate: (4 × 0 − 1 × 1, 4 × 1 + 1 × 0) = (−1, 4).
  4. Shift back: (−1 + 1, 4 + 1) = (0, 5).
  5. Distance from the centre: √(4² + 1²) = √17 ≈ 4.12311, before and after.

How to read the result

The new coordinates are where the point lands. The distance from the centre should be the same before and after; that is a quick check. A 90° counterclockwise turn about the origin maps (x, y) to (−y, x), 180° to (−x, −y) and 270° to (y, −x).

Common mistakes

Keep in mind: Graphics and CAD software differ in axis direction and angle conventions. Check the convention before copying coordinates into a program or drawing.

Frequently asked questions

What is the rule for a 90° rotation about the origin?

Counterclockwise, (x, y) becomes (−y, x); clockwise, it becomes (y, −x).

Does rotation change the shape of a figure?

No. Rotating every vertex keeps all lengths and angles.

How do I rotate a whole shape?

Rotate each vertex with the same angle and centre, then join them in the same order.

Sources: OpenStax, Precalculus 2e (2021), §10.4 Rotation of Axes

Checked 9 Nov 2026. OpenStax, Precalculus 2e (2021), §10.4 Rotation of Axes (rotation formulas x = x′cos θ − y′sin θ, y = x′sin θ + y′cos θ), as published on Mathematics LibreTexts; the same matrix turns a point counterclockwise by θ.

🧮 All math & statistics tools →🌍 Calculators by country →