Rotation Calculator

Rotate a 2D point around any center point by a given angle and get the new coordinates, using the standard rotation-matrix formula.

Quick Facts

Rotation formula
x′ = cx + (x−cx)cosθ − (y−cy)sinθ
y′ = cy + (x−cx)sinθ + (y−cy)cosθ
Derived from the standard 2D rotation matrix.
Sign convention
Positive θ = counterclockwise
Standard math convention with the y-axis pointing up.
Invariant
Distance from center is preserved
Rotation is a rigid transformation — no scaling or shearing.

Your Results

Calculated
Rotated X (x′)
-
New X coordinate
Rotated Y (y′)
-
New Y coordinate
Distance from center
-
Unchanged by rotation
New angle from center
-
Polar angle of the rotated point

Ready

Enter a point, center, and angle, then press Calculate.

How 2D Point Rotation Works

Rotating a point in a 2D plane means moving it along a circular arc around a fixed center point, through a given angle, without changing its distance from that center. The standard tool for this is the 2D rotation matrix: for a point (x, y) rotated by angle θ counterclockwise around the origin, the new coordinates are x′ = x·cosθ − y·sinθ and y′ = x·sinθ + y·cosθ. When the center of rotation is not the origin, you first shift the point so the center sits at the origin, apply the same rotation, then shift back: x′ = cx + (x−cx)cosθ − (y−cy)sinθ and y′ = cy + (x−cx)sinθ + (y−cy)cosθ, where (cx, cy) is the pivot point.

Formula and method

Enter the point's (x, y) coordinates, the center of rotation (cx, cy) — use (0, 0) to rotate around the origin — the rotation angle, and whether the angle is in degrees or radians. If you enter degrees, the calculator first converts θ to radians (θ_rad = θ_deg × π/180) since JavaScript's trigonometric functions expect radians. Choosing "clockwise" simply negates the angle before it is applied, since clockwise rotation is the mirror of counterclockwise rotation in the standard x-right, y-up coordinate system. The calculator then applies the rotation-matrix formula above to compute the new coordinates (x′, y′).

Common sources of error

  • Degrees vs. radians: a 90 typed into a field expecting radians rotates the point by roughly 5,157° instead of 90° — always confirm the angle unit selector matches your input.
  • Wrong center point: forgetting to set the center of rotation (leaving it at a stale value) rotates the point around the wrong pivot, giving a plausible-looking but incorrect answer.
  • Direction confusion: mixing up clockwise and counterclockwise flips the sign of the angle and lands the point in the wrong quadrant — check the sign convention before trusting the result.

Checking your result

Because rotation is a rigid transformation, the distance from the center to the rotated point must exactly equal the distance from the center to the original point — this calculator shows that distance so you can confirm it did not change. As a quick sanity check, a 90° counterclockwise rotation of a point on the positive x-axis relative to the center should land on the positive y-axis relative to that same center, and a 180° rotation should land diametrically opposite the original point.

Applications

Point rotation is fundamental to computer graphics and game development (rotating sprites, models, and cameras), robotics and CNC machining (reorienting tool paths and coordinate frames), CAD and engineering drawings (rotating shapes around a pivot), and physics problems involving circular or rotational motion. In every case, the same rotation-matrix formula applies — only the center point, angle, and coordinate convention change.

Frequently Asked Questions

What is the formula for rotating a point around the origin?
To rotate a point (x, y) by angle θ counterclockwise around the origin, use x′ = x·cosθ − y·sinθ and y′ = x·sinθ + y·cosθ. For example, rotating (3, 0) by 90° gives x′ = 3·cos90° − 0·sin90° = 0 and y′ = 3·sin90° + 0·cos90° = 3, so the point moves to (0, 3).
How do I rotate a point around a center other than the origin?
Translate the point so the center becomes the origin, rotate, then translate back: x′ = cx + (x − cx)cosθ − (y − cy)sinθ and y′ = cy + (x − cx)sinθ + (y − cy)cosθ, where (cx, cy) is the pivot point.
Which direction does a positive angle rotate — clockwise or counterclockwise?
In standard math convention (x-axis right, y-axis up), a positive angle rotates counterclockwise. This calculator lets you choose clockwise instead, which simply negates the angle before applying the same formula.
Does rotating a point change its distance from the center?
No. Rotation is a rigid transformation, so the distance from the pivot point to the rotated point always equals the distance from the pivot to the original point — only the angle around the center changes.