2D Rotation
Rotate a point (x,y) by angle θ about the origin: x' = x cos θ − y sin θ, y' = x sin θ + y cos θ. Positive θ = counterclockwise. For custom center (cₓ,cᵧ): translate, rotate, translate back.
Did our AI summary help? Let us know.
90° CCW: (x,y) → (−y,x). Rotation is an isometry (preserves distance). Complex: z·e^(iθ) rotates z by θ.
Ready to run the numbers?
Why: Rotation is fundamental in computer graphics, physics (rigid body motion), and complex numbers (multiply by e^(iθ)). Preserves distances and angles (isometry).
How: About origin: apply rotation matrix. About (cₓ,cᵧ): subtract center, rotate, add center back. x' = cₓ + (x−cₓ)cos θ − (y−cᵧ)sin θ, y' = cᵧ + (x−cₓ)sin θ + (y−cᵧ)cos θ.
Run the calculator when you are ready.
Input
Point to Rotate
Rotation
For educational and informational purposes only. Verify with a qualified professional.
🧮 Fascinating Math Facts
x' = x cos θ − y sin θ, y' = x sin θ + y cos θ.
— Rotation Matrix
90° CCW: (x,y) → (−y,x).
— Shortcut
Key Takeaways
- • About origin: ,
- • About (cₓ, cᵧ): Translate so center is origin, rotate, translate back
- • Positive θ = counterclockwise; negative θ = clockwise
- • Rotation is an isometry — preserves distances and angles
- • 90° CCW: (x,y) → (−y,x); 180°: (x,y) → (−x,−y)
Did You Know?
The 2×2 rotation matrix R(θ) has rows [cos θ, -sin θ] and [sin θ, cos θ].
Multiplying by e^(iθ) rotates a complex number by θ. z·e^(iθ) = (x+iy)(cos θ + i sin θ).
Rotation is fundamental in 2D/3D graphics. GPU hardware accelerates matrix multiplication.
Angular displacement, rigid body motion, and orbital mechanics use rotation transformations.
90° CCW: swap coordinates and negate first. (x,y) → (-y,x).
180°: negate both. (x,y) → (-x,-y).
Understanding the Formulas
About origin (0,0):
About center (cₓ, cᵧ): First subtract center, rotate, then add center back:
Expert Tips
90° CCW
(x,y) → (-y,x). Example: (3,2) → (-2,3).
90° CW
(x,y) → (y,-x). Or use -90° in the formula.
180°
(x,y) → (-x,-y). Just negate both coordinates.
Custom Center
Enable "Use custom center" and enter (cx, cy). The point rotates around that center.
Frequently Asked Questions
What is counterclockwise?
In the standard math coordinate system, counterclockwise is the direction from positive x-axis toward positive y-axis (left-hand rule).
How do I rotate clockwise?
Use a negative angle. -90° gives clockwise 90°.
What about 3D rotation?
3D rotation requires an axis. This calculator handles 2D rotation in the xy-plane (about the z-axis).
Does order matter for multiple rotations?
Yes. Rotating by 90° then 90° is 180°. But rotating A then B is not the same as B then A in general.
What is the rotation matrix?
R(θ) = [[cos θ, -sin θ], [sin θ, cos θ]]. The columns are the images of (1,0) and (0,1).
How do I rotate a shape?
Apply the rotation formula to each vertex of the shape. The shape rotates as a rigid body.
Radians vs degrees?
This calculator uses degrees. To use radians: θ_rad = θ_deg × π/180.
How to Use This Calculator
- Enter the point (x, y) and rotation angle θ in degrees (positive = CCW, negative = CW).
- Optionally enable "Use custom center" and enter (cₓ, cᵧ) to rotate about a point other than the origin.
- Click a sample example to auto-fill and calculate.
- Click Calculate to get the rotated coordinates.
- Review the visualization and step-by-step solution.
Disclaimer: This calculator uses degrees. For radians, convert first (rad = deg × π/180). Results may have minor rounding.
Related Calculators
Centroid Calculator
Centroid Calculator - Calculate and learn about coordinate-geometry concepts
MathematicsEndpoint Calculator
Endpoint Calculator - Calculate and learn about coordinate-geometry concepts
MathematicsGradient Calculator
Gradient Calculator - Calculate and learn about coordinate-geometry concepts
MathematicsVector Calculator
Vector Calculator - Calculate and learn about coordinate-geometry concepts
MathematicsY Intercept Calculator
Y Intercept Calculator - Calculate and learn about coordinate-geometry concepts
MathematicsRise Over Run Calculator
Rise Over Run Calculator - Calculate and learn about coordinate-geometry concepts
Mathematics