Reflection Across y = x Calculator

Swap x and y values using guided steps. Review distance, midpoint, and transformed coordinate details. Download CSV or PDF summaries for clean project records.

Calculator

Use x,y or label,x,y. Add one point per line.

Formula Used

Reflection rule: (x, y) → (y, x)

Reflection matrix: [0 1; 1 0] × [x; y] = [y; x]

Distance from y = x: |x - y| / √2

Segment between original and reflected points: √2 × |x - y|

Midpoint: ((x + y) / 2, (x + y) / 2)

How to Use This Calculator

Enter a label if you want named output. Type the original x and y values. Choose decimal places for rounded results. Add optional batch points for many coordinates. Press calculate to view the reflected points above the form. Use the export buttons to save the current report.

Example Data Table

Point Original x Original y Reflected x Reflected y Rule
A 4 -2 -2 4 Swap x and y
B 1.5 6 6 1.5 Swap x and y
C -3 -7 -7 -3 Swap x and y

Understanding Reflection Across y = x

A reflection across y = x is a coordinate swap. The original x value becomes the new y value. The original y value becomes the new x value. This rule works because the line y = x is a perfect diagonal mirror. Every point on that line has equal coordinates. Points away from the line move to the opposite side.

Why This Calculator Helps

Manual reflection is easy for one point. It becomes slower with decimals, negatives, and many rows. This calculator handles single points and batch entries. It also reports distance from the mirror line, displacement, midpoint, and matrix form. These extra values help students check each step. They also help teachers prepare answer keys.

Coordinate Details

The reflected point keeps the same distance from the mirror line. The midpoint between the original and reflected points lies on y = x. The segment joining both points is perpendicular to the mirror line. These properties are useful checks. If any check fails, the coordinates were likely copied incorrectly.

Batch Use Cases

Batch mode is useful for polygons, triangle vertices, graph transformations, and classroom tables. Enter one point per line. You may write x,y or label,x,y. Labels make exported files easier to read. The calculator rounds values using your selected precision. It keeps formulas visible, so the result stays transparent.

Practical Notes

Reflection across y = x does not change shape size. It changes orientation. A square remains a square. A triangle remains congruent. Slopes are transformed because coordinate roles are exchanged. For example, a horizontal segment may become vertical. A point already on y = x does not move. This happens when x equals y. Use the distance field to confirm that case.

Checking Graph Work

Use the original and reflected coordinates together. Plot both points on the same grid. Draw the line y = x. The line should cut the joining segment exactly halfway. It should also meet that segment at a right angle. For polygons, reflect every vertex in the same order. Then connect the new vertices. The reflected figure should match the original figure in size. Only its position and orientation should change. These checks make errors easier to see before submission and grading review.

FAQs

What is reflection across y = x?

It is a diagonal mirror transformation. Every point changes from (x, y) to (y, x). The x and y coordinates trade places.

What happens to a point already on y = x?

It does not move. A point on y = x has equal coordinates, such as (3, 3). Swapping equal values gives the same point.

Can this calculator handle negative coordinates?

Yes. Negative values follow the same rule. For example, (-4, 2) reflects to (2, -4).

What format should batch points use?

Enter one point per line. Use x,y for unnamed points. Use label,x,y when you want named rows in the result table.

Does reflection change the size of a shape?

No. Reflection preserves lengths and angles. The shape remains congruent, but its orientation changes across the mirror line.

Why is the midpoint important?

The midpoint between the original and reflected point lies on y = x. It confirms that the reflection was placed correctly.

How is distance from the mirror line calculated?

The calculator uses |x - y| / √2. This gives the shortest distance from the point to the line y = x.

Can I export the results?

Yes. Use the CSV button for spreadsheet work. Use the PDF button for a simple printable report.

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.