Calculate two independent conversions: sphere coordinates (x, y, z) to plane coordinates, and plane coordinates (u, v) to sphere coordinates. All coordinates are dimensionless. Forward inputs must satisfy x² + y² + z² = 1. This calculator does not check sphere membership or normalize your inputs.

Use the unit sphere centered at the origin, the north pole N = (0, 0, 1), and the equatorial plane z = 0. The line through N and a sphere point meets that plane at (u, v, 0). The inverse uses the second intersection of the line through N and (u, v, 0) with the sphere. This construction is described in the University of Washington stereographic projection reference.

\[u=\frac{x}{1-z},\qquad v=\frac{y}{1-z},\qquad x^2+y^2+z^2=1,\quad z\ne1\]
\[q=1+u^2+v^2,\qquad x=\frac{2u}{q},\qquad y=\frac{2v}{q},\qquad z=\frac{u^2+v^2-1}{q}\]

For forward projection, enter x, y and z for a point you have verified lies on the unit sphere. Individual coordinate bounds do not establish sphere membership. For inverse projection, enter u and v independently. Forward outputs are not automatically copied into the inverse inputs; copy them manually to check a round trip. Leave the fixed formula constant at 1.

At the north pole (0, 0, 1), the forward denominator is zero and both forward results are unavailable. They are not zero or finite plane coordinates. The independent inverse conversion can still return results. Near the north pole, a small change in z can greatly change the forward result. Very large plane inputs can exceed numeric range during squaring; unavailable intermediate values propagate to dependent outputs. Display rounding can also affect round-trip comparisons.

This tool maps sphere and plane coordinates. It does not perform latitude/longitude conversion, automatic sphere-membership classification, orthogonal vector projection, affine transformation or planar circle inversion.

Examples using the north-pole convention
DirectionInput coordinatesResult coordinates
Forward(x, y, z) = (1, 0, 0)(u, v) = (1, 0)
Forward(x, y, z) = (0, 0, -1)(u, v) = (0, 0)
Forward(x, y, z) = (0, 0, 1)Both forward results unavailable
Inverse(u, v) = (0, 0)(x, y, z) = (0, 0, -1)
Inverse(u, v) = (1, 1)(x, y, z) = (2/3, 2/3, 1/3)

Reference

  1. University of Washington — Stereographic Projection: geometric construction and inverse mapping.