Skip to content
FiftyCalc Free calculators for all 50 states

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

Sample figures

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.

Rotation Calculator

Point: x: enter a number. Prefilled example: 3.

Point: y: enter a number. Prefilled example: 4.

Center: x (0 for the origin): enter a number. Prefilled example: 0.

Center: y (0 for the origin): enter a number. Prefilled example: 0.

Angle (+ counterclockwise, − clockwise), in °: enter a number. Prefilled example: 90.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Point: x: enter a number.
  2. Point: y: enter a number.
  3. Center: x (0 for the origin): enter a number.
  4. Center: y (0 for the origin): enter a number.
  5. Angle (+ counterclockwise, − clockwise), in °: enter a number.
  6. 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

  1. Xr=a+(x−a)×cos⁡(rad⁡(ang))−(y−b)×sin⁡(rad⁡(ang))
Symbols used in the formula
SymbolMeaningUnit
xPoint: x
yPoint: y
aCenter: x (0 for the origin)
bCenter: y (0 for the origin)
angAngle (+ counterclockwise, − clockwise)°
XrRotated point: x′
rad(x)the angle x, converted from degrees to radians.

Worked example

Point: x3
Point: y4
Center: x (0 for the origin)0
Center: y (0 for the origin)0
Angle (+ counterclockwise, − clockwise)90 °
Rotated point: y′3
  1. Xr=0+(3−0)×cos⁡(rad⁡(90))−(4−0)×sin⁡(rad⁡(90))=−4

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.

Questions answered

Related calculators