Built and fact-checked by the DocNectar team — see our editorial standards
Key Features
Instant Calculation
Get accurate results in real time with our optimized algorithm.
Mobile Friendly
Fully responsive design. Works on all devices & screen sizes.
Privacy Focused
Your data stays on your device. We don't store any inputs.
100% Free
No hidden costs. This tool is completely free forever.
A sphere's standard-form equation, (x-h)²+(y-k)²+(z-l)²=r², directly encodes its center (h,k,l) and radius r — the natural extension of a circle's equation into three dimensions. This is used in 3D modeling and CAD software when defining spherical primitives, in physics when describing the boundary of a field or particle's influence, and in computational geometry when checking whether a point lies inside, on, or outside a spherical region. Given the expanded "general form" instead (with all the squared terms multiplied out), completing the square in each variable recovers the center and radius.
How it works
Choose center+radius (to build the equation directly by substituting into the standard form) or general form (to recover center and radius). For general form, expand x²+y²+z²+Dx+Ey+Fz+G=0 and complete the square on each variable separately: the center coordinates are h=-D/2, k=-E/2, l=-F/2, and the radius is found from r²=h²+k²+l²-G.
- Enter direction.
- Enter center h.
- Enter center k.
- Enter center l.
- Enter radius (r).
- Enter d (coefficient of x).
- Enter e (coefficient of y).
- Enter f (coefficient of z).
- Enter g (constant).
- Click Calculate to see your results.
Examples
Center (1,2,3), radius 5
Substituting directly into the standard form gives the equation (x-1)²+(y-2)²+(z-3)²=25.
General form x²+y²+z²-4x+6y-10z+13=0
Completing the square: h=-(-4)/2=2, k=-6/2=-3, l=-(-10)/2=5. Then r²=2²+(-3)²+5²-13=4+9+25-13=25, so r=5. The sphere is centered at (2,-3,5) with radius 5.
Common mistakes to avoid
- Forgetting to halve and negate the coefficients when completing the square (h = -D/2, not -D).
- Applying the formula to a general-form equation whose x², y², z² coefficients aren't all 1 without first dividing through by that common coefficient.
- Mixing up the sign of G in r²=h²+k²+l²-G — it is subtracted, not added.