Rotation Matrix 2D

Enter an angle and a point to get the 2D rotation matrix and the transformed coordinates.

Use the Rotation Matrix 2D

Rotation Parameters

Rotation Matrix R(θ)

〈
—
—
—
—
〉

[ [cos θ, −sin θ], [sin θ, cos θ] ]

Rotated Point

x'
—
,
y'
—
Distance from origin: —

Step-by-step

  1. Enter values and click Calculate.
Copied!

Summary

A 2D rotation matrix transforms a point by rotating it around the origin by a given angle. Given angle θ, the rotation matrix is [[cos θ, −sin θ], [sin θ, cos θ]]. Multiply this matrix by a column vector [x, y] to get the rotated point. This tool computes the matrix, applies it to your input point, and shows every step of the calculation.

How it works

  1. Enter the rotation angle in degrees (or switch to radians).
  2. Enter the x and y coordinates of the point to rotate.
  3. The tool computes cos(θ) and sin(θ) to build the 2×2 rotation matrix.
  4. It multiplies the rotation matrix by the input vector [x, y].
  5. The rotated point and the full matrix are displayed instantly.

Use cases

  • Verify hand-computed rotation matrix entries for a linear algebra problem.
  • Rotate a vector or point as part of a computer graphics pipeline.
  • Check rotated coordinates when implementing 2D game physics.
  • Understand the relationship between angle, cosine, and sine in transformations.
  • Convert between standard and rotated coordinate frames in robotics.
  • Compose multiple rotations by chaining the resulting matrices.

Frequently Asked Questions

Last updated: 2026-06-18 · Reviewed by Nham Vu