Transform Matrix Calculator

Build affine matrices for every 2D transformation quickly. Rotate, scale, shear, translate, compose, and invert. See transformed points, matrix steps, and graph results instantly.

Advanced Transform Matrix Calculator

Use the builder for common transformations, or enter a full 3 × 3 matrix for custom homogeneous calculations.

Use T, R, S, H, F. Order is applied left to right.
Outputs are displayed with trimmed decimals.

Builder Options

Pivot Point

Manual Matrix

These entries are used only when the manual matrix source is selected.

Enter one point per line. Commas, spaces, semicolons, and pipes are accepted as separators.

Formula Used

A 2D homogeneous transform uses a 3 × 3 matrix. The point is written as a column vector [x, y, 1]ᵀ.

x' = (m00x + m01y + m02) / w, y' = (m10x + m11y + m12) / w, and w = m20x + m21y + m22.

For normal affine transformations, the last row is [0, 0, 1]. Then W stays equal to 1.

Rotation uses cos θ and sin θ. Scaling uses sx and sy. Shear uses shx and shy. Translation places tx and ty in the final column.

For composition, this calculator multiplies each operation matrix into the total matrix. The listed order is applied from left to right.

How to Use This Calculator

Select the transformation builder for common geometry work. Enable translation, rotation, scale, shear, or reflection. Enter pivot values when the operation should happen around a special point.

Use the order field to control composition. For example, T,R,S moves the point first, rotates it second, and scales it last.

Choose the manual matrix option when you already know the full matrix. This is useful for classroom exercises, computer graphics, robotics, CAD, and linear algebra checks.

Enter points in the box. Press the calculate button. The result appears above the form. Use the CSV and PDF buttons to save the output.

Example Data Table

Input Points Transformation Order Expected Meaning
0,0, 4,0, 4,3, 0,3 Translate by (2, 1), rotate by 30° T,R A rectangle moves first, then turns around the pivot.
1,1, 5,1, 5,4 Scale by sx = 2 and sy = 0.5 S The shape becomes wider and shorter.
-2,3, 2,3, 0,6 Reflect across the y-axis F The triangle flips horizontally.

Transform Matrix Guide

Why Transform Matrices Matter

A transform matrix changes points with one compact rule. It can move, turn, stretch, skew, or reflect a shape. In two dimensions, the common affine matrix uses three rows and three columns. The last column stores translation. The upper left block controls linear change. This structure keeps every point calculation consistent.

Where It Is Used

Transform matrices appear in geometry, animation, mapping, robotics, games, and user interface design. A drawing program uses them to rotate objects. A map app uses them to scale and move coordinates. A robot arm uses them to convert local positions into world positions. The same idea also supports camera views and model placement.

Composition Order

Order matters. Scaling then translating is not the same as translating then scaling. This calculator lets you test that behavior quickly. It multiplies operation matrices in the order you enter. The point follows that order from left to right. This makes the output easy to compare with manual class notes.

Determinant and Area

The determinant gives useful insight. A positive determinant keeps orientation. A negative determinant reverses orientation. A zero determinant collapses the shape. The absolute determinant also shows area scale for affine transformations. If the value is 2, the transformed shape has twice the signed area size.

Pivot Transformations

Rotation, scale, shear, and reflection often need a pivot. The calculator handles that by moving the pivot to the origin, applying the operation, then moving it back. This is the standard sandwich form. It helps when rotating a polygon around its center or scaling a design around a corner.

Reading the Results

The output table shows each original point and its transformed coordinate. The graph compares both shapes. The inverse matrix appears when the transformation can be reversed. Use the CSV file for spreadsheets. Use the PDF file for reports, lessons, or project documentation. Together, these outputs support careful checking.

Checking Work

Always compare matrix output with one simple test point. Use the origin, a unit vector, or a known corner. Small checks reveal sign errors, wrong order, and pivot mistakes. They also make the graph easier to trust before exporting final values.

FAQs

What is a transform matrix?

A transform matrix is a number grid that changes coordinates. It can translate, rotate, scale, shear, reflect, or combine several actions in one calculation.

Why does this calculator use a 3 × 3 matrix?

A 3 × 3 homogeneous matrix can include translation with linear transformations. It keeps point movement, rotation, scaling, and reflection in one matrix format.

Does transformation order matter?

Yes. Matrix multiplication is usually not commutative. Rotating then translating can produce a different result from translating then rotating.

What does determinant mean here?

The 2 × 2 determinant describes area scaling and orientation. Positive values preserve orientation, negative values reverse it, and zero means collapse.

When is the inverse matrix available?

The inverse is available when the full matrix determinant is not zero. It reverses the transformation and maps transformed points back.

Can I enter my own matrix?

Yes. Select the manual matrix option. Enter all nine values. The calculator will apply that matrix to every point.

What is the pivot point?

The pivot is the fixed reference point for rotation, scale, shear, or reflection. It helps transform a shape around a chosen location.

Can I export the result?

Yes. Use the CSV button for spreadsheet data. Use the PDF button for a readable report with the matrix and transformed points.

Related Calculators

Paver Sand Bedding Calculator (depth-based)Paver Edge Restraint Length & Cost CalculatorPaver Sealer Quantity & Cost CalculatorExcavation Hauling Loads Calculator (truck loads)Soil Disposal Fee CalculatorSite Leveling Cost CalculatorCompaction Passes Time & Cost CalculatorPlate Compactor Rental Cost CalculatorGravel Volume Calculator (yards/tons)Gravel Weight Calculator (by material type)

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.