Equation of a Sphere Calculator

Choose how the sphere is given and enter it to get its equation.

The centre of the sphere, like (1, -2, 3).

A length more than 0.

Try

Result

You enteredsphere with centre (1,−2,3) and radius 4\text{sphere with centre } \left(1, -2, 3\right) \text{ and radius } 4

(x−1)2+(y+2)2+(z−3)2=16\displaystyle \left(x - 1\right)^{2} + \left(y + 2\right)^{2} + \left(z - 3\right)^{2} = 16

General form

x2+y2+z2−2x+4y−6z−2=0\displaystyle x^{2} + y^{2} + z^{2} - 2x + 4y - 6z - 2 = 0
Show the work
  1. Equation of a sphere

    A sphere is every point at a fixed distance rr (the radius) from a centre (a,b,c)(a, b, c). Applying the distance formula in 3-D and squaring both sides gives this equation.

    (x−a)2+(y−b)2+(z−c)2=r2=42=16\begin{aligned} \left(x - a\right)^2 + \left(y - b\right)^2 + \left(z - c\right)^2 &= r^2 \\ &= 4^2 \\ &= 16 \end{aligned}
  2. Put in the centre

    Replace aa, bb, cc by the coordinates of the centre. Subtracting a negative coordinate becomes adding, and a coordinate of 0 leaves the bare letter.

    (x−1)2+(y+2)2+(z−3)2=16\left(x - 1\right)^{2} + \left(y + 2\right)^{2} + \left(z - 3\right)^{2} = 16
  3. Result

    So the sphere is (x−1)2+(y+2)2+(z−3)2=16\left(x - 1\right)^{2} + \left(y + 2\right)^{2} + \left(z - 3\right)^{2} = 16.

Worked examples