2D Rotation Calculator — Rotate Points, Matrix & Common Rotations

Rotate a 2D point by any angle about any center. See the rotation matrix, new coordinates, displacement, and a table of common rotations (90°, 180°, 270°). Presets and rotation rules included.

2D Rotation Calculator

Rotated Point
(0.000000, 0.000000)
Result of rotating (0, 0) by 0.00° about (0, 0)
Original Angle
0.00°
Angle of the original point from the center, measured from the positive x-axis
New Angle
0.00°
Angle of the rotated point from the center
Distance from Center
0.000000
Radius of rotation — preserved under rotation (should match before and after)
Displacement
0.000000
Straight-line distance between the original and rotated points
Angle (radians)
0.000000
0.00° = 0.000000 rad

Rotation Matrix

R = [ cos θ   −sin θ ]    [ sin θ    cos θ ]
cos(0.00°) = 1.000000
sin(0.00°) = 0.000000
R = [ 1.0000   -0.0000 ]
    [ 0.0000    1.0000 ]

Position Visualization

X
0.000.00
Y
0.000.00
■ Original ■ Rotated | Center

Common Rotations of (0, 0)

Rotationcos θsin θNew XNew YDisplacement
0° (Identity)1.00000.00000.00000.00000.0000
90° CCW0.00001.00000.00000.00000.0000
180°-1.00000.00000.00000.00000.0000
270° CCW (= 90° CW)-0.0000-1.00000.00000.00000.0000
45°0.70710.70710.00000.00000.0000
60°0.50000.86600.00000.00000.0000
120°-0.50000.86600.00000.00000.0000
135°-0.70710.70710.00000.00000.0000

Rotation Rules (About Origin)

RotationRuleMatrix
90° CCW(x, y) → (−y, x)[0, −1; 1, 0]
180°(x, y) → (−x, −y)[−1, 0; 0, −1]
270° CCW(x, y) → (y, −x)[0, 1; −1, 0]
90° CW(x, y) → (y, −x)[0, 1; −1, 0]
θ (general)(x cos θ − y sin θ, x sin θ + y cos θ)[cos θ, −sin θ; sin θ, cos θ]
Planning notes, formulas, and examples

About the 2D Rotation Calculator — Rotate Points, Matrix & Common Rotations

Rotation is one of the fundamental transformations in geometry, alongside translation and reflection. A 2D rotation maps every point in the plane to a new position by "spinning" it around a fixed center by a given angle. The rotated point stays the same distance from the center — only its angular position changes.

The mathematics behind rotation is elegantly captured by the rotation matrix R = [cos θ, −sin θ; sin θ, cos θ]. To rotate a point (x, y) about the origin by angle θ, you multiply the column vector [x; y] by R. When the center of rotation is not the origin, you translate to the origin, apply R, and translate back. This calculator handles both cases — you can rotate about the origin or about any custom center point.

Rotation appears everywhere in STEM: computer graphics engines rotate sprites and 3D models thousands of times per second; robotics uses rotation matrices for joint kinematics; physics applies rotations to resolve forces and velocities; and students encounter rotation problems in coordinate geometry, linear algebra, and transformation units. Understanding how the rotation matrix works and memorizing the key special-case rules (90°, 180°, 270°) are essential skills.

The calculator takes a point, an angle (in degrees or radians), and an optional center of rotation, then computes the new coordinates, the rotation matrix, the displacement, and the angle from center before and after. It also shows a table of all common rotations applied to your point so you can compare results at a glance. Presets and a rules-reference table make it ideal for quick homework checks or programming verification.

When This Page Helps

A rotation problem is easy to state but surprisingly easy to mishandle when the center is not the origin or when the angle is given in radians. This calculator removes that friction by showing the transformed point, the numerical rotation matrix, the preserved distance from the center, and a comparison against standard angles like 90°, 180°, and 270°. That makes it useful for both learning the transformation and verifying implementation details.

It is especially practical in coordinate-geometry classes, graphics programming, robotics, and CAD-style work where the same point may be rotated around different centers. Instead of manually translating, rotating, and translating back every time, you can confirm the full transformation alongside the standard shortcut rules about the origin.

How to Use the Inputs

  1. Enter the X and Y coordinates of the point to rotate.
  2. Enter the rotation angle (positive = counter-clockwise).
  3. Select degrees or radians.
  4. Optionally change the center of rotation from (0,0).
  5. Or click a preset for a common example.
  6. Read the rotated coordinates, displacement, and angles from the output cards.
  7. View the rotation matrix with numerical values below.
  8. Check the "Common Rotations" table to see your point at 0°, 45°, 60°, 90°, 120°, 135°, 180°, 270°.
  9. Scroll to the Rotation Rules table for the algebraic shortcuts.
Formula used
Rotation about origin: x′ = x cos θ − y sin θ y′ = x sin θ + y cos θ Rotation about center (cx, cy): x′ = cos θ · (x − cx) − sin θ · (y − cy) + cx y′ = sin θ · (x − cx) + cos θ · (y − cy) + cy Rotation matrix: R(θ) = [cos θ, −sin θ; sin θ, cos θ]

Example Calculation

Result: Rotated point: (0, 1)

Rotating (1, 0) by 90° CCW about the origin: x′ = 1·cos 90° − 0·sin 90° = 0, y′ = 1·sin 90° + 0·cos 90° = 1. The point moves from the positive x-axis to the positive y-axis. Distance from origin is preserved: √(0²+1²) = 1.

Tips & Best Practices

  • Positive angles rotate counter-clockwise (CCW); negative angles rotate clockwise (CW).
  • A 90° CCW rotation maps (x, y) → (−y, x). Memorize this shortcut!
  • The distance from the center is always preserved — rotation is an isometry.
  • For rotation about a non-origin center, translate → rotate → translate back.
  • Composing two rotations by angles α and β equals a single rotation by α + β about the same center.

Rotation as a Coordinate Transformation

A 2D rotation changes direction without changing the point's distance from the center of rotation. That is what makes it different from translations, reflections, and dilations. In coordinate form, the transformation depends on cosine and sine of the chosen angle, which is why rotation connects geometry, trigonometry, and linear algebra so naturally. When you see the original point, the rotated point, and the matrix together, the underlying structure becomes much easier to follow.

Origin Rules Versus Arbitrary Centers

Students often memorize shortcuts such as $(x, y) o (-y, x)$ for a 90° counterclockwise turn about the origin. Those rules are useful, but they only apply when the center is exactly $(0,0)$. Once the center moves, the process becomes translate, rotate, translate back. This calculator makes that distinction explicit by letting you compare origin-based rules with custom-center rotations in the same interface.

Where Rotation Shows Up in Practice

Rotation is central to animation, robotics, map work, game development, and engineering drawings. A sprite on screen, a robotic arm segment, or a point on a CAD sketch may all need the same underlying transformation. Being able to verify the rotated coordinates, the angle change, and the preserved radius helps catch sign errors and unit mistakes before they spread into a larger model or codebase.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • A rotation is a transformation that turns every point of a figure around a fixed center by the same angle. It preserves distances and angles — the shape and size do not change.