Coordinate Rotation Calculator & Pivot Graph
Enter a signed angle or estimate the angle from measured pairs around a fixed pivot. Inspect the arc of an individual point, compare target miss with your tolerance, and export all coordinates. A shared scale keeps the rotation graph geometrically faithful.
Rotate coordinates around a pivot
Apply a known angle or find the rotation that best matches your target coordinates.
Pivot and coordinates
Use one x, y or x, y, target x, target y row per line. Positive angles turn counterclockwise.
Rotation applied about the entered pivot. 2 of 3 target pairs within tolerance.
Rotation and target fit
- Equivalent signed angle
- 90°
- Coordinate method
- Exact quarter turn
- RMS target miss
- 0.45092498
- Targets within tolerance
- 2 / 3
Before and after
- Original
- Rotated
- Target
- Pivot
Each square is 0.69066667 units wide. The blue dashed arc follows the selected point.
- Original
- (4, -1)
- Rotated
- (2, 1)
- Target
- (2, 1)
- Target miss
- 0 · Within tolerance
Export the rotation worksheet
Save all coordinates and target errors. Quarter-turn coordinates preserve the entered decimals.
View CSV text
How to use this calculator
- Enter the Cartesian pivot and input points. Add paired target coordinates on the same rows to measure error.
- Apply a signed angle, or select Fit an angle when at least one pair provides information about the rotation.
- Compare results on the equal-scale overlay. Select a point to inspect its arc, rotated coordinates and target miss.
- Export the worksheet to keep every input, predicted coordinate and target comparison.
The Formula
The mathematical logic powering this calculation is:
For point P and pivot Q, set a = P−Q. Rotate with R(θ)a = (aₓ cos θ−aᵧ sin θ, aₓ sin θ+aᵧ cos θ) and add Q to get the output. Positive angles turn counterclockwise in the usual Cartesian plane. Report the equivalent signed angle from −180° through values below 180°. Integer quarter turns only swap or negate the relative coordinates, preserving all entered decimals.
To fit an angle, form relative vectors aᵢ and bᵢ for each source and paired target about Q. The total squared miss is Σ(|aᵢ|²+|bᵢ|²)−2(C cos θ+S sin θ), where C = Σ(aᵢ·bᵢ) and S = Σ(aᵢₓbᵢᵧ−aᵢᵧbᵢₓ). The minimum occurs at θ = atan2(S,C). When both sums are zero, every angle gives the same error. Rows without targets get rotated by the same fitted angle and are excluded from the fit and error statistics. All paired rows have equal weight in the squared coordinate-distance objective.
Each target miss is the Euclidean distance between the rotated point and target. RMS miss is the square root of the mean squared miss over paired rows. A miss equal to tolerance passes. For a non-cardinal fitted angle, the tolerance comparison uses the exact decimal inputs and the normalized dot/cross sums. It compares signs first, then squared integers to avoid evaluating a square root near the boundary. Arbitrary entered angles and reported non-cardinal coordinates use numerical trigonometry. Reported radii, nonzero distances and RMS values use numerical square roots.
Use 1–24 rows with two or four comma- or tab-separated coordinates, without a header. Enter one unit and up to six decimal places. Coordinates and pivot components can be within ±1 billion, angle within ±36,000°, and tolerance from 0 through 1 billion. The fit changes only the angle. Supply the physical or geometric pivot yourself.Worked Example
If you input:
- Pivot: (2, −1)
- Angle: 90°
- Tolerance: 0.5
Result:
The point (4, −1) maps to (2, 1). Two of three paired results fall within the tolerance, including one exactly at 0.5.
Frequently Asked Questions
How do I rotate 90 degrees around a point other than the origin?
Subtract the pivot to get (x,y), rotate counterclockwise to (−y,x), then add the pivot coordinates again.
How do I enter a clockwise rotation?
Use a negative angle. For a clockwise quarter turn, enter −90°.
Can I fit a rotation if I know only one pair?
Yes, if the source and target both differ from the entered pivot. Multiple pairs can reduce the influence of any one measurement.
Does the fitting mode translate or scale the points?
It rotates about the supplied fixed pivot and preserves distances. Translation, scaling and reflection are outside this fit.
Similar Calculators
Parallelogram Area Calculator & Corner Closure
Calculate parallelogram area from coordinates. Predict the fourth corner, check a measured corner against tolerance and compare a balanced four-corner fit.
Vector Calculator
Explore 2D and 3D vectors: dot and cross products, angles, addition, projections and area, with interactive geometry, exact arithmetic and CSV.
Matrix Calculator
Multiply, add, subtract and transpose matrices, or find a determinant and inverse. Get exact fractions, cell explanations and CSV for matrices up to 4 × 4.
