Rotation Calculator
Test cases replayed : 3 of 3 match · Methodology · No outside source listed
Enter the point, the center of rotation and the angle. A positive angle turns counterclockwise, a negative one clockwise.
Result
Rotated point: x′
Rotated point: y′
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Point: x: enter a number.
- Point: y: enter a number.
- Center: x (0 for the origin): enter a number.
- Center: y (0 for the origin): enter a number.
- Angle (+ counterclockwise, − clockwise), in °: enter a number.
- Read the result: Rotated point: x′; the panel also shows Rotated point: y′.
How this calculator works
Rotation by an angle θ about the origin: x′ = x cos θ − y sin θ, y′ = x sin θ + y cos θ (the rotation matrix [[cos θ, −sin θ], [sin θ, cos θ]]). A positive θ turns counterclockwise.
About a center (a, b): move the center to the origin, rotate, move back: x′ = a + (x − a) cos θ − (y − b) sin θ, y′ = b + (x − a) sin θ + (y − b) cos θ. The common rules follow: 90° counterclockwise sends (x, y) to (−y, x), 180° to (−x, −y), 270° to (y, −x).
The formula
| Symbol | Meaning | Unit |
|---|---|---|
| Point: x | ||
| Point: y | ||
| Center: x (0 for the origin) | ||
| Center: y (0 for the origin) | ||
| Angle (+ counterclockwise, − clockwise) | ° | |
| Rotated point: x′ | ||
rad(x) | the angle x, converted from degrees to radians. |
Worked example
| Point: x | 3 |
|---|---|
| Point: y | 4 |
| Center: x (0 for the origin) | 0 |
| Center: y (0 for the origin) | 0 |
| Angle (+ counterclockwise, − clockwise) | 90 ° |
| Rotated point: y′ | 3 |
|---|
Rotated point: x′ -4
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
Where does (3, 4) go after a 90° counterclockwise rotation about the origin?
To (−4, 3).
Is a 90° clockwise rotation the same as 270° counterclockwise?
Yes. Enter −90 or 270; both send (x, y) to (y, −x) about the origin.