Point Rotation Calculator

Point Rotation Calculator

Growing AI Skill PRO

Enter Calculation

Formula

x′=Δxcos⁡θ−Δysin⁡θ+Center Xy′=Δxsin⁡θ+Δycos⁡θ+Center Ywhere{Δx=Point X−Center XΔy=Point Y−Center Yθ=Angle·π180\begin{gathered} \begin{aligned} x^{\prime} &= \Delta x\cos\theta - \Delta y\sin\theta + \text{Center X} \\ y^{\prime} &= \Delta x\sin\theta + \Delta y\cos\theta + \text{Center Y} \end{aligned} \\[1.5em] \text{where}\quad \left\{ \begin{aligned} \Delta x &= \text{Point X} - \text{Center X} \\ \Delta y &= \text{Point Y} - \text{Center Y} \\ \theta &= \text{Angle} \cdot \dfrac{\pi}{180} \end{aligned} \right. \end{gathered}
Usage stats

Advertisement

Results

Rotated Point
( 0, 1 )
after rotating 90°
New X (x') 0
New Y (y') 1

Report an error on this page

What Is the Point Rotation Calculator?

This tool rotates a point in the 2D plane around a chosen center by a given angle. Rotation is a rigid transformation: it preserves distances and shapes, only changing orientation. It is used everywhere in geometry, computer graphics, robotics, game development, and engineering — whenever you need to spin an object or coordinate around a pivot.

How to Use It

Enter the coordinates of the point you want to rotate (Point X, Point Y). Set the center of rotation (Center X, Center Y) — leave it at (0, 0) to rotate around the origin. Then type the rotation angle in degrees. Positive angles rotate counter-clockwise, negative angles rotate clockwise. The calculator returns the new coordinates \((x', y')\).

The Formula Explained

A counter-clockwise rotation by angle \(\theta\) around the origin maps a point \((x, y)\) to:

$$x' = x\cos\theta - y\sin\theta \quad \text{and} \quad y' = x\sin\theta + y\cos\theta$$

To rotate around an arbitrary center \((cx, cy)\), first subtract the center from the point, apply the rotation, then add the center back. This three-step "translate–rotate–translate" approach is exactly what the calculator performs internally.

Advertisement
A point rotated around a center by angle theta on a coordinate plane
Rotating a point around a center c by angle \(\theta\) to its new position.

Worked Example

Rotate the point \((1, 0)\) by 90° around the origin. With \(\theta = 90°\), \(\cos\theta = 0\) and \(\sin\theta = 1\). So $$x' = 1\cdot 0 - 0\cdot 1 = 0 \quad \text{and} \quad y' = 1\cdot 1 + 0\cdot 0 = 1$$ The new point is \((0, 1)\) — exactly a quarter turn counter-clockwise, as expected.

Worked example showing a point rotated 90 degrees around the origin
A 90° rotation about the origin maps the point to a new quadrant.

Common Rotation Angles: Sine, Cosine and Resulting Mapping

For a rotation about the origin by angle \(\theta\) (positive = counter-clockwise in a standard x–y plane with y pointing up), the new point is \(x' = x\cos\theta - y\sin\theta\), \(y' = x\sin\theta + y\cos\theta\). The table lists exact values for common angles. For a center other than the origin, first subtract the center, rotate, then add the center back.

Angle θ cos θ sin θ (x, y) → (x′, y′)
0° 1 0 (x, y)
30° √3/2 1/2 (√3/2·x − y/2, x/2 + √3/2·y)
45° √2/2 √2/2 (√2/2·(x − y), √2/2·(x + y))
60° 1/2 √3/2 (x/2 − √3/2·y, √3/2·x + y/2)
90° 0 1 (−y, x)
120° −1/2 √3/2 (−x/2 − √3/2·y, √3/2·x − y/2)
135° −√2/2 √2/2 (−√2/2·(x + y), √2/2·(x − y))
150° −√3/2 1/2 (−√3/2·x − y/2, x/2 − √3/2·y)
180° −1 0 (−x, −y)
270° 0 −1 (y, −x)
360° 1 0 (x, y)
−90° 0 −1 (y, −x)

Notice that 270° and −90° give the same result, as do 0° and 360°, because angles that differ by a full turn (360°) produce identical rotations.

More Worked Examples: Rotation Around a Non-Origin Center

Example 1: Rotate (4, 3) by 90° counter-clockwise around center (1, 1)

  1. Subtract the center: \(\Delta x = 4 - 1 = 3\), \(\Delta y = 3 - 1 = 2\).
  2. Trig values for 90°: \(\cos 90^\circ = 0\), \(\sin 90^\circ = 1\).
  3. Rotate the offset: \(3\cdot 0 - 2\cdot 1 = -2\) and \(3\cdot 1 + 2\cdot 0 = 3\), giving \((-2, 3)\).
  4. Add the center back: \(x' = -2 + 1 = \) -1 and \(y' = 3 + 1 = 4\).

The rotated point is \((-1, 4)\). Check: the distance from the center is \(\sqrt{3^2+2^2}=\sqrt{13}\) before, and \(\sqrt{(-2)^2+3^2}=\sqrt{13}\) after, so the distance is preserved.

Example 2: Rotate (2, 0) by −45° (clockwise) around the origin

  1. The center is the origin, so no subtraction is needed: \(\Delta x = 2\), \(\Delta y = 0\).
  2. Trig values for −45°: \(\cos(-45^\circ) = \tfrac{\sqrt{2}}{2}\), \(\sin(-45^\circ) = -\tfrac{\sqrt{2}}{2}\).
  3. \(x' = 2\cdot\tfrac{\sqrt{2}}{2} - 0\cdot\left(-\tfrac{\sqrt{2}}{2}\right) = \sqrt{2} \approx 1.414\).
  4. \(y' = 2\cdot\left(-\tfrac{\sqrt{2}}{2}\right) + 0\cdot\tfrac{\sqrt{2}}{2} = -\sqrt{2} \approx -1.414\).

The result is \((\sqrt{2}, -\sqrt{2}) \approx (1.414, -1.414)\): the point moves clockwise from the positive x-axis to below it, still 2 units from the origin.

Advertisement

Key Terms and Definitions

  • Center of rotation (pivot): the fixed point about which everything else turns. It maps to itself. In this calculator it is (Center X, Center Y).
  • Rotation angle θ: the amount of turn, measured from the line joining the center to the original point.
  • Counter-clockwise vs clockwise: in the usual mathematical convention (y axis pointing up), positive angles turn counter-clockwise and negative angles turn clockwise. In screen coordinates where y points down, the same formulas appear to turn clockwise.
  • Rigid transformation (isometry): a transformation that preserves distances and angles, so shapes keep their size and shape. Rotations, translations and reflections are isometries.
  • Rotation matrix: $$R(\theta)=\begin{bmatrix}\cos\theta & -\sin\theta \\ \sin\theta & \cos\theta\end{bmatrix}$$ Multiplying it by the column vector \((x, y)\) rotates that vector about the origin by θ.
  • Translation: shifting every point by a fixed amount. Rotating about a non-origin center is a translation by \(-(c_x, c_y)\), then a rotation about the origin, then a translation by \(+(c_x, c_y)\).
  • Radians vs degrees: two units of angle. \(180^\circ = \pi\) radians, so \(\theta_{\text{rad}} = \theta_{\text{deg}}\cdot\pi/180\). Trigonometric functions in most programming languages expect radians; this calculator takes degrees and converts them.
  • Inverse rotation: rotating by \(-\theta\) undoes a rotation by θ, because \(R(-\theta)R(\theta)=I\). The inverse matrix equals the transpose of \(R(\theta)\).

FAQ

Are angles clockwise or counter-clockwise? Positive angles rotate counter-clockwise (the standard mathematical convention). Enter a negative angle for clockwise rotation.

Can I rotate around a point other than the origin? Yes. Set Center X and Center Y to your pivot point; the math handles the translation automatically.

Does rotation change the distance from the center? No. Rotation preserves distances, so the rotated point stays the same distance from the center as the original.

Last updated:

Most popular in Math and Statistics

View all Math and Statistics calculators