Loading…

Matrix Transformation Calculator for 2d

Math Geometry • Transformations and Symmetry

View all topics

2D Matrix Transformation Calculator – Rotation, Scaling & More

Apply a 2D transformation to a point or a shape using a matrix: \[ \mathbf{x}' = A(\mathbf{x}-\mathbf{c}) + \mathbf{c} + \mathbf{t}, \quad A=\begin{bmatrix}a&b\\c&d\end{bmatrix},\; \mathbf{t}=\begin{bmatrix}t_x\\t_y\end{bmatrix} \] Visualize the original vs transformed geometry and animate the motion.

Inputs accept 1e-3, pi, e, sqrt(2), sin(), cos(), tan(), ln(), log(), abs(). Use * for multiplication.

Input geometry
Example: point \((1,0)\) rotated \(45^\circ\) gives \((\cos45^\circ,\sin45^\circ)\).
Transformation builder
Rotation matrix: \(\begin{bmatrix}\cos\theta & -\sin\theta\\ \sin\theta & \cos\theta\end{bmatrix}\)
Turn translation on to move the shape after the matrix transform.
Graph options

Drag to pan • wheel/trackpad to zoom • pinch on touch • “Reset view” fits the geometry. Units are square.

Ready
2D transformation diagram (square units • pan/zoom enabled)

Original geometry is solid. Transformed geometry is dashed. Use Play or the slider to animate.

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

How does a 2D matrix transformation change a point (x,y)?

A 2x2 matrix A maps a vector to a new vector using x' = A x (for transformations about the origin). This calculator can also transform about a center c and add translation t using x' = A(x - c) + c + t.

What is the determinant used for in a matrix transformation?

The determinant det(A) tells how areas scale by a factor of |det(A)| and whether orientation flips when det(A) is negative. If det(A) = 0, the matrix is not invertible and collapses the plane into a line or a point.

How do I rotate a polygon using the matrix transformation calculator?

Choose Vertices input, select the Rotation preset, enter the angle theta in degrees, and choose the center (origin, centroid, or custom). The calculator applies the rotation matrix to every vertex and shows the rotated overlay.

What is the difference between a linear map and an affine map in this tool?

A linear map uses only the matrix A and keeps the origin fixed (when transforming about the origin). An affine map adds a translation vector t, allowing the transformed shape to shift after the matrix operation.