Calcist

Style

Buttons

Spacing

How much to show

Decimal places

Text size

Coordinate rotation calculator

Rotate a point (x, y) by any angle about the origin or any center, with the rotation matrix and the working.

Private: calculated on your device. Nothing you type is sent anywhere.

Next: Need the distance between the two points? Use the distance calculator. Multiplying other matrices? Try the matrix calculator.

What it does

This calculator rotates a point (x, y) by any angle, clockwise or counterclockwise, around the origin or around any center point you choose. It shows the new coordinates, the rotation matrix with its numbers filled in, and each step. Use it for geometry homework, transformations, game and graphics code, or CAD work.

How it's calculated

A counterclockwise rotation by θ about the origin multiplies the point by the rotation matrix:

[x′]   [cos θ   −sin θ] [x]
[y′] = [sin θ     cos θ] [y]
x′ = x cos θ − y sin θ    y′ = x sin θ + y cos θ

A clockwise rotation is the same with −θ. To rotate around a center (h, k), shift the point so the center is at the origin, rotate, then shift back:

x′ = h + (x − h) cos θ − (y − k) sin θ    y′ = k + (x − h) sin θ + (y − k) cos θ

Worked example

Rotate (5, 2) by 90° clockwise around (1, 1). Shift: (5 − 1, 2 − 1) = (4, 1). Clockwise 90° means θ = −90°, so cos θ = 0 and sin θ = −1. Then x = 4·0 − 1·(−1) = 1 and y = 4·(−1) + 1·0 = −4. Shift back: (1 + 1, −4 + 1) = (2, −3). The distance from the center stays √17 ≈ 4.123 before and after.

Rotating a whole shape

To rotate a triangle, rectangle or any polygon, rotate each corner (vertex) with the same angle and center, then join the new corners in the same order. The shape keeps its size and angles; only its position and direction change. Rotating about one of the shape's own corners keeps that corner fixed, which is how you'd turn a door or a hand on a clock face.

Quick rules for common angles

Rotation about the origin(x, y) becomes
90° counterclockwise (270° clockwise)(−y, x)
180°(−x, −y)
90° clockwise (270° counterclockwise)(y, −x)
360°(x, y)

Limitations

  • This rotates a point in two dimensions. 3D rotations need a 3 × 3 matrix and an axis.
  • It moves the point and keeps the axes fixed. Rotating the axes instead (a change of coordinates) uses the transposed matrix, which is the same as rotating the point the other way.
  • Answers are rounded to 10 significant digits. Multiples of 90° in degrees are exact.

Sources

How we checked this

Before every update, this calculator is run in a real browser with these known answers, and it must match all of them:

  • (3, 4) turned 90° counterclockwise = (−4, 3) ✓
  • (1, 0) turned 45° = (0.7071067812, 0.7071067812) ✓
  • (5, 2) turned 90° clockwise about (1, 1) = (2, −3) ✓
  • (3, 4) turned π radians = (−3, −4) ✓
  • The distance from the center stays 5 ✓
  • Edge: π with degrees asks for radians ✓

Last checked October 26, 2026. Spotted something wrong? The math is done in your browser with the formula shown on this page, so you can check any result by hand.

Add this calculator to your website (free)

Paste this code into any web page. The calculator works on your page, resizes itself, has no ads and no tracking, and nothing your visitors type is sent anywhere. More about embedding.

Questions people ask

What is the rule for a 90 degree rotation?

Counterclockwise about the origin, (x, y) becomes (−y, x). Clockwise, it becomes (y, −x).

How do you rotate a point around another point?

Subtract the center from the point, rotate the result around the origin, then add the center back.

Is a positive angle clockwise or counterclockwise?

In math, a positive angle turns counterclockwise. Clockwise is the same as a negative angle. Some graphics systems flip the y-axis, which makes positive angles look clockwise on screen.

What is the rotation matrix?

For a counterclockwise turn by θ it's [[cos θ, −sin θ], [sin θ, cos θ]]. Multiplying a column vector (x, y) by it gives the rotated point.

Related calculators