Sphere Equation Calculator screenshot

Sphere Equation Calculator

Write a sphere's equation in standard and expanded form from its centre and radius, with the volume, the surface area and the expansion checked.

Privacy First
0 Runs
Updated 2026-11-22
Runs in your browser
No sign-up, no upload
Expansion checkable by completing squares

Sphere Equation Calculator

Write a sphere's equation in standard and expanded form from its centre and radius, with the volume, the surface area and the expansion checked.

How this page computes

The standard form subtracts each centre coordinate and squares the radius on the right. Expanding each square produces the linear coefficients −2h, −2j and −2k.

The constant is h² + j² + k² − r², and the volume and surface area use the usual 4πr³/3 and 4πr² formulas. The expanded constant is printed as the check on the expansion.

The calculation runs entirely in this browser tab; nothing is uploaded.

A sphere is the set of points at distance r from its centre. With centre (1, −2, 3) and radius 4 the equation is (x − 1)² + (y + 2)² + (z − 3)² = 16, and the page also writes it expanded as x² + y² + z² − 2x + 4y − 6z − 2 = 0.

The expanded constant is h² + j² + k² − r², which is −2 here, and the page prints it so the expansion can be checked by completing the squares back.

How to use Sphere Equation Calculator

Enter the centre coordinates and the radius, then press Run. The radius must be above zero, since a zero radius is a single point rather than a sphere.

The output gives both forms, the diameter, the volume and the surface area, and the check that the expanded constant reproduces the radius when the squares are completed.

Why the expanded form has half the centre coordinates

Expanding (x − h)² gives x² − 2hx + h², so the coefficient of x is −2h and the constant collects h² + j² + k² − r². That is why the expanded coefficients are twice the centre coordinates with the opposite sign.

Completing the squares in the expanded form recovers the centre and the radius, which is the inverse of the expansion and the usual exercise. The page prints the constant so that step is checkable rather than asserted.

What to Expect

Best for

  • The equation of a sphere from its centre and radius
  • Converting between standard and expanded form
  • The volume and surface area that follow

Not ideal for

  • Finding the centre from four points, which needs a linear system
  • A radius of zero, which is a point
  • A sphere in two dimensions, which is a circle

What this tool keeps

  • The centre and the radius exactly as typed

What may need cleanup

  • Nothing: both forms describe the same sphere

Common errors

  • A radius at or below zero is refused
  • A non-numeric coordinate is refused by name

Example use cases

  • Write the sphere with centre (1, -2, 3) and radius 4
  • Expand it to general form
  • Get its volume and surface area

Sample input

centre (1, -2, 3), radius 4

Sample output

(x - 1)^2 + (y + 2)^2 + (z - 3)^2 = 16, volume 268.0825731063

Who this is for

  • Students meeting three-dimensional geometry
  • Readers checking an expansion

Frequently asked questions

Why is the y term plus two when the centre y is minus two?

Because the standard form subtracts the centre coordinate: (y − (−2)) = y + 2. The sign in the equation is the opposite of the centre's sign.

How do I get back to the centre from the expanded form?

Halve each linear coefficient and flip its sign. The constant then gives the radius after subtracting the squared centre coordinates, which is the step the page prints.

Is the volume exact?

No, it contains π, so it is a real number printed to ten decimals. The radius and the equation are exact for the values typed.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.